Go to the documentation of this file.
38 (((
int64_t)
s->c.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)
#define CODEC_PIXFMTS(...)
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 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
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)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define CODEC_LONG_NAME(str)
New swscale design to change SwsGraph is what coordinates multiple passes These can include cascaded scaling error diffusion and so on Or we could have separate passes for the vertical and horizontal scaling In between each SwsPass lies a fully allocated image buffer Graph passes may have different levels of e g we can have a single threaded error diffusion pass following a multi threaded scaling pass SwsGraph is internally recreated whenever the image format
av_cold int ff_mpv_encode_end(AVCodecContext *avctx)
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static void put_bits_assume_flushed(const PutBitContext *s)
Inform the compiler that a PutBitContext is flushed (i.e.
const char * name
Name of the codec implementation.
int ff_flv_encode_picture_header(MPVMainEncContext *const m)
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run, int last)
@ AV_PICTURE_TYPE_P
Predicted.
av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
MPVEncContext s
The main slicecontext.