|
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 "internal.h"#include "me_cmp.h"#include "motion_est.h"#include "mpegpicture.h"#include "mpegvideodsp.h"#include "mpegvideoencdsp.h"#include "mpegvideodata.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.
Classes | |
| struct | MpegEncContext |
| MpegEncContext. More... | |
Macros | |
| #define | MAX_THREADS 32 |
| #define | MAX_B_FRAMES 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 | SLICE_START_CODE 0x000001b7 |
| #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 (MPEG-4) | |
| #define | MV_TYPE_16X16 0 |
| 1 vector for the whole mb | |
| #define | MV_TYPE_8X8 1 |
| 4 vectors (H.263, MPEG-4 4MV) | |
| #define | MV_TYPE_16X8 2 |
| 2 vectors, one per 16x8 block | |
| #define | MV_TYPE_FIELD 3 |
| 2 vectors, one per field | |
| #define | MV_TYPE_DMV 4 |
| 2 vectors, special mpeg2 Dual Prime Vectors | |
| #define | UNI_AC_ENC_INDEX(run, level) ((run)*128 + (level)) |
| #define | VIDEO_FORMAT_COMPONENT 0 |
| #define | VIDEO_FORMAT_PAL 1 |
| #define | VIDEO_FORMAT_NTSC 2 |
| #define | VIDEO_FORMAT_SECAM 3 |
| #define | VIDEO_FORMAT_MAC 4 |
| #define | VIDEO_FORMAT_UNSPECIFIED 5 |
| #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 | |
| #define | SLICE_NOEND -3 |
| no end marker or error found but mb count exceeded | |
| #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_OPT_CMP_FUNC |
| #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 |
Typedefs | |
| typedef struct MpegEncContext | MpegEncContext |
| MpegEncContext. | |
Enumerations | |
| enum | rc_strategy { MPV_RC_STRATEGY_FFMPEG, MPV_RC_STRATEGY_XVID, NB_MPV_RC_STRATEGY } |
Functions | |
| void | ff_mpv_common_defaults (MpegEncContext *s) |
| Set the given MpegEncContext to common defaults (same for encoding and decoding). More... | |
| void | ff_dct_encode_init_x86 (MpegEncContext *s) |
| int | ff_mpv_common_init (MpegEncContext *s) |
| init common structure for both encoder and decoder. More... | |
| void | ff_mpv_common_init_arm (MpegEncContext *s) |
| void | ff_mpv_common_init_axp (MpegEncContext *s) |
| void | ff_mpv_common_init_neon (MpegEncContext *s) |
| void | ff_mpv_common_init_ppc (MpegEncContext *s) |
| void | ff_mpv_common_init_x86 (MpegEncContext *s) |
| void | ff_mpv_common_init_mips (MpegEncContext *s) |
| int | ff_mpv_common_frame_size_change (MpegEncContext *s) |
| void | ff_mpv_common_end (MpegEncContext *s) |
| void | ff_mpv_decode_defaults (MpegEncContext *s) |
| Set the given MpegEncContext to defaults for decoding. More... | |
| void | ff_mpv_decode_init (MpegEncContext *s, AVCodecContext *avctx) |
| void | ff_mpv_reconstruct_mb (MpegEncContext *s, int16_t block[12][64]) |
| void | ff_mpv_report_decode_progress (MpegEncContext *s) |
| int | ff_mpv_frame_start (MpegEncContext *s, AVCodecContext *avctx) |
| generic function called after decoding the header and before a frame is decoded. | |
| void | ff_mpv_frame_end (MpegEncContext *s) |
| int | ff_mpv_encode_init (AVCodecContext *avctx) |
| void | ff_mpv_encode_init_x86 (MpegEncContext *s) |
| int | ff_mpv_encode_end (AVCodecContext *avctx) |
| int | ff_mpv_encode_picture (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
| int | ff_mpv_reallocate_putbitbuffer (MpegEncContext *s, size_t threshold, size_t size_increase) |
| void | ff_clean_intra_table_entries (MpegEncContext *s) |
| Clean dc, ac, coded_block for the current non-intra MB. | |
| void | ff_mpeg_draw_horiz_band (MpegEncContext *s, int y, int h) |
| void | ff_mpeg_flush (AVCodecContext *avctx) |
| void | ff_print_debug_info (MpegEncContext *s, Picture *p, AVFrame *pict) |
| int | ff_mpv_export_qp_table (MpegEncContext *s, AVFrame *f, Picture *p, int qp_type) |
| void | ff_write_quant_matrix (PutBitContext *pb, uint16_t *matrix) |
| int | ff_update_duplicate_context (MpegEncContext *dst, MpegEncContext *src) |
| int | ff_mpeg_update_thread_context (AVCodecContext *dst, const AVCodecContext *src) |
| void | ff_set_qscale (MpegEncContext *s, int qscale) |
| set qscale and update qscale dependent variables. | |
| void | ff_mpv_idct_init (MpegEncContext *s) |
| int | ff_dct_encode_init (MpegEncContext *s) |
| 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) |
| int | ff_dct_quantize_c (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow) |
| void | ff_block_permute (int16_t *block, uint8_t *permutation, const uint8_t *scantable, int last) |
| Permute an 8x8 block according to permutation. More... | |
| void | ff_init_block_index (MpegEncContext *s) |
| 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]) |
Variables | |
| const AVOption | ff_mpv_generic_options [] |
mpegvideo header.
| #define FF_MPV_OPT_CMP_FUNC |
| void ff_block_permute | ( | int16_t * | block, |
| uint8_t * | permutation, | ||
| const uint8_t * | scantable, | ||
| int | last | ||
| ) |
Permute an 8x8 block according to permutation.
| 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! |
| 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.
| 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
| 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.
1.8.12