FFmpeg
|
Go to the source code of this file.
Enumerations | |
enum | OutputFormat { FMT_MPEG1, FMT_H261, FMT_H263, FMT_MJPEG } |
Functions | |
void | ff_draw_horiz_band (AVCodecContext *avctx, AVFrame *cur, AVFrame *last, int y, int h, int picture_structure, int first_field, int low_delay) |
Draw a horizontal band if supported. More... | |
#define FRAME_SKIPPED 100 |
Return value for header parsers if frame is not coded.
Definition at line 34 of file mpegutils.h.
Referenced by ff_h263_decode_frame(), ff_intel_h263_decode_picture_header(), and ff_mpeg4_decode_picture_header().
#define PICT_TOP_FIELD 1 |
Definition at line 37 of file mpegutils.h.
Referenced by copy_frame(), ff_h264_decode_slice_header(), ff_h264_fill_mbaff_ref_list(), ff_init_poc(), ff_mpv_frame_start(), fill_picture_parameters(), fill_vaapi_pic(), mpeg_decode_mb(), parse_nal_units(), vc1_decode_frame(), vdpau_h264_set_reference_frames(), and vdpau_h264_set_rf().
#define PICT_BOTTOM_FIELD 2 |
Definition at line 38 of file mpegutils.h.
Referenced by copy_frame(), decode_chunks(), decode_finish_row(), decode_nal_units(), ff_h264_decode_slice_header(), ff_h264_direct_dist_scale_factor(), ff_h264_field_end(), ff_h264_fill_mbaff_ref_list(), ff_init_block_index(), ff_init_poc(), ff_mpv_frame_start(), fill_picture_parameters(), fill_slice_long(), frame_start(), h264_initialise_ref_list(), mpeg_field_start(), parse_nal_units(), 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 |
Definition at line 39 of file mpegutils.h.
Referenced by commit_bitstream_and_slice_buffer(), copy_frame(), decode_chunks(), decode_slice(), ff_draw_horiz_band(), ff_h264_decode_slice_header(), ff_h264_direct_ref_list_init(), ff_h264_draw_horiz_band(), ff_h264_execute_ref_pic_marking(), ff_init_block_index(), ff_init_poc(), ff_mpeg1_encode_picture_header(), ff_mpv_common_defaults(), ff_mpv_frame_start(), ff_set_ref_count(), ff_xvmc_decode_mb(), fill_colmap(), fill_picture_parameters(), fill_slice(), fill_vaapi_pic(), filter_mb_dir(), frame_start(), h264_frame_start(), h264_init_context(), implicit_weight_table(), lowest_referenced_row(), 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 DELAYED_PIC_REF 4 |
Value of Picture.reference when Picture is not a reference picture, but is held for delayed output.
Definition at line 45 of file mpegutils.h.
#define MAX_MB_BYTES (30 * 16 * 16 * 3 / 8 + 120) |
Definition at line 47 of file mpegutils.h.
Referenced by encode_thread(), ff_mpv_encode_picture(), svq1_encode_frame(), and xvid_encode_frame().
#define MAX_FCODE 7 |
Definition at line 48 of file mpegutils.h.
Referenced by ff_mpeg1_encode_init(), and init_mv_penalty_and_fcode().
#define MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
Definition at line 75 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_vc1_pred_b_mv_intfi(), 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(), and vc1_decode_p_mb_intfr().
#define IS_INTRA4x4 | ( | a | ) | ((a) & MB_TYPE_INTRA4x4) |
Definition at line 77 of file mpegutils.h.
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), fill_decode_caches(), h261_decode_mb(), hl_decode_mb_idct_luma(), hl_decode_mb_predict_luma(), and svq3_decode_mb().
#define IS_INTRA16x16 | ( | a | ) | ((a) & MB_TYPE_INTRA16x16) |
Definition at line 78 of file mpegutils.h.
Referenced by decode_cabac_luma_residual(), decode_luma_residual(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), hl_decode_mb_idct_luma(), rv34_decode_inter_mb_header(), and svq3_decode_mb().
#define IS_PCM | ( | a | ) | ((a) & MB_TYPE_INTRA_PCM) |
Definition at line 79 of file mpegutils.h.
Referenced by ff_print_debug_info2().
Definition at line 80 of file mpegutils.h.
#define IS_INTER | ( | a | ) |
Definition at line 81 of file mpegutils.h.
Referenced by ff_er_frame_end(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), fill_decode_caches(), fill_filter_caches_inter(), guess_dc(), hl_motion(), and svq3_decode_mb().
#define IS_SKIP | ( | a | ) | ((a) & MB_TYPE_SKIP) |
Definition at line 83 of file mpegutils.h.
Referenced by decode_cabac_mb_skip(), ff_h263_loop_filter(), ff_print_debug_info2(), ff_wmv2_decode_mb(), fill_decode_caches(), mpeg4_decode_mb(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), rv34_decode_mv(), svq3_decode_mb(), and write_back_motion_list().
#define IS_INTRA_PCM | ( | a | ) | ((a) & MB_TYPE_INTRA_PCM) |
Definition at line 84 of file mpegutils.h.
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_INTERLACED | ( | a | ) | ((a) & MB_TYPE_INTERLACED) |
Definition at line 85 of file mpegutils.h.
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().
#define IS_DIRECT | ( | a | ) | ((a) & MB_TYPE_DIRECT2) |
Definition at line 86 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), fill_decode_caches(), fill_filter_caches_inter(), mpeg4_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define IS_GMC | ( | a | ) | ((a) & MB_TYPE_GMC) |
Definition at line 87 of file mpegutils.h.
Referenced by ff_print_debug_info2().
#define IS_16X16 | ( | a | ) | ((a) & MB_TYPE_16x16) |
Definition at line 88 of file mpegutils.h.
Referenced by await_references(), ff_h261_encode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), h261_decode_mb(), hl_decode_mb(), hl_decode_mb_444(), hl_motion(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define IS_16X8 | ( | a | ) | ((a) & MB_TYPE_16x8) |
Definition at line 89 of file mpegutils.h.
Referenced by add_mb(), await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), hl_motion(), and rv34_decode_mv().
#define IS_8X16 | ( | a | ) | ((a) & MB_TYPE_8x16) |
Definition at line 90 of file mpegutils.h.
Referenced by add_mb(), await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), hl_motion(), and rv34_decode_mv().
#define IS_8X8 | ( | a | ) | ((a) & MB_TYPE_8x8) |
Definition at line 91 of file mpegutils.h.
Referenced by add_mb(), await_references(), direct_search(), ff_er_frame_end(), ff_mpeg4_set_direct_mv(), ff_print_debug_info2(), fill_decode_caches(), hl_motion(), mpeg4_decode_partitioned_mb(), pred_spatial_direct_motion(), pred_temp_direct_motion(), rv34_decode_mv(), and write_back_motion().
#define IS_SUB_8X8 | ( | a | ) | ((a) & MB_TYPE_16x16) |
Definition at line 92 of file mpegutils.h.
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), hl_motion(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define IS_SUB_8X4 | ( | a | ) | ((a) & MB_TYPE_16x8) |
Definition at line 93 of file mpegutils.h.
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define IS_SUB_4X8 | ( | a | ) | ((a) & MB_TYPE_8x16) |
Definition at line 94 of file mpegutils.h.
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define IS_SUB_4X4 | ( | a | ) | ((a) & MB_TYPE_8x8) |
Definition at line 95 of file mpegutils.h.
Referenced by await_references(), and hl_motion().
#define IS_ACPRED | ( | a | ) | ((a) & MB_TYPE_ACPRED) |
Definition at line 96 of file mpegutils.h.
Referenced by ff_print_debug_info2(), and mpeg4_decode_partitioned_mb().
#define IS_QUANT | ( | a | ) | ((a) & MB_TYPE_QUANT) |
Definition at line 97 of file mpegutils.h.
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
#define IS_DIR | ( | a, | |
part, | |||
list | |||
) | ((a) & (MB_TYPE_P0L0 << ((part) + 2 * (list)))) |
Definition at line 98 of file mpegutils.h.
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_motion().
#define USES_LIST | ( | a, | |
list | |||
) | ((a) & ((MB_TYPE_P0L0 | MB_TYPE_P1L0) << (2 * (list)))) |
Definition at line 101 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), ff_print_debug_info2(), fill_decode_caches(), fill_filter_caches_inter(), hl_decode_mb(), hl_decode_mb_444(), hl_motion(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_pskip_motion(), and write_back_motion().
#define HAS_CBP | ( | a | ) | ((a) & MB_TYPE_CBP) |
Definition at line 103 of file mpegutils.h.
Referenced by ff_h261_encode_mb(), ff_h263_decode_mb(), h261_decode_mb(), and mpeg_decode_mb().
#define CANDIDATE_MB_TYPE_INTRA (1 << 0) |
Definition at line 106 of file mpegutils.h.
Referenced by adaptive_quantization(), encode_picture(), encode_thread(), ff_estimate_p_frame_motion(), ff_fix_long_mvs(), ff_fix_long_p_mvs(), and svq1_encode_plane().
#define CANDIDATE_MB_TYPE_INTER (1 << 1) |
Definition at line 107 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), ff_clean_h263_qscales(), ff_estimate_p_frame_motion(), and svq1_encode_plane().
#define CANDIDATE_MB_TYPE_INTER4V (1 << 2) |
Definition at line 108 of file mpegutils.h.
Referenced by encode_thread(), ff_clean_h263_qscales(), ff_estimate_p_frame_motion(), and ff_fix_long_p_mvs().
#define CANDIDATE_MB_TYPE_SKIPPED (1 << 3) |
Definition at line 109 of file mpegutils.h.
Referenced by encode_thread(), and ff_estimate_p_frame_motion().
#define CANDIDATE_MB_TYPE_DIRECT (1 << 4) |
Definition at line 111 of file mpegutils.h.
Referenced by encode_thread(), ff_clean_mpeg4_qscales(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_FORWARD (1 << 5) |
Definition at line 112 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BACKWARD (1 << 6) |
Definition at line 113 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BIDIR (1 << 7) |
Definition at line 114 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), ff_clean_mpeg4_qscales(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_INTER_I (1 << 8) |
Definition at line 116 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_p_frame_motion().
#define CANDIDATE_MB_TYPE_FORWARD_I (1 << 9) |
Definition at line 117 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BACKWARD_I (1 << 10) |
Definition at line 118 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_BIDIR_I (1 << 11) |
Definition at line 119 of file mpegutils.h.
Referenced by encode_picture(), encode_thread(), and ff_estimate_b_frame_motion().
#define CANDIDATE_MB_TYPE_DIRECT0 (1 << 12) |
Definition at line 121 of file mpegutils.h.
Referenced by encode_thread(), and ff_estimate_b_frame_motion().
#define INPLACE_OFFSET 16 |
Definition at line 123 of file mpegutils.h.
Referenced by estimate_best_b_count(), ff_mpeg4_encode_mb(), load_input_picture(), and select_input_picture().
enum OutputFormat |
Enumerator | |
---|---|
FMT_MPEG1 | |
FMT_H261 | |
FMT_H263 | |
FMT_MJPEG |
Definition at line 125 of file mpegutils.h.
void ff_draw_horiz_band | ( | AVCodecContext * | avctx, |
AVFrame * | cur, | ||
AVFrame * | last, | ||
int | y, | ||
int | h, | ||
int | picture_structure, | ||
int | first_field, | ||
int | low_delay | ||
) |
Draw a horizontal band if supported.
h | is the normal height, this will be reduced automatically if needed |
Definition at line 30 of file mpegutils.c.
Referenced by ff_mpeg_draw_horiz_band(), and svq3_decode_frame().