|
Encoder
4.4
VC-5 Sample Encoder
|
Go to the source code of this file.
Data Structures | |
| struct | DPX_file_info |
| Data structure for information about a DPX file. More... | |
Typedefs | |
| typedef struct DPX_file_info | DPX_FileInfo |
| Data structure for information about a DPX file. | |
Functions | |
| uint32_t | Pack10 (uint32_t R, uint32_t G, uint32_t B) |
| Pack the color components into a 32-bit word. More... | |
| void | Unpack10 (uint32_t word, uint16_t *R, uint16_t *G, uint16_t *B) |
| CODEC_ERROR | PackBufferRowsToDPX0 (PIXEL *input_buffer, size_t input_pitch, PIXEL *output_buffer, size_t output_pitch, DIMENSION width, DIMENSION height) |
| Pack the intermediate decoded image into the output image in DPX pixel format. More... | |
| CODEC_ERROR | ConvertBufferRowsToDPX0 (PIXEL *input_buffer, size_t input_pitch, PIXEL *output_buffer, size_t output_pitch, DIMENSION width, DIMENSION height) |
| Convert the intermediate decoded image into the output image in DPX pixel format. More... | |
| CODEC_ERROR | PackBayerRowsToDPX0 (PIXEL *input_buffer, size_t input_pitch, PIXEL *output_buffer, size_t output_pitch, DIMENSION width, DIMENSION height) |
| Pack the intermediate decoded image into the output image in DPX pixel format. More... | |
| CODEC_ERROR | DPX_ReadFile (IMAGE *image, const char *pathname) |
| CODEC_ERROR | DPX_ParseHeader (IMAGE *image, DPX_FileInfo *info) |
| CODEC_ERROR | UnpackImageRowDPX0 (uint8_t *input, DIMENSION width, PIXEL *buffer[], PRECISION bits_per_component[], int channel_count, ENABLED_PARTS enabled_parts) |
| Unpack a row of DPX pixels into separate component array rows. | |
| CODEC_ERROR | PackLowpassBandsToDPX0 (void **lowpass_buffer_array, size_t *lowpass_pitch_array, DIMENSION width, DIMENSION height, PIXEL_FORMAT format, int shift, IMAGE *output) |
| Pack lowpass bands from a set of wavelets into an image in DPX0 format. | |
| CODEC_ERROR | DPX_SetByteSwapFlag () |
| Prepare to write a DPX file. More... | |
| CODEC_ERROR | DPX_WriteImage (const IMAGE *image, const char *pathname) |
| Write an image to the specified file in DPX format. | |
(c) 2013 Society of Motion Picture & Television Engineers LLC and Woodman Labs, Inc. All rights reserved–use subject to compliance with end user license agreement.
| CODEC_ERROR ConvertBufferRowsToDPX0 | ( | PIXEL * | input_buffer, |
| size_t | input_pitch, | ||
| PIXEL * | output_buffer, | ||
| size_t | output_pitch, | ||
| DIMENSION | width, | ||
| DIMENSION | height | ||
| ) |
Convert the intermediate decoded image into the output image in DPX pixel format.
This routine converts the decoded result of a sample that was YUV 4:2:2 encoded into the DPX pixel format of 10-bit RGB packed into a 32-bit word with two zero bits for padding.

| CODEC_ERROR DPX_SetByteSwapFlag | ( | ) |
Prepare to write a DPX file.
This routine should be called before using any routines that pack images into the pixel format used for DPX files so that the byte swapping flag is set.
| uint32_t Pack10 | ( | uint32_t | R, |
| uint32_t | G, | ||
| uint32_t | B | ||
| ) |
Pack the color components into a 32-bit word.
The common pixel format used for DPX files packs the three color primaries as 10 bits per component in a 32-bit word with two unused zero bits.
The input values have 16 bits of precision since that is the bit depth used by decoder as its internal pixel format. The packed word is byte swapped.

| CODEC_ERROR PackBayerRowsToDPX0 | ( | PIXEL * | input_buffer, |
| size_t | input_pitch, | ||
| PIXEL * | output_buffer, | ||
| size_t | output_pitch, | ||
| DIMENSION | width, | ||
| DIMENSION | height | ||
| ) |
Pack the intermediate decoded image into the output image in DPX pixel format.
The only DPX pixel format supported is the most common pixel format of 10-bit RGB packed into a 32-bit word with two zero bits for padding.

| CODEC_ERROR PackBufferRowsToDPX0 | ( | PIXEL * | input_buffer, |
| size_t | input_pitch, | ||
| PIXEL * | output_buffer, | ||
| size_t | output_pitch, | ||
| DIMENSION | width, | ||
| DIMENSION | height | ||
| ) |
Pack the intermediate decoded image into the output image in DPX pixel format.
The only DPX pixel format supported is the most common pixel format of 10-bit RGB packed into a 32-bit word with two zero bits for padding.

