imgconvert.c File Reference


Detailed Description

misc image conversion routines

Definition in file imgconvert.c.

Go to the source code of this file.

Classes

struct  PixFmtInfo
struct  ConvertEntry

Functions

void avcodec_get_chroma_sub_sample (int pix_fmt, int *h_shift, int *v_shift)
const char * avcodec_get_pix_fmt_name (int pix_fmt)
enum PixelFormat avcodec_get_pix_fmt (const char *name)
void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt)
 Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative.
int avpicture_fill (AVPicture *picture, uint8_t *ptr, int pix_fmt, int width, int height)
 Fill in the AVPicture fields.
int avpicture_layout (const AVPicture *src, int pix_fmt, int width, int height, unsigned char *dest, int dest_size)
int avpicture_get_size (int pix_fmt, int width, int height)
 Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.
int avcodec_get_pix_fmt_loss (int dst_pix_fmt, int src_pix_fmt, int has_alpha)
 Computes what kind of losses will occur when converting from one specific pixel format to another.
static int avg_bits_per_pixel (int pix_fmt)
static int avcodec_find_best_pix_fmt1 (int pix_fmt_mask, int src_pix_fmt, int has_alpha, int loss_mask)
int avcodec_find_best_pix_fmt (int pix_fmt_mask, int src_pix_fmt, int has_alpha, int *loss_ptr)
 Finds the best pixel format to convert to given a certain source pixel format.
void ff_img_copy_plane (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
void av_picture_copy (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
 Copy image 'src' to 'dst'.
static void yuyv422_to_yuv420p (AVPicture *dst, const AVPicture *src, int width, int height)
static void uyvy422_to_yuv420p (AVPicture *dst, const AVPicture *src, int width, int height)
static void uyvy422_to_yuv422p (AVPicture *dst, const AVPicture *src, int width, int height)
static void yuyv422_to_yuv422p (AVPicture *dst, const AVPicture *src, int width, int height)
static void yuv422p_to_yuyv422 (AVPicture *dst, const AVPicture *src, int width, int height)
static void yuv422p_to_uyvy422 (AVPicture *dst, const AVPicture *src, int width, int height)
static void uyyvyy411_to_yuv411p (AVPicture *dst, const AVPicture *src, int width, int height)
static void yuv420p_to_yuyv422 (AVPicture *dst, const AVPicture *src, int width, int height)
static void yuv420p_to_uyvy422 (AVPicture *dst, const AVPicture *src, int width, int height)
static void img_convert_init (void)
static void img_apply_table (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height, const uint8_t *table1)
static void shrink41 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void shrink21 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void shrink12 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
void ff_shrink22 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
void ff_shrink44 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
void ff_shrink88 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void grow21_line (uint8_t *dst, const uint8_t *src, int width)
static void grow41_line (uint8_t *dst, const uint8_t *src, int width)
static void grow21 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void grow12 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void grow22 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void grow41 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void grow44 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static void conv411 (uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height)
static unsigned char gif_clut_index (uint8_t r, uint8_t g, uint8_t b)
static void build_rgb_palette (uint8_t *palette, int has_alpha)
static unsigned int bitcopy_n (unsigned int a, int n)
static void mono_to_gray (AVPicture *dst, const AVPicture *src, int width, int height, int xor_mask)
static void monowhite_to_gray (AVPicture *dst, const AVPicture *src, int width, int height)
static void monoblack_to_gray (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray_to_mono (AVPicture *dst, const AVPicture *src, int width, int height, int xor_mask)
static void gray_to_monowhite (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray_to_monoblack (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray_to_gray16 (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray16_to_gray (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray16be_to_gray (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray16le_to_gray (AVPicture *dst, const AVPicture *src, int width, int height)
static void gray16_to_gray16 (AVPicture *dst, const AVPicture *src, int width, int height)
int avpicture_alloc (AVPicture *picture, int pix_fmt, int width, int height)
 Allocate memory for a picture.
void avpicture_free (AVPicture *picture)
 Free a picture previously allocated by avpicture_alloc().
static int is_yuv_planar (const PixFmtInfo *ps)
int av_picture_crop (AVPicture *dst, const AVPicture *src, int pix_fmt, int top_band, int left_band)
 Crop image top and left side.
int av_picture_pad (AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
 Pad image.
void img_copy (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
int img_crop (AVPicture *dst, const AVPicture *src, int pix_fmt, int top_band, int left_band)
int img_pad (AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
int img_convert (AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int src_pix_fmt, int src_width, int src_height)
 convert among pixel formats
static int get_alpha_info_pal8 (const AVPicture *src, int width, int height)
int img_get_alpha_info (const AVPicture *src, int pix_fmt, int width, int height)
 Tell if an image really has transparent alpha values.
static void deinterlace_line (uint8_t *dst, const uint8_t *lum_m4, const uint8_t *lum_m3, const uint8_t *lum_m2, const uint8_t *lum_m1, const uint8_t *lum, int size)
static void deinterlace_line_inplace (uint8_t *lum_m4, uint8_t *lum_m3, uint8_t *lum_m2, uint8_t *lum_m1, uint8_t *lum, int size)
static void deinterlace_bottom_field (uint8_t *dst, int dst_wrap, const uint8_t *src1, int src_wrap, int width, int height)
static void deinterlace_bottom_field_inplace (uint8_t *src1, int src_wrap, int width, int height)
int avpicture_deinterlace (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)

Variables

static const PixFmtInfo pix_fmt_info [PIX_FMT_NB]
static uint8_t y_ccir_to_jpeg [256]
static uint8_t y_jpeg_to_ccir [256]
static uint8_t c_ccir_to_jpeg [256]
static uint8_t c_jpeg_to_ccir [256]
static const ConvertEntry convert_table [PIX_FMT_NB][PIX_FMT_NB]


Function Documentation

void avcodec_get_chroma_sub_sample ( int  pix_fmt,
int *  h_shift,
int *  v_shift 
)

const char* avcodec_get_pix_fmt_name ( int  pix_fmt  ) 

Definition at line 390 of file imgconvert.c.

Referenced by avcodec_string().

enum PixelFormat avcodec_get_pix_fmt ( const char *  name  ) 

Definition at line 398 of file imgconvert.c.

void avcodec_pix_fmt_string ( char *  buf,
int  buf_size,
int  pix_fmt 
)

Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative.

Parameters:
[in] buf the buffer where to write the string
[in] buf_size the size of buf
[in] pix_fmt the number of the pixel format to print the corresponding info string, or a negative value to print the corresponding header. Meaningful values for obtaining a pixel format info vary from 0 to PIX_FMT_NB -1.

Definition at line 408 of file imgconvert.c.

int avpicture_fill ( AVPicture picture,
uint8_t *  ptr,
int  pix_fmt,
int  width,
int  height 
)

Fill in the AVPicture fields.

The fields of the given AVPicture are filled in by using the 'ptr' address which points to the image data buffer. Depending on the specified picture format, one or multiple image data pointers and line sizes will be set. If a planar format is specified, several pointers will be set pointing to the different picture planes and the line sizes of the different planes will be stored in the lines_sizes array.

Parameters:
picture AVPicture whose fields are to be filled in
ptr Buffer which will contain or contains the actual image data
pix_fmt The format in which the picture data is stored.
width the width of the image in pixels
height the height of the image in pixels
Returns:
size of the image data in bytes

Definition at line 429 of file imgconvert.c.

Referenced by avcodec_default_get_buffer(), avpicture_alloc(), avpicture_get_size(), copy_frame(), MHIBitmap::CreateFromMPEG(), NuppelDecoder::DecodeFrame(), NuppelVideoPlayer::DisplayNormalFrame(), ThumbFinder::getFrameImage(), PGMConverter::getImage(), NuppelVideoPlayer::GetScreenGrabAtFrame(), grabThumbnail(), pgm_fill(), VideoOutputDX::PrepareFrame(), VideoOutputD3D::PrepareFrame(), VideoOutputXv::PrepareFrameMem(), Webcam::ProcessFrame(), raw_decode(), VideoOutput::ResizeVideo(), VideoOutput::ShowPip(), VideoOutputIvtv::ShowPip(), sws_scale(), Transcode::TranscodeFile(), and OpenGLVideo::UpdateInputFrame().

int avpicture_layout ( const AVPicture src,
int  pix_fmt,
int  width,
int  height,
unsigned char *  dest,
int  dest_size 
)

Definition at line 581 of file imgconvert.c.

Referenced by raw_encode().

int avpicture_get_size ( int  pix_fmt,
int  width,
int  height 
)

Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.

Parameters:
pix_fmt the given picture format
width the width of the image
height the height of the image
Returns:
Image data size in bytes

Definition at line 634 of file imgconvert.c.

Referenced by avpicture_alloc(), avpicture_layout(), dc1394_read_header(), pam_encode_frame(), PCMDEF(), pnm_encode_frame(), pnm_parse(), raw_init_decoder(), sws_scale(), targa_encode_frame(), v4l2_read_header(), and yuv4_read_packet().

int avcodec_get_pix_fmt_loss ( int  dst_pix_fmt,
int  src_pix_fmt,
int  has_alpha 
)

Computes what kind of losses will occur when converting from one specific pixel format to another.

When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. These losses can involve loss of chroma, but also loss of resolution, loss of color depth, loss due to the color space conversion, loss of the alpha bits or loss due to color quantization. avcodec_get_fix_fmt_loss() informs you about the various types of losses which will occur when converting from one pixel format to another.

Parameters:
[in] dst_pix_fmt destination pixel format
[in] src_pix_fmt source pixel format
[in] has_alpha Whether the source pixel format alpha channel is used.
Returns:
Combination of flags informing you what kind of losses will occur.

Definition at line 640 of file imgconvert.c.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_find_best_pix_fmt1().

static int avg_bits_per_pixel ( int  pix_fmt  )  [static]

Definition at line 695 of file imgconvert.c.

Referenced by avcodec_find_best_pix_fmt1().

static int avcodec_find_best_pix_fmt1 ( int  pix_fmt_mask,
int  src_pix_fmt,
int  has_alpha,
int  loss_mask 
) [static]

Definition at line 738 of file imgconvert.c.

Referenced by avcodec_find_best_pix_fmt().

int avcodec_find_best_pix_fmt ( int  pix_fmt_mask,
int  src_pix_fmt,
int  has_alpha,
int *  loss_ptr 
)

Finds the best pixel format to convert to given a certain source pixel format.

When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. avcodec_find_best_pix_fmt() searches which of the given pixel formats should be used to suffer the least amount of loss. The pixel formats from which it chooses one, are determined by the pix_fmt_mask parameter.

 src_pix_fmt = PIX_FMT_YUV420P;
 pix_fmt_mask = (1 << PIX_FMT_YUV422P) || (1 << PIX_FMT_RGB24);
 dst_pix_fmt = avcodec_find_best_pix_fmt(pix_fmt_mask, src_pix_fmt, alpha, &loss);

Parameters:
[in] pix_fmt_mask bitmask determining which pixel format to choose from
[in] src_pix_fmt source pixel format
[in] has_alpha Whether the source pixel format alpha channel is used.
[out] loss_ptr Combination of flags informing you what kind of losses will occur.
Returns:
The best pixel format to convert to or -1 if none was found.

Definition at line 763 of file imgconvert.c.

void ff_img_copy_plane ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
)

Definition at line 795 of file imgconvert.c.

Referenced by av_picture_copy(), dsputil_init(), and img_convert().

void av_picture_copy ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Copy image 'src' to 'dst'.

Definition at line 808 of file imgconvert.c.

Referenced by avcodec_default_reget_buffer(), copy_frame(), img_convert(), img_copy(), qtrle_encode_frame(), roq_decode_frame(), and sws_scale().

static void yuyv422_to_yuv420p ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 867 of file imgconvert.c.

static void uyvy422_to_yuv420p ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 923 of file imgconvert.c.

static void uyvy422_to_yuv422p ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 981 of file imgconvert.c.

static void yuyv422_to_yuv422p ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1015 of file imgconvert.c.

static void yuv422p_to_yuyv422 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1048 of file imgconvert.c.

static void yuv422p_to_uyvy422 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1081 of file imgconvert.c.

static void uyyvyy411_to_yuv411p ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1114 of file imgconvert.c.

static void yuv420p_to_yuyv422 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1150 of file imgconvert.c.

static void yuv420p_to_uyvy422 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1183 of file imgconvert.c.

static void img_convert_init ( void   )  [static]

Definition at line 1222 of file imgconvert.c.

Referenced by img_convert().

static void img_apply_table ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height,
const uint8_t *  table1 
) [static]

Definition at line 1236 of file imgconvert.c.

Referenced by img_convert().

static void shrink41 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1274 of file imgconvert.c.

Referenced by img_convert().

static void shrink21 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1296 of file imgconvert.c.

Referenced by img_convert().

static void shrink12 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1318 of file imgconvert.c.

Referenced by img_convert().

void ff_shrink22 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
)

Definition at line 1351 of file imgconvert.c.

Referenced by dsputil_init(), and img_convert().

void ff_shrink44 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
)

Definition at line 1384 of file imgconvert.c.

Referenced by dsputil_init(), and img_convert().

void ff_shrink88 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
)

Definition at line 1415 of file imgconvert.c.

Referenced by dsputil_init().

static void grow21_line ( uint8_t *  dst,
const uint8_t *  src,
int  width 
) [static]

Definition at line 1436 of file imgconvert.c.

Referenced by grow21(), and grow22().

static void grow41_line ( uint8_t *  dst,
const uint8_t *  src,
int  width 
) [static]

Definition at line 1463 of file imgconvert.c.

Referenced by grow41(), and grow44().

static void grow21 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1484 of file imgconvert.c.

Referenced by img_convert().

static void grow12 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1496 of file imgconvert.c.

Referenced by img_convert().

static void grow22 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1510 of file imgconvert.c.

Referenced by img_convert().

static void grow41 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1523 of file imgconvert.c.

Referenced by img_convert().

static void grow44 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1535 of file imgconvert.c.

Referenced by img_convert().

static void conv411 ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 1548 of file imgconvert.c.

Referenced by img_convert().

static unsigned char gif_clut_index ( uint8_t  r,
uint8_t  g,
uint8_t  b 
) [inline, static]

Definition at line 1580 of file imgconvert.c.

static void build_rgb_palette ( uint8_t *  palette,
int  has_alpha 
) [static]

Definition at line 1585 of file imgconvert.c.

static unsigned int bitcopy_n ( unsigned int  a,
int  n 
) [inline, static]

Definition at line 1608 of file imgconvert.c.

static void mono_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height,
int  xor_mask 
) [static]

Definition at line 1738 of file imgconvert.c.

Referenced by monoblack_to_gray(), and monowhite_to_gray().

static void monowhite_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1779 of file imgconvert.c.

static void monoblack_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1785 of file imgconvert.c.

static void gray_to_mono ( AVPicture dst,
const AVPicture src,
int  width,
int  height,
int  xor_mask 
) [static]

Definition at line 1791 of file imgconvert.c.

Referenced by gray_to_monoblack(), and gray_to_monowhite().

static void gray_to_monowhite ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1835 of file imgconvert.c.

static void gray_to_monoblack ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1841 of file imgconvert.c.

static void gray_to_gray16 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1847 of file imgconvert.c.

static void gray16_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1866 of file imgconvert.c.

Referenced by gray16be_to_gray(), and gray16le_to_gray().

static void gray16be_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1885 of file imgconvert.c.

static void gray16le_to_gray ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1891 of file imgconvert.c.

static void gray16_to_gray16 ( AVPicture dst,
const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 1899 of file imgconvert.c.

int avpicture_alloc ( AVPicture picture,
int  pix_fmt,
int  width,
int  height 
)

Allocate memory for a picture.

Call avpicture_free to free it.

Parameters:
picture the picture to be filled in
pix_fmt the format of the picture
width the width of the picture
height the height of the picture
Returns:
zero if successful, a negative value if not

Definition at line 2192 of file imgconvert.c.

Referenced by img_convert(), TemplateMatcher::nuppelVideoPlayerInited(), PGMConverter::nuppelVideoPlayerInited(), qtrle_encode_init(), readTemplate(), TemplateFinder::resetBuffers(), CannyEdgeDetector::resetBuffers(), and template_alloc().

void avpicture_free ( AVPicture picture  ) 

static int is_yuv_planar ( const PixFmtInfo ps  )  [inline, static]

Definition at line 2217 of file imgconvert.c.

Referenced by av_picture_crop(), av_picture_pad(), and img_convert().

int av_picture_crop ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  top_band,
int  left_band 
)

Crop image top and left side.

Definition at line 2224 of file imgconvert.c.

Referenced by img_crop().

int av_picture_pad ( AVPicture dst,
const AVPicture src,
int  height,
int  width,
int  pix_fmt,
int  padtop,
int  padbottom,
int  padleft,
int  padright,
int *  color 
)

Pad image.

Definition at line 2246 of file imgconvert.c.

Referenced by img_pad().

void img_copy ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2307 of file imgconvert.c.

Referenced by pgm_convolve_radial(), and pgm_overlay().

int img_crop ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  top_band,
int  left_band 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2313 of file imgconvert.c.

int img_pad ( AVPicture dst,
const AVPicture src,
int  height,
int  width,
int  pix_fmt,
int  padtop,
int  padbottom,
int  padleft,
int  padright,
int *  color 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2319 of file imgconvert.c.

int img_convert ( AVPicture dst,
int  dst_pix_fmt,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

static int get_alpha_info_pal8 ( const AVPicture src,
int  width,
int  height 
) [static]

Definition at line 2575 of file imgconvert.c.

Referenced by img_get_alpha_info().

int img_get_alpha_info ( const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Tell if an image really has transparent alpha values.

Returns:
ored mask of FF_ALPHA_xxx constants

Definition at line 2600 of file imgconvert.c.

static void deinterlace_line ( uint8_t *  dst,
const uint8_t *  lum_m4,
const uint8_t *  lum_m3,
const uint8_t *  lum_m2,
const uint8_t *  lum_m1,
const uint8_t *  lum,
int  size 
) [static]

Definition at line 2673 of file imgconvert.c.

Referenced by deinterlace_bottom_field().

static void deinterlace_line_inplace ( uint8_t *  lum_m4,
uint8_t *  lum_m3,
uint8_t *  lum_m2,
uint8_t *  lum_m1,
uint8_t *  lum,
int  size 
) [static]

Definition at line 2719 of file imgconvert.c.

Referenced by deinterlace_bottom_field_inplace().

static void deinterlace_bottom_field ( uint8_t *  dst,
int  dst_wrap,
const uint8_t *  src1,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 2765 of file imgconvert.c.

Referenced by avpicture_deinterlace().

static void deinterlace_bottom_field_inplace ( uint8_t *  src1,
int  src_wrap,
int  width,
int  height 
) [static]

Definition at line 2794 of file imgconvert.c.

Referenced by avpicture_deinterlace().

int avpicture_deinterlace ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)


Variable Documentation

const PixFmtInfo pix_fmt_info[PIX_FMT_NB] [static]

Definition at line 65 of file imgconvert.c.

uint8_t y_ccir_to_jpeg[256] [static]

Definition at line 1216 of file imgconvert.c.

uint8_t y_jpeg_to_ccir[256] [static]

Definition at line 1217 of file imgconvert.c.

uint8_t c_ccir_to_jpeg[256] [static]

Definition at line 1218 of file imgconvert.c.

uint8_t c_jpeg_to_ccir[256] [static]

Definition at line 1219 of file imgconvert.c.

const ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] [static]

Definition at line 1940 of file imgconvert.c.


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5