mpegvideo header. More...
#include <float.h>
#include "avcodec.h"
#include "blockdsp.h"
#include "error_resilience.h"
#include "fdctdsp.h"
#include "get_bits.h"
#include "h264chroma.h"
#include "h263dsp.h"
#include "hpeldsp.h"
#include "idctdsp.h"
#include "me_cmp.h"
#include "mpegvideodsp.h"
#include "mpegvideoencdsp.h"
#include "pixblockdsp.h"
#include "put_bits.h"
#include "ratecontrol.h"
#include "parser.h"
#include "mpeg12data.h"
#include "qpeldsp.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.
mpegvideo header.
Definition in file mpegvideo.h.
return value for header parsers if frame is not coded
Definition at line 58 of file mpegvideo.h.
Referenced by ff_h263_decode_frame(), ff_intel_h263_decode_picture_header(), and ff_mpeg4_decode_picture_header().
Definition at line 67 of file mpegvideo.h.
Referenced by ff_mpeg1_encode_init(), and init_mv_penalty_and_fcode().
Definition at line 68 of file mpegvideo.h.
Referenced by check_bidir_mv(), direct_search(), encode_q_branch(), estimate_motion_b(), ff_estimate_b_frame_motion(), 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().
Definition at line 70 of file mpegvideo.h.
Definition at line 71 of file mpegvideo.h.
Referenced by ff_find_unused_picture(), ff_mpeg_flush(), ff_mpeg_update_thread_context(), ff_mpv_common_end(), ff_mpv_common_frame_size_change(), ff_mpv_common_init(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_mpv_frame_start(), find_unused_picture(), load_input_picture(), release_unused_pictures(), and select_input_picture().
Definition at line 73 of file mpegvideo.h.
Referenced by ff_mpv_encode_init().
Definition at line 75 of file mpegvideo.h.
Referenced by encode_init(), ff_init_me(), hpel_motion_search(), init_duplicate_context(), qpel_motion_search(), sab_diamond_search(), sad_hpel_motion_search(), small_diamond_search(), svq1_encode_init(), and update_map_generation().
Definition at line 77 of file mpegvideo.h.
Referenced by encode_thread(), ff_mpv_encode_picture(), svq1_encode_frame(), and xvid_encode_frame().
Definition at line 79 of file mpegvideo.h.
Referenced by estimate_best_b_count(), ff_mpeg4_encode_mb(), load_input_picture(), and select_input_picture().
Definition at line 81 of file mpegvideo.h.
Referenced by alloc_frame_buffer(), avcodec_get_edge_width(), encode_frame(), ff_snow_get_buffer(), ff_snow_release_buffer(), frame_end(), get_buffer_with_edge(), halfpel_interpol(), interpolate_refplane(), and mc_subpel().
Definition at line 84 of file mpegvideo.h.
Referenced by ff_mpeg1_find_frame_end(), and mpeg_decode_frame().
Definition at line 85 of file mpegvideo.h.
Referenced by decode_chunks(), ff_mpeg1_find_frame_end(), mpeg1_encode_sequence_header(), and mpegvideo_extract_headers().
Definition at line 86 of file mpegvideo.h.
Referenced by decode_chunks(), and mpeg1_encode_sequence_header().
Definition at line 87 of file mpegvideo.h.
Referenced by decode_chunks(), ff_mpeg1_encode_picture_header(), ff_mpeg1_find_frame_end(), and mpegvideo_extract_headers().
Definition at line 88 of file mpegvideo.h.
Referenced by decode_chunks(), ff_mpeg1_encode_slice_header(), ff_mpeg1_find_frame_end(), mpegvideo_extract_headers(), and slice_decode_thread().
Definition at line 89 of file mpegvideo.h.
Definition at line 90 of file mpegvideo.h.
Definition at line 91 of file mpegvideo.h.
Definition at line 396 of file mpegvideo.h.
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().
Definition at line 397 of file mpegvideo.h.
Referenced by encode_mb_internal(), encode_thread(), ff_er_frame_end(), ff_h263_decode_mb(), ff_mpeg4_encode_mb(), ff_xvmc_decode_mb(), guess_mv(), mpeg1_encode_mb_internal(), mpeg4_decode_mb(), and mpv_decode_mb_internal().
bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
Definition at line 398 of file mpegvideo.h.
Referenced by encode_mb_internal(), encode_thread(), ff_h263_decode_mb(), ff_mpeg4_encode_mb(), and mpeg4_decode_mb().
1 vector for the whole mb
Definition at line 400 of file mpegvideo.h.
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().
4 vectors (h263, mpeg4 4MV)
Definition at line 401 of file mpegvideo.h.
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().
2 vectors, one per 16x8 block
Definition at line 402 of file mpegvideo.h.
Referenced by ff_mpv_lowest_referenced_row(), ff_xvmc_decode_mb(), mpeg_decode_mb(), mpv_motion_internal(), and MPV_motion_lowres().
2 vectors, one per field
Definition at line 403 of file mpegvideo.h.
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().
2 vectors, special mpeg2 Dual Prime Vectors
Definition at line 404 of file mpegvideo.h.
Referenced by ff_xvmc_decode_mb(), mpeg_decode_mb(), mpv_motion_internal(), and MPV_motion_lowres().
Definition at line 451 of file mpegvideo.h.
Referenced by bit8x8_c(), dct_quantize_refine(), dct_quantize_trellis_c(), get_block_rate(), init_uni_ac_vlc(), and rd8x8_c().
Definition at line 602 of file mpegvideo.h.
Referenced by decode_vol_header(), encode_init(), encode_mb(), ff_mjpeg_encode_mb(), ff_mpeg1_encode_mb(), ff_mpeg1_encode_picture_header(), ff_mpv_encode_init(), and vaapi_mpeg4_start_frame().
Definition at line 603 of file mpegvideo.h.
Referenced by encode_mb(), encode_mb_internal(), and ff_mpv_encode_init().
Definition at line 604 of file mpegvideo.h.
Referenced by encode_mb_internal(), ff_mjpeg_encode_mb(), and ff_mpv_encode_init().
Definition at line 629 of file mpegvideo.h.
Referenced by ff_h263_decode_mb(), h261_decode_mb(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
Definition at line 630 of file mpegvideo.h.
Referenced by h261_decode_mb(), and rv10_decode_packet().
end marker found
Definition at line 631 of file mpegvideo.h.
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().
no end marker or error found but mb count exceeded
Definition at line 632 of file mpegvideo.h.
Referenced by decode_slice(), and mpeg4_decode_partitioned_mb().
Definition at line 687 of file mpegvideo.h.
Referenced by encode_thread().
Definition at line 688 of file mpegvideo.h.
Referenced by select_input_picture().
Definition at line 689 of file mpegvideo.h.
Referenced by encode_mb_internal(), encode_thread(), and ff_mpv_encode_init().
Definition at line 690 of file mpegvideo.h.
Referenced by encode_mb_internal(), ff_mpv_encode_init(), get_b_cbp(), and get_p_cbp().
Definition at line 691 of file mpegvideo.h.
Referenced by adaptive_quantization(), and ff_mpv_encode_init().
Definition at line 692 of file mpegvideo.h.
Referenced by epzs_motion_search_internal(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), and ff_mpv_encode_init().
Definition at line 695 of file mpegvideo.h.
Definition at line 697 of file mpegvideo.h.
Definition at line 698 of file mpegvideo.h.
Definition at line 730 of file mpegvideo.h.
Definition at line 60 of file mpegvideo.h.
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.
Definition at line 1090 of file mpegvideo.c.
Referenced by ff_mpv_decode_defaults(), and mpv_encode_defaults().
Definition at line 200 of file mpegvideoenc.c.
Referenced by ff_dct_encode_init().
init common structure for both encoder and decoder.
this assumes that some variables like width/height are already set
Definition at line 1295 of file mpegvideo.c.
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(), rv10_decode_init(), rv20_decode_picture_header(), svq1_encode_init(), and vcr2_init_sequence().
Definition at line 43 of file mpegvideo_arm.c.
Referenced by dct_init().
Definition at line 106 of file mpegvideo_alpha.c.
Referenced by dct_init().
Definition at line 126 of file mpegvideo.c.
Referenced by dct_init().
Definition at line 117 of file mpegvideo_altivec.c.
Referenced by dct_init().
Definition at line 447 of file mpegvideo.c.
Referenced by dct_init().
Definition at line 1458 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), ff_mpeg_update_thread_context(), ff_rv34_decode_frame(), and ff_rv34_decode_update_thread_context().
Definition at line 1534 of file mpegvideo.c.
Referenced by ff_h263_decode_end(), ff_mpv_common_frame_size_change(), ff_mpv_common_init(), ff_mpv_encode_end(), ff_rv34_decode_end(), ff_rv34_decode_init(), ff_rv34_decode_init_thread_copy(), ff_vc1_decode_end(), h261_decode_end(), h261_decode_frame(), mpeg_decode_end(), rv10_decode_end(), rv20_decode_picture_header(), svq1_encode_end(), vc1_decode_frame(), and vcr2_init_sequence().
Set the given MpegEncContext to defaults for decoding.
the changed fields will not depend upon the prior state of the MpegEncContext.
Definition at line 1113 of file mpegvideo.c.
Referenced by ff_h263_decode_init(), ff_rv34_decode_init(), h261_decode_init(), mpeg_decode_init(), and rv10_decode_init().
Definition at line 1118 of file mpegvideo.c.
Referenced by ff_h263_decode_init(), ff_rv34_decode_init(), h261_decode_init(), mpeg_decode_init(), and rv10_decode_init().
Definition at line 3284 of file mpegvideo.c.
Referenced by decode_slice(), encode_mb_hq(), encode_thread(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg_decode_slice(), mpeg_er_decode_mb(), and rv10_decode_packet().
Definition at line 3409 of file mpegvideo.c.
Referenced by decode_slice(), and mpeg_decode_slice().
generic function called after decoding the header and before a frame is decoded.
Definition at line 1769 of file mpegvideo.c.
Referenced by decode_wmv9(), ff_h263_decode_frame(), ff_rv34_decode_frame(), h261_decode_frame(), mpeg_field_start(), rv10_decode_packet(), and vc1_decode_frame().
Definition at line 1996 of file mpegvideo.c.
Referenced by decode_wmv9(), ff_h263_decode_frame(), ff_rv34_decode_frame(), finish_frame(), h261_decode_frame(), rv10_decode_frame(), rv10_decode_packet(), slice_end(), and vc1_decode_frame().
find the lowest MB row referenced in the MVs
Definition at line 2932 of file mpegvideo.c.
Referenced by mpv_decode_mb_internal().
Definition at line 255 of file mpegvideo_enc.c.
Referenced by encode_init(), and wmv2_encode_init().
Definition at line 1003 of file mpegvideo_enc.c.
Referenced by ff_mpv_encode_init(), and mpeg12_class().
Definition at line 1704 of file mpegvideo_enc.c.
Referenced by amv_encode_picture(), and mpeg12_class().
Clean dc, ac, coded_block for the current non-intra MB.
Definition at line 2997 of file mpegvideo.c.
Referenced by encode_thread(), mpeg4_decode_partition_a(), and mpv_decode_mb_internal().
Definition at line 3296 of file mpegvideo.c.
Referenced by decode_slice(), dxva2_mpeg2_end_frame(), dxva2_vc1_end_frame(), ff_intrax8_decode_picture(), 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().
Definition at line 3364 of file mpegvideo.c.
Referenced by decode_wmv9(), and flush().
Definition at line 2527 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), finish_frame(), h261_decode_frame(), rv10_decode_frame(), slice_end(), and vc1_decode_frame().
Print debugging info for the given picture.
Definition at line 2151 of file mpegvideo.c.
Referenced by ff_print_debug_info(), and h264_decode_frame().
Definition at line 2534 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), finish_frame(), rv10_decode_frame(), and slice_end().
Definition at line 170 of file mpegvideo_enc.c.
Referenced by mpeg1_encode_sequence_header(), and mpeg4_encode_vol_header().
Definition at line 1735 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), ff_mpv_frame_start(), load_input_picture(), and select_input_picture().
Definition at line 920 of file mpegvideo.c.
Referenced by decode_chunks(), and encode_picture().
Definition at line 945 of file mpegvideo.c.
Referenced by ff_rv34_decode_update_thread_context(), mpeg4_update_thread_context(), and mpeg_decode_update_thread_context().
set qscale and update qscale dependent variables.
Definition at line 3395 of file mpegvideo.c.
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().
Definition at line 427 of file mpegvideo.c.
Referenced by dnxhd_encode_init(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_mpeg4_workaround_bugs(), ff_mpeg_update_thread_context(), ff_mpv_encode_init(), ff_rv34_decode_init(), ff_rv34_decode_init_thread_copy(), h261_decode_frame(), mpeg_decode_init(), rv10_decode_init(), and vcr2_init_sequence().
Definition at line 237 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), and ff_mpv_encode_init().
Definition at line 81 of file mpegvideo_enc.c.
Referenced by dnxhd_init_qmat(), encode_picture(), and ff_mpv_encode_init().
Definition at line 4472 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), encode_mb_internal(), and ff_dct_encode_init().
Definition at line 3303 of file mpegvideo.c.
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(), and rv34_decode_slice().
Definition at line 972 of file mpegvideo_motion.c.
Referenced by encode_mb_internal(), and mpv_decode_mb_internal().
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
Definition at line 652 of file mpegvideo.c.
Referenced by ff_mpv_frame_start(), load_input_picture(), and select_input_picture().
permute block according to permuatation.
permute block according to permuatation.
Definition at line 3343 of file mpegvideo.c.
Referenced by ff_dct_quantize_c().
Definition at line 819 of file mpegvideo.h.
Referenced by decode_slice(), encode_thread(), ff_h261_reorder_mb_index(), ff_vc1_apply_p_loop_filter(), 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(), vc1_decode_b_blocks(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_p_blocks(), and vc1_decode_skip_blocks().
Definition at line 833 of file mpegvideo.h.
Referenced by ff_h263_encode_mb(), ff_mjpeg_encode_mb(), ff_mpeg4_encode_mb(), ff_msmpeg4_encode_mb(), ff_wmv2_encode_mb(), mpeg1_encode_mb_internal(), and write_slice_end().
Definition at line 842 of file mpegvideo.h.
Referenced by chroma_4mv_motion(), chroma_4mv_motion_lowres(), and h263_mv4_search().
< the variance of the block (sum of squared (p[y][x]-average))
< sum of squared differences with the estimated motion vector
Definition at line 887 of file motion_est.c.
Referenced by estimate_motion_thread(), and svq1_encode_plane().
Definition at line 1511 of file motion_est.c.
Referenced by estimate_motion_thread().
Definition at line 1619 of file motion_est.c.
Referenced by encode_picture().
Definition at line 1672 of file motion_est.c.
Referenced by encode_picture(), and svq1_encode_plane().
Definition at line 1722 of file motion_est.c.
Referenced by encode_picture(), and svq1_encode_plane().
Definition at line 304 of file motion_est.c.
Referenced by encode_frame(), encode_picture(), and svq1_encode_plane().
Definition at line 1072 of file motion_est.c.
Referenced by pre_estimate_motion_thread().
Definition at line 974 of file motion_est_template.c.
Referenced by direct_search(), encode_q_branch(), estimate_motion_b(), ff_estimate_p_frame_motion(), and ff_pre_estimate_p_frame_motion().
Definition at line 191 of file motion_est_template.c.
Referenced by encode_q_branch().
Definition at line 426 of file mpeg12enc.c.
Referenced by encode_picture().
Definition at line 998 of file mpeg12enc.c.
Referenced by encode_mb_internal().
Definition at line 1007 of file mpeg12enc.c.
Referenced by ff_mpv_encode_init().
Definition at line 412 of file mpeg12enc.c.
Referenced by encode_thread(), and ff_mpeg1_encode_picture_header().
Definition at line 31 of file rv10enc.c.
Referenced by encode_picture().
Definition at line 194 of file rv10.c.
Referenced by h263_decode_block().
Definition at line 32 of file rv20enc.c.
Referenced by encode_picture().
Definition at line 223 of file msmpeg4enc.c.
Referenced by encode_picture().
Definition at line 283 of file msmpeg4enc.c.
Referenced by encode_thread(), and ff_msmpeg4_encode_picture_header().
Definition at line 380 of file msmpeg4enc.c.
Referenced by encode_mb_internal().
Definition at line 396 of file msmpeg4dec.c.
Referenced by ff_h263_decode_frame().
Definition at line 551 of file msmpeg4dec.c.
Referenced by ff_h263_decode_frame(), and ff_msmpeg4_decode_picture_header().
Definition at line 286 of file msmpeg4dec.c.
Referenced by vc1_decode_frame(), vc1_decode_init(), wmv2_decode_init(), and wmv9_init().
Definition at line 120 of file msmpeg4enc.c.
Referenced by ff_mpv_encode_init().
Definition at line 119 of file wmv2dec.c.
Referenced by ff_h263_decode_frame().
Definition at line 139 of file wmv2dec.c.
Referenced by ff_h263_decode_frame().
Definition at line 81 of file wmv2.c.
Referenced by mpv_decode_mb_internal().
Definition at line 98 of file wmv2.c.
Referenced by mpv_motion_internal().
Definition at line 73 of file wmv2enc.c.
Referenced by encode_picture().
Definition at line 146 of file wmv2enc.c.
Referenced by encode_mb_internal().
Definition at line 776 of file mpegvideo.c.
Referenced by ff_mpeg_update_thread_context(), ff_mpv_frame_start(), frame_start(), and select_input_picture().
Deallocate a picture.
Definition at line 709 of file mpegvideo.c.
Referenced by alloc_frame_buffer(), ff_alloc_picture(), ff_find_unused_picture(), ff_mpeg_flush(), ff_mpeg_ref_picture(), ff_mpeg_update_thread_context(), ff_mpv_common_end(), ff_mpv_encode_end(), ff_mpv_encode_picture(), ff_mpv_frame_start(), frame_start(), release_unused_pictures(), and select_input_picture().
Definition at line 561 of file mpegvideo.c.
Referenced by ff_alloc_picture(), ff_find_unused_picture(), ff_mpeg_unref_picture(), ff_mpv_common_end(), and ff_mpv_encode_end().
Definition at line 111 of file mpegvideo.c.
Referenced by ff_mpv_idct_init().
Definition at line 122 of file mpegvideo.c.
Referenced by ff_mpv_idct_init(), and mpeg_decode_picture_coding_extension().
Definition at line 76 of file mpegvideo_enc.c.
Definition at line 56 of file mpegvideo.c.
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_intel_h263_decode_picture_header(), ff_mpv_common_defaults(), ff_msmpeg4_common_init(), ff_rv20_encode_picture_header(), and rv10_decode_packet().
Definition at line 104 of file mpegvideo.c.
Referenced by encode_picture(), and ff_mpeg12_common_init().
Definition at line 248 of file h263data.h.
Referenced by ff_flv_encode_picture_header(), ff_h263_decode_picture_header(), ff_h263_encode_init(), ff_rv20_encode_picture_header(), and rv10_decode_packet().
Definition at line 262 of file h263data.h.
Referenced by ff_h263_decode_picture_header(), ff_mpv_encode_init(), and rv10_decode_packet().