Go to the documentation of this file.
38 (((
int64_t)
s->picture_number * 30 *
s->avctx->time_base.num) /
39 s->avctx->time_base.den) & 0xff);
40 if (
s->width == 352 &&
s->height == 288)
42 else if (
s->width == 176 &&
s->height == 144)
44 else if (
s->width == 128 &&
s->height == 96)
46 else if (
s->width == 320 &&
s->height == 240)
48 else if (
s->width == 160 &&
s->height == 120)
50 else if (
s->width <= 255 &&
s->height <= 255)
AVPixelFormat
Pixel format.
const AVClass ff_mpv_enc_class
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static void align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
static void put_sbits(PutBitContext *pb, int n, int32_t value)
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
const FFCodec ff_flv_encoder
void ff_flv_encode_picture_header(MpegEncContext *s)
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet)
AVCodec p
The public AVCodec.
#define FF_CODEC_ENCODE_CB(func)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample format(the sample packing is implied by the sample format) and sample rate. The lists are not just lists
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
static const uint8_t *const ff_mpeg1_dc_scale_table
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define CODEC_LONG_NAME(str)
av_cold int ff_mpv_encode_end(AVCodecContext *avctx)
int(* init)(AVBSFContext *ctx)
const char * name
Name of the codec implementation.
void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run, int last)
const uint8_t ff_aic_dc_scale_table[32]
@ AV_PICTURE_TYPE_P
Predicted.
av_cold int ff_mpv_encode_init(AVCodecContext *avctx)