FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
img_format.c File Reference
#include "config.h"
#include "img_format.h"
#include "stdio.h"
#include "libavutil/bswap.h"

Go to the source code of this file.

Functions

const char * ff_vo_format_name (int format)
 
int ff_mp_get_chroma_shift (int format, int *x_shift, int *y_shift, int *component_bits)
 Calculates the scale shifts for the chroma planes for planar YUV.
 

Function Documentation

const char* ff_vo_format_name ( int  format)

Definition at line 24 of file img_format.c.

int ff_mp_get_chroma_shift ( int  format,
int *  x_shift,
int *  y_shift,
int *  component_bits 
)

Calculates the scale shifts for the chroma planes for planar YUV.

Parameters
component_bitsbits per component
Returns
bits-per-pixel for format if successful (i.e. format is 3 or 4-planes planar YUV), 0 otherwise

Definition at line 145 of file img_format.c.

Referenced by ff_mp_image_setfmt().