FFmpeg
|
mpegvideo header. More...
#include "avcodec.h"
#include "dsputil.h"
#include "error_resilience.h"
#include "get_bits.h"
#include "h264chroma.h"
#include "hpeldsp.h"
#include "put_bits.h"
#include "ratecontrol.h"
#include "parser.h"
#include "mpeg12data.h"
#include "rl.h"
#include "thread.h"
#include "videodsp.h"
#include "libavutil/opt.h"
#include "libavutil/timecode.h"

Go to the source code of this file.
Data Structures | |
struct | Picture |
Picture. More... | |
struct | MotionEstContext |
Motion estimation context. More... | |
struct | MpegEncContext |
MpegEncContext. More... | |
Macros | |
#define | FRAME_SKIPPED 100 |
return value for header parsers if frame is not coded More... | |
#define | MPEG_BUF_SIZE (16 * 1024) |
#define | QMAT_SHIFT_MMX 16 |
#define | QMAT_SHIFT 21 |
#define | MAX_FCODE 7 |
#define | MAX_MV 4096 |
#define | MAX_THREADS 32 |
#define | MAX_PICTURE_COUNT 36 |
#define | ME_MAP_SIZE 64 |
#define | ME_MAP_SHIFT 3 |
#define | ME_MAP_MV_BITS 11 |
#define | MAX_MB_BYTES (30*16*16*3/8 + 120) |
#define | INPLACE_OFFSET 16 |
#define | SEQ_END_CODE 0x000001b7 |
#define | SEQ_START_CODE 0x000001b3 |
#define | GOP_START_CODE 0x000001b8 |
#define | PICTURE_START_CODE 0x00000100 |
#define | SLICE_MIN_START_CODE 0x00000101 |
#define | SLICE_MAX_START_CODE 0x000001af |
#define | EXT_START_CODE 0x000001b5 |
#define | USER_START_CODE 0x000001b2 |
#define | DELAYED_PIC_REF 4 |
Value of Picture.reference when Picture is not a reference picture, but is held for delayed output. More... | |
#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 does not work if subMBs More... | |
#define | HAS_CBP(a) ((a)&MB_TYPE_CBP) |
#define | MV_DIR_FORWARD 1 |
#define | MV_DIR_BACKWARD 2 |
#define | MV_DIRECT 4 |
bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4) More... | |
#define | MV_TYPE_16X16 0 |
1 vector for the whole mb More... | |
#define | MV_TYPE_8X8 1 |
4 vectors (h263, mpeg4 4MV) More... | |
#define | MV_TYPE_16X8 2 |
2 vectors, one per 16x8 block More... | |
#define | MV_TYPE_FIELD 3 |
2 vectors, one per field More... | |
#define | MV_TYPE_DMV 4 |
2 vectors, special mpeg2 Dual Prime Vectors More... | |
#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 | CANDIDATE_MB_TYPE_DIRECT0 0x1000 |
#define | QUANT_BIAS_SHIFT 8 |
#define | UNI_AC_ENC_INDEX(run, level) ((run)*128 + (level)) |
#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 More... | |
#define | SLICE_NOEND -3 |
no end marker or error found but mb count exceeded More... | |
#define | REBASE_PICTURE(pic, new_ctx, old_ctx) |
#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_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_GENERIC_CLASS(name) |
Typedefs | |
typedef struct Picture | Picture |
Picture. More... | |
typedef struct MotionEstContext | MotionEstContext |
Motion estimation context. More... | |
typedef struct MpegEncContext | MpegEncContext |
MpegEncContext. More... | |
Enumerations | |
enum | OutputFormat { FMT_MPEG1, FMT_H261, FMT_H263, FMT_MJPEG } |
Variables | |
const AVOption | ff_mpv_generic_options [] |
enum AVPixelFormat | ff_pixfmt_list_420 [] |
const uint8_t | ff_mpeg1_dc_scale_table [128] |
const uint8_t *const | ff_mpeg2_dc_scale_table [4] |
const uint8_t | ff_aic_dc_scale_table [32] |
const uint8_t | ff_h263_chroma_qscale_table [32] |
const uint8_t | ff_h263_loop_filter_strength [32] |
Detailed Description
mpegvideo header.
Macro Definition Documentation
#define CANDIDATE_MB_TYPE_BACKWARD 0x40 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BACKWARD_I 0x400 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BIDIR 0x80 |
Referenced by encode_picture(), encode_thread(), ff_clean_mpeg4_qscales(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BIDIR_I 0x800 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_DIRECT 0x10 |
Referenced by encode_thread(), ff_clean_mpeg4_qscales(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_DIRECT0 0x1000 |
Referenced by encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_FORWARD 0x20 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_FORWARD_I 0x200 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_INTER 0x02 |
Referenced by encode_picture(), encode_thread(), ff_clean_h263_qscales(), ff_estimate_p_frame_motion(), and svq1_encode_plane().
#define CANDIDATE_MB_TYPE_INTER4V 0x04 |
Referenced by encode_thread(), ff_clean_h263_qscales(), ff_estimate_p_frame_motion(), and ff_fix_long_p_mvs().
#define CANDIDATE_MB_TYPE_INTER_I 0x100 |
Referenced by encode_picture(), encode_thread(), and ff_estimate_p_frame_motion().
#define CANDIDATE_MB_TYPE_INTRA 0x01 |
#define CANDIDATE_MB_TYPE_SKIPPED 0x08 |
Referenced by encode_thread(), and ff_estimate_p_frame_motion().
#define CHROMA_420 1 |
#define CHROMA_422 2 |
Referenced by encode_mb(), encode_mb_internal(), and ff_MPV_encode_init().
#define CHROMA_444 3 |
Referenced by encode_mb_internal(), ff_mjpeg_encode_mb(), and ff_MPV_encode_init().
#define DELAYED_PIC_REF 4 |
Value of Picture.reference when Picture is not a reference picture, but is held for delayed output.
#define EXT_START_CODE 0x000001b5 |
#define FF_MPV_COMMON_OPTS |
#define FF_MPV_FLAG_CBP_RD 0x0008 |
Referenced by encode_mb_internal(), ff_MPV_encode_init(), get_b_cbp(), and get_p_cbp().
#define FF_MPV_FLAG_QP_RD 0x0004 |
Referenced by encode_mb_internal(), encode_thread(), and ff_MPV_encode_init().
#define FF_MPV_FLAG_SKIP_RD 0x0001 |
Referenced by encode_thread().
#define FF_MPV_FLAG_STRICT_GOP 0x0002 |
Referenced by select_input_picture().
#define FF_MPV_GENERIC_CLASS | ( | name | ) |
Referenced by ff_flv2_encode_ac_esc(), ff_h261_encode_init(), ff_rv10_encode_picture_header(), and ff_rv20_encode_picture_header().
#define FF_MPV_OFFSET | ( | x | ) | offsetof(MpegEncContext, x) |
#define FF_MPV_OPT_FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
#define FRAME_SKIPPED 100 |
return value for header parsers if frame is not coded
Referenced by decode_vop_header(), ff_h263_decode_frame(), and ff_mpeg4_decode_picture_header().
#define GOP_START_CODE 0x000001b8 |
Referenced by decode_chunks(), and mpeg1_encode_sequence_header().
#define HAS_CBP | ( | a | ) | ((a)&MB_TYPE_CBP) |
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
#define INPLACE_OFFSET 16 |
Referenced by estimate_best_b_count(), ff_mpeg4_encode_mb(), load_input_picture(), and select_input_picture().
#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_ACPRED | ( | a | ) | ((a)&MB_TYPE_ACPRED) |
Referenced by ff_print_debug_info2(), and mpeg4_decode_partitioned_mb().
#define IS_DIR | ( | a, | |
part, | |||
list | |||
) | ((a) & (MB_TYPE_P0L0<<((part)+2*(list)))) |
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define IS_DIRECT | ( | a | ) | ((a)&MB_TYPE_DIRECT2) |
#define IS_GMC | ( | a | ) | ((a)&MB_TYPE_GMC) |
Referenced by ff_print_debug_info2().
#define IS_INTER | ( | a | ) | ((a)&(MB_TYPE_16x16|MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_8x8)) |
#define IS_INTERLACED | ( | a | ) | ((a)&MB_TYPE_INTERLACED) |
Referenced by decode_cabac_mb_skip(), fetch_diagonal_mv(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_filter_mb(), ff_mpeg4_set_direct_mv(), ff_print_debug_info2(), fill_decode_caches(), fill_decode_neighbors(), fill_filter_caches(), fill_filter_caches_inter(), filter_mb_dir(), loop_filter(), pred_spatial_direct_motion(), pred_temp_direct_motion(), and predict_field_decoding_flag().
Referenced by decode_cabac_luma_residual(), decode_luma_residual(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_filter_mb(), ff_print_debug_info2(), fill_decode_caches(), fill_filter_caches(), filter_mb_dir(), guess_dc(), guess_mv(), h264_filter_mb_fast_internal(), h_block_filter(), hl_decode_mb(), hl_decode_mb_444(), hl_decode_mb_idct_luma(), is_intra_more_likely(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), MPV_motion_internal(), pred_spatial_direct_motion(), pred_temp_direct_motion(), rv30_loop_filter(), rv34_decode_inter_macroblock(), rv34_decode_inter_mb_header(), rv34_decode_mv(), rv40_loop_filter(), svq3_decode_mb(), and v_block_filter().
#define IS_INTRA16x16 | ( | a | ) | ((a)&MB_TYPE_INTRA16x16) |
#define IS_INTRA4x4 | ( | a | ) | ((a)&MB_TYPE_INTRA4x4) |
#define IS_INTRA_PCM | ( | a | ) | ((a)&MB_TYPE_INTRA_PCM) |
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_hl_decode_mb(), hl_decode_mb(), and hl_decode_mb_444().
#define IS_PCM | ( | a | ) | ((a)&MB_TYPE_INTRA_PCM) |
Referenced by ff_print_debug_info2().
#define IS_QUANT | ( | a | ) | ((a)&MB_TYPE_QUANT) |
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
#define IS_SKIP | ( | a | ) | ((a)&MB_TYPE_SKIP) |
#define IS_SUB_4X4 | ( | a | ) | ((a)&MB_TYPE_8x8) |
Referenced by await_references(), and hl_motion().
#define IS_SUB_4X8 | ( | a | ) | ((a)&MB_TYPE_8x16) |
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define IS_SUB_8X4 | ( | a | ) | ((a)&MB_TYPE_16x8) |
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define IS_SUB_8X8 | ( | a | ) | ((a)&MB_TYPE_16x16) |
#define MAX_FCODE 7 |
Referenced by ff_mpeg1_encode_init(), and init_mv_penalty_and_fcode().
#define MAX_MB_BYTES (30*16*16*3/8 + 120) |
Referenced by encode_thread(), ff_MPV_encode_picture(), svq1_encode_frame(), and xvid_encode_frame().
#define MAX_MV 4096 |
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(), ff_mpeg1_encode_init(), ff_pre_estimate_p_frame_motion(), get_limits(), init_mv_penalty_and_fcode(), and MPV_encode_defaults().
#define MAX_PICTURE_COUNT 36 |
Referenced by copy_picture_range(), decode_update_thread_context(), ff_find_unused_picture(), ff_h264_alloc_tables(), ff_h264_decode_seq_parameter_set(), ff_mpeg_flush(), ff_mpeg_update_thread_context(), ff_MPV_common_end(), ff_MPV_common_frame_size_change(), ff_MPV_common_init(), ff_MPV_frame_end(), ff_MPV_frame_start(), ff_release_unused_pictures(), find_unused_picture(), flush_dpb(), free_tables(), load_input_picture(), release_unused_pictures(), and select_input_picture().
#define MAX_THREADS 32 |
#define MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
Referenced by ff_h263_decode_mb(), ff_h263_update_motion_val(), h261_decode_mb(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), preview_obmc(), rv34_decode_intra_mb_header(), vc1_decode_b_mb_intfi(), vc1_decode_b_mb_intfr(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_p_mb(), vc1_decode_p_mb_intfi(), vc1_decode_p_mb_intfr(), and vc1_pred_b_mv_intfi().
#define ME_MAP_MV_BITS 11 |
Referenced by hpel_motion_search(), qpel_motion_search(), sab_diamond_search(), small_diamond_search(), and update_map_generation().
#define ME_MAP_SHIFT 3 |
Referenced by ff_init_me(), hpel_motion_search(), qpel_motion_search(), sad_hpel_motion_search(), and small_diamond_search().
#define ME_MAP_SIZE 64 |
#define MPEG_BUF_SIZE (16 * 1024) |
#define MV_DIR_BACKWARD 2 |
#define MV_DIR_FORWARD 1 |
Referenced by decode_slice(), encode_mb_internal(), encode_thread(), ff_er_frame_end(), ff_h263_decode_mb(), ff_mpeg4_encode_mb(), ff_wmv2_decode_mb(), ff_xvmc_decode_mb(), guess_mv(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg1_encode_mb_internal(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), mpeg_decode_slice(), MPV_decode_mb_internal(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), and rv10_decode_packet().
#define MV_DIRECT 4 |
bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
Referenced by encode_mb_internal(), encode_thread(), ff_h263_decode_mb(), ff_mpeg4_encode_mb(), and mpeg4_decode_mb().
#define MV_TYPE_16X16 0 |
1 vector for the whole mb
Referenced by decode_slice(), direct_search(), encode_thread(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_encode_mb(), ff_h263_update_motion_val(), ff_mpeg4_encode_mb(), ff_mpeg4_set_direct_mv(), ff_MPV_lowest_referenced_row(), ff_wmv2_decode_mb(), ff_xvmc_decode_mb(), get_p_cbp(), guess_mv(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg1_encode_mb_internal(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), mpeg_decode_mb(), mpeg_decode_slice(), MPV_motion_internal(), MPV_motion_lowres(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), and rv10_decode_packet().
#define MV_TYPE_16X8 2 |
2 vectors, one per 16x8 block
Referenced by ff_MPV_lowest_referenced_row(), ff_xvmc_decode_mb(), mpeg_decode_mb(), MPV_motion_internal(), and MPV_motion_lowres().
#define MV_TYPE_8X8 1 |
4 vectors (h263, mpeg4 4MV)
Referenced by cmp_direct_inline(), direct_search(), encode_mb_internal(), encode_thread(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_encode_mb(), ff_mpeg4_set_direct_mv(), ff_MPV_lowest_referenced_row(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), MPV_motion_internal(), and MPV_motion_lowres().
#define MV_TYPE_DMV 4 |
2 vectors, special mpeg2 Dual Prime Vectors
Referenced by ff_xvmc_decode_mb(), mpeg_decode_mb(), MPV_motion_internal(), and MPV_motion_lowres().
#define MV_TYPE_FIELD 3 |
2 vectors, one per field
Referenced by encode_thread(), ff_mpeg4_encode_mb(), ff_mpeg4_set_direct_mv(), ff_xvmc_decode_mb(), mpeg1_encode_mb_internal(), mpeg4_decode_mb(), mpeg_decode_mb(), mpeg_decode_slice(), MPV_motion_internal(), and MPV_motion_lowres().
#define PICT_BOTTOM_FIELD 2 |
Referenced by copy_frame(), decode_chunks(), decode_finish_row(), decode_nal_units(), decode_slice_header(), ff_h264_direct_dist_scale_factor(), ff_h264_fill_default_ref_list(), ff_h264_fill_mbaff_ref_list(), ff_init_block_index(), ff_MPV_frame_start(), ff_vdpau_add_data_chunk(), ff_vdpau_h264_set_reference_frames(), field_end(), fill_picture_parameters(), fill_slice_long(), init_poc(), mpeg_field_start(), pic_as_field(), slice_decode_thread(), vc1_decode_frame(), vdpau_h264_set_reference_frames(), vdpau_h264_set_rf(), and vdpau_h264_start_frame().
#define PICT_FRAME 3 |
Referenced by commit_bitstream_and_slice_buffer(), copy_frame(), decode_chunks(), decode_slice(), decode_slice_header(), ff_draw_horiz_band(), ff_h264_decode_init(), ff_h264_direct_ref_list_init(), ff_h264_draw_horiz_band(), ff_h264_execute_ref_pic_marking(), ff_init_block_index(), ff_mpeg1_encode_picture_header(), ff_MPV_common_defaults(), ff_MPV_frame_start(), ff_MPV_lowest_referenced_row(), ff_vdpau_add_data_chunk(), ff_xvmc_decode_mb(), fill_colmap(), fill_picture_parameters(), fill_slice(), fill_vaapi_pic(), filter_mb_dir(), h264_frame_start(), implicit_weight_table(), init_poc(), mpeg1_decode_sequence(), mpeg2_get_is_frame_start(), mpeg_decode_mb(), mpeg_decode_picture_display_extension(), mpeg_decode_slice(), mpeg_field_start(), MPV_motion_internal(), MPV_motion_lowres(), parse_nal_units(), pic_num_extract(), slice_decode_thread(), split_field_copy(), svq1_encode_init(), svq3_decode_init(), vaapi_h264_start_frame(), vaapi_mpeg2_decode_slice(), vc1_decode_frame(), vcr2_init_sequence(), and vdpau_h264_start_frame().
#define PICT_TOP_FIELD 1 |
Referenced by copy_frame(), decode_slice_header(), ff_h264_fill_mbaff_ref_list(), ff_MPV_frame_start(), ff_vdpau_h264_set_reference_frames(), fill_picture_parameters(), fill_vaapi_pic(), init_poc(), mpeg_decode_mb(), parse_nal_units(), vc1_decode_frame(), vdpau_h264_set_reference_frames(), and vdpau_h264_set_rf().
#define PICTURE_START_CODE 0x00000100 |
Referenced by decode_chunks(), ff_mpeg1_encode_picture_header(), ff_mpeg1_find_frame_end(), and mpegvideo_extract_headers().
#define QMAT_SHIFT 21 |
Referenced by dct_quantize_trellis_c(), ff_convert_matrix(), and ff_dct_quantize_c().
#define QMAT_SHIFT_MMX 16 |
Referenced by ff_convert_matrix().
#define QUANT_BIAS_SHIFT 8 |
Referenced by ff_convert_matrix(), ff_dct_quantize_c(), and ff_MPV_encode_init().
#define REBASE_PICTURE | ( | pic, | |
new_ctx, | |||
old_ctx | |||
) |
#define SEQ_END_CODE 0x000001b7 |
Referenced by ff_mpeg1_find_frame_end(), and mpeg_decode_frame().
#define SEQ_START_CODE 0x000001b3 |
Referenced by decode_chunks(), ff_mpeg1_find_frame_end(), mpeg1_encode_sequence_header(), and mpegvideo_extract_headers().
#define SLICE_END -2 |
end marker found
Referenced by decode_slice(), ff_h263_decode_mb(), h261_decode_gob(), h261_decode_mb(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
#define SLICE_ERROR -1 |
Referenced by h261_decode_mb(), and rv10_decode_packet().
#define SLICE_MAX_START_CODE 0x000001af |
#define SLICE_MIN_START_CODE 0x00000101 |
#define SLICE_NOEND -3 |
no end marker or error found but mb count exceeded
Referenced by decode_slice(), and mpeg4_decode_partitioned_mb().
#define SLICE_OK 0 |
Referenced by ff_h263_decode_mb(), h261_decode_mb(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
Referenced by bit8x8_c(), dct_quantize_refine(), dct_quantize_trellis_c(), get_block_rate(), init_uni_ac_vlc(), and rd8x8_c().
#define USER_START_CODE 0x000001b2 |
#define USES_LIST | ( | a, | |
list | |||
) | ((a) & ((MB_TYPE_P0L0|MB_TYPE_P1L0)<<(2*(list)))) |
does this mb use listX, note does not work if subMBs
Referenced by ff_h263_decode_mb(), ff_print_debug_info2(), fill_decode_caches(), fill_filter_caches_inter(), hl_decode_mb(), hl_decode_mb_444(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_pskip_motion(), and write_back_motion().
Typedef Documentation
typedef struct MotionEstContext MotionEstContext |
Motion estimation context.
typedef struct MpegEncContext MpegEncContext |
Enumeration Type Documentation
enum OutputFormat |
Function Documentation
int ff_alloc_picture | ( | MpegEncContext * | s, |
Picture * | pic, | ||
int | shared | ||
) |
Allocate a Picture.
The pixels are allocated/set by calling get_buffer() if shared = 0.
The pixels are allocated/set by calling get_buffer() if shared = 0
Referenced by ff_MPV_frame_start(), load_input_picture(), and select_input_picture().
void ff_block_permute | ( | int16_t * | block, |
uint8_t * | permutation, | ||
const uint8_t * | scantable, | ||
int | last | ||
) |
permute block according to permuatation.
- Parameters
-
last last non zero element in scantable order
permute block according to permuatation.
- Parameters
-
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!
Referenced by dct_quantize_bfin(), and ff_dct_quantize_c().
void ff_clean_intra_table_entries | ( | MpegEncContext * | s | ) |
Clean dc, ac, coded_block for the current non-intra MB.
Referenced by encode_thread(), mpeg4_decode_partition_a(), and MPV_decode_mb_internal().
void ff_convert_matrix | ( | DSPContext * | dsp, |
int(*) | qmat[64], | ||
uint16_t(*) | qmat16[2][64], | ||
const uint16_t * | quant_matrix, | ||
int | bias, | ||
int | qmin, | ||
int | qmax, | ||
int | intra | ||
) |
Referenced by dnxhd_init_qmat(), encode_picture(), and ff_MPV_encode_init().
int ff_dct_common_init | ( | MpegEncContext * | s | ) |
Referenced by dnxhd_encode_init(), ff_h263_decode_frame(), and ff_MPV_common_init().
int ff_dct_encode_init | ( | MpegEncContext * | s | ) |
Referenced by dnxhd_encode_init(), and ff_MPV_encode_init().
void ff_dct_encode_init_x86 | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_encode_init().
int ff_dct_quantize_c | ( | MpegEncContext * | s, |
int16_t * | block, | ||
int | n, | ||
int | qscale, | ||
int * | overflow | ||
) |
Referenced by dnxhd_encode_init(), encode_mb_internal(), and ff_dct_encode_init().
void ff_denoise_dct | ( | MpegEncContext * | s, |
int16_t * | block | ||
) |
void ff_draw_horiz_band | ( | AVCodecContext * | avctx, |
DSPContext * | dsp, | ||
Picture * | cur, | ||
Picture * | last, | ||
int | y, | ||
int | h, | ||
int | picture_structure, | ||
int | first_field, | ||
int | draw_edges, | ||
int | low_delay, | ||
int | v_edge_pos, | ||
int | h_edge_pos | ||
) |
- Parameters
-
h is the normal height, this will be reduced automatically if needed for the last row
Referenced by ff_mpeg_draw_horiz_band(), and svq3_decode_frame().
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 | ||
) |
void ff_estimate_b_frame_motion | ( | MpegEncContext * | s, |
int | mb_x, | ||
int | mb_y | ||
) |
Referenced by estimate_motion_thread(), and ff_h263_round_chroma().
void ff_estimate_p_frame_motion | ( | MpegEncContext * | s, |
int | mb_x, | ||
int | mb_y | ||
) |
< the variance of the block (sum of squared (p[y][x]-average))
< sum of squared differences with the estimated motion vector
Referenced by estimate_motion_thread(), ff_h263_round_chroma(), and svq1_encode_plane().
int ff_find_unused_picture | ( | MpegEncContext * | s, |
int | shared | ||
) |
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 | ||
) |
- Parameters
-
truncate 1 for truncation, 0 for using intra
Referenced by encode_picture(), ff_h263_round_chroma(), and svq1_encode_plane().
void ff_fix_long_p_mvs | ( | MpegEncContext * | s | ) |
Referenced by encode_picture(), ff_h263_round_chroma(), and svq1_encode_plane().
int ff_get_best_fcode | ( | MpegEncContext * | s, |
int16_t(*) | mv_table[2], | ||
int | type | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
int ff_get_mb_score | ( | MpegEncContext * | s, |
int | mx, | ||
int | my, | ||
int | src_index, | ||
int | ref_index, | ||
int | size, | ||
int | h, | ||
int | add_rate | ||
) |
Referenced by encode_q_branch(), and ff_h263_round_chroma().
|
inlinestatic |
Referenced by chroma_4mv_motion(), chroma_4mv_motion_lowres(), and h263_mv4_search().
void ff_init_block_index | ( | MpegEncContext * | s | ) |
Referenced by decode_slice(), encode_thread(), estimate_motion_thread(), ff_h261_reorder_mb_index(), h261_decode_mb(), h261_decode_mb_skipped(), init_block_index(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg_decode_slice(), mpeg_er_decode_mb(), rv10_decode_packet(), rv34_decode_slice(), and svq1_encode_plane().
int ff_init_me | ( | MpegEncContext * | s | ) |
Referenced by encode_frame(), encode_picture(), ff_h263_round_chroma(), and svq1_encode_plane().
void ff_mpeg1_encode_init | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_round_chroma(), and ff_MPV_encode_init().
void ff_mpeg1_encode_mb | ( | MpegEncContext * | s, |
int16_t | block[6][64], | ||
int | motion_x, | ||
int | motion_y | ||
) |
Referenced by encode_mb_internal(), and ff_h263_round_chroma().
void ff_mpeg1_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
void ff_mpeg1_encode_slice_header | ( | MpegEncContext * | s | ) |
Referenced by encode_thread(), ff_h263_round_chroma(), and ff_mpeg1_encode_picture_header().
void ff_mpeg_draw_horiz_band | ( | MpegEncContext * | s, |
int | y, | ||
int | h | ||
) |
Referenced by decode_slice(), dxva2_mpeg2_end_frame(), dxva2_vc1_end_frame(), ff_intrax8_decode_picture(), ff_vaapi_mpeg_end_frame(), ff_vdpau_add_data_chunk(), ff_vdpau_common_start_frame(), ff_xvmc_decode_mb(), ff_xvmc_field_end(), mpeg_decode_slice(), vc1_decode_b_blocks(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_p_blocks(), and vc1_decode_skip_blocks().
void ff_mpeg_er_frame_start | ( | MpegEncContext * | s | ) |
void ff_mpeg_flush | ( | AVCodecContext * | avctx | ) |
Referenced by decode_wmv9(), and flush().
int ff_mpeg_ref_picture | ( | MpegEncContext * | s, |
Picture * | dst, | ||
Picture * | src | ||
) |
Referenced by ff_h263_round_chroma(), ff_mpeg_update_thread_context(), ff_MPV_frame_start(), and select_input_picture().
void ff_mpeg_unref_picture | ( | MpegEncContext * | s, |
Picture * | picture | ||
) |
Deallocate a picture.
Referenced by alloc_frame_buffer(), ff_alloc_picture(), ff_find_unused_picture(), ff_h263_round_chroma(), ff_mpeg_flush(), ff_mpeg_ref_picture(), ff_mpeg_update_thread_context(), ff_MPV_common_end(), ff_MPV_frame_end(), ff_MPV_frame_start(), ff_release_unused_pictures(), and select_input_picture().
int ff_mpeg_update_thread_context | ( | AVCodecContext * | dst, |
const AVCodecContext * | src | ||
) |
Referenced by ff_rv34_decode_update_thread_context(), and mpeg_decode_update_thread_context().
void ff_MPV_common_defaults | ( | MpegEncContext * | s | ) |
Set the given MpegEncContext to common defaults (same for encoding and decoding).
The changed fields will not depend upon the prior state of the MpegEncContext.
Referenced by ff_MPV_decode_defaults(), and MPV_encode_defaults().
void ff_MPV_common_end | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_decode_end(), ff_h263_decode_frame(), ff_MPV_common_frame_size_change(), ff_MPV_common_init(), ff_MPV_encode_end(), ff_rv34_decode_end(), ff_vc1_decode_end(), h261_decode_end(), h261_decode_frame(), mpeg_decode_end(), mpeg_decode_postinit(), rv10_decode_end(), rv20_decode_picture_header(), and vcr2_init_sequence().
int ff_MPV_common_frame_size_change | ( | MpegEncContext * | s | ) |
int ff_MPV_common_init | ( | MpegEncContext * | s | ) |
init common structure for both encoder and decoder.
this assumes that some variables like width/height are already set
Referenced by ff_h263_decode_frame(), ff_h263_decode_init(), ff_mpeg_update_thread_context(), ff_MPV_encode_init(), ff_rv34_decode_init(), ff_rv34_decode_init_thread_copy(), h261_decode_frame(), mpeg_decode_postinit(), rv10_decode_init(), rv20_decode_picture_header(), and vcr2_init_sequence().
void ff_MPV_common_init_altivec | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_common_init().
void ff_MPV_common_init_arm | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_common_init().
void ff_MPV_common_init_axp | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_common_init().
void ff_MPV_common_init_bfin | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_common_init().
void ff_MPV_common_init_x86 | ( | MpegEncContext * | s | ) |
Referenced by ff_dct_common_init().
void ff_MPV_decode_defaults | ( | MpegEncContext * | s | ) |
Set the given MpegEncContext to defaults for decoding.
the changed fields will not depend upon the prior state of the MpegEncContext.
Referenced by ff_h263_decode_init(), ff_rv34_decode_init(), h261_decode_init(), mpeg_decode_init(), and rv10_decode_init().
void ff_MPV_decode_mb | ( | MpegEncContext * | s, |
int16_t | block[12][64] | ||
) |
int ff_MPV_encode_end | ( | AVCodecContext * | avctx | ) |
Referenced by amv_encode_picture(), and mpeg12_class().
int ff_MPV_encode_init | ( | AVCodecContext * | avctx | ) |
Referenced by amv_encode_picture(), encode_init(), and wmv2_encode_init().
int ff_MPV_encode_picture | ( | AVCodecContext * | avctx, |
AVPacket * | pkt, | ||
AVFrame * | frame, | ||
int * | got_packet | ||
) |
Referenced by amv_encode_picture(), and mpeg12_class().
int ff_mpv_export_qp_table | ( | MpegEncContext * | s, |
AVFrame * | f, | ||
Picture * | p, | ||
int | qp_type | ||
) |
Referenced by ff_h263_decode_frame(), finish_frame(), rv10_decode_frame(), and slice_end().
void ff_MPV_frame_end | ( | MpegEncContext * | s | ) |
int ff_mpv_frame_size_alloc | ( | MpegEncContext * | s, |
int | linesize | ||
) |
int ff_MPV_frame_start | ( | MpegEncContext * | s, |
AVCodecContext * | avctx | ||
) |
generic function for encode/decode called after coding/decoding the header and before a frame is coded/decoded.
Referenced by decode_wmv9(), ff_h263_decode_frame(), ff_MPV_encode_picture(), ff_rv34_decode_frame(), h261_decode_frame(), mpeg_field_start(), rv10_decode_packet(), and vc1_decode_frame().
int ff_MPV_lowest_referenced_row | ( | MpegEncContext * | s, |
int | dir | ||
) |
find the lowest MB row referenced in the MVs
Referenced by MPV_decode_mb_internal().
void ff_MPV_motion | ( | MpegEncContext * | s, |
uint8_t * | dest_y, | ||
uint8_t * | dest_cb, | ||
uint8_t * | dest_cr, | ||
int | dir, | ||
uint8_t ** | ref_picture, | ||
op_pixels_func(*) | pix_op[4], | ||
qpel_mc_func(*) | qpix_op[16] | ||
) |
Referenced by encode_mb_internal(), and MPV_decode_mb_internal().
void ff_MPV_report_decode_progress | ( | MpegEncContext * | s | ) |
Referenced by decode_slice(), and mpeg_decode_slice().
int ff_msmpeg4_decode_ext_header | ( | MpegEncContext * | s, |
int | buf_size | ||
) |
Referenced by ff_h263_decode_frame(), ff_h263_round_chroma(), and ff_msmpeg4_decode_picture_header().
int ff_msmpeg4_decode_init | ( | AVCodecContext * | avctx | ) |
Referenced by ff_h263_round_chroma(), vc1_decode_frame(), vc1_decode_init(), wmv2_decode_init(), and wmv9_init().
int ff_msmpeg4_decode_picture_header | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_decode_frame(), and ff_h263_round_chroma().
void ff_msmpeg4_encode_ext_header | ( | MpegEncContext * | s | ) |
Referenced by encode_thread(), ff_h263_round_chroma(), and ff_msmpeg4_encode_picture_header().
void ff_msmpeg4_encode_init | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_round_chroma(), and ff_MPV_encode_init().
void ff_msmpeg4_encode_mb | ( | MpegEncContext * | s, |
int16_t | block[6][64], | ||
int | motion_x, | ||
int | motion_y | ||
) |
Referenced by encode_mb_internal(), and ff_h263_round_chroma().
void ff_msmpeg4_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
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 | ||
) |
Referenced by ff_h263_round_chroma(), and MPV_motion_internal().
int ff_pre_estimate_p_frame_motion | ( | MpegEncContext * | s, |
int | mb_x, | ||
int | mb_y | ||
) |
Referenced by ff_h263_round_chroma(), and pre_estimate_motion_thread().
void ff_print_debug_info | ( | MpegEncContext * | s, |
Picture * | p, | ||
AVFrame * | pict | ||
) |
Referenced by ff_h263_decode_frame(), finish_frame(), h261_decode_frame(), rv10_decode_frame(), slice_end(), and vc1_decode_frame().
void ff_print_debug_info2 | ( | AVCodecContext * | avctx, |
Picture * | p, | ||
AVFrame * | pict, | ||
uint8_t * | mbskip_table, | ||
int * | low_delay, | ||
int | mb_width, | ||
int | mb_height, | ||
int | mb_stride, | ||
int | quarter_sample | ||
) |
Print debugging info for the given picture.
Referenced by decode_frame(), and ff_print_debug_info().
void ff_release_unused_pictures | ( | MpegEncContext * | s, |
int | remove_current | ||
) |
Referenced by ff_MPV_frame_start().
void ff_rv10_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
void ff_rv20_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
int ff_rv_decode_dc | ( | MpegEncContext * | s, |
int | n | ||
) |
Referenced by ff_h263_round_chroma(), and h263_decode_block().
void ff_set_qscale | ( | MpegEncContext * | s, |
int | qscale | ||
) |
set qscale and update qscale dependent variables.
Referenced by decode_slice(), encode_mb_internal(), encode_thread(), ff_h261_encode_mb(), h261_decode_gob(), h261_decode_mb(), h263_decode_dquant(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
|
inlinestatic |
Referenced by decode_slice(), encode_thread(), ff_h261_reorder_mb_index(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg_er_decode_mb(), rv10_decode_packet(), rv34_decode_slice(), svq1_encode_plane(), vc1_apply_p_loop_filter(), vc1_decode_b_blocks(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_p_blocks(), and vc1_decode_skip_blocks().
int ff_update_duplicate_context | ( | MpegEncContext * | dst, |
MpegEncContext * | src | ||
) |
Referenced by decode_chunks(), and encode_picture().
void ff_wmv2_add_mb | ( | MpegEncContext * | s, |
int16_t | block[6][64], | ||
uint8_t * | dest_y, | ||
uint8_t * | dest_cb, | ||
uint8_t * | dest_cr | ||
) |
Referenced by ff_h263_round_chroma(), and MPV_decode_mb_internal().
int ff_wmv2_decode_picture_header | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_decode_frame(), and ff_h263_round_chroma().
int ff_wmv2_decode_secondary_picture_header | ( | MpegEncContext * | s | ) |
Referenced by ff_h263_decode_frame(), and ff_h263_round_chroma().
void ff_wmv2_encode_mb | ( | MpegEncContext * | s, |
int16_t | block[6][64], | ||
int | motion_x, | ||
int | motion_y | ||
) |
Referenced by encode_mb_internal(), and ff_h263_round_chroma().
int ff_wmv2_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Referenced by encode_picture(), and ff_h263_round_chroma().
void ff_write_quant_matrix | ( | PutBitContext * | pb, |
uint16_t * | matrix | ||
) |
Referenced by mpeg1_encode_sequence_header(), and mpeg4_encode_vol_header().
|
inlinestatic |
Variable Documentation
const uint8_t ff_aic_dc_scale_table[32] |
const uint8_t ff_h263_chroma_qscale_table[32] |
Referenced by ff_h263_decode_picture_header(), ff_h263_round_chroma(), ff_MPV_encode_init(), and rv10_decode_packet().
const uint8_t ff_h263_loop_filter_strength[32] |
Referenced by ff_h263_round_chroma(), h263_h_loop_filter_c(), and h263_v_loop_filter_c().
const uint8_t ff_mpeg1_dc_scale_table[128] |
Referenced by ff_flv_decode_picture_header(), ff_flv_encode_picture_header(), ff_h261_encode_init(), ff_h263_decode_picture_header(), ff_h263_encode_init(), ff_h263_encode_picture_header(), ff_h263_round_chroma(), ff_intel_h263_decode_picture_header(), ff_MPV_common_defaults(), ff_msmpeg4_common_init(), ff_rv20_encode_picture_header(), and rv10_decode_packet().
const uint8_t* const ff_mpeg2_dc_scale_table[4] |
Referenced by encode_picture(), ff_h263_round_chroma(), and ff_mpeg12_common_init().
const AVOption ff_mpv_generic_options[] |
enum AVPixelFormat ff_pixfmt_list_420[] |
Generated on Sat Mar 8 2025 06:55:53 for FFmpeg by
