libklvanc
 All Classes Files Functions Variables Enumerations Macros
Functions
pixels.h File Reference

Common colorspace conversion functions for VANC. More...

#include <stdint.h>

Go to the source code of this file.

Functions

void klvanc_v210_planar_unpack_c (const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
 TODO - Brief description goes here. More...
 
int klvanc_v210_line_to_nv20_c (const uint32_t *src, uint16_t *dst, int dstSizeBytes, int width)
 TODO - Brief description goes here. More...
 
void klvanc_v210_downscale_line_c (uint16_t *src, uint8_t *dst, int lines)
 TODO - Brief description goes here. More...
 
void klvanc_v210_line_to_uyvy_c (const uint32_t *src, uint16_t *dst, int width)
 TODO - Brief description goes here. More...
 
void klvanc_y10_to_v210 (uint16_t *src, uint8_t *dst, int width)
 Convert Y10 buffer to V210. More...
 
void klvanc_uyvy_to_v210 (uint16_t *src, uint8_t *dst, int width)
 Convert UYVY buffer to V210. More...
 

Detailed Description

Common colorspace conversion functions for VANC.

Author
Steven Toth stoth.nosp@m.@ker.nosp@m.nella.nosp@m.bs.c.nosp@m.om

Function Documentation

void klvanc_uyvy_to_v210 ( uint16_t *  src,
uint8_t *  dst,
int  width 
)

Convert UYVY buffer to V210.

Parameters
[in]uint16_t* src - Array of 16-bit fields containing 10-bit YUV values
[out]uint8_t* dst - Destination containing resulting V210 video
[in]intwidth - Number of Y pixels in src
void klvanc_v210_downscale_line_c ( uint16_t *  src,
uint8_t *  dst,
int  lines 
)

TODO - Brief description goes here.

Parameters
[in]uint16_t* src - Brief description goes here.
[in]uint8_t* dst - Brief description goes here.
[in]intlines - Brief description goes here.
int klvanc_v210_line_to_nv20_c ( const uint32_t *  src,
uint16_t *  dst,
int  dstSizeBytes,
int  width 
)

TODO - Brief description goes here.

Parameters
[in]constuint32_t * src - Brief description goes here.
[in]uint16_t* dst - Brief description goes here.
[in]intdstSizeBytes - Size of the dst buffer allocation.
[in]intwidth - Brief description goes here.
Returns
0 - Success
< 0 - Error
void klvanc_v210_line_to_uyvy_c ( const uint32_t *  src,
uint16_t *  dst,
int  width 
)

TODO - Brief description goes here.

Parameters
[in]constuint32_t * src - Brief description goes here.
[in]uint16_t* dst - Brief description goes here.
[in]intwidth - Brief description goes here.
void klvanc_v210_planar_unpack_c ( const uint32_t *  src,
uint16_t *  y,
uint16_t *  u,
uint16_t *  v,
int  width 
)

TODO - Brief description goes here.

Parameters
[in]constuint32_t * src - Brief description goes here.
[in]uint16_t* y - Brief description goes here.
[in]uint16_t* u - Brief description goes here.
[in]uint16_t* v - Brief description goes here.
[in]intwidth - Brief description goes here.
void klvanc_y10_to_v210 ( uint16_t *  src,
uint8_t *  dst,
int  width 
)

Convert Y10 buffer to V210.

Parameters
[in]uint16_t* src - Array of 16-bit fields containing 10-bit Y values
[out]uint8_t* dst - Destination containing resulting V210 video
[in]intwidth - Number of Y pixels in src