|
FFmpeg
|
Go to the source code of this file.
Macros | |
| #define | PICT_TOP_FIELD 1 |
| #define | PICT_BOTTOM_FIELD 2 |
| #define | PICT_FRAME 3 |
| #define | MAX_MB_BYTES (30 * 16 * 16 * 3 / 8 + 120) |
| #define | MB_TYPE_INTRA4x4 (1 << 0) |
| #define | MB_TYPE_INTRA16x16 (1 << 1) |
| #define | MB_TYPE_INTRA_PCM (1 << 2) |
| #define | MB_TYPE_16x16 (1 << 3) |
| #define | MB_TYPE_16x8 (1 << 4) |
| #define | MB_TYPE_8x16 (1 << 5) |
| #define | MB_TYPE_8x8 (1 << 6) |
| #define | MB_TYPE_INTERLACED (1 << 7) |
| #define | MB_TYPE_DIRECT2 (1 << 8) |
| #define | MB_TYPE_CBP (1 << 10) |
| #define | MB_TYPE_QUANT (1 << 11) |
| #define | MB_TYPE_FORWARD_MV (1 << 12) |
| #define | MB_TYPE_BACKWARD_MV (1 << 13) |
| #define | MB_TYPE_BIDIR_MV (MB_TYPE_FORWARD_MV | MB_TYPE_BACKWARD_MV) |
| #define | MB_TYPE_P0L0 (1 << 12) |
| #define | MB_TYPE_P1L0 (1 << 13) |
| #define | MB_TYPE_P0L1 (1 << 14) |
| #define | MB_TYPE_P1L1 (1 << 15) |
| #define | MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
| #define | MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
| #define | MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
| #define | MB_TYPE_GMC (1 << 16) |
| #define | MB_TYPE_SKIP (1 << 17) |
| #define | MB_TYPE_ACPRED (1 << 18) |
| #define | MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
| #define | MB_TYPE_CODEC_SPECIFIC (1 << 9) |
| #define | IS_INTRA4x4(a) |
| #define | IS_INTRA16x16(a) |
| #define | IS_PCM(a) |
| #define | IS_INTRA(a) |
| #define | IS_INTER(a) |
| #define | IS_SKIP(a) |
| #define | IS_INTRA_PCM(a) |
| #define | IS_INTERLACED(a) |
| #define | IS_DIRECT(a) |
| #define | IS_GMC(a) |
| #define | IS_16X16(a) |
| #define | IS_16X8(a) |
| #define | IS_8X16(a) |
| #define | IS_8X8(a) |
| #define | IS_ACPRED(a) |
| #define | IS_QUANT(a) |
| #define | HAS_CBP(a) |
| #define | HAS_FORWARD_MV(a) |
| #define | HAS_BACKWARD_MV(a) |
| #define | HAS_MV(a, dir) |
| #define | MB_TYPE_MV_2_MV_DIR(a) |
Functions | |
| void | ff_draw_horiz_band (AVCodecContext *avctx, const AVFrame *cur, const AVFrame *last, int y, int h, int picture_structure, int first_field, int low_delay) |
| Draw a horizontal band if supported. | |
| void | ff_print_debug_info2 (AVCodecContext *avctx, AVFrame *pict, const uint32_t *mbtype_table, const int8_t *qscale_table, int16_t(*const motion_val[2])[2], int mb_width, int mb_height, int mb_stride, int quarter_sample) |
| Print debugging info for the given picture. | |
| #define PICT_TOP_FIELD 1 |
Definition at line 31 of file mpegutils.h.
Referenced by ff_dxva2_h264_fill_picture_parameters(), ff_dxva2_vc1_fill_picture_parameters(), ff_h264_init_poc(), fill_vaapi_pic(), h264_field_start(), h264_fill_mbaff_ref_list(), h264_slice_header_parse(), h264_slice_init(), mpeg_decode_mb(), mpeg_field_start(), parse_nal_units(), vc1_decode_frame(), vdpau_h264_set_reference_frames(), vdpau_h264_set_rf(), and vk_h264_fill_pict().
| #define PICT_BOTTOM_FIELD 2 |
Definition at line 32 of file mpegutils.h.
Referenced by decode_chunks(), decode_finish_row(), decode_nal_units(), ff_dxva2_h264_fill_picture_parameters(), ff_dxva2_vc1_fill_picture_parameters(), ff_h264_direct_dist_scale_factor(), ff_h264_field_end(), ff_h264_init_poc(), ff_h264_queue_decode_slice(), ff_init_block_index(), fill_slice_long(), h264_field_start(), h264_fill_mbaff_ref_list(), h264_initialise_ref_list(), h264_slice_init(), mpeg_field_start(), nvdec_h264_start_frame(), nvdec_mpeg12_start_frame(), parse_nal_units(), pic_as_field(), slice_decode_thread(), vc1_decode_frame(), vdpau_h264_set_reference_frames(), vdpau_h264_set_rf(), vdpau_h264_start_frame(), vk_h264_fill_pict(), and vk_h264_start_frame().
| #define PICT_FRAME 3 |
Definition at line 33 of file mpegutils.h.
Referenced by commit_bitstream_and_slice_buffer(), decode_chunks(), decode_slice(), ff_draw_horiz_band(), ff_dxva2_h264_fill_picture_parameters(), ff_dxva2_mpeg2_fill_picture_parameters(), ff_dxva2_mpeg2_fill_slice(), ff_dxva2_vc1_fill_picture_parameters(), ff_h264_direct_ref_list_init(), ff_h264_draw_horiz_band(), ff_h264_execute_ref_pic_marking(), ff_h264_init_poc(), ff_h264_parse_ref_count(), ff_h264_pred_weight_table(), ff_init_block_index(), ff_intrax8_decode_picture(), ff_mpv_alloc_dummy_frames(), ff_mpv_common_defaults(), ff_mpv_frame_start(), fill_colmap(), fill_vaapi_pic(), filter_mb_dir(), h264_field_start(), h264_frame_start(), h264_slice_header_parse(), h264_slice_init(), 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(), nvdec_mpeg12_start_frame(), parse_nal_units(), pic_num_extract(), slice_decode_thread(), split_field_copy(), svq1_encode_init(), svq3_decode_frame(), update_input_arguments(), vaapi_h264_start_frame(), vaapi_mpeg2_decode_slice(), vc1_decode_frame(), vcr2_init_sequence(), vdpau_h264_start_frame(), and vk_h264_start_frame().
| #define MAX_MB_BYTES (30 * 16 * 16 * 3 / 8 + 120) |
Definition at line 35 of file mpegutils.h.
Referenced by encode_thread(), ff_mpv_encode_picture(), svq1_encode_frame(), and xvid_encode_frame().
| #define MB_TYPE_INTRA4x4 (1 << 0) |
Definition at line 38 of file mpegutils.h.
Referenced by ff_er_frame_end(), and svq3_decode_mb().
| #define MB_TYPE_INTRA16x16 (1 << 1) |
Definition at line 39 of file mpegutils.h.
Referenced by decode_cabac_intra_mb_type(), rv34_decode_intra_mb_header(), and svq3_decode_mb().
| #define MB_TYPE_INTRA_PCM (1 << 2) |
Definition at line 40 of file mpegutils.h.
Referenced by decode_cabac_intra_mb_type().
| #define MB_TYPE_16x16 (1 << 3) |
Definition at line 41 of file mpegutils.h.
Referenced by decode_mb_skip(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), filter_mb_dir(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), pred_spatial_direct_motion(), pred_temp_direct_motion(), preview_obmc(), set_direct_mv(), svq3_decode_mb(), vc1_decode_b_mb_intfi(), vc1_decode_p_mb(), and vc1_decode_p_mb_intfi().
| #define MB_TYPE_16x8 (1 << 4) |
Definition at line 42 of file mpegutils.h.
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define MB_TYPE_8x16 (1 << 5) |
Definition at line 43 of file mpegutils.h.
Referenced by filter_mb_dir(), get_dct8x8_allowed(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define MB_TYPE_8x8 (1 << 6) |
Definition at line 44 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), pred_spatial_direct_motion(), pred_temp_direct_motion(), preview_obmc(), and set_direct_mv().
| #define MB_TYPE_INTERLACED (1 << 7) |
Definition at line 45 of file mpegutils.h.
Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define MB_TYPE_DIRECT2 (1 << 8) |
Definition at line 46 of file mpegutils.h.
Referenced by decode_cabac_mb_ref(), decode_mb_skip(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), pred_spatial_direct_motion(), pred_temp_direct_motion(), and set_direct_mv().
| #define MB_TYPE_CBP (1 << 10) |
Definition at line 47 of file mpegutils.h.
Referenced by mpeg_decode_mb().
| #define MB_TYPE_QUANT (1 << 11) |
Definition at line 48 of file mpegutils.h.
Referenced by mpeg_decode_mb().
| #define MB_TYPE_FORWARD_MV (1 << 12) |
Definition at line 49 of file mpegutils.h.
Referenced by ff_er_frame_end(), ff_h263_decode_mb(), ff_print_debug_info2(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), preview_obmc(), and rv34_pred_mv_b().
| #define MB_TYPE_BACKWARD_MV (1 << 13) |
Definition at line 50 of file mpegutils.h.
Referenced by ff_print_debug_info2(), and rv34_pred_mv_b().
| #define MB_TYPE_BIDIR_MV (MB_TYPE_FORWARD_MV | MB_TYPE_BACKWARD_MV) |
Definition at line 51 of file mpegutils.h.
Referenced by ff_mpeg4_set_direct_mv(), mpeg4_decode_mb(), mpeg_decode_mb(), and set_direct_mv().
| #define MB_TYPE_P0L0 (1 << 12) |
Definition at line 53 of file mpegutils.h.
Referenced by decode_mb_skip(), and pred_temp_direct_motion().
| #define MB_TYPE_P1L0 (1 << 13) |
Definition at line 54 of file mpegutils.h.
Referenced by decode_mb_skip(), and pred_spatial_direct_motion().
| #define MB_TYPE_P0L1 (1 << 14) |
Definition at line 55 of file mpegutils.h.
Referenced by pred_temp_direct_motion().
| #define MB_TYPE_P1L1 (1 << 15) |
Definition at line 56 of file mpegutils.h.
Referenced by pred_spatial_direct_motion().
| #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
Definition at line 57 of file mpegutils.h.
Referenced by ff_er_frame_end(), ff_print_debug_info2(), and pred_spatial_direct_motion().
| #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
Definition at line 58 of file mpegutils.h.
Referenced by ff_print_debug_info2().
| #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
Definition at line 59 of file mpegutils.h.
Referenced by decode_mb_skip(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define MB_TYPE_GMC (1 << 16) |
Definition at line 60 of file mpegutils.h.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partition_a().
| #define MB_TYPE_SKIP (1 << 17) |
Definition at line 61 of file mpegutils.h.
Referenced by decode_mb_skip(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), fill_decode_caches(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), preview_obmc(), svq3_decode_mb(), vc1_decode_b_mb_intfr(), vc1_decode_p_mb(), and vc1_decode_p_mb_intfr().
| #define MB_TYPE_ACPRED (1 << 18) |
Definition at line 62 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), mpeg4_decode_mb(), and mpeg4_decode_partition_b().
| #define MB_TYPE_INTRA MB_TYPE_INTRA4x4 |
Definition at line 64 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), 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 MB_TYPE_CODEC_SPECIFIC (1 << 9) |
Definition at line 67 of file mpegutils.h.
| #define IS_INTRA4x4 | ( | a | ) |
Definition at line 69 of file mpegutils.h.
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), fill_decode_caches(), get_type_mv_char(), h261_decode_mb(), hl_decode_mb_idct_luma(), hl_decode_mb_idct_luma(), hl_decode_mb_predict_luma(), hl_decode_mb_predict_luma(), and svq3_decode_mb().
| #define IS_INTRA16x16 | ( | a | ) |
Definition at line 70 of file mpegutils.h.
Referenced by decode_cabac_luma_residual(), decode_luma_residual(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), get_type_mv_char(), hl_decode_mb_idct_luma(), rv34_decode_inter_mb_header(), and svq3_decode_mb().
| #define IS_PCM | ( | a | ) |
Definition at line 71 of file mpegutils.h.
Referenced by get_type_mv_char().
| #define IS_INTRA | ( | a | ) |
Definition at line 72 of file mpegutils.h.
| #define IS_INTER | ( | a | ) |
Definition at line 73 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 | ) |
Definition at line 75 of file mpegutils.h.
Referenced by decode_cabac_mb_skip(), ff_h263_loop_filter(), fill_decode_caches(), get_type_mv_char(), mpeg4_decode_mb(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), parse_mb_skip(), rv34_decode_mv(), svq3_decode_mb(), wmv2_decode_mb(), and write_back_motion_list().
| #define IS_INTRA_PCM | ( | a | ) |
Definition at line 76 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 | ) |
Definition at line 77 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(), get_interlacement_char(), loop_filter(), pred_spatial_direct_motion(), pred_temp_direct_motion(), and predict_field_decoding_flag().
| #define IS_DIRECT | ( | a | ) |
Definition at line 78 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), fill_decode_caches(), fill_filter_caches_inter(), get_type_mv_char(), mpeg4_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define IS_GMC | ( | a | ) |
Definition at line 79 of file mpegutils.h.
Referenced by get_type_mv_char().
| #define IS_16X16 | ( | a | ) |
Definition at line 80 of file mpegutils.h.
Referenced by await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), get_segmentation_char(), h261_decode_mb(), h261_encode_mb(), hl_decode_mb(), hl_decode_mb_444(), hl_motion(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
| #define IS_16X8 | ( | a | ) |
Definition at line 81 of file mpegutils.h.
Referenced by add_mb(), await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), get_segmentation_char(), hl_motion(), and rv34_decode_mv().
| #define IS_8X16 | ( | a | ) |
Definition at line 82 of file mpegutils.h.
Referenced by add_mb(), await_references(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_print_debug_info2(), get_segmentation_char(), hl_motion(), and rv34_decode_mv().
| #define IS_8X8 | ( | a | ) |
Definition at line 83 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(), get_segmentation_char(), hl_motion(), mpeg4_decode_partitioned_mb(), pred_spatial_direct_motion(), pred_temp_direct_motion(), rv34_decode_mv(), set_direct_mv(), and write_back_motion().
| #define IS_ACPRED | ( | a | ) |
Definition at line 84 of file mpegutils.h.
Referenced by get_type_mv_char(), and mpeg4_decode_partitioned_mb().
| #define IS_QUANT | ( | a | ) |
Definition at line 85 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), h261_decode_mb(), h261_encode_mb(), and mpeg_decode_mb().
| #define HAS_CBP | ( | a | ) |
Definition at line 87 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), h261_decode_mb(), h261_encode_mb(), and mpeg_decode_mb().
| #define HAS_FORWARD_MV | ( | a | ) |
Definition at line 88 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), and mpeg4_decode_mb().
| #define HAS_BACKWARD_MV | ( | a | ) |
Definition at line 89 of file mpegutils.h.
Referenced by ff_h263_decode_mb(), and mpeg4_decode_mb().
| #define HAS_MV | ( | a, | |
| dir ) |
Definition at line 91 of file mpegutils.h.
Referenced by mpeg_decode_mb().
| #define MB_TYPE_MV_2_MV_DIR | ( | a | ) |
| void ff_draw_horiz_band | ( | AVCodecContext * | avctx, |
| const AVFrame * | cur, | ||
| const 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 54 of file mpegutils.c.
Referenced by ff_intrax8_decode_picture(), ff_mpeg_draw_horiz_band(), and svq3_decode_frame().
| void ff_print_debug_info2 | ( | AVCodecContext * | avctx, |
| AVFrame * | pict, | ||
| const uint32_t * | mbtype_table, | ||
| const int8_t * | qscale_table, | ||
| int16_t(*[2]) | motion_val[2], | ||
| int | mb_width, | ||
| int | mb_height, | ||
| int | mb_stride, | ||
| int | quarter_sample ) |
Print debugging info for the given picture.
Definition at line 155 of file mpegutils.c.
Referenced by ff_print_debug_info(), and finalize_frame().