Go to the documentation of this file.
69 s->unrestricted_mv =
s->obmc ||
s->h263_long_vectors;
75 s->avctx->sample_aspect_ratio.num = 12;
76 s->avctx->sample_aspect_ratio.den = 11;
101 s->avctx->sample_aspect_ratio.num =
get_bits(&
s->gb, 8);
102 s->avctx->sample_aspect_ratio.den =
get_bits(&
s->gb, 8);
106 if (
s->avctx->sample_aspect_ratio.num == 0)
AVPixelFormat
Pixel format.
static int get_bits_left(GetBitContext *gb)
const uint8_t ff_mpeg1_dc_scale_table[128]
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
const AVRational ff_h263_pixel_aspect[16]
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static enum AVPixelFormat pix_fmts[]
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FRAME_SKIPPED
Return value for header parsers if frame is not coded.
@ AV_PICTURE_TYPE_I
Intra.
static unsigned int get_bits1(GetBitContext *s)
void ff_h263_show_pict_info(MpegEncContext *s)
Print picture info if FF_DEBUG_PICT_INFO is set.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static void skip_bits1(GetBitContext *s)
int ff_h263_decode_init(AVCodecContext *avctx)
int ff_h263_decode_end(AVCodecContext *avctx)
const uint16_t ff_h263_format[8][2]
const char * name
Name of the codec implementation.
static int skip_1stop_8data_bits(GetBitContext *gb)
const AVCodec ff_h263i_decoder
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static int check_marker(void *logctx, GetBitContext *s, const char *msg)
int ff_intel_h263_decode_picture_header(MpegEncContext *s)
#define AV_CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.