FFmpeg
|
Go to the source code of this file.
Macros | |
#define | UNI_AC_ENC_INDEX(run, level) ((run)*128 + (level)) |
#define | FF_MPV_FLAG_SKIP_RD 0x0001 |
#define | FF_MPV_FLAG_STRICT_GOP 0x0002 |
#define | FF_MPV_FLAG_QP_RD 0x0004 |
#define | FF_MPV_FLAG_CBP_RD 0x0008 |
#define | FF_MPV_FLAG_NAQ 0x0010 |
#define | FF_MPV_FLAG_MV0 0x0020 |
#define | FF_MPV_OPT_CMP_FUNC |
#define | FF_MPV_OFFSET(x) offsetof(MpegEncContext, x) |
#define | FF_MPV_OPT_FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
#define | FF_MPV_COMMON_OPTS |
#define | FF_MPV_COMMON_BFRAME_OPTS |
#define | FF_MPV_COMMON_MOTION_EST_OPTS |
Functions | |
int | ff_mpv_encode_init (AVCodecContext *avctx) |
void | ff_mpv_encode_init_x86 (MpegEncContext *s) |
int | ff_mpv_encode_end (AVCodecContext *avctx) |
int | ff_mpv_encode_picture (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
int | ff_mpv_reallocate_putbitbuffer (MpegEncContext *s, size_t threshold, size_t size_increase) |
void | ff_write_quant_matrix (PutBitContext *pb, uint16_t *matrix) |
int | ff_dct_encode_init (MpegEncContext *s) |
void | ff_dct_encode_init_x86 (MpegEncContext *s) |
int | ff_dct_quantize_c (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow) |
void | ff_convert_matrix (MpegEncContext *s, int(*qmat)[64], uint16_t(*qmat16)[2][64], const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra) |
void | ff_block_permute (int16_t *block, uint8_t *permutation, const uint8_t *scantable, int last) |
Permute an 8x8 block according to permutation. More... | |
static int | get_bits_diff (MpegEncContext *s) |
Variables | |
const AVClass | ff_mpv_enc_class |
mpegvideo header.
Definition in file mpegvideoenc.h.
Definition at line 36 of file mpegvideoenc.h.
#define FF_MPV_FLAG_SKIP_RD 0x0001 |
Definition at line 39 of file mpegvideoenc.h.
#define FF_MPV_FLAG_STRICT_GOP 0x0002 |
Definition at line 40 of file mpegvideoenc.h.
#define FF_MPV_FLAG_QP_RD 0x0004 |
Definition at line 41 of file mpegvideoenc.h.
#define FF_MPV_FLAG_CBP_RD 0x0008 |
Definition at line 42 of file mpegvideoenc.h.
#define FF_MPV_FLAG_NAQ 0x0010 |
Definition at line 43 of file mpegvideoenc.h.
#define FF_MPV_FLAG_MV0 0x0020 |
Definition at line 44 of file mpegvideoenc.h.
#define FF_MPV_OPT_CMP_FUNC |
Definition at line 46 of file mpegvideoenc.h.
#define FF_MPV_OFFSET | ( | x | ) | offsetof(MpegEncContext, x) |
Definition at line 63 of file mpegvideoenc.h.
#define FF_MPV_OPT_FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
Definition at line 64 of file mpegvideoenc.h.
#define FF_MPV_COMMON_OPTS |
Definition at line 65 of file mpegvideoenc.h.
#define FF_MPV_COMMON_BFRAME_OPTS |
Definition at line 103 of file mpegvideoenc.h.
#define FF_MPV_COMMON_MOTION_EST_OPTS |
Definition at line 108 of file mpegvideoenc.h.
int ff_mpv_encode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 311 of file mpegvideo_enc.c.
Referenced by encode_init(), and wmv2_encode_init().
void ff_mpv_encode_init_x86 | ( | MpegEncContext * | s | ) |
int ff_mpv_encode_end | ( | AVCodecContext * | avctx | ) |
Definition at line 980 of file mpegvideo_enc.c.
Referenced by mjpeg_encode_close().
int ff_mpv_encode_picture | ( | AVCodecContext * | avctx, |
AVPacket * | pkt, | ||
const AVFrame * | frame, | ||
int * | got_packet | ||
) |
Definition at line 1747 of file mpegvideo_enc.c.
int ff_mpv_reallocate_putbitbuffer | ( | MpegEncContext * | s, |
size_t | threshold, | ||
size_t | size_increase | ||
) |
Definition at line 2814 of file mpegvideo_enc.c.
Referenced by encode_thread(), and ff_mjpeg_encode_stuffing().
void ff_write_quant_matrix | ( | PutBitContext * | pb, |
uint16_t * | matrix | ||
) |
Definition at line 220 of file mpegvideo_enc.c.
Referenced by mpeg4_encode_vol_header().
int ff_dct_encode_init | ( | MpegEncContext * | s | ) |
Definition at line 291 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), and ff_mpv_encode_init().
void ff_dct_encode_init_x86 | ( | MpegEncContext * | s | ) |
Definition at line 131 of file mpegvideoenc.c.
Referenced by ff_dct_encode_init().
int ff_dct_quantize_c | ( | MpegEncContext * | s, |
int16_t * | block, | ||
int | n, | ||
int | qscale, | ||
int * | overflow | ||
) |
Definition at line 4557 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), encode_mb_internal(), and ff_dct_encode_init().
void ff_convert_matrix | ( | MpegEncContext * | s, |
int(*) | qmat[64], | ||
uint16_t(*) | qmat16[2][64], | ||
const uint16_t * | quant_matrix, | ||
int | bias, | ||
int | qmin, | ||
int | qmax, | ||
int | intra | ||
) |
Definition at line 108 of file mpegvideo_enc.c.
Referenced by dnxhd_init_qmat(), encode_picture(), and ff_mpv_encode_init().
void ff_block_permute | ( | int16_t * | block, |
uint8_t * | permutation, | ||
const uint8_t * | scantable, | ||
int | last | ||
) |
Permute an 8x8 block according to permutation.
block | the block which will be permuted according to the given permutation vector |
permutation | the permutation vector |
last | the last non zero coefficient in scantable order, used to speed the permutation up |
scantable | the used scantable, this is only used to speed the permutation up, the block is not (inverse) permutated to scantable order! |
Definition at line 4532 of file mpegvideo_enc.c.
Referenced by dnxhd_10bit_dct_quantize(), dnxhd_10bit_dct_quantize_444(), and ff_dct_quantize_c().
|
inlinestatic |
Definition at line 139 of file mpegvideoenc.h.
Referenced by ff_h263_encode_mb(), ff_mjpeg_encode_mb(), ff_mpeg4_encode_mb(), ff_msmpeg4_encode_mb(), ff_speedhq_encode_mb(), ff_wmv2_encode_mb(), and write_slice_end().
const AVClass ff_mpv_enc_class |
Definition at line 101 of file mpegvideo_enc.c.