Go to the documentation of this file.
37 (((int64_t)
s->picture_number * 30 *
s->avctx->time_base.num) /
38 s->avctx->time_base.den) & 0xff);
39 if (
s->width == 352 &&
s->height == 288)
41 else if (
s->width == 176 &&
s->height == 144)
43 else if (
s->width == 128 &&
s->height == 96)
45 else if (
s->width == 320 &&
s->height == 240)
47 else if (
s->width == 160 &&
s->height == 120)
49 else if (
s->width <= 255 &&
s->height <= 255)
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
AVPixelFormat
Pixel format.
static void align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
const uint8_t ff_mpeg1_dc_scale_table[128]
static void put_sbits(PutBitContext *pb, int n, int32_t value)
void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number)
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
int ff_mpv_encode_init(AVCodecContext *avctx)
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static enum AVPixelFormat pix_fmts[]
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int ff_mpv_encode_end(AVCodecContext *avctx)
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 AVCodec ff_flv_encoder
const uint8_t ff_aic_dc_scale_table[32]
@ AV_PICTURE_TYPE_P
Predicted.
const AVClass ff_mpv_enc_class