38 (((
int64_t)
s->picture_number * 30 *
s->c.avctx->time_base.num) /
39 s->c.avctx->time_base.den) & 0xff);
40 if (
s->c.width == 352 &&
s->c.height == 288)
42 else if (
s->c.width == 176 &&
s->c.height == 144)
44 else if (
s->c.width == 128 &&
s->c.height == 96)
46 else if (
s->c.width == 320 &&
s->c.height == 240)
48 else if (
s->c.width == 160 &&
s->c.height == 120)
50 else if (
s->c.width <= 255 &&
s->c.height <= 255)
static const char *const format[]
const FFCodec ff_flv_encoder
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
@ AV_PICTURE_TYPE_P
Predicted.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
int ff_flv_encode_picture_header(MPVMainEncContext *const m)
const AVClass ff_mpv_enc_class
av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet)
av_cold int ff_mpv_encode_end(AVCodecContext *avctx)
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
static void put_bits_assume_flushed(const PutBitContext *s)
Inform the compiler that a PutBitContext is flushed (i.e.
MPVEncContext s
The main slicecontext.