FFmpeg
|
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 "motion_est.h"
#include "mpegvideodsp.h"
#include "mpegvideoencdsp.h"
#include "pixblockdsp.h"
#include "put_bits.h"
#include "ratecontrol.h"
#include "parser.h"
#include "mpegutils.h"
#include "mpeg12data.h"
#include "qpeldsp.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 | ScratchpadContext |
struct | MpegEncContext |
MpegEncContext. More... | |
Macros | |
#define | FRAME_SKIPPED 100 |
return value for header parsers if frame is not coded More... | |
#define | MAX_FCODE 7 |
#define | MAX_THREADS 32 |
#define | MAX_PICTURE_COUNT 36 |
#define | MAX_B_FRAMES 16 |
#define | ME_MAP_SIZE 64 |
#define | MAX_MB_BYTES (30*16*16*3/8 + 120) |
#define | INPLACE_OFFSET 16 |
#define | EDGE_WIDTH 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 | 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 | UNI_AC_ENC_INDEX(run, level) ((run)*128 + (level)) |
#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 | 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_FLAG_NAQ 0x0010 |
#define | FF_MPV_FLAG_MV0 0x0020 |
#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) |
Variables | |
const AVOption | ff_mpv_generic_options [] |
mpegvideo header.
Definition in file mpegvideo.h.
#define FRAME_SKIPPED 100 |
return value for header parsers if frame is not coded
Definition at line 59 of file mpegvideo.h.
Referenced by ff_h263_decode_frame(), ff_intel_h263_decode_picture_header(), and ff_mpeg4_decode_picture_header().
#define MAX_FCODE 7 |
Definition at line 61 of file mpegvideo.h.
Referenced by ff_mpeg1_encode_init(), and init_mv_penalty_and_fcode().
#define MAX_THREADS 32 |
Definition at line 63 of file mpegvideo.h.
#define MAX_PICTURE_COUNT 36 |
Definition at line 64 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().
#define MAX_B_FRAMES 16 |
Definition at line 66 of file mpegvideo.h.
Referenced by ff_mpv_encode_init().
#define ME_MAP_SIZE 64 |
Definition at line 68 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().
#define MAX_MB_BYTES (30*16*16*3/8 + 120) |
Definition at line 70 of file mpegvideo.h.
Referenced by encode_thread(), ff_mpv_encode_picture(), svq1_encode_frame(), and xvid_encode_frame().
#define INPLACE_OFFSET 16 |
Definition at line 72 of file mpegvideo.h.
Referenced by estimate_best_b_count(), ff_mpeg4_encode_mb(), load_input_picture(), and select_input_picture().
#define EDGE_WIDTH 16 |
Definition at line 74 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().
#define SEQ_END_CODE 0x000001b7 |
Definition at line 77 of file mpegvideo.h.
Referenced by ff_mpeg1_find_frame_end(), and mpeg_decode_frame().
#define SEQ_START_CODE 0x000001b3 |
Definition at line 78 of file mpegvideo.h.
Referenced by decode_chunks(), ff_mpeg1_find_frame_end(), mpeg1_encode_sequence_header(), and mpegvideo_extract_headers().
#define GOP_START_CODE 0x000001b8 |
Definition at line 79 of file mpegvideo.h.
Referenced by decode_chunks(), and mpeg1_encode_sequence_header().
#define PICTURE_START_CODE 0x00000100 |
Definition at line 80 of file mpegvideo.h.
Referenced by decode_chunks(), ff_mpeg1_encode_picture_header(), ff_mpeg1_find_frame_end(), and mpegvideo_extract_headers().
#define SLICE_MIN_START_CODE 0x00000101 |
Definition at line 81 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().
#define SLICE_MAX_START_CODE 0x000001af |
Definition at line 82 of file mpegvideo.h.
#define EXT_START_CODE 0x000001b5 |
Definition at line 83 of file mpegvideo.h.
#define USER_START_CODE 0x000001b2 |
Definition at line 84 of file mpegvideo.h.
#define MV_DIR_FORWARD 1 |
Definition at line 329 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().
#define MV_DIR_BACKWARD 2 |
Definition at line 330 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().
#define MV_DIRECT 4 |
bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
Definition at line 331 of file mpegvideo.h.
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
Definition at line 333 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().
#define MV_TYPE_8X8 1 |
4 vectors (h263, mpeg4 4MV)
Definition at line 334 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().
#define MV_TYPE_16X8 2 |
2 vectors, one per 16x8 block
Definition at line 335 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().
#define MV_TYPE_FIELD 3 |
2 vectors, one per field
Definition at line 336 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().
#define MV_TYPE_DMV 4 |
2 vectors, special mpeg2 Dual Prime Vectors
Definition at line 337 of file mpegvideo.h.
Referenced by ff_xvmc_decode_mb(), mpeg_decode_mb(), mpv_motion_internal(), and MPV_motion_lowres().
Definition at line 384 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().
#define CHROMA_420 1 |
Definition at line 534 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().
#define CHROMA_422 2 |
Definition at line 535 of file mpegvideo.h.
Referenced by encode_mb(), encode_mb_internal(), and ff_mpv_encode_init().
#define CHROMA_444 3 |
Definition at line 536 of file mpegvideo.h.
Referenced by encode_mb_internal(), ff_mjpeg_encode_mb(), and ff_mpv_encode_init().
#define SLICE_OK 0 |
Definition at line 561 of file mpegvideo.h.
Referenced by ff_h263_decode_mb(), h261_decode_mb(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), and rv10_decode_packet().
#define SLICE_ERROR -1 |
Definition at line 562 of file mpegvideo.h.
Referenced by h261_decode_mb(), and rv10_decode_packet().
#define SLICE_END -2 |
end marker found
Definition at line 563 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().
#define SLICE_NOEND -3 |
no end marker or error found but mb count exceeded
Definition at line 564 of file mpegvideo.h.
Referenced by decode_slice(), and mpeg4_decode_partitioned_mb().
#define FF_MPV_FLAG_SKIP_RD 0x0001 |
Definition at line 619 of file mpegvideo.h.
Referenced by encode_thread().
#define FF_MPV_FLAG_STRICT_GOP 0x0002 |
Definition at line 620 of file mpegvideo.h.
Referenced by select_input_picture().
#define FF_MPV_FLAG_QP_RD 0x0004 |
Definition at line 621 of file mpegvideo.h.
Referenced by encode_mb_internal(), encode_thread(), and ff_mpv_encode_init().
#define FF_MPV_FLAG_CBP_RD 0x0008 |
Definition at line 622 of file mpegvideo.h.
Referenced by encode_mb_internal(), ff_mpv_encode_init(), get_b_cbp(), and get_p_cbp().
#define FF_MPV_FLAG_NAQ 0x0010 |
Definition at line 623 of file mpegvideo.h.
Referenced by adaptive_quantization(), and ff_mpv_encode_init().
#define FF_MPV_FLAG_MV0 0x0020 |
Definition at line 624 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().
#define FF_MPV_OFFSET | ( | x | ) | offsetof(MpegEncContext, x) |
Definition at line 627 of file mpegvideo.h.
#define FF_MPV_OPT_FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
Definition at line 629 of file mpegvideo.h.
#define FF_MPV_COMMON_OPTS |
Definition at line 630 of file mpegvideo.h.
#define FF_MPV_GENERIC_CLASS | ( | name | ) |
Definition at line 662 of file mpegvideo.h.
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.
Definition at line 1031 of file mpegvideo.c.
Referenced by ff_mpv_decode_defaults(), and mpv_encode_defaults().
void ff_dct_encode_init_x86 | ( | MpegEncContext * | s | ) |
Definition at line 200 of file mpegvideoenc.c.
Referenced by ff_dct_encode_init().
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
Definition at line 1234 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().
void ff_mpv_common_init_arm | ( | MpegEncContext * | s | ) |
Definition at line 43 of file mpegvideo_arm.c.
Referenced by dct_init().
void ff_mpv_common_init_axp | ( | MpegEncContext * | s | ) |
Definition at line 106 of file mpegvideo_alpha.c.
Referenced by dct_init().
void ff_mpv_common_init_neon | ( | MpegEncContext * | s | ) |
Definition at line 126 of file mpegvideo.c.
Referenced by dct_init().
void ff_mpv_common_init_ppc | ( | MpegEncContext * | s | ) |
Definition at line 117 of file mpegvideo_altivec.c.
Referenced by dct_init().
void ff_mpv_common_init_x86 | ( | MpegEncContext * | s | ) |
Definition at line 447 of file mpegvideo.c.
Referenced by dct_init().
int ff_mpv_common_frame_size_change | ( | MpegEncContext * | s | ) |
Definition at line 1395 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().
void ff_mpv_common_end | ( | MpegEncContext * | s | ) |
Definition at line 1474 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().
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.
Definition at line 1054 of file mpegvideo.c.
Referenced by ff_h263_decode_init(), ff_rv34_decode_init(), h261_decode_init(), mpeg_decode_init(), and rv10_decode_init().
void ff_mpv_decode_init | ( | MpegEncContext * | s, |
AVCodecContext * | avctx | ||
) |
Definition at line 1059 of file mpegvideo.c.
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] | ||
) |
Definition at line 3129 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().
void ff_mpv_report_decode_progress | ( | MpegEncContext * | s | ) |
Definition at line 3254 of file mpegvideo.c.
Referenced by decode_slice(), and mpeg_decode_slice().
int ff_mpv_frame_start | ( | MpegEncContext * | s, |
AVCodecContext * | avctx | ||
) |
generic function called after decoding the header and before a frame is decoded.
Definition at line 1611 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().
void ff_mpv_frame_end | ( | MpegEncContext * | s | ) |
Definition at line 1838 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().
int ff_mpv_lowest_referenced_row | ( | MpegEncContext * | s, |
int | dir | ||
) |
find the lowest MB row referenced in the MVs
Definition at line 2775 of file mpegvideo.c.
Referenced by mpv_decode_mb_internal().
int ff_mpv_encode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 257 of file mpegvideo_enc.c.
Referenced by encode_init(), and wmv2_encode_init().
void ff_mpv_encode_init_x86 | ( | MpegEncContext * | s | ) |
int ff_mpv_encode_end | ( | AVCodecContext * | avctx | ) |
Definition at line 1003 of file mpegvideo_enc.c.
Referenced by ff_mpv_encode_init(), and mpeg12_class().
int ff_mpv_encode_picture | ( | AVCodecContext * | avctx, |
AVPacket * | pkt, | ||
const AVFrame * | frame, | ||
int * | got_packet | ||
) |
Definition at line 1711 of file mpegvideo_enc.c.
Referenced by amv_encode_picture(), and mpeg12_class().
int ff_mpv_reallocate_putbitbuffer | ( | MpegEncContext * | s, |
size_t | threshold, | ||
size_t | size_increase | ||
) |
Definition at line 2731 of file mpegvideo_enc.c.
Referenced by encode_thread(), and ff_mjpeg_encode_stuffing().
void ff_clean_intra_table_entries | ( | MpegEncContext * | s | ) |
Clean dc, ac, coded_block for the current non-intra MB.
Definition at line 2840 of file mpegvideo.c.
Referenced by encode_thread(), mpeg4_decode_partition_a(), and mpv_decode_mb_internal().
void ff_mpeg_draw_horiz_band | ( | MpegEncContext * | s, |
int | y, | ||
int | h | ||
) |
Definition at line 3141 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().
void ff_mpeg_flush | ( | AVCodecContext * | avctx | ) |
Definition at line 3209 of file mpegvideo.c.
Referenced by decode_wmv9(), and flush().
void ff_print_debug_info | ( | MpegEncContext * | s, |
Picture * | p, | ||
AVFrame * | pict | ||
) |
Definition at line 2370 of file mpegvideo.c.
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, |
AVFrame * | pict, | ||
uint8_t * | mbskip_table, | ||
uint32_t * | mbtype_table, | ||
int8_t * | qscale_table, | ||
int16_t(*[2]) | motion_val[2], | ||
int * | low_delay, | ||
int | mb_width, | ||
int | mb_height, | ||
int | mb_stride, | ||
int | quarter_sample | ||
) |
Print debugging info for the given picture.
Definition at line 1993 of file mpegvideo.c.
Referenced by ff_print_debug_info(), and h264_decode_frame().
int ff_mpv_export_qp_table | ( | MpegEncContext * | s, |
AVFrame * | f, | ||
Picture * | p, | ||
int | qp_type | ||
) |
Definition at line 2377 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), finish_frame(), rv10_decode_frame(), and slice_end().
void ff_write_quant_matrix | ( | PutBitContext * | pb, |
uint16_t * | matrix | ||
) |
Definition at line 172 of file mpegvideo_enc.c.
Referenced by mpeg1_encode_sequence_header(), and mpeg4_encode_vol_header().
int ff_find_unused_picture | ( | AVCodecContext * | avctx, |
Picture * | picture, | ||
int | shared | ||
) |
Definition at line 1577 of file mpegvideo.c.
Referenced by ff_h263_decode_frame(), ff_mpv_frame_start(), load_input_picture(), and select_input_picture().
int ff_update_duplicate_context | ( | MpegEncContext * | dst, |
MpegEncContext * | src | ||
) |
Definition at line 852 of file mpegvideo.c.
Referenced by decode_chunks(), and encode_picture().
int ff_mpeg_update_thread_context | ( | AVCodecContext * | dst, |
const AVCodecContext * | src | ||
) |
Definition at line 880 of file mpegvideo.c.
Referenced by ff_rv34_decode_update_thread_context(), mpeg4_update_thread_context(), and mpeg_decode_update_thread_context().
void ff_set_qscale | ( | MpegEncContext * | s, |
int | qscale | ||
) |
set qscale and update qscale dependent variables.
Definition at line 3240 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().
void ff_mpv_idct_init | ( | MpegEncContext * | s | ) |
Definition at line 346 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().
int ff_dct_encode_init | ( | MpegEncContext * | s | ) |
Definition at line 239 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), and ff_mpv_encode_init().
void ff_convert_matrix | ( | MpegEncContext * | s, |
int(*) | qmat[64], | ||
uint16_t(*) | qmat16[2][64], | ||
const uint16_t * | quant_matrix, | ||
int | bias, | ||
int | qmin, | ||
int | qmax, | ||
int | intra | ||
) |
Definition at line 83 of file mpegvideo_enc.c.
Referenced by dnxhd_init_qmat(), encode_picture(), and ff_mpv_encode_init().
int ff_dct_quantize_c | ( | MpegEncContext * | s, |
int16_t * | block, | ||
int | n, | ||
int | qscale, | ||
int * | overflow | ||
) |
Definition at line 4492 of file mpegvideo_enc.c.
Referenced by dnxhd_encode_init(), encode_mb_internal(), and ff_dct_encode_init().
void ff_init_block_index | ( | MpegEncContext * | s | ) |
Definition at line 3148 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().
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] | ||
) |
Definition at line 975 of file mpegvideo_motion.c.
Referenced by encode_mb_internal(), and mpv_decode_mb_internal().
int ff_alloc_picture | ( | AVCodecContext * | avctx, |
Picture * | pic, | ||
MotionEstContext * | me, | ||
ScratchpadContext * | sc, | ||
int | shared, | ||
int | encoding, | ||
int | chroma_x_shift, | ||
int | chroma_y_shift, | ||
int | out_format, | ||
int | mb_stride, | ||
int | mb_width, | ||
int | mb_height, | ||
int | b8_stride, | ||
ptrdiff_t * | linesize, | ||
ptrdiff_t * | uvlinesize | ||
) |
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 585 of file mpegvideo.c.
Referenced by alloc_picture().
int ff_mpeg_framesize_alloc | ( | AVCodecContext * | avctx, |
MotionEstContext * | me, | ||
ScratchpadContext * | sc, | ||
int | linesize | ||
) |
Definition at line 364 of file mpegvideo.c.
Referenced by alloc_frame_buffer(), ff_mpeg_update_thread_context(), and ff_update_duplicate_context().
void ff_block_permute | ( | int16_t * | block, |
uint8_t * | permutation, | ||
const uint8_t * | scantable, | ||
int | last | ||
) |
permute block according to permuatation.
last | last non zero element in scantable order |
permute block according to permuatation.
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! |
Definition at line 3188 of file mpegvideo.c.
Referenced by ff_dct_quantize_c().
|
inlinestatic |
Definition at line 759 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().
|
inlinestatic |
Definition at line 773 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().
int ff_rv10_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Definition at line 31 of file rv10enc.c.
Referenced by encode_picture().
int ff_rv_decode_dc | ( | MpegEncContext * | s, |
int | n | ||
) |
Definition at line 196 of file rv10.c.
Referenced by h263_decode_block().
void ff_rv20_encode_picture_header | ( | MpegEncContext * | s, |
int | picture_number | ||
) |
Definition at line 33 of file rv20enc.c.
Referenced by encode_picture().
int ff_mpeg_ref_picture | ( | AVCodecContext * | avctx, |
Picture * | dst, | ||
Picture * | src | ||
) |
Definition at line 715 of file mpegvideo.c.
Referenced by ff_mpeg_update_thread_context(), ff_mpv_frame_start(), frame_start(), and select_input_picture().
void ff_mpeg_unref_picture | ( | AVCodecContext * | avctx, |
Picture * | picture | ||
) |
Deallocate a picture.
Definition at line 648 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 485 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().
const AVOption ff_mpv_generic_options[] |
Definition at line 78 of file mpegvideo_enc.c.