UC_NUM_COMP
header_write(ctx, buffer, offset, 2, 8 + (3 * UC_NUM_COMP));
header_write(ctx, buffer, offset, 1, UC_NUM_COMP);