Blender
V3.3
|
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
Go to the source code of this file.
Macros | |
#define | FFMPEG_INLINE static inline |
#define | FFMPEG_USE_OLD_CHANNEL_VARS |
#define | FFMPEG_USE_DURATION_WORKAROUND 1 |
Functions | |
FFMPEG_INLINE void | my_guess_pkt_duration (AVFormatContext *s, AVStream *st, AVPacket *pkt) |
FFMPEG_INLINE int64_t | timestamp_from_pts_or_dts (int64_t pts, int64_t dts) |
FFMPEG_INLINE int64_t | av_get_pts_from_frame (AVFrame *picture) |
Deinterlace code block | |
NOTE: The code in this block are from FFmpeg 2.6.4, which is licensed by LGPL. | |
#define | MAX_NEG_CROP 1024 |
#define | times4(x) x, x, x, x |
#define | times256(x) times4(times4(times4(times4(times4(x))))) |
static const uint8_t | ff_compat_crop_tab [256+2 *MAX_NEG_CROP] |
FFMPEG_INLINE 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) |
FFMPEG_INLINE 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) |
FFMPEG_INLINE void | deinterlace_bottom_field (uint8_t *dst, int dst_wrap, const uint8_t *src1, int src_wrap, int width, int height) |
FFMPEG_INLINE int | deinterlace_bottom_field_inplace (uint8_t *src1, int src_wrap, int width, int height) |
FFMPEG_INLINE int | av_image_deinterlace (AVFrame *dst, const AVFrame *src, enum AVPixelFormat pix_fmt, int width, int height) |
Compatibility macros to make every FFMPEG installation appear like the most current installation (wrapping some functionality sometimes) it also includes all FFMPEG header files at once, no need to do it separately.
Definition in file ffmpeg_compat.h.
#define FFMPEG_INLINE static inline |
Definition at line 37 of file ffmpeg_compat.h.
#define FFMPEG_USE_DURATION_WORKAROUND 1 |
Definition at line 61 of file ffmpeg_compat.h.
#define FFMPEG_USE_OLD_CHANNEL_VARS |
Definition at line 45 of file ffmpeg_compat.h.
#define MAX_NEG_CROP 1024 |
Definition at line 132 of file ffmpeg_compat.h.
Definition at line 135 of file ffmpeg_compat.h.
FFMPEG_INLINE int64_t av_get_pts_from_frame | ( | AVFrame * | picture | ) |
Definition at line 121 of file ffmpeg_compat.h.
References timestamp_from_pts_or_dts().
FFMPEG_INLINE int av_image_deinterlace | ( | AVFrame * | dst, |
const AVFrame * | src, | ||
enum AVPixelFormat | pix_fmt, | ||
int | width, | ||
int | height | ||
) |
Definition at line 277 of file ffmpeg_compat.h.
References deinterlace_bottom_field(), deinterlace_bottom_field_inplace(), height, ret, src, and width.
FFMPEG_INLINE void deinterlace_bottom_field | ( | uint8_t * | dst, |
int | dst_wrap, | ||
const uint8_t * | src1, | ||
int | src_wrap, | ||
int | width, | ||
int | height | ||
) |
Definition at line 220 of file ffmpeg_compat.h.
References deinterlace_line(), height, width, and y.
Referenced by av_image_deinterlace().
FFMPEG_INLINE int deinterlace_bottom_field_inplace | ( | uint8_t * | src1, |
int | src_wrap, | ||
int | width, | ||
int | height | ||
) |
Definition at line 249 of file ffmpeg_compat.h.
References deinterlace_line_inplace(), height, width, and y.
Referenced by av_image_deinterlace().
FFMPEG_INLINE 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 | ||
) |
Definition at line 166 of file ffmpeg_compat.h.
References ff_compat_crop_tab, MAX_NEG_CROP, size(), and sum().
Referenced by deinterlace_bottom_field().
FFMPEG_INLINE 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 | ||
) |
Definition at line 194 of file ffmpeg_compat.h.
References ff_compat_crop_tab, MAX_NEG_CROP, size(), and sum().
Referenced by deinterlace_bottom_field_inplace().
FFMPEG_INLINE void my_guess_pkt_duration | ( | AVFormatContext * | s, |
AVStream * | st, | ||
AVPacket * | pkt | ||
) |
Definition at line 70 of file ffmpeg_compat.h.
References PRId64, and usdtokens::st().
FFMPEG_INLINE int64_t timestamp_from_pts_or_dts | ( | int64_t | pts, |
int64_t | dts | ||
) |
Definition at line 109 of file ffmpeg_compat.h.
Referenced by av_get_pts_from_frame().
|
static |
Definition at line 137 of file ffmpeg_compat.h.
Referenced by deinterlace_line(), and deinterlace_line_inplace().