Encoder  4.4
VC-5 Sample Encoder
convert.c File Reference

Functions

CODEC_ERROR ConvertBYR3ToDPX0 (void *input_buffer, size_t input_pitch, void *output_buffer, size_t output_pitch, int width, int height)
 Convert the Bayer BYR3 format to the format used for DPX files. More...
 
CODEC_ERROR ConvertBYR4ToDPX0 (void *input_buffer, size_t input_pitch, void *output_buffer, size_t output_pitch, int width, int height)
 Convert 16-bit Bayer to the common DPX pixel format. More...
 
CODEC_ERROR ConvertRG48ToDPX0 (void *input_buffer, size_t input_pitch, void *output_buffer, size_t output_pitch, int width, int height)
 Convert packed 16-bit RGB to the common DPX pixel format. More...
 
CODEC_ERROR ConvertB64AToDPX0 (void *input_buffer, size_t input_pitch, void *output_buffer, size_t output_pitch, int width, int height)
 Convert packed 16-bit BGRA to the common DPX pixel format. More...
 
CODEC_ERROR ConvertComponentsToDPX0 (const UNPACKED_IMAGE *input, PIXEL_FORMAT format, IMAGE *output, ENABLED_PARTS enabled_parts)
 
CODEC_ERROR ConvertComponentsBYR4ToDPX0 (const UNPACKED_IMAGE *input, IMAGE *output, ENABLED_PARTS enabled_parts)
 
CODEC_ERROR ConvertComponentsRG48ToDPX0 (const UNPACKED_IMAGE *input, IMAGE *output, ENABLED_PARTS enabled_parts)
 
CODEC_ERROR ConvertComponentsB64AToDPX0 (const UNPACKED_IMAGE *input, IMAGE *output, ENABLED_PARTS enabled_parts)
 
CODEC_ERROR ConvertComponentsDPX0ToDPX0 (const UNPACKED_IMAGE *input, IMAGE *output, ENABLED_PARTS enabled_parts)
 

Detailed Description

Implementation of functions for converting between the pixel formats used by the codec and pixel formats used by test programs and file formats used during debugging.

(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.

Function Documentation

◆ ConvertB64AToDPX0()

CODEC_ERROR ConvertB64AToDPX0 ( void *  input_buffer,
size_t  input_pitch,
void *  output_buffer,
size_t  output_pitch,
int  width,
int  height 
)

Convert packed 16-bit BGRA to the common DPX pixel format.

The output format is 10-bit RGB packed into a 32-bit word with two bits unused. The repacking routine may byte swap the 32-bit word.

◆ ConvertBYR3ToDPX0()

CODEC_ERROR ConvertBYR3ToDPX0 ( void *  input_buffer,
size_t  input_pitch,
void *  output_buffer,
size_t  output_pitch,
int  width,
int  height 
)

Convert the Bayer BYR3 format to the format used for DPX files.

The output format is 10-bit RGB packed into a 32-bit word with two bits unused. The repacking routine may byte swap the 32-bit word.

Here is the call graph for this function:

◆ ConvertBYR4ToDPX0()

CODEC_ERROR ConvertBYR4ToDPX0 ( void *  input_buffer,
size_t  input_pitch,
void *  output_buffer,
size_t  output_pitch,
int  width,
int  height 
)

Convert 16-bit Bayer to the common DPX pixel format.

The output format is 10-bit RGB packed into a 32-bit word with two bits unused. The repacking routine may byte swap the 32-bit word.

Here is the call graph for this function:

◆ ConvertComponentsB64AToDPX0()

CODEC_ERROR ConvertComponentsB64AToDPX0 ( const UNPACKED_IMAGE input,
IMAGE output,
ENABLED_PARTS  enabled_parts 
)

Pack a set of B64A component arrays into DPX0 format

This routine was written for debugging and assumes that the component arrays contain RGB color components in the same order as the B64A pixel format.

Here is the call graph for this function:

◆ ConvertComponentsBYR4ToDPX0()

CODEC_ERROR ConvertComponentsBYR4ToDPX0 ( const UNPACKED_IMAGE input,
IMAGE output,
ENABLED_PARTS  enabled_parts 
)

Pack a set of BYR4 component arrays into DPX0 format

This routine was written for debugging and assumes that the component arrays contain BYR4 color components in the same order as the BYR4 pixel format.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConvertComponentsDPX0ToDPX0()

CODEC_ERROR ConvertComponentsDPX0ToDPX0 ( const UNPACKED_IMAGE input,
IMAGE output,
ENABLED_PARTS  enabled_parts 
)

Pack a set of DPX0 component arrays into DPX0 format

This routine was written for debugging and assumes that the component arrays contain RGB color components in the same order as the DPX0 pixel format.

Here is the call graph for this function:

◆ ConvertComponentsRG48ToDPX0()

CODEC_ERROR ConvertComponentsRG48ToDPX0 ( const UNPACKED_IMAGE input,
IMAGE output,
ENABLED_PARTS  enabled_parts 
)

Pack a set of RG48 component arrays into DPX0 format

This routine was written for debugging and assumes that the component arrays contain RGB color components in the same order as the RG48 pixel format.

Here is the call graph for this function:

◆ ConvertComponentsToDPX0()

CODEC_ERROR ConvertComponentsToDPX0 ( const UNPACKED_IMAGE input,
PIXEL_FORMAT  format,
IMAGE output,
ENABLED_PARTS  enabled_parts 
)

Pack a set of component arrays into DPX0 format

This routine was written for debugging.

Here is the call graph for this function:

◆ ConvertRG48ToDPX0()

CODEC_ERROR ConvertRG48ToDPX0 ( void *  input_buffer,
size_t  input_pitch,
void *  output_buffer,
size_t  output_pitch,
int  width,
int  height 
)

Convert packed 16-bit RGB to the common DPX pixel format.

The output format is 10-bit RGB packed into a 32-bit word with two bits unused. The repacking routine may byte swap the 32-bit word.

Here is the call graph for this function: