#include "dsputil.h"#include "bitstream.h"


Go to the source code of this file.
Data Structures | |
| struct | Predictor |
| struct | RateControlEntry |
| struct | RateControlContext |
| struct | ScanTable |
| struct | Picture |
| struct | ParseContext |
| struct | MotionEstContext |
| struct | MpegEncContext |
| struct | RLTable |
Defines | |
| #define | FRAME_SKIPPED 100 |
| return value for header parsers if frame is not coded | |
| #define | EDGE_WIDTH 16 |
| #define | MPEG_BUF_SIZE (16 * 1024) |
| #define | QMAT_SHIFT_MMX 16 |
| #define | QMAT_SHIFT 22 |
| #define | MAX_FCODE 7 |
| #define | MAX_MV 2048 |
| #define | MAX_THREADS 8 |
| #define | MAX_PICTURE_COUNT 32 |
| #define | ME_MAP_SIZE 64 |
| #define | ME_MAP_SHIFT 3 |
| #define | ME_MAP_MV_BITS 11 |
| #define | MAX_RUN 64 |
| #define | MAX_LEVEL 64 |
| #define | I_TYPE FF_I_TYPE |
| Intra. | |
| #define | P_TYPE FF_P_TYPE |
| Predicted. | |
| #define | B_TYPE FF_B_TYPE |
| Bi-dir predicted. | |
| #define | S_TYPE FF_S_TYPE |
| S(GMC)-VOP MPEG4. | |
| #define | SI_TYPE FF_SI_TYPE |
| Switching Intra. | |
| #define | SP_TYPE FF_SP_TYPE |
| Switching Predicted. | |
| #define | MAX_MB_BYTES (30*16*16*3/8 + 120) |
| #define | MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
| #define | IS_INTRA4x4(a) ((a)&MB_TYPE_INTRA4x4) |
| #define | IS_INTRA16x16(a) ((a)&MB_TYPE_INTRA16x16) |
| #define | IS_PCM(a) ((a)&MB_TYPE_INTRA_PCM) |
| #define | IS_INTRA(a) ((a)&7) |
| #define | IS_INTER(a) ((a)&(MB_TYPE_16x16|MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_8x8)) |
| #define | IS_SKIP(a) ((a)&MB_TYPE_SKIP) |
| #define | IS_INTRA_PCM(a) ((a)&MB_TYPE_INTRA_PCM) |
| #define | IS_INTERLACED(a) ((a)&MB_TYPE_INTERLACED) |
| #define | IS_DIRECT(a) ((a)&MB_TYPE_DIRECT2) |
| #define | IS_GMC(a) ((a)&MB_TYPE_GMC) |
| #define | IS_16X16(a) ((a)&MB_TYPE_16x16) |
| #define | IS_16X8(a) ((a)&MB_TYPE_16x8) |
| #define | IS_8X16(a) ((a)&MB_TYPE_8x16) |
| #define | IS_8X8(a) ((a)&MB_TYPE_8x8) |
| #define | IS_SUB_8X8(a) ((a)&MB_TYPE_16x16) |
| #define | IS_SUB_8X4(a) ((a)&MB_TYPE_16x8) |
| #define | IS_SUB_4X8(a) ((a)&MB_TYPE_8x16) |
| #define | IS_SUB_4X4(a) ((a)&MB_TYPE_8x8) |
| #define | IS_ACPRED(a) ((a)&MB_TYPE_ACPRED) |
| #define | IS_QUANT(a) ((a)&MB_TYPE_QUANT) |
| #define | IS_DIR(a, part, list) ((a) & (MB_TYPE_P0L0<<((part)+2*(list)))) |
| #define | USES_LIST(a, list) ((a) & ((MB_TYPE_P0L0|MB_TYPE_P1L0)<<(2*(list)))) |
| does this mb use listX, note doesnt work if subMBs | |
| #define | HAS_CBP(a) ((a)&MB_TYPE_CBP) |
| #define | PREV_PICT_TYPES_BUFFER_SIZE 256 |
| #define | MV_DIR_BACKWARD 1 |
| #define | MV_DIR_FORWARD 2 |
| #define | MV_DIRECT 4 |
| bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4) | |
| #define | MV_TYPE_16X16 0 |
| 1 vector for the whole mb | |
| #define | MV_TYPE_8X8 1 |
| 4 vectors (h263, mpeg4 4MV) | |
| #define | MV_TYPE_16X8 2 |
| 2 vectors, one per 16x8 block | |
| #define | MV_TYPE_FIELD 3 |
| 2 vectors, one per field | |
| #define | MV_TYPE_DMV 4 |
| 2 vectors, special mpeg2 Dual Prime Vectors | |
| #define | CANDIDATE_MB_TYPE_INTRA 0x01 |
| #define | CANDIDATE_MB_TYPE_INTER 0x02 |
| #define | CANDIDATE_MB_TYPE_INTER4V 0x04 |
| #define | CANDIDATE_MB_TYPE_SKIPPED 0x08 |
| #define | CANDIDATE_MB_TYPE_DIRECT 0x10 |
| #define | CANDIDATE_MB_TYPE_FORWARD 0x20 |
| #define | CANDIDATE_MB_TYPE_BACKWARD 0x40 |
| #define | CANDIDATE_MB_TYPE_BIDIR 0x80 |
| #define | CANDIDATE_MB_TYPE_INTER_I 0x100 |
| #define | CANDIDATE_MB_TYPE_FORWARD_I 0x200 |
| #define | CANDIDATE_MB_TYPE_BACKWARD_I 0x400 |
| #define | CANDIDATE_MB_TYPE_BIDIR_I 0x800 |
| #define | QUANT_BIAS_SHIFT 8 |
| #define | UNI_AC_ENC_INDEX(run, level) ((run)*128 + (level)) |
| #define | VP_START 1 |
| current MB is the first after a resync marker | |
| #define | AC_ERROR 2 |
| #define | DC_ERROR 4 |
| #define | MV_ERROR 8 |
| #define | AC_END 16 |
| #define | DC_END 32 |
| #define | MV_END 64 |
| #define | PICT_TOP_FIELD 1 |
| #define | PICT_BOTTOM_FIELD 2 |
| #define | PICT_FRAME 3 |
| #define | CHROMA_420 1 |
| #define | CHROMA_422 2 |
| #define | CHROMA_444 3 |
| #define | SLICE_OK 0 |
| #define | SLICE_ERROR -1 |
| #define | SLICE_END -2 |
| end marker found | |
| #define | SLICE_NOEND -3 |
| no end marker or error found but mb count exceeded | |
| #define | END_NOT_FOUND -100 |
Enumerations | |
| enum | OutputFormat { FMT_MPEG1, FMT_H261, FMT_H263, FMT_MJPEG, FMT_H264 } |
Functions | |
| int | DCT_common_init (MpegEncContext *s) |
| void | MPV_decode_defaults (MpegEncContext *s) |
| int | MPV_common_init (MpegEncContext *s) |
| void | MPV_common_end (MpegEncContext *s) |
| void | MPV_decode_mb (MpegEncContext *s, DCTELEM block[12][64]) |
| int | MPV_frame_start (MpegEncContext *s, AVCodecContext *avctx) |
| void | MPV_frame_end (MpegEncContext *s) |
| int | MPV_encode_init (AVCodecContext *avctx) |
| int | MPV_encode_end (AVCodecContext *avctx) |
| int | MPV_encode_picture (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
| void | ff_copy_bits (PutBitContext *pb, uint8_t *src, int length) |
| void | ff_clean_intra_table_entries (MpegEncContext *s) |
| void | ff_init_scantable (uint8_t *, ScanTable *st, const uint8_t *src_scantable) |
| void | ff_draw_horiz_band (MpegEncContext *s, int y, int h) |
| void | ff_emulated_edge_mc (uint8_t *buf, uint8_t *src, int linesize, int block_w, int block_h, int src_x, int src_y, int w, int h) |
| int | ff_combine_frame (ParseContext *pc, int next, uint8_t **buf, int *buf_size) |
| void | ff_parse_close (AVCodecParserContext *s) |
| void | ff_mpeg_flush (AVCodecContext *avctx) |
| void | ff_print_debug_info (MpegEncContext *s, AVFrame *pict) |
| void | ff_write_quant_matrix (PutBitContext *pb, int16_t *matrix) |
| int | ff_find_unused_picture (MpegEncContext *s, int shared) |
| void | ff_denoise_dct (MpegEncContext *s, DCTELEM *block) |
| void | ff_update_duplicate_context (MpegEncContext *dst, MpegEncContext *src) |
| void | ff_er_frame_start (MpegEncContext *s) |
| void | ff_er_frame_end (MpegEncContext *s) |
| void | ff_er_add_slice (MpegEncContext *s, int startx, int starty, int endx, int endy, int status) |
| void | ff_init_block_index (MpegEncContext *s) |
| static void | ff_update_block_index (MpegEncContext *s) |
| static int | get_bits_diff (MpegEncContext *s) |
| void | ff_estimate_p_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| void | ff_estimate_b_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| int | ff_get_best_fcode (MpegEncContext *s, int16_t(*mv_table)[2], int type) |
| void | ff_fix_long_p_mvs (MpegEncContext *s) |
| void | ff_fix_long_mvs (MpegEncContext *s, uint8_t *field_select_table, int field_select, int16_t(*mv_table)[2], int f_code, int type, int truncate) |
| void | ff_init_me (MpegEncContext *s) |
| int | ff_pre_estimate_p_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| int | ff_epzs_motion_search (MpegEncContext *s, int *mx_ptr, int *my_ptr, int P[10][2], int src_index, int ref_index, int16_t(*last_mv)[2], int ref_mv_scale, int size, int h) |
| int | ff_get_mb_score (MpegEncContext *s, int mx, int my, int src_index, int ref_index, int size, int h, int add_rate) |
| void | mpeg1_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | mpeg1_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| void | ff_mpeg1_encode_init (MpegEncContext *s) |
| void | ff_mpeg1_encode_slice_header (MpegEncContext *s) |
| void | ff_mpeg1_clean_buffers (MpegEncContext *s) |
| int | ff_mpeg1_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size) |
| void | init_rl (RLTable *rl, int use_static) |
| void | init_vlc_rl (RLTable *rl, int use_static) |
| static int | get_rl_index (const RLTable *rl, int last, int run, int level) |
| void | ff_h261_loop_filter (MpegEncContext *s) |
| void | ff_h261_reorder_mb_index (MpegEncContext *s) |
| void | ff_h261_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| void | ff_h261_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | ff_h261_encode_init (MpegEncContext *s) |
| int | ff_h263_decode_init (AVCodecContext *avctx) |
| int | ff_h263_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| int | ff_h263_decode_end (AVCodecContext *avctx) |
| void | h263_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| void | mpeg4_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| void | h263_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | ff_flv_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | h263_encode_gob_header (MpegEncContext *s, int mb_line) |
| int16_t * | h263_pred_motion (MpegEncContext *s, int block, int dir, int *px, int *py) |
| void | mpeg4_pred_ac (MpegEncContext *s, DCTELEM *block, int n, int dir) |
| void | ff_set_mpeg4_time (MpegEncContext *s, int picture_number) |
| void | mpeg4_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | h263_encode_init (MpegEncContext *s) |
| void | h263_decode_init_vlc (MpegEncContext *s) |
| int | h263_decode_picture_header (MpegEncContext *s) |
| int | ff_h263_decode_gob_header (MpegEncContext *s) |
| int | ff_mpeg4_decode_picture_header (MpegEncContext *s, GetBitContext *gb) |
| void | ff_h263_update_motion_val (MpegEncContext *s) |
| void | ff_h263_loop_filter (MpegEncContext *s) |
| void | ff_set_qscale (MpegEncContext *s, int qscale) |
| int | ff_h263_decode_mba (MpegEncContext *s) |
| void | ff_h263_encode_mba (MpegEncContext *s) |
| int | intel_h263_decode_picture_header (MpegEncContext *s) |
| int | flv_h263_decode_picture_header (MpegEncContext *s) |
| int | ff_h263_decode_mb (MpegEncContext *s, DCTELEM block[6][64]) |
| int | ff_mpeg4_decode_mb (MpegEncContext *s, DCTELEM block[6][64]) |
| int | h263_get_picture_format (int width, int height) |
| void | ff_mpeg4_encode_video_packet_header (MpegEncContext *s) |
| void | ff_mpeg4_clean_buffers (MpegEncContext *s) |
| void | ff_mpeg4_stuffing (PutBitContext *pbc) |
| void | ff_mpeg4_init_partitions (MpegEncContext *s) |
| void | ff_mpeg4_merge_partitions (MpegEncContext *s) |
| void | ff_clean_mpeg4_qscales (MpegEncContext *s) |
| void | ff_clean_h263_qscales (MpegEncContext *s) |
| int | ff_mpeg4_decode_partitions (MpegEncContext *s) |
| int | ff_mpeg4_get_video_packet_prefix_length (MpegEncContext *s) |
| int | ff_h263_resync (MpegEncContext *s) |
| int | ff_h263_get_gob_height (MpegEncContext *s) |
| int | ff_mpeg4_set_direct_mv (MpegEncContext *s, int mx, int my) |
| int | ff_h263_round_chroma (int x) |
| void | ff_h263_encode_motion (MpegEncContext *s, int val, int f_code) |
| int | ff_mpeg4_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size) |
| void | rv10_encode_picture_header (MpegEncContext *s, int picture_number) |
| int | rv_decode_dc (MpegEncContext *s, int n) |
| void | rv20_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | msmpeg4_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | msmpeg4_encode_ext_header (MpegEncContext *s) |
| void | msmpeg4_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| int | msmpeg4_decode_picture_header (MpegEncContext *s) |
| int | msmpeg4_decode_ext_header (MpegEncContext *s, int buf_size) |
| int | ff_msmpeg4_decode_init (MpegEncContext *s) |
| void | ff_msmpeg4_encode_init (MpegEncContext *s) |
| int | ff_wmv2_decode_picture_header (MpegEncContext *s) |
| int | ff_wmv2_decode_secondary_picture_header (MpegEncContext *s) |
| void | ff_wmv2_add_mb (MpegEncContext *s, DCTELEM block[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr) |
| void | ff_mspel_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture, op_pixels_func(*pix_op)[4], int motion_x, int motion_y, int h) |
| int | ff_wmv2_encode_picture_header (MpegEncContext *s, int picture_number) |
| void | ff_wmv2_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y) |
| int | mjpeg_init (MpegEncContext *s) |
| void | mjpeg_close (MpegEncContext *s) |
| void | mjpeg_encode_mb (MpegEncContext *s, DCTELEM block[6][64]) |
| void | mjpeg_picture_header (MpegEncContext *s) |
| void | mjpeg_picture_trailer (MpegEncContext *s) |
| void | ff_mjpeg_stuffing (PutBitContext *pbc) |
| int | ff_rate_control_init (MpegEncContext *s) |
| float | ff_rate_estimate_qscale (MpegEncContext *s) |
| void | ff_write_pass1_stats (MpegEncContext *s) |
| void | ff_rate_control_uninit (MpegEncContext *s) |
| double | ff_eval (char *s, double *const_value, const char **const_name, double(**func1)(void *, double), const char **func1_name, double(**func2)(void *, double, double), char **func2_name, void *opaque) |
| int | ff_vbv_update (MpegEncContext *s, int frame_size) |
Variables | |
| void(* | draw_edges )(uint8_t *buf, int wrap, int width, int height, int w) |
| enum PixelFormat | ff_yuv420p_list [2] |
| const int16_t | ff_mpeg1_default_intra_matrix [64] |
| const int16_t | ff_mpeg1_default_non_intra_matrix [64] |
| const uint8_t | ff_mpeg1_dc_scale_table [128] |
| const uint8_t | ff_mpeg4_y_dc_scale_table [32] |
| const uint8_t | ff_mpeg4_c_dc_scale_table [32] |
| const uint8_t | ff_aic_dc_scale_table [32] |
| const int16_t | ff_mpeg4_default_intra_matrix [64] |
| const int16_t | ff_mpeg4_default_non_intra_matrix [64] |
| const uint8_t | ff_h263_chroma_qscale_table [32] |
| const uint8_t | ff_h263_loop_filter_strength [32] |
Definition in file mpegvideo.h.
| #define AC_END 16 |
Definition at line 526 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), mpeg_decode_frame(), and slice_decode_thread().
| #define AC_ERROR 2 |
Definition at line 523 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_h263_decode_frame(), h_block_filter(), mpeg_decode_frame(), slice_decode_thread(), and v_block_filter().
| #define B_TYPE FF_B_TYPE |
| #define CANDIDATE_MB_TYPE_BACKWARD 0x40 |
Definition at line 446 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_BACKWARD_I 0x400 |
Definition at line 451 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_BIDIR 0x80 |
Definition at line 447 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_BIDIR_I 0x800 |
Definition at line 452 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_DIRECT 0x10 |
| #define CANDIDATE_MB_TYPE_FORWARD 0x20 |
Definition at line 445 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_FORWARD_I 0x200 |
Definition at line 450 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_b_frame_motion().
| #define CANDIDATE_MB_TYPE_INTER 0x02 |
Definition at line 439 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_p_frame_motion().
| #define CANDIDATE_MB_TYPE_INTER4V 0x04 |
Definition at line 440 of file mpegvideo.h.
Referenced by check_input_motion(), ff_estimate_p_frame_motion(), and ff_fix_long_p_mvs().
| #define CANDIDATE_MB_TYPE_INTER_I 0x100 |
Definition at line 449 of file mpegvideo.h.
Referenced by check_input_motion(), and ff_estimate_p_frame_motion().
| #define CANDIDATE_MB_TYPE_INTRA 0x01 |
Definition at line 438 of file mpegvideo.h.
Referenced by adaptive_quantization(), check_input_motion(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), ff_fix_long_mvs(), and ff_fix_long_p_mvs().
| #define CANDIDATE_MB_TYPE_SKIPPED 0x08 |
| #define CHROMA_420 1 |
Definition at line 671 of file mpegvideo.h.
| #define CHROMA_422 2 |
Definition at line 672 of file mpegvideo.h.
| #define CHROMA_444 3 |
Definition at line 673 of file mpegvideo.h.
| #define DC_END 32 |
Definition at line 527 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_mpeg4_decode_partitions(), mpeg_decode_frame(), and slice_decode_thread().
| #define DC_ERROR 4 |
Definition at line 524 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_h263_decode_frame(), ff_mpeg4_decode_partitions(), guess_dc(), h_block_filter(), is_intra_more_likely(), mpeg_decode_frame(), slice_decode_thread(), and v_block_filter().
| #define EDGE_WIDTH 16 |
Definition at line 42 of file mpegvideo.h.
Referenced by avcodec_default_get_buffer(), frame_start(), MPV_common_init(), and MPV_frame_end().
| #define END_NOT_FOUND -100 |
Definition at line 759 of file mpegvideo.h.
Referenced by ff_combine_frame(), ff_mpeg1_find_frame_end(), ff_mpeg4_find_frame_end(), find_frame_end(), h261_find_frame_end(), h263_find_frame_end(), and pnm_parse().
| #define FRAME_SKIPPED 100 |
return value for header parsers if frame is not coded
Definition at line 32 of file mpegvideo.h.
Referenced by decode_b_picture_primary_header(), decode_vop_header(), ff_h263_decode_frame(), ff_mpeg4_decode_picture_header(), rv20_decode_picture_header(), standard_decode_picture_primary_header(), standard_decode_picture_secondary_header(), and vc9_decode_frame().
Definition at line 169 of file mpegvideo.h.
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
| #define I_TYPE FF_I_TYPE |
Definition at line 157 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), ff_h261_encode_mb(), ff_print_debug_info(), h261_decode_mb(), hl_motion(), and pred_direct_motion().
Definition at line 158 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), ff_print_debug_info(), and hl_motion().
Definition at line 159 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), ff_print_debug_info(), and hl_motion().
Definition at line 160 of file mpegvideo.h.
Referenced by check_input_motion(), direct_search(), ff_er_frame_end(), ff_mpeg4_set_direct_mv(), ff_print_debug_info(), fill_caches(), hl_motion(), mpeg4_decode_partitioned_mb(), pred_direct_motion(), and write_back_motion().
Definition at line 165 of file mpegvideo.h.
Referenced by ff_print_debug_info(), and mpeg4_decode_partitioned_mb().
Definition at line 167 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), and hl_motion().
Definition at line 155 of file mpegvideo.h.
Referenced by decode_cabac_mb_type(), decode_mb_cabac(), decode_mb_cavlc(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_print_debug_info(), fill_caches(), get_dct8x8_allowed(), pred_direct_motion(), and write_back_motion().
Definition at line 151 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), ff_er_frame_end(), fill_caches(), guess_dc(), hl_motion(), and svq3_decode_mb().
Definition at line 154 of file mpegvideo.h.
Referenced by check_input_motion(), compute_mb_neighboors(), decode_cabac_field_decoding_flag(), decode_mb_cabac(), decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), ff_print_debug_info(), fill_caches(), and filter_mb().
Definition at line 150 of file mpegvideo.h.
Referenced by check_input_motion(), decode_mb_cabac(), decode_mb_cavlc(), ff_er_frame_end(), ff_h263_decode_mb(), ff_print_debug_info(), fill_caches(), filter_mb(), guess_dc(), guess_mv(), h_block_filter(), hl_decode_mb(), is_intra_more_likely(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), MPV_motion(), pred_direct_motion(), svq3_decode_mb(), and v_block_filter().
Definition at line 148 of file mpegvideo.h.
Referenced by decode_cabac_mb_dqp(), decode_mb_cabac(), decode_mb_cavlc(), ff_print_debug_info(), and svq3_decode_mb().
Definition at line 147 of file mpegvideo.h.
Referenced by decode_cabac_intra_mb_type(), decode_mb_cabac(), decode_mb_cavlc(), ff_print_debug_info(), fill_caches(), h261_decode_mb(), hl_decode_mb(), and svq3_decode_mb().
Definition at line 153 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), and hl_decode_mb().
Definition at line 166 of file mpegvideo.h.
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
Definition at line 152 of file mpegvideo.h.
Referenced by decode_cabac_mb_skip(), decode_cabac_mb_type(), ff_h263_loop_filter(), ff_mpeg4_decode_mb(), ff_print_debug_info(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), svq3_decode_mb(), and wmv2_decode_mb().
Definition at line 164 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), and hl_motion().
Definition at line 163 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), and hl_motion().
Definition at line 162 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), and hl_motion().
Definition at line 161 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), get_dct8x8_allowed(), and hl_motion().
| #define MAX_FCODE 7 |
Definition at line 49 of file mpegvideo.h.
| #define MAX_LEVEL 64 |
Definition at line 62 of file mpegvideo.h.
Referenced by init_2d_vlc_rl(), init_rl(), init_vlc_rl(), mpeg4_decode_block(), MPV_common_init(), msmpeg4_decode_block(), and msmpeg4_encode_block().
| #define MAX_MB_BYTES (30*16*16*3/8 + 120) |
Definition at line 71 of file mpegvideo.h.
| #define MAX_MV 2048 |
Definition at line 50 of file mpegvideo.h.
Referenced by check_bidir_mv(), direct_search(), encode_q_branch(), ff_estimate_b_frame_motion(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_get_best_fcode(), and ff_pre_estimate_p_frame_motion().
| #define MAX_PICTURE_COUNT 32 |
Definition at line 54 of file mpegvideo.h.
Referenced by decode_seq_parameter_set(), ff_find_unused_picture(), MPV_common_end(), MPV_common_init(), MPV_frame_end(), and MPV_frame_start().
| #define MAX_RUN 64 |
Definition at line 61 of file mpegvideo.h.
Referenced by init_rl(), mpeg4_decode_block(), MPV_common_init(), msmpeg4_decode_block(), and msmpeg4_encode_block().
| #define MAX_THREADS 8 |
| #define MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
Definition at line 146 of file mpegvideo.h.
Referenced by ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), h261_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), and preview_obmc().
| #define ME_MAP_MV_BITS 11 |
Definition at line 58 of file mpegvideo.h.
Referenced by hpel_motion_search(), qpel_motion_search(), sab_diamond_search(), small_diamond_search(), and update_map_generation().
| #define ME_MAP_SHIFT 3 |
Definition at line 57 of file mpegvideo.h.
Referenced by cmp(), hpel_motion_search(), qpel_motion_search(), sad_hpel_motion_search(), and small_diamond_search().
| #define ME_MAP_SIZE 64 |
Definition at line 56 of file mpegvideo.h.
Referenced by cmp(), encode_init(), hpel_motion_search(), init_duplicate_context(), qpel_motion_search(), sab_diamond_search(), sad_hpel_motion_search(), small_diamond_search(), and update_map_generation().
| #define MPEG_BUF_SIZE (16 * 1024) |
Definition at line 44 of file mpegvideo.h.
| #define MV_DIR_BACKWARD 1 |
Definition at line 406 of file mpegvideo.h.
Referenced by ff_er_frame_end(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), and MPV_decode_mb_internal().
| #define MV_DIR_FORWARD 2 |
Definition at line 407 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_frame_end(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), guess_mv(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), MPV_decode_mb_internal(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), rv10_decode_packet(), and wmv2_decode_mb().
| #define MV_DIRECT 4 |
bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
Definition at line 408 of file mpegvideo.h.
Referenced by ff_h263_decode_mb(), and ff_mpeg4_decode_mb().
| #define MV_END 64 |
Definition at line 528 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_mpeg4_decode_partitions(), mpeg_decode_frame(), and slice_decode_thread().
| #define MV_ERROR 8 |
Definition at line 525 of file mpegvideo.h.
Referenced by decode_slice(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_h263_decode_frame(), ff_mpeg4_decode_partitions(), guess_mv(), h_block_filter(), is_intra_more_likely(), mpeg_decode_frame(), slice_decode_thread(), and v_block_filter().
| #define MV_TYPE_16X16 0 |
1 vector for the whole mb
Definition at line 410 of file mpegvideo.h.
Referenced by decode_slice(), direct_search(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), guess_mv(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), mpeg_decode_slice(), MPV_motion(), MPV_motion_lowres(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), rv10_decode_packet(), and wmv2_decode_mb().
| #define MV_TYPE_16X8 2 |
2 vectors, one per 16x8 block
Definition at line 412 of file mpegvideo.h.
Referenced by mpeg_decode_mb(), MPV_motion(), and MPV_motion_lowres().
| #define MV_TYPE_8X8 1 |
4 vectors (h263, mpeg4 4MV)
Definition at line 411 of file mpegvideo.h.
Referenced by cmp(), direct_search(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), mpeg4_decode_partitioned_mb(), MPV_motion(), and MPV_motion_lowres().
| #define MV_TYPE_DMV 4 |
2 vectors, special mpeg2 Dual Prime Vectors
Definition at line 414 of file mpegvideo.h.
Referenced by mpeg_decode_mb(), MPV_motion(), and MPV_motion_lowres().
| #define MV_TYPE_FIELD 3 |
2 vectors, one per field
Definition at line 413 of file mpegvideo.h.
Referenced by ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), mpeg_decode_mb(), mpeg_decode_slice(), MPV_motion(), and MPV_motion_lowres().
| #define P_TYPE FF_P_TYPE |
| #define PICT_BOTTOM_FIELD 2 |
| #define PICT_FRAME 3 |
Definition at line 659 of file mpegvideo.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), decode_slice_header(), ff_draw_horiz_band(), ff_init_block_index(), fill_default_ref_list(), filter_mb(), init_poc(), mpeg1_decode_sequence(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_picture_display_extension(), mpeg_decode_slice(), mpeg_field_start(), MPV_common_defaults(), MPV_motion(), MPV_motion_lowres(), and vcr2_init_sequence().
| #define PICT_TOP_FIELD 1 |
Definition at line 657 of file mpegvideo.h.
Referenced by decode_slice_header(), init_poc(), and mpeg_decode_mb().
| #define PREV_PICT_TYPES_BUFFER_SIZE 256 |
| #define QMAT_SHIFT 22 |
| #define QMAT_SHIFT_MMX 16 |
Definition at line 46 of file mpegvideo.h.
| #define QUANT_BIAS_SHIFT 8 |
| #define S_TYPE FF_S_TYPE |
S(GMC)-VOP MPEG4.
Definition at line 67 of file mpegvideo.h.
Referenced by av_get_pict_type_char(), decode_vop_header(), ff_mpeg4_decode_mb(), ff_mpeg4_get_video_packet_prefix_length(), mpeg4_decode_partition_a(), mpeg4_decode_partitioned_mb(), and mpeg4_decode_video_packet_header().
| #define SI_TYPE FF_SI_TYPE |
Switching Intra.
Definition at line 68 of file mpegvideo.h.
Referenced by av_get_pict_type_char(), decode_mb_cabac(), decode_mb_cavlc(), decode_ref_pic_list_reordering(), and decode_slice_header().
| #define SLICE_END -2 |
end marker found
Definition at line 695 of file mpegvideo.h.
Referenced by decode_slice(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), h261_decode_gob(), h261_decode_mb(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
| #define SLICE_ERROR -1 |
Definition at line 694 of file mpegvideo.h.
Referenced by h261_decode_mb(), and rv10_decode_packet().
| #define SLICE_NOEND -3 |
no end marker or error found but mb count exceeded
Definition at line 696 of file mpegvideo.h.
Referenced by decode_slice(), and mpeg4_decode_partitioned_mb().
| #define SLICE_OK 0 |
Definition at line 693 of file mpegvideo.h.
Referenced by ff_h263_decode_mb(), ff_mpeg4_decode_mb(), h261_decode_mb(), and mpeg4_decode_partitioned_mb().
| #define SP_TYPE FF_SP_TYPE |
Switching Predicted.
Definition at line 69 of file mpegvideo.h.
Referenced by av_get_pict_type_char(), decode_cabac_mb_skip(), decode_mb_cavlc(), and decode_slice_header().
does this mb use listX, note doesnt work if subMBs
Definition at line 168 of file mpegvideo.h.
Referenced by check_input_motion(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_print_debug_info(), fill_caches(), mpeg_decode_mb(), and write_back_motion().
| #define VP_START 1 |
current MB is the first after a resync marker
Definition at line 522 of file mpegvideo.h.
Referenced by ff_er_add_slice(), ff_er_frame_end(), and ff_er_frame_start().
| enum OutputFormat |
Definition at line 34 of file mpegvideo.h.
| int DCT_common_init | ( | MpegEncContext * | s | ) |
Definition at line 232 of file mpegvideo.c.
References MpegEncContext::alternate_scan, CODEC_FLAG_TRELLIS_QUANT, MpegEncContext::dct_quantize, MpegEncContext::dct_unquantize_h263_inter, dct_unquantize_h263_inter_c(), MpegEncContext::dct_unquantize_h263_intra, dct_unquantize_h263_intra_c(), MpegEncContext::dct_unquantize_mpeg1_inter, dct_unquantize_mpeg1_inter_c(), MpegEncContext::dct_unquantize_mpeg1_intra, dct_unquantize_mpeg1_intra_c(), MpegEncContext::dct_unquantize_mpeg2_inter, dct_unquantize_mpeg2_inter_c(), MpegEncContext::dct_unquantize_mpeg2_intra, dct_unquantize_mpeg2_intra_c(), MpegEncContext::denoise_dct, denoise_dct_c(), MpegEncContext::dsp, MpegEncContext::fast_dct_quantize, ff_alternate_horizontal_scan, ff_alternate_vertical_scan, ff_init_scantable(), ff_zigzag_direct, MpegEncContext::flags, DSPContext::idct_permutation, MpegEncContext::inter_scantable, MpegEncContext::intra_h_scantable, MpegEncContext::intra_scantable, MpegEncContext::intra_v_scantable, MPV_common_init_armv4l(), MPV_common_init_axp(), MPV_common_init_mlib(), MPV_common_init_mmi(), MPV_common_init_mmx(), and MPV_common_init_ppc().
Referenced by mjpeg_decode_init(), and MPV_common_init().

| void ff_clean_h263_qscales | ( | MpegEncContext * | s | ) |
| void ff_clean_intra_table_entries | ( | MpegEncContext * | s | ) |
cleans dc, ac, coded_block for the current non intra MB
Definition at line 3617 of file mpegvideo.c.
References MpegEncContext::ac_val, MpegEncContext::b8_stride, MpegEncContext::block_index, MpegEncContext::coded_block, MpegEncContext::dc_val, MpegEncContext::mb_stride, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mbintra_table, and MpegEncContext::msmpeg4_version.
Referenced by mpeg4_decode_partition_a(), and MPV_decode_mb_internal().
| void ff_clean_mpeg4_qscales | ( | MpegEncContext * | s | ) |
| int ff_combine_frame | ( | ParseContext * | pc, | |
| int | next, | |||
| uint8_t ** | buf, | |||
| int * | buf_size | |||
| ) |
combines the (truncated) bitstream to a complete frame
Definition at line 216 of file parser.c.
References av_fast_realloc(), ParseContext::buffer, ParseContext::buffer_size, END_NOT_FOUND, FF_INPUT_BUFFER_PADDING_SIZE, ParseContext::index, ParseContext::last_index, memcpy, ParseContext::overread, ParseContext::overread_index, and ParseContext::state.
Referenced by decode_frame(), ff_h263_decode_frame(), h261_parse(), h263_parse(), h264_parse(), jpeg_parse(), mpeg4video_parse(), mpeg_decode_frame(), mpegvideo_parse(), and pnm_parse().

| void ff_copy_bits | ( | PutBitContext * | pb, | |
| uint8_t * | src, | |||
| int | length | |||
| ) |
| void ff_denoise_dct | ( | MpegEncContext * | s, | |
| DCTELEM * | block | |||
| ) |
| void ff_draw_horiz_band | ( | MpegEncContext * | s, | |
| int | y, | |||
| int | h | |||
| ) |
| h | is the normal height, this will be reduced automatically if needed for the last row |
Definition at line 3974 of file mpegvideo.c.
References MpegEncContext::avctx, B_TYPE, MpegEncContext::chroma_y_shift, MpegEncContext::current_picture_ptr, AVCodecContext::draw_horiz_band, emms_c, MpegEncContext::first_field, FMT_H264, AVCodecContext::height, MpegEncContext::last_picture_ptr, MpegEncContext::linesize, MpegEncContext::low_delay, MpegEncContext::out_format, PICT_FRAME, MpegEncContext::pict_type, MpegEncContext::picture_structure, SLICE_FLAG_ALLOW_FIELD, SLICE_FLAG_CODED_ORDER, AVCodecContext::slice_flags, and MpegEncContext::uvlinesize.
Referenced by decode_slice(), mpeg_decode_slice(), and svq3_decode_frame().
| void ff_emulated_edge_mc | ( | uint8_t * | buf, | |
| uint8_t * | src, | |||
| int | linesize, | |||
| int | block_w, | |||
| int | block_h, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | w, | |||
| int | h | |||
| ) |
Copies a rectangular area of samples to a temporary buffer and replicates the boarder samples.
| buf | destination buffer | |
| src | source buffer | |
| linesize | number of bytes between 2 vertically adjacent samples in both the source and destination buffers | |
| block_w | width of block | |
| block_h | height of block | |
| src_x | x coordinate of the top left sample of the block in the source buffer | |
| src_y | y coordinate of the top left sample of the block in the source buffer | |
| w | width of the source buffer | |
| h | height of the source buffer |
Definition at line 2580 of file mpegvideo.c.
Referenced by chroma_4mv_motion(), chroma_4mv_motion_lowres(), ff_mspel_motion(), gmc1_motion(), hpel_motion(), hpel_motion_lowres(), mc_dir_part(), mca(), mpeg_motion(), mpeg_motion_lowres(), MPV_motion(), qpel_motion(), render_fragments(), render_slice(), and svq3_mc_dir_part().
| int ff_epzs_motion_search | ( | MpegEncContext * | s, | |
| int * | mx_ptr, | |||
| int * | my_ptr, | |||
| int | P[10][2], | |||
| int | src_index, | |||
| int | ref_index, | |||
| int16_t(*) | last_mv[2], | |||
| int | ref_mv_scale, | |||
| int | size, | |||
| int | h | |||
| ) | [inline] |
Definition at line 965 of file motion_est_template.c.
References c, epzs_motion_search_internal(), MotionEstContext::flags, and MpegEncContext::me.
Referenced by direct_search(), encode_q_branch(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), and ff_pre_estimate_p_frame_motion().

| void ff_er_add_slice | ( | MpegEncContext * | s, | |
| int | startx, | |||
| int | starty, | |||
| int | endx, | |||
| int | endy, | |||
| int | status | |||
| ) |
adds a slice.
| endx | x component of the last macroblock, can be -1 for the last of the previous line | |
| status | the status at the end (MV_END, AC_ERROR, ...), it is assumed that no earlier end or error of the same type occured |
Definition at line 612 of file error_resilience.c.
References AC_END, AC_ERROR, MpegEncContext::avctx, DC_END, DC_ERROR, MpegEncContext::error_count, MpegEncContext::error_resilience, MpegEncContext::error_status_table, MpegEncContext::mb_index2xy, MpegEncContext::mb_num, MpegEncContext::mb_width, MV_END, MV_ERROR, AVCodecContext::skip_top, AVCodecContext::thread_count, and VP_START.
Referenced by decode_slice(), ff_mpeg4_decode_partitions(), mpeg_decode_frame(), and slice_decode_thread().
| void ff_er_frame_end | ( | MpegEncContext * | s | ) |
Definition at line 663 of file error_resilience.c.
References AC_END, AC_ERROR, av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, AV_LOG_INFO, av_mallocz(), MpegEncContext::avctx, MpegEncContext::b8_stride, B_TYPE, MpegEncContext::block, DSPContext::clear_blocks, MpegEncContext::current_picture, MpegEncContext::current_picture_ptr, DC_END, DC_ERROR, MpegEncContext::dc_val, AVCodecContext::debug, decode_mb(), MpegEncContext::dsp, error(), AVCodecContext::error_concealment, MpegEncContext::error_count, MpegEncContext::error_resilience, MpegEncContext::error_status_table, FF_DEBUG_ER, FF_EC_DEBLOCK, filter181(), guess_dc(), guess_mv(), h_block_filter(), IS_8X8, IS_INTER, IS_INTRA, is_intra_more_likely(), MpegEncContext::linesize, MpegEncContext::mb_height, MpegEncContext::mb_index2xy, MpegEncContext::mb_intra, MpegEncContext::mb_num, MpegEncContext::mb_skipped, MpegEncContext::mb_stride, MB_TYPE_16x16, MB_TYPE_INTRA4x4, MB_TYPE_L0, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mbintra_table, MpegEncContext::mbskip_table, Picture::motion_val_base, MpegEncContext::mv, MpegEncContext::mv_dir, MV_DIR_BACKWARD, MV_DIR_FORWARD, MV_END, MV_ERROR, MpegEncContext::mv_type, MV_TYPE_16X16, MV_TYPE_8X8, MpegEncContext::next_picture, NULL, MpegEncContext::partitioned_frame, MpegEncContext::pb_time, MpegEncContext::pict_type, MpegEncContext::pp_time, put_dc(), AVCodecContext::skip_bottom, AVCodecContext::skip_top, MpegEncContext::uvlinesize, v_block_filter(), VP_START, and AVCodecContext::xvmc_acceleration.
Referenced by decode_nal_units(), ff_h263_decode_frame(), slice_end(), and vc9_decode_frame().

| void ff_er_frame_start | ( | MpegEncContext * | s | ) |
Definition at line 599 of file error_resilience.c.
References AC_END, AC_ERROR, DC_END, DC_ERROR, MpegEncContext::error_count, MpegEncContext::error_resilience, MpegEncContext::error_status_table, MpegEncContext::mb_height, MpegEncContext::mb_num, MpegEncContext::mb_stride, MV_END, MV_ERROR, and VP_START.
Referenced by ff_h263_decode_frame(), frame_start(), h261_decode_frame(), mpeg_field_start(), and vc9_decode_frame().
| void ff_estimate_b_frame_motion | ( | MpegEncContext * | s, | |
| int | mb_x, | |||
| int | mb_y | |||
| ) |
Definition at line 1745 of file motion_est.c.
References MotionEstContext::avctx, MpegEncContext::b_back_mv_table, MpegEncContext::b_code, MpegEncContext::b_field_mv_table, MpegEncContext::b_field_select_table, MpegEncContext::b_forw_mv_table, bidir_refine(), c, CANDIDATE_MB_TYPE_BACKWARD, CANDIDATE_MB_TYPE_BACKWARD_I, CANDIDATE_MB_TYPE_BIDIR, CANDIDATE_MB_TYPE_BIDIR_I, CANDIDATE_MB_TYPE_DIRECT, CANDIDATE_MB_TYPE_FORWARD, CANDIDATE_MB_TYPE_FORWARD_I, CANDIDATE_MB_TYPE_INTRA, check_input_motion(), CODEC_FLAG_INTERLACED_ME, MpegEncContext::codec_id, CODEC_ID_MPEG4, MotionEstContext::current_mv_penalty, MpegEncContext::current_picture, direct_search(), MpegEncContext::f_code, ff_estimate_motion_b(), FF_MB_DECISION_SIMPLE, MpegEncContext::flags, FMT_MPEG1, get_limits(), init_ref(), interlaced_search(), MpegEncContext::last_picture, MAX_MV, AVCodecContext::mb_decision, MotionEstContext::mb_penalty_factor, MpegEncContext::mb_stride, MpegEncContext::mb_type, Picture::mc_mb_var, MotionEstContext::mc_mb_var_sum_temp, MpegEncContext::me, AVCodecContext::me_threshold, MotionEstContext::mv_penalty, MpegEncContext::new_picture, MpegEncContext::next_picture, MpegEncContext::out_format, and MotionEstContext::skip.

| void ff_estimate_p_frame_motion | ( | MpegEncContext * | s, | |
| int | mb_x, | |||
| int | mb_y | |||
| ) |
Definition at line 1139 of file motion_est.c.
References MotionEstContext::avctx, MpegEncContext::b8_stride, MpegEncContext::block_index, c, CANDIDATE_MB_TYPE_INTER, CANDIDATE_MB_TYPE_INTER4V, CANDIDATE_MB_TYPE_INTER_I, CANDIDATE_MB_TYPE_INTRA, CANDIDATE_MB_TYPE_SKIPPED, check_input_motion(), CODEC_FLAG_4MV, CODEC_FLAG_INTERLACED_ME, CODEC_FLAG_MV0, MotionEstContext::current_mv_penalty, MpegEncContext::current_picture, MpegEncContext::dc_val, MpegEncContext::dsp, MpegEncContext::f_code, FF_CMP_CHROMA, FF_CMP_SSE, ff_epzs_motion_search(), ff_get_mb_score(), FF_MB_DECISION_SIMPLE, MpegEncContext::first_slice_line, MpegEncContext::flags, FMT_H263, get_limits(), get_penalty_factor(), h263_mv4_search(), init_ref(), interlaced_search(), MpegEncContext::lambda, MpegEncContext::lambda2, MpegEncContext::last_dc, MpegEncContext::last_picture, MpegEncContext::linesize, MAX_MV, DSPContext::mb_cmp, AVCodecContext::mb_cmp, AVCodecContext::mb_decision, Picture::mb_mean, MotionEstContext::mb_penalty_factor, MpegEncContext::mb_stride, MpegEncContext::mb_type, Picture::mb_var, MotionEstContext::mb_var_sum_temp, Picture::mc_mb_var, MotionEstContext::mc_mb_var_sum_temp, MpegEncContext::me, AVCodecContext::me_cmp, ME_EPZS, ME_FULL, ME_LOG, MpegEncContext::me_method, ME_PHODS, AVCodecContext::me_sub_cmp, AVCodecContext::me_threshold, ME_X1, ME_ZERO, MotionEstContext::mv_penalty, MpegEncContext::new_picture, no_motion_search(), NULL, MpegEncContext::out_format, P, MpegEncContext::p_field_mv_table, MpegEncContext::p_field_select_table, P_LEFT, P_MEDIAN, MpegEncContext::p_mv_table, P_TOP, P_TOPRIGHT, MotionEstContext::penalty_factor, DSPContext::pix_norm1, DSPContext::pix_sum, MotionEstContext::pred_x, MotionEstContext::pred_y, MpegEncContext::qscale, MpegEncContext::quarter_sample, MotionEstContext::ref, MotionEstContext::scene_change_score, MotionEstContext::scratchpad, set_p_mv_tables(), shift(), MotionEstContext::skip, MotionEstContext::src, DSPContext::sse, MotionEstContext::stride, MotionEstContext::sub_motion_search, MotionEstContext::sub_penalty_factor, MpegEncContext::uvlinesize, MotionEstContext::uvstride, MotionEstContext::xmax, MotionEstContext::xmin, and MotionEstContext::ymax.

| double ff_eval | ( | char * | s, | |
| double * | const_value, | |||
| const char ** | const_name, | |||
| double(**)(void *, double) | func1, | |||
| const char ** | func1_name, | |||
| double(**)(void *, double, double) | func2, | |||
| char ** | func2_name, | |||
| void * | opaque | |||
| ) |
Definition at line 185 of file eval.c.
References Parser::const_name, Parser::const_value, evalExpression(), Parser::func1, Parser::func1_name, Parser::func2, Parser::func2_name, Parser::opaque, Parser::s, and Parser::stack_index.
Referenced by get_qscale().

| int ff_find_unused_picture | ( | MpegEncContext * | s, | |
| int | shared | |||
| ) |
Definition at line 1413 of file mpegvideo.c.
References MAX_PICTURE_COUNT, NULL, and MpegEncContext::picture.
Referenced by ff_h263_decode_frame(), h261_decode_frame(), MPV_frame_start(), and vc9_decode_frame().
| void ff_fix_long_mvs | ( | MpegEncContext * | s, | |
| uint8_t * | field_select_table, | |||
| int | field_select, | |||
| int16_t(*) | mv_table[2], | |||
| int | f_code, | |||
| int | type, | |||
| int | truncate | |||
| ) |
| truncate | 1 for truncation, 0 for using intra |
Definition at line 1996 of file motion_est.c.
References MotionEstContext::avctx, c, CANDIDATE_MB_TYPE_INTRA, FMT_MPEG1, MpegEncContext::mb_height, MpegEncContext::mb_stride, MpegEncContext::mb_type, MpegEncContext::mb_width, MpegEncContext::me, AVCodecContext::me_range, MpegEncContext::msmpeg4_version, NULL, and MpegEncContext::out_format.
| void ff_fix_long_p_mvs | ( | MpegEncContext * | s | ) |
Definition at line 1946 of file motion_est.c.
References MotionEstContext::avctx, MpegEncContext::b8_stride, c, CANDIDATE_MB_TYPE_INTER4V, CANDIDATE_MB_TYPE_INTRA, CODEC_FLAG_4MV, MpegEncContext::current_picture, MpegEncContext::f_code, MpegEncContext::flags, FMT_MPEG1, MpegEncContext::mb_height, MpegEncContext::mb_stride, MpegEncContext::mb_type, MpegEncContext::mb_width, MpegEncContext::me, AVCodecContext::me_range, MpegEncContext::msmpeg4_version, MpegEncContext::out_format, P_TYPE, and MpegEncContext::pict_type.
| void ff_flv_encode_picture_header | ( | MpegEncContext * | s, | |
| int | picture_number | |||
| ) |
| int ff_get_best_fcode | ( | MpegEncContext * | s, | |
| int16_t(*) | mv_table[2], | |||
| int | type | |||
| ) |
Definition at line 1890 of file motion_est.c.
References MpegEncContext::avctx, B_TYPE, MpegEncContext::current_picture, MpegEncContext::fcode_tab, MAX_MV, MpegEncContext::mb_height, MpegEncContext::mb_num, MpegEncContext::mb_stride, MpegEncContext::mb_type, Picture::mb_var, MpegEncContext::mb_width, Picture::mc_mb_var, ME_EPZS, MpegEncContext::me_method, AVCodecContext::me_range, and MpegEncContext::pict_type.
| int ff_get_mb_score | ( | MpegEncContext * | s, | |
| int | mx, | |||
| int | my, | |||
| int | src_index, | |||
| int | ref_index, | |||
| int | size, | |||
| int | h, | |||
| int | add_rate | |||
| ) | [inline] |
Definition at line 234 of file motion_est_template.c.
References c, cmp, MpegEncContext::dsp, FLAG_QPEL, LOAD_COMMON, DSPContext::mb_cmp, MotionEstContext::mb_flags, MotionEstContext::mb_penalty_factor, and MpegEncContext::me.
Referenced by direct_search(), encode_q_branch(), ff_estimate_motion_b(), and ff_estimate_p_frame_motion().
| void ff_h261_encode_init | ( | MpegEncContext * | s | ) |
Definition at line 280 of file h261.c.
References MpegEncContext::c_dc_scale_table, ff_mpeg1_dc_scale_table, h261_rl_tcoeff, init_rl(), MpegEncContext::max_qcoeff, MpegEncContext::min_qcoeff, and MpegEncContext::y_dc_scale_table.

| void ff_h261_encode_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64], | |||
| int | motion_x, | |||
| int | motion_y | |||
| ) |
Definition at line 199 of file h261.c.
References H261Context::current_mba, H261Context::current_mv_x, H261Context::current_mv_y, MpegEncContext::dquant, ff_set_qscale(), get_cbp(), h261_cbp_tab, h261_encode_block(), h261_encode_motion(), h261_mba_bits, h261_mba_code, h261_mtype_bits, h261_mtype_code, h261_mtype_map, HAS_CBP, IS_16X16, IS_QUANT, MpegEncContext::loop_filter, MpegEncContext::mb_intra, H261Context::mtype, MpegEncContext::pb, H261Context::previous_mba, put_bits(), MpegEncContext::qscale, and MpegEncContext::skip_count.

| void ff_h261_encode_picture_header | ( | MpegEncContext * | s, | |
| int | picture_number | |||
| ) |
Definition at line 95 of file h261.c.
References align_put_bits(), MpegEncContext::avctx, H261Context::current_mba, AVRational::den, ff_h261_get_picture_format(), H261Context::gob_number, MpegEncContext::height, AVRational::num, MpegEncContext::pb, pbBufPtr(), MpegEncContext::picture_number, MpegEncContext::ptr_lastgob, put_bits(), AVCodecContext::time_base, and MpegEncContext::width.

| void ff_h261_loop_filter | ( | MpegEncContext * | s | ) |
Definition at line 59 of file h261.c.
References MpegEncContext::dest, MpegEncContext::dsp, DSPContext::h261_loop_filter, IS_FIL, MpegEncContext::linesize, H261Context::mtype, and MpegEncContext::uvlinesize.
Referenced by mpeg_motion().
| void ff_h261_reorder_mb_index | ( | MpegEncContext * | s | ) |
Definition at line 150 of file h261.c.
References ff_h261_get_picture_format(), ff_init_block_index(), ff_update_block_index(), h261_encode_gob_header(), MpegEncContext::height, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, and MpegEncContext::width.

| int ff_h263_decode_end | ( | AVCodecContext * | avctx | ) |
Definition at line 116 of file h263dec.c.
References MPV_common_end(), AVCodecContext::priv_data, and s.

| int ff_h263_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Definition at line 414 of file h263dec.c.
References AC_ERROR, MpegEncContext::allocated_bitstream_buffer_size, av_fast_realloc(), av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, avcodec_set_dimensions(), MpegEncContext::avctx, AVDISCARD_ALL, AVDISCARD_NONKEY, AVDISCARD_NONREF, B_TYPE, MpegEncContext::bitstream_buffer, MpegEncContext::bitstream_buffer_size, GetBitContext::buffer, ParseContext::buffer, CODEC_FLAG_BITEXACT, CODEC_FLAG_LOW_DELAY, CODEC_FLAG_TRUNCATED, MpegEncContext::codec_id, CODEC_ID_H263, CODEC_ID_H263I, CODEC_ID_H263P, CODEC_ID_MPEG4, AVCodecContext::codec_tag, AVCodecContext::coded_height, AVCodecContext::coded_width, MpegEncContext::context_initialized, MpegEncContext::current_picture, MpegEncContext::current_picture_ptr, MpegEncContext::data_partitioning, DC_ERROR, AVCodecContext::debug, decode_slice(), MpegEncContext::divx_build, MpegEncContext::divx_packed, MpegEncContext::divx_version, MpegEncContext::dropable, MpegEncContext::error_status_table, AVCodecContext::extradata, AVCodecContext::extradata_size, FF_BUG_AUTODETECT, FF_BUG_DC_CLIP, FF_BUG_DIRECT_BLOCKSIZE, FF_BUG_EDGE, FF_BUG_HPEL_CHROMA, FF_BUG_NO_PADDING, FF_BUG_QPEL_CHROMA, FF_BUG_QPEL_CHROMA2, FF_BUG_STD_QPEL, FF_BUG_UMP4, FF_BUG_XVID_ILACE, ff_combine_frame(), FF_DEBUG_BUGS, ff_er_frame_end(), ff_er_frame_start(), ff_find_unused_picture(), ff_h263_get_gob_height(), ff_h263_resync(), FF_IDCT_AUTO, FF_IDCT_LIBMPEG2MMX, FF_INPUT_BUFFER_PADDING_SIZE, ff_mpeg4_clean_buffers(), ff_mpeg4_decode_picture_header(), ff_mpeg4_find_frame_end(), ff_print_debug_info(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), AVCodecContext::flags, MpegEncContext::flags, AVCodecContext::flags2, MpegEncContext::flags2, flv_h263_decode_picture_header(), fopen(), fprintf, AVCodecContext::frame_number, FRAME_SKIPPED, MpegEncContext::gb, get_bits_count(), get_consumed_bytes(), MpegEncContext::gob_index, h263_decode_picture_header(), h263_find_frame_end(), MpegEncContext::h263_flv, MpegEncContext::h263_msmpeg4, MpegEncContext::h263_pred, AVCodecContext::has_b_frames, MpegEncContext::height, AVCodecContext::hurry_up, I_TYPE, AVCodecContext::idct_algo, init_get_bits(), intel_h263_decode_picture_header(), MpegEncContext::last_picture, MpegEncContext::last_picture_ptr, MpegEncContext::lavc_build, MpegEncContext::low_delay, MpegEncContext::mb_height, MpegEncContext::mb_num, MpegEncContext::mb_x, MpegEncContext::mb_y, memcpy, mm_flags, MPV_common_end(), MPV_common_init(), MPV_frame_end(), MPV_frame_start(), msmpeg4_decode_ext_header(), msmpeg4_decode_picture_header(), MpegEncContext::msmpeg4_version, MV_ERROR, MpegEncContext::next_p_frame_damaged, MpegEncContext::next_picture_ptr, NULL, MpegEncContext::padding_bug_score, MpegEncContext::parse_context, MpegEncContext::pict_type, MpegEncContext::picture, MpegEncContext::picture_number, AVCodecContext::priv_data, MpegEncContext::qscale, MpegEncContext::resync_marker, s, SET_QPEL_FUNC, GetBitContext::size_in_bits, AVCodecContext::skip_frame, MpegEncContext::slice_height, AVCodecContext::stream_codec_tag, MpegEncContext::vo_type, MpegEncContext::vol_control_parameters, MpegEncContext::width, MpegEncContext::workaround_bugs, and MpegEncContext::xvid_build.

| int ff_h263_decode_gob_header | ( | MpegEncContext * | s | ) |
| int ff_h263_decode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 33 of file h263dec.c.
References MpegEncContext::avctx, AVCodecContext::codec, MpegEncContext::codec_id, CODEC_ID_FLV1, CODEC_ID_H263, CODEC_ID_H263I, CODEC_ID_MPEG4, CODEC_ID_MSMPEG4V1, CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, CODEC_ID_WMV1, CODEC_ID_WMV2, CODEC_ID_WMV3, AVCodecContext::coded_height, AVCodecContext::coded_width, MpegEncContext::decode_mb, ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_msmpeg4_decode_init(), FMT_H263, h263_decode_init_vlc(), MpegEncContext::h263_flv, MpegEncContext::h263_msmpeg4, MpegEncContext::h263_pred, MpegEncContext::height, AVCodec::id, MpegEncContext::low_delay, MPV_common_init(), MPV_decode_defaults(), MpegEncContext::msmpeg4_version, MpegEncContext::out_format, AVCodecContext::pix_fmt, PIX_FMT_YUV420P, AVCodecContext::priv_data, MpegEncContext::quant_precision, s, MpegEncContext::time_increment_bits, MpegEncContext::unrestricted_mv, MpegEncContext::width, AVCodecContext::workaround_bugs, and MpegEncContext::workaround_bugs.
Referenced by vc9_decode_init(), and wmv2_decode_init().

| int ff_h263_decode_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64] | |||
| ) |
Definition at line 3893 of file h263.c.
References MpegEncContext::ac_pred, MpegEncContext::alt_inter_vlc, av_log(), AV_LOG_ERROR, MpegEncContext::avctx, MpegEncContext::b8_stride, B_TYPE, MpegEncContext::block, MpegEncContext::block_last_index, CBPC_B_VLC_BITS, CBPY_VLC_BITS, DSPContext::clear_blocks, MpegEncContext::current_picture, MpegEncContext::dsp, ff_mpeg4_set_direct_mv(), MpegEncContext::gb, get_bits1(), get_bits_count(), get_vlc2(), MpegEncContext::h263_aic, MpegEncContext::h263_aic_dir, h263_decode_block(), h263_decode_dquant(), h263_decode_motion(), h263_mb_type_b_map, H263_MBTYPE_B_VLC_BITS, MpegEncContext::h263_pred, h263_pred_motion(), h263p_decode_umotion(), HAS_CBP, INTER_MCBPC_VLC_BITS, INTRA_MCBPC_VLC_BITS, IS_DIRECT, IS_INTRA, IS_QUANT, MpegEncContext::loop_filter, MpegEncContext::mb_intra, MpegEncContext::mb_num_left, MpegEncContext::mb_skipped, MpegEncContext::mb_stride, MB_TYPE_16x16, MB_TYPE_8x8, MB_TYPE_ACPRED, MB_TYPE_INTRA, MB_TYPE_L0, MB_TYPE_SKIP, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mv, MpegEncContext::mv_dir, MV_DIR_BACKWARD, MV_DIR_FORWARD, MV_DIRECT, MpegEncContext::mv_type, MV_TYPE_16X16, MV_TYPE_8X8, MpegEncContext::obmc, P_TYPE, MpegEncContext::pict_type, preview_obmc(), show_bits(), GetBitContext::size_in_bits, skip_bits1(), SLICE_END, SLICE_OK, stride, VLC::table, MpegEncContext::umvplus, and USES_LIST.
Referenced by ff_h263_decode_init(), and rv10_decode_packet().

| int ff_h263_decode_mba | ( | MpegEncContext * | s | ) |
Definition at line 2983 of file h263.c.
References ff_mba_length, ff_mba_max, MpegEncContext::gb, get_bits(), MpegEncContext::mb_num, MpegEncContext::mb_width, MpegEncContext::mb_x, and MpegEncContext::mb_y.
Referenced by h263_decode_gob_header(), h263_decode_picture_header(), and rv20_decode_picture_header().

| void ff_h263_encode_mba | ( | MpegEncContext * | s | ) |
Definition at line 2997 of file h263.c.
References ff_mba_length, ff_mba_max, MpegEncContext::mb_num, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::pb, and put_bits().

| void ff_h263_encode_motion | ( | MpegEncContext * | s, | |
| int | val, | |||
| int | f_code | |||
| ) |
| int ff_h263_get_gob_height | ( | MpegEncContext * | s | ) |
Get the GOB height based on picture height.
Definition at line 2974 of file h263.c.
References MpegEncContext::height.
Referenced by ff_h263_decode_frame().
| void ff_h263_loop_filter | ( | MpegEncContext * | s | ) |
Definition at line 1391 of file h263.c.
References chroma_qp, MpegEncContext::chroma_qscale_table, MpegEncContext::current_picture, MpegEncContext::dest, MpegEncContext::dsp, DSPContext::h263_h_loop_filter, DSPContext::h263_v_loop_filter, IS_SKIP, MpegEncContext::linesize, MpegEncContext::mb_height, MpegEncContext::mb_stride, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::qscale, and MpegEncContext::uvlinesize.
Referenced by decode_slice(), and rv10_decode_packet().
| int ff_h263_resync | ( | MpegEncContext * | s | ) |
decodes the group of blocks / video packet header.
Definition at line 3309 of file h263.c.
References align_get_bits(), MpegEncContext::codec_id, CODEC_ID_MPEG4, MpegEncContext::gb, get_bits_count(), h263_decode_gob_header(), MpegEncContext::last_resync_gb, mpeg4_decode_video_packet_header(), show_bits(), GetBitContext::size_in_bits, skip_bits(), and skip_bits1().
Referenced by ff_h263_decode_frame().

| int ff_h263_round_chroma | ( | int | x | ) | [inline] |
Definition at line 3104 of file mpegvideo.c.
References h263_chroma_roundtab.
Referenced by chroma_4mv_motion(), chroma_4mv_motion_lowres(), and h263_mv4_search().
| void ff_h263_update_motion_val | ( | MpegEncContext * | s | ) |
Definition at line 615 of file h263.c.
References MpegEncContext::b8_stride, MpegEncContext::block_index, MpegEncContext::current_picture, MpegEncContext::encoding, MpegEncContext::field_select, MpegEncContext::mb_intra, MpegEncContext::mb_skipped, MpegEncContext::mb_stride, MB_TYPE_16x16, MB_TYPE_8x8, MB_TYPE_INTRA, MB_TYPE_L0, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mv, MpegEncContext::mv_type, MV_TYPE_16X16, MV_TYPE_8X8, and MpegEncContext::p_field_mv_table.
Referenced by decode_slice(), and rv10_decode_packet().
| void ff_init_block_index | ( | MpegEncContext * | s | ) |
Definition at line 4013 of file mpegvideo.c.
References MpegEncContext::avctx, MpegEncContext::b8_stride, B_TYPE, MpegEncContext::block_index, MpegEncContext::chroma_x_shift, MpegEncContext::chroma_y_shift, MpegEncContext::current_picture, MpegEncContext::dest, AVCodecContext::draw_horiz_band, AVCodecContext::lowres, MpegEncContext::mb_height, MpegEncContext::mb_stride, MpegEncContext::mb_x, MpegEncContext::mb_y, PICT_FRAME, MpegEncContext::pict_type, and MpegEncContext::picture_structure.
Referenced by decode_slice(), ff_h261_reorder_mb_index(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg_decode_slice(), and rv10_decode_packet().
| void ff_init_me | ( | MpegEncContext * | s | ) |
Definition at line 229 of file motion_est.c.
References MpegEncContext::avctx, MotionEstContext::avctx, DSPContext::avg_pixels_tab, DSPContext::avg_qpel_pixels_tab, c, CODEC_FLAG_QPEL, MpegEncContext::codec_id, CODEC_ID_H261, CODEC_ID_SNOW, MpegEncContext::dsp, FF_CMP_CHROMA, FF_CMP_SAD, ff_set_cmp(), MpegEncContext::flags, MotionEstContext::flags, get_flags(), MotionEstContext::hpel_avg, hpel_motion_search(), MotionEstContext::hpel_put, MpegEncContext::linesize, mb_cmp, AVCodecContext::mb_cmp, DSPContext::mb_cmp, MotionEstContext::mb_flags, MpegEncContext::mb_width, MpegEncContext::me, AVCodecContext::me_cmp, DSPContext::me_cmp, AVCodecContext::me_pre_cmp, DSPContext::me_pre_cmp, AVCodecContext::me_sub_cmp, DSPContext::me_sub_cmp, MpegEncContext::no_rounding, no_sub_motion_search(), DSPContext::put_no_rnd_pixels_tab, DSPContext::put_no_rnd_qpel_pixels_tab, DSPContext::put_pixels_tab, DSPContext::put_qpel_pixels_tab, MotionEstContext::qpel_avg, qpel_motion_search(), MotionEstContext::qpel_put, sad_hpel_motion_search(), MotionEstContext::scratchpad, MotionEstContext::stride, MotionEstContext::sub_flags, MotionEstContext::sub_motion_search, MotionEstContext::temp, MpegEncContext::uvlinesize, MotionEstContext::uvstride, zero_cmp(), and zero_hpel().
Referenced by encode_frame().

| void ff_init_scantable | ( | uint8_t * | , | |
| ScanTable * | st, | |||
| const uint8_t * | src_scantable | |||
| ) |
Definition at line 193 of file mpegvideo.c.
References ScanTable::permutated, ScanTable::raster_end, and ScanTable::scantable.
Referenced by common_init(), DCT_common_init(), decode_init(), decode_vop_header(), mpeg_decode_picture_coding_extension(), vp3_decode_init(), and wmv2_common_init().
| void ff_mjpeg_stuffing | ( | PutBitContext * | pbc | ) |
| void ff_mpeg1_clean_buffers | ( | MpegEncContext * | s | ) |
Definition at line 385 of file mpeg12.c.
References MpegEncContext::intra_dc_precision, MpegEncContext::last_dc, and MpegEncContext::last_mv.
Referenced by mpeg_decode_slice().
| void ff_mpeg1_encode_init | ( | MpegEncContext * | s | ) |
| void ff_mpeg1_encode_slice_header | ( | MpegEncContext * | s | ) |
| int ff_mpeg1_find_frame_end | ( | ParseContext * | pc, | |
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
finds the end of the current frame in the bitstream.
Definition at line 2996 of file mpeg12.c.
References END_NOT_FOUND, ParseContext::frame_start_found, SLICE_MAX_START_CODE, SLICE_MIN_START_CODE, and ParseContext::state.
Referenced by mpeg_decode_frame(), and mpegvideo_parse().
| void ff_mpeg4_clean_buffers | ( | MpegEncContext * | s | ) |
Definition at line 3274 of file h263.c.
References MpegEncContext::ac_val, MpegEncContext::b8_stride, MpegEncContext::dc_val, MpegEncContext::last_mv, MpegEncContext::mb_stride, MpegEncContext::mb_x, MpegEncContext::mb_y, and memsetw().
Referenced by ff_h263_decode_frame().

| int ff_mpeg4_decode_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64] | |||
| ) |
Definition at line 4159 of file h263.c.
References MpegEncContext::ac_pred, av_log(), AV_LOG_ERROR, MpegEncContext::avctx, MpegEncContext::b_code, B_TYPE, MpegEncContext::block, MpegEncContext::block_last_index, CBPY_VLC_BITS, DSPContext::clear_blocks, MpegEncContext::codec_id, CODEC_ID_MPEG4, MpegEncContext::current_picture, MpegEncContext::dsp, MpegEncContext::f_code, FF_BUG_XVID_ILACE, ff_mpeg4_set_direct_mv(), ff_set_qscale(), MpegEncContext::field_select, MpegEncContext::gb, get_amv(), get_bits(), get_bits1(), get_vlc2(), GMC_SPRITE, h263_decode_motion(), MpegEncContext::h263_pred, h263_pred_motion(), INTER_MCBPC_VLC_BITS, MpegEncContext::interlaced_dct, INTRA_MCBPC_VLC_BITS, IS_DIRECT, IS_SKIP, MpegEncContext::last_mv, MpegEncContext::mb_intra, MpegEncContext::mb_skipped, MpegEncContext::mb_stride, MB_TYPE_16x16, MB_TYPE_16x8, MB_TYPE_8x8, MB_TYPE_ACPRED, mb_type_b_map, MB_TYPE_B_VLC_BITS, MB_TYPE_DIRECT2, MB_TYPE_GMC, MB_TYPE_INTERLACED, MB_TYPE_INTRA, MB_TYPE_L0, MB_TYPE_L0L1, MB_TYPE_SKIP, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mcsel, mpeg4_decode_block(), mpeg4_is_resync(), MpegEncContext::mv, MpegEncContext::mv_dir, MV_DIR_BACKWARD, MV_DIR_FORWARD, MV_DIRECT, MpegEncContext::mv_type, MV_TYPE_16X16, MV_TYPE_8X8, MV_TYPE_FIELD, MpegEncContext::next_picture, P_TYPE, MpegEncContext::pict_type, MpegEncContext::progressive_sequence, MpegEncContext::qscale, S_TYPE, SLICE_END, SLICE_OK, VLC::table, USES_LIST, MpegEncContext::vol_sprite_usage, and MpegEncContext::workaround_bugs.
Referenced by decode_vop_header(), and ff_h263_decode_init().

| int ff_mpeg4_decode_partitions | ( | MpegEncContext * | s | ) |
decodes the first & second partition
Definition at line 3651 of file h263.c.
References av_log(), AV_LOG_ERROR, MpegEncContext::avctx, DC_END, DC_ERROR, DC_MARKER, ff_er_add_slice(), MpegEncContext::gb, get_bits(), get_bits_long(), I_TYPE, MpegEncContext::mb_num, MpegEncContext::mb_num_left, MpegEncContext::mb_width, MpegEncContext::mb_x, MpegEncContext::mb_y, MOTION_MARKER, mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), MV_END, MV_ERROR, P_TYPE, MpegEncContext::pict_type, MpegEncContext::resync_mb_x, MpegEncContext::resync_mb_y, show_bits(), and skip_bits().
Referenced by decode_slice().

| int ff_mpeg4_decode_picture_header | ( | MpegEncContext * | s, | |
| GetBitContext * | gb | |||
| ) |
decode mpeg4 headers
Definition at line 5993 of file h263.c.
References align_get_bits(), av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, MpegEncContext::avctx, AVCodecContext::codec_tag, AVCodecContext::debug, decode_user_data(), decode_vol_header(), decode_vop_header(), MpegEncContext::divx_version, FF_DEBUG_STARTCODE, FRAME_SKIPPED, get_bits(), get_bits_count(), GOP_STARTCODE, mpeg4_decode_gop_header(), show_bits(), GetBitContext::size_in_bits, skip_bits(), USER_DATA_STARTCODE, VOP_STARTCODE, and MpegEncContext::xvid_build.
Referenced by av_mpeg4_decode_header(), and ff_h263_decode_frame().

| void ff_mpeg4_encode_video_packet_header | ( | MpegEncContext * | s | ) |
| int ff_mpeg4_find_frame_end | ( | ParseContext * | pc, | |
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
finds the end of the current frame in the bitstream.
Definition at line 321 of file h263dec.c.
References END_NOT_FOUND, ParseContext::frame_start_found, and ParseContext::state.
Referenced by ff_h263_decode_frame(), and mpeg4video_parse().
| int ff_mpeg4_get_video_packet_prefix_length | ( | MpegEncContext * | s | ) |
Definition at line 3113 of file h263.c.
References MpegEncContext::b_code, B_TYPE, MpegEncContext::f_code, I_TYPE, P_TYPE, MpegEncContext::pict_type, and S_TYPE.
Referenced by mpeg4_decode_video_packet_header(), and mpeg4_is_resync().
| void ff_mpeg4_init_partitions | ( | MpegEncContext * | s | ) |
| void ff_mpeg4_merge_partitions | ( | MpegEncContext * | s | ) |
| int ff_mpeg4_set_direct_mv | ( | MpegEncContext * | s, | |
| int | mx, | |||
| int | my | |||
| ) |
Definition at line 559 of file h263.c.
References MpegEncContext::avctx, MpegEncContext::block_index, FF_BUG_DIRECT_BLOCKSIZE, IS_8X8, IS_INTERLACED, MpegEncContext::mb_stride, MB_TYPE_16x16, MB_TYPE_16x8, MB_TYPE_8x8, MB_TYPE_DIRECT2, MB_TYPE_INTERLACED, MB_TYPE_L0L1, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::mv, MpegEncContext::mv_type, MV_TYPE_16X16, MV_TYPE_8X8, MV_TYPE_FIELD, MpegEncContext::next_picture, MpegEncContext::p_field_mv_table, MpegEncContext::pb_field_time, MpegEncContext::pb_time, MpegEncContext::pp_field_time, MpegEncContext::pp_time, MpegEncContext::quarter_sample, MpegEncContext::top_field_first, and AVCodecContext::workaround_bugs.
Referenced by ff_h263_decode_mb(), and ff_mpeg4_decode_mb().
| void ff_mpeg4_stuffing | ( | PutBitContext * | pbc | ) |
| void ff_mpeg_flush | ( | AVCodecContext * | avctx | ) |
Definition at line 4327 of file mpegvideo.c.
References MpegEncContext::bitstream_buffer_size, MpegEncContext::current_picture_ptr, FF_BUFFER_TYPE_INTERNAL, FF_BUFFER_TYPE_USER, ParseContext::frame_start_found, ParseContext::index, ParseContext::last_index, MpegEncContext::last_picture_ptr, MpegEncContext::mb_x, MpegEncContext::mb_y, MpegEncContext::next_picture_ptr, ParseContext::overread, ParseContext::overread_index, MpegEncContext::parse_context, MpegEncContext::picture, AVCodecContext::priv_data, AVCodecContext::release_buffer, and ParseContext::state.
| int ff_msmpeg4_decode_init | ( | MpegEncContext * | s | ) |
Definition at line 1111 of file msmpeg4.c.
References cbpy_tab, CBPY_VLC_BITS, common_init(), DC_VLC_BITS, MpegEncContext::decode_mb, ff_msmp4_mb_i_table, ff_table0_dc_chroma, ff_table0_dc_lum, ff_table1_dc_chroma, ff_table1_dc_lum, init_rl(), init_vlc(), init_vlc_rl(), INTER_INTRA_VLC_BITS, inter_MCBPC_bits, inter_MCBPC_code, intra_MCBPC_bits, intra_MCBPC_code, MpegEncContext::mb_height, MB_INTRA_VLC_BITS, MB_NON_INTRA_VLC_BITS, MpegEncContext::msmpeg4_version, msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), mv_tables, MV_VLC_BITS, mvtab, MVTable::n, rl_table, MpegEncContext::slice_height, table_inter_intra, MVTable::table_mv_bits, MVTable::table_mv_code, V1_INTER_CBPC_VLC_BITS, V1_INTRA_CBPC_VLC_BITS, v2_dc_chroma_table, v2_dc_lum_table, v2_intra_cbpc, V2_INTRA_CBPC_VLC_BITS, v2_mb_type, V2_MB_TYPE_VLC_BITS, V2_MV_VLC_BITS, MVTable::vlc, wmv2_decode_mb(), and wmv2_inter_table.
Referenced by ff_h263_decode_init().

| void ff_msmpeg4_encode_init | ( | MpegEncContext * | s | ) |
| void ff_mspel_motion | ( | MpegEncContext * | s, | |
| uint8_t * | dest_y, | |||
| uint8_t * | dest_cb, | |||
| uint8_t * | dest_cr, | |||
| uint8_t ** | ref_picture, | |||
| op_pixels_func(*) | pix_op[4], | |||
| int | motion_x, | |||
| int | motion_y, | |||
| int | h | |||
| ) |
Definition at line 625 of file wmv2.c.
References CODEC_FLAG_EMU_EDGE, CODEC_FLAG_GRAY, MpegEncContext::dsp, MpegEncContext::edge_emu_buffer, ff_emulated_edge_mc(), MpegEncContext::flags, FMT_H263, MpegEncContext::h_edge_pos, MpegEncContext::height, Wmv2Context::hshift, MpegEncContext::linesize, MpegEncContext::mb_x, MpegEncContext::mb_y, offset, MpegEncContext::out_format, DSPContext::put_mspel_pixels_tab, MpegEncContext::uvlinesize, MpegEncContext::v_edge_pos, and MpegEncContext::width.
Referenced by MPV_motion().

| void ff_parse_close | ( | AVCodecParserContext * | s | ) |
Definition at line 468 of file parser.c.
References av_free(), ParseContext::buffer, and AVCodecParserContext::priv_data.

| int ff_pre_estimate_p_frame_motion | ( | MpegEncContext * | s, | |
| int | mb_x, | |||
| int | mb_y | |||
| ) |
Definition at line 1407 of file motion_est.c.
References MotionEstContext::avctx, c, MotionEstContext::current_mv_penalty, MpegEncContext::f_code, ff_epzs_motion_search(), MpegEncContext::first_slice_line, get_limits(), get_penalty_factor(), init_ref(), MpegEncContext::lambda, MpegEncContext::lambda2, MpegEncContext::last_picture, MAX_MV, MpegEncContext::mb_stride, MpegEncContext::me, AVCodecContext::me_pre_cmp, MotionEstContext::mv_penalty, MpegEncContext::new_picture, NULL, P, P_LEFT, P_MEDIAN, MpegEncContext::p_mv_table, P_TOP, P_TOPRIGHT, MotionEstContext::pre_penalty_factor, MotionEstContext::pred_x, MotionEstContext::pred_y, MpegEncContext::quarter_sample, shift(), MotionEstContext::skip, MotionEstContext::xmax, MotionEstContext::xmin, and MotionEstContext::ymin.

| void ff_print_debug_info | ( | MpegEncContext * | s, | |
| AVFrame * | pict | |||
| ) |
prints debuging info for the given picture.
Definition at line 1712 of file mpegvideo.c.
References av_log(), AV_LOG_DEBUG, avcodec_get_chroma_sub_sample(), MpegEncContext::avctx, c, MpegEncContext::codec_id, CODEC_ID_H264, COLOR, AVCodecContext::debug, AVCodecContext::debug_mv, draw_arrow(), FF_B_TYPE, FF_BUFFER_TYPE_COPY, FF_DEBUG_MB_TYPE, FF_DEBUG_QP, FF_DEBUG_SKIP, FF_DEBUG_VIS_MB_TYPE, FF_DEBUG_VIS_MV_B_BACK, FF_DEBUG_VIS_MV_B_FOR, FF_DEBUG_VIS_MV_P_FOR, FF_DEBUG_VIS_QP, FF_I_TYPE, FF_P_TYPE, FF_S_TYPE, FF_SI_TYPE, FF_SP_TYPE, AVCodecContext::height, height, IS_16X16, IS_16X8, IS_8X16, IS_8X8, IS_ACPRED, IS_DIRECT, IS_GMC, IS_INTERLACED, IS_INTRA, IS_INTRA16x16, IS_INTRA4x4, IS_PCM, IS_SKIP, MpegEncContext::linesize, MpegEncContext::low_delay, MpegEncContext::mb_height, MpegEncContext::mb_stride, MpegEncContext::mb_width, MpegEncContext::mbskip_table, memcpy, mv, AVCodecContext::pix_fmt, MpegEncContext::quarter_sample, USES_LIST, MpegEncContext::visualization_buffer, AVCodecContext::width, and width.
Referenced by decode_frame(), ff_h263_decode_frame(), h261_decode_frame(), rv10_decode_frame(), slice_end(), and vc9_decode_frame().

| int ff_rate_control_init | ( | MpegEncContext * | s | ) |
Definition at line 47 of file ratecontrol.c.
References av_log(), AV_LOG_ERROR, av_mallocz(), av_q2d(), MpegEncContext::avctx, RateControlEntry::b_code, B_TYPE, MpegEncContext::bit_rate, bits, RateControlContext::buffer_index, CODEC_FLAG_PASS2, Predictor::coeff, Predictor::count, Predictor::decay, e, emms_c, RateControlContext::entry, RateControlEntry::f_code, FF_QP2LAMBDA, MpegEncContext::flags, RateControlContext::frame_count, get_qscale(), MpegEncContext::gop_size, RateControlEntry::i_count, RateControlContext::i_cplx_sum, RateControlEntry::i_tex_bits, I_TYPE, init_pass2(), RateControlContext::last_qscale_for, MpegEncContext::max_b_frames, MpegEncContext::mb_num, RateControlEntry::mb_var_sum, RateControlEntry::mc_mb_var_sum, RateControlEntry::misc_bits, RateControlEntry::mv_bits, RateControlContext::mv_bits_sum, RateControlEntry::new_pict_type, RateControlEntry::new_qscale, RateControlContext::num_entries, RateControlContext::p_cplx_sum, RateControlEntry::p_tex_bits, P_TYPE, RateControlContext::pass1_rc_eq_output_sum, RateControlContext::pass1_wanted_bits, MpegEncContext::pict_type, RateControlEntry::pict_type, RateControlContext::pred, RateControlEntry::qscale, RateControlContext::qscale_sum, MpegEncContext::rc_context, AVCodecContext::rc_initial_buffer_occupancy, AVCodecContext::rc_initial_cplx, RateControlContext::short_term_qcount, RateControlContext::short_term_qsum, AVCodecContext::stats_in, strchr, and AVCodecContext::time_base.
Referenced by encode_init().

| void ff_rate_control_uninit | ( | MpegEncContext * | s | ) |
Definition at line 178 of file ratecontrol.c.
References av_freep(), emms_c, RateControlContext::entry, and MpegEncContext::rc_context.

| float ff_rate_estimate_qscale | ( | MpegEncContext * | s | ) |
Definition at line 612 of file ratecontrol.c.
References a, MpegEncContext::adaptive_quant, adaptive_quantization(), av_get_pict_type_char(), av_log(), AV_LOG_DEBUG, av_q2d(), MpegEncContext::avctx, MpegEncContext::b_code, RateControlEntry::b_code, MpegEncContext::bit_rate, AVCodecContext::bit_rate_tolerance, bits, CODEC_FLAG_PASS2, MpegEncContext::current_picture, AVCodecContext::debug, emms_c, RateControlContext::entry, RateControlEntry::expected_bits, MpegEncContext::f_code, RateControlEntry::f_code, FF_DEBUG_RC, FF_QP2LAMBDA, MpegEncContext::flags, MpegEncContext::frame_bits, RateControlContext::frame_count, get_diff_limited_q(), get_qminmax(), get_qscale(), RateControlEntry::i_count, RateControlContext::i_cplx_sum, MpegEncContext::i_tex_bits, RateControlEntry::i_tex_bits, I_TYPE, MpegEncContext::intra_only, RateControlContext::last_mb_var_sum, RateControlContext::last_mc_mb_var_sum, MpegEncContext::last_pict_type, RateControlContext::last_qscale, MpegEncContext::mb_num, RateControlEntry::mb_var_sum, Picture::mb_var_sum, RateControlEntry::mc_mb_var_sum, Picture::mc_mb_var_sum, RateControlEntry::misc_bits, modify_qscale(), MpegEncContext::mv_bits, RateControlEntry::mv_bits, RateControlContext::mv_bits_sum, RateControlEntry::new_pict_type, RateControlEntry::new_qscale, RateControlContext::p_cplx_sum, MpegEncContext::p_tex_bits, RateControlEntry::p_tex_bits, P_TYPE, RateControlContext::pass1_rc_eq_output_sum, RateControlContext::pass1_wanted_bits, RateControlEntry::pict_type, MpegEncContext::pict_type, MpegEncContext::picture_number, RateControlContext::pred, predict_size(), AVCodecContext::qblur, RateControlEntry::qscale, MpegEncContext::rc_context, RateControlContext::short_term_qcount, RateControlContext::short_term_qsum, AVCodecContext::time_base, MpegEncContext::total_bits, and update_predictor().
Referenced by encode_frame().

| void ff_set_mpeg4_time | ( | MpegEncContext * | s, | |
| int | picture_number | |||
| ) |
| void ff_set_qscale | ( | MpegEncContext * | s, | |
| int | qscale | |||
| ) |
set qscale and update qscale dependant variables.
Definition at line 2467 of file h263.c.
References MpegEncContext::c_dc_scale, MpegEncContext::c_dc_scale_table, MpegEncContext::chroma_qscale, MpegEncContext::chroma_qscale_table, MpegEncContext::qscale, MpegEncContext::y_dc_scale, and MpegEncContext::y_dc_scale_table.
Referenced by decode_slice(), ff_h261_encode_mb(), ff_mpeg4_decode_mb(), h261_decode_gob(), h261_decode_mb(), h263_decode_dquant(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
| static void ff_update_block_index | ( | MpegEncContext * | s | ) | [inline, static] |
Definition at line 778 of file mpegvideo.h.
References MpegEncContext::avctx, MpegEncContext::block_index, MpegEncContext::dest, and AVCodecContext::lowres.
Referenced by decode_slice(), ff_h261_reorder_mb_index(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), and rv10_decode_packet().
| void ff_update_duplicate_context | ( | MpegEncContext * | dst, | |
| MpegEncContext * | src | |||
| ) |
Definition at line 520 of file mpegvideo.c.
References backup_duplicate_context(), MpegEncContext::block, memcpy, and MpegEncContext::pblocks.
Referenced by mpeg_decode_frame().

| int ff_vbv_update | ( | MpegEncContext * | s, | |
| int | frame_size | |||
| ) |
Definition at line 200 of file ratecontrol.c.
References av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, av_q2d(), MpegEncContext::avctx, RateControlContext::buffer_index, CODEC_ID_MPEG4, AVCodecContext::debug, FF_DEBUG_RC, AVCodecContext::rc_buffer_size, MpegEncContext::rc_context, AVCodecContext::rc_max_rate, AVCodecContext::rc_min_rate, and AVCodecContext::time_base.
Referenced by init_pass2().

| void ff_wmv2_add_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64], | |||
| uint8_t * | dest_y, | |||
| uint8_t * | dest_cb, | |||
| uint8_t * | dest_cr | |||
| ) |
Definition at line 611 of file wmv2.c.
References CODEC_FLAG_GRAY, MpegEncContext::flags, MpegEncContext::linesize, MpegEncContext::uvlinesize, and wmv2_add_block().
Referenced by MPV_decode_mb_internal().

| int ff_wmv2_decode_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 351 of file wmv2.c.
References av_log(), AV_LOG_ERROR, MpegEncContext::avctx, MpegEncContext::chroma_qscale, decode_ext_header(), MpegEncContext::gb, get_bits(), get_bits1(), I_TYPE, MpegEncContext::pict_type, MpegEncContext::picture_number, and MpegEncContext::qscale.
Referenced by ff_h263_decode_frame().

| int ff_wmv2_decode_secondary_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 381 of file wmv2.c.
References Wmv2Context::abt_flag, Wmv2Context::abt_type, av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, MpegEncContext::avctx, Wmv2Context::cbp_table_index, MpegEncContext::dc_table_index, AVCodecContext::debug, decode012(), MpegEncContext::esc3_level_length, MpegEncContext::esc3_run_length, FF_DEBUG_PICT_INFO, MpegEncContext::gb, get_bits1(), I_TYPE, MpegEncContext::inter_intra_pred, Wmv2Context::j_type, Wmv2Context::j_type_bit, MpegEncContext::mspel, Wmv2Context::mspel_bit, MpegEncContext::mv_table_index, MpegEncContext::no_rounding, parse_mb_skip(), Wmv2Context::per_mb_abt, Wmv2Context::per_mb_rl_bit, MpegEncContext::per_mb_rl_table, MpegEncContext::pict_type, MpegEncContext::picture_number, MpegEncContext::qscale, MpegEncContext::rl_chroma_table_index, and MpegEncContext::rl_table_index.
Referenced by ff_h263_decode_frame().

| void ff_wmv2_encode_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64], | |||
| int | motion_x, | |||
| int | motion_y | |||
| ) |
| int ff_wmv2_encode_picture_header | ( | MpegEncContext * | s, | |
| int | picture_number | |||
| ) |
| void ff_write_pass1_stats | ( | MpegEncContext * | s | ) |
Definition at line 40 of file ratecontrol.c.
References MpegEncContext::avctx, MpegEncContext::b_code, MpegEncContext::current_picture, MpegEncContext::current_picture_ptr, MpegEncContext::f_code, MpegEncContext::i_count, MpegEncContext::i_tex_bits, Picture::mb_var_sum, Picture::mc_mb_var_sum, MpegEncContext::misc_bits, MpegEncContext::mv_bits, MpegEncContext::p_tex_bits, MpegEncContext::pict_type, and AVCodecContext::stats_out.
Referenced by encode_frame().
| void ff_write_quant_matrix | ( | PutBitContext * | pb, | |
| int16_t * | matrix | |||
| ) |
| int flv_h263_decode_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 6141 of file h263.c.
References av_get_pict_type_char(), av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, avcodec_check_dimensions(), MpegEncContext::avctx, MpegEncContext::c_dc_scale_table, MpegEncContext::chroma_qscale, AVCodecContext::debug, MpegEncContext::dropable, MpegEncContext::f_code, FF_DEBUG_PICT_INFO, ff_mpeg1_dc_scale_table, MpegEncContext::gb, get_bits(), get_bits1(), get_bits_long(), MpegEncContext::h263_flv, MpegEncContext::h263_long_vectors, MpegEncContext::h263_plus, MpegEncContext::height, height, I_TYPE, P_TYPE, MpegEncContext::pict_type, MpegEncContext::picture_number, MpegEncContext::qscale, skip_bits(), skip_bits1(), MpegEncContext::unrestricted_mv, MpegEncContext::width, width, and MpegEncContext::y_dc_scale_table.
Referenced by ff_h263_decode_frame().

| static int get_bits_diff | ( | MpegEncContext * | s | ) | [inline, static] |
Definition at line 792 of file mpegvideo.h.
References bits, MpegEncContext::last_bits, MpegEncContext::pb, and put_bits_count().

| static int get_rl_index | ( | const RLTable * | rl, | |
| int | last, | |||
| int | run, | |||
| int | level | |||
| ) | [inline, static] |
Definition at line 850 of file mpegvideo.h.
References RLTable::index_run, RLTable::max_level, and RLTable::n.
Referenced by h261_encode_block(), and msmpeg4_encode_block().
| void h263_decode_init_vlc | ( | MpegEncContext * | s | ) |
Definition at line 2921 of file h263.c.
References cbpc_b_tab, CBPC_B_VLC_BITS, cbpy_tab, CBPY_VLC_BITS, DC_VLC_BITS, DCtab_chrom, DCtab_lum, h263_mbtype_b_tab, H263_MBTYPE_B_VLC_BITS, init_rl(), init_vlc(), init_vlc_rl(), inter_MCBPC_bits, inter_MCBPC_code, INTER_MCBPC_VLC_BITS, intra_MCBPC_bits, intra_MCBPC_code, INTRA_MCBPC_VLC_BITS, mb_type_b_tab, MB_TYPE_B_VLC_BITS, MV_VLC_BITS, mvtab, rl_inter, rl_intra, rl_intra_aic, rvlc_rl_inter, rvlc_rl_intra, SPRITE_TRAJ_VLC_BITS, and sprite_trajectory_tab.
Referenced by ff_h263_decode_init(), and rv10_decode_init().

| int h263_decode_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 4982 of file h263.c.
References align_get_bits(), MpegEncContext::alt_inter_vlc, MpegEncContext::aspect_ratio_info, av_get_pict_type_char(), av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, MpegEncContext::avctx, B_TYPE, MpegEncContext::c_dc_scale_table, MpegEncContext::chroma_qscale, MpegEncContext::chroma_qscale_table, AVCodecContext::codec_tag, MpegEncContext::custom_pcf, AVCodecContext::debug, AVRational::den, MpegEncContext::f_code, ff_aic_dc_scale_table, FF_ASPECT_EXTENDED, FF_DEBUG_PICT_INFO, ff_gcd(), ff_h263_chroma_qscale_table, ff_h263_decode_mba(), ff_mpeg1_dc_scale_table, MpegEncContext::gb, get_bits(), get_bits1(), get_bits_count(), get_sbits(), MpegEncContext::h263_aic, h263_format, MpegEncContext::h263_long_vectors, MpegEncContext::h263_plus, MpegEncContext::h263_slice_structured, MpegEncContext::height, height, I_TYPE, MpegEncContext::loop_filter, MpegEncContext::mb_height, MpegEncContext::mb_num, MpegEncContext::mb_width, MpegEncContext::modified_quant, MpegEncContext::no_rounding, AVRational::num, MpegEncContext::obmc, P_TYPE, MpegEncContext::pict_type, MpegEncContext::picture_number, pixel_aspect, MpegEncContext::qscale, AVCodecContext::sample_aspect_ratio, GetBitContext::size_in_bits, skip_bits(), skip_bits1(), AVCodecContext::time_base, MpegEncContext::umvplus, MpegEncContext::unrestricted_mv, MpegEncContext::width, width, and MpegEncContext::y_dc_scale_table.
Referenced by ff_h263_decode_frame().

| void h263_encode_gob_header | ( | MpegEncContext * | s, | |
| int | mb_line | |||
| ) |
| void h263_encode_init | ( | MpegEncContext * | s | ) |
Referenced by encode_init().
| void h263_encode_mb | ( | MpegEncContext * | s, | |
| DCTELEM | block[6][64], | |||
| int | motion_x, | |||
| int | motion_y | |||
| ) |
| void h263_encode_picture_header | ( | MpegEncContext * | s, | |
| int | picture_number | |||
| ) |
| int16_t* h263_pred_motion | ( | MpegEncContext * | s, | |
| int | block, | |||
| int | dir, | |||
| int * | px, | |||
| int * | py | |||
| ) |
Definition at line 1612 of file h263.c.
References B, MpegEncContext::b8_stride, MpegEncContext::block_index, C, MpegEncContext::current_picture, MpegEncContext::first_slice_line, MpegEncContext::h263_pred, MpegEncContext::mb_x, and MpegEncContext::resync_mb_x.
Referenced by ff_h263_decode_mb(), ff_mpeg4_decode_mb(), mpeg4_decode_partition_a(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), and preview_obmc().
| void init_rl | ( |