FFmpeg
|
misc image conversion routines More...
#include "avcodec.h"
#include "imgconvert.h"
#include "internal.h"
#include "mathops.h"
#include "libavutil/avassert.h"
#include "libavutil/colorspace.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
Go to the source code of this file.
Macros | |
#define | deinterlace_line_inplace deinterlace_line_inplace_c |
#define | deinterlace_line deinterlace_line_c |
Functions | |
void | avcodec_get_chroma_sub_sample (enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift) |
Utility function to access log2_chroma_w log2_chroma_h from the pixel format AVPixFmtDescriptor. More... | |
int | avcodec_get_pix_fmt_loss (enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt, int has_alpha) |
enum AVPixelFormat | avcodec_find_best_pix_fmt_of_2 (enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
enum AVPixelFormat | avcodec_find_best_pix_fmt2 (enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
enum AVPixelFormat | avcodec_find_best_pix_fmt_of_list (const enum AVPixelFormat *pix_fmt_list, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
Find the best pixel format to convert to given a certain source pixel format. More... | |
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 int | is_yuv_planar (const AVPixFmtDescriptor *desc) |
int | av_picture_crop (AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int top_band, int left_band) |
Crop image top and left side. More... | |
int | av_picture_pad (AVPicture *dst, const AVPicture *src, int height, int width, enum AVPixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) |
Pad image. More... | |
static void | deinterlace_line_c (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_c (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 int | deinterlace_bottom_field_inplace (uint8_t *src1, int src_wrap, int width, int height) |
int | avpicture_deinterlace (AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height) |
deinterlace - if not supported return -1 More... | |
misc image conversion routines
Definition in file imgconvert.c.
#define deinterlace_line_inplace deinterlace_line_inplace_c |
Definition at line 296 of file imgconvert.c.
Referenced by deinterlace_bottom_field_inplace().
#define deinterlace_line deinterlace_line_c |
Definition at line 297 of file imgconvert.c.
Referenced by deinterlace_bottom_field().
void ff_shrink22 | ( | uint8_t * | dst, |
int | dst_wrap, | ||
const uint8_t * | src, | ||
int | src_wrap, | ||
int | width, | ||
int | height | ||
) |
Definition at line 92 of file imgconvert.c.
Referenced by ff_mpegvideoencdsp_init().
void ff_shrink44 | ( | uint8_t * | dst, |
int | dst_wrap, | ||
const uint8_t * | src, | ||
int | src_wrap, | ||
int | width, | ||
int | height | ||
) |
Definition at line 125 of file imgconvert.c.
Referenced by ff_mpegvideoencdsp_init().
void ff_shrink88 | ( | uint8_t * | dst, |
int | dst_wrap, | ||
const uint8_t * | src, | ||
int | src_wrap, | ||
int | width, | ||
int | height | ||
) |
Definition at line 156 of file imgconvert.c.
Referenced by ff_mpegvideoencdsp_init().
|
inlinestatic |
Definition at line 178 of file imgconvert.c.
Referenced by av_picture_crop(), and av_picture_pad().
|
static |
Definition at line 300 of file imgconvert.c.
|
static |
Definition at line 325 of file imgconvert.c.
|
static |
Definition at line 352 of file imgconvert.c.
Referenced by avpicture_deinterlace().
|
static |
Definition at line 381 of file imgconvert.c.
Referenced by avpicture_deinterlace().