|
FFmpeg
|
The simplest mpeg encoder (well, it was the simplest!). More...
#include <stdint.h>#include "libavutil/internal.h"#include "libavutil/intmath.h"#include "libavutil/mathematics.h"#include "libavutil/pixdesc.h"#include "libavutil/opt.h"#include "libavutil/timer.h"#include "avcodec.h"#include "dct.h"#include "idctdsp.h"#include "mpeg12.h"#include "mpegvideo.h"#include "mpegvideodata.h"#include "h261.h"#include "h263.h"#include "h263data.h"#include "mjpegenc_common.h"#include "mathops.h"#include "mpegutils.h"#include "mjpegenc.h"#include "msmpeg4.h"#include "pixblockdsp.h"#include "qpeldsp.h"#include "faandct.h"#include "thread.h"#include "aandcttab.h"#include "flv.h"#include "mpeg4video.h"#include "internal.h"#include "bytestream.h"#include "wmv2.h"#include "rv10.h"#include "libxvid.h"#include <limits.h>#include "sp5x.h"Macros | |
| #define | QUANT_BIAS_SHIFT 8 |
| #define | QMAT_SHIFT_MMX 16 |
| #define | QMAT_SHIFT 21 |
| #define | COPY(a) dst->a= src->a |
| #define | MERGE(field) dst->field += src->field; src->field=0 |
| #define | OFFSET(x) offsetof(MpegEncContext, x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| 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) |
| void | ff_write_quant_matrix (PutBitContext *pb, uint16_t *matrix) |
| void | ff_init_qscale_tab (MpegEncContext *s) |
| init s->current_picture.qscale_table from s->lambda_table | |
| av_cold int | ff_dct_encode_init (MpegEncContext *s) |
| av_cold int | ff_mpv_encode_init (AVCodecContext *avctx) |
| av_cold int | ff_mpv_encode_end (AVCodecContext *avctx) |
| int | ff_mpv_encode_picture (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet) |
| int | ff_mpv_reallocate_putbitbuffer (MpegEncContext *s, size_t threshold, size_t size_increase) |
| void | ff_block_permute (int16_t *block, uint8_t *permutation, const uint8_t *scantable, int last) |
| Permute an 8x8 block according to permutation. More... | |
| int | ff_dct_quantize_c (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow) |
Variables | |
| const AVOption | ff_mpv_generic_options [] |
| AVCodec | ff_h263_encoder |
| AVCodec | ff_h263p_encoder |
| AVCodec | ff_msmpeg4v2_encoder |
| AVCodec | ff_msmpeg4v3_encoder |
| AVCodec | ff_wmv1_encoder |
The simplest mpeg encoder (well, it was the simplest!).
| 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! |
| AVCodec ff_h263_encoder |
| AVCodec ff_h263p_encoder |
| const AVOption ff_mpv_generic_options[] |
| AVCodec ff_msmpeg4v2_encoder |
| AVCodec ff_msmpeg4v3_encoder |
| AVCodec ff_wmv1_encoder |
1.8.12