libavcodec/h263dec.c File Reference

H.263 decoder. More...

#include "libavutil/cpu.h"
#include "internal.h"
#include "avcodec.h"
#include "error_resilience.h"
#include "mpegvideo.h"
#include "h263.h"
#include "h263_parser.h"
#include "mpeg4video_parser.h"
#include "msmpeg4.h"
#include "vdpau_internal.h"
#include "thread.h"
#include "flv.h"
#include "mpeg4video.h"
Include dependency graph for libavcodec/h263dec.c:

Go to the source code of this file.

Macros

#define UNCHECKED_BITSTREAM_READER   1
 
#define SET_QPEL_FUNC(postfix1, postfix2)
 

Functions

av_cold int ff_h263_decode_init (AVCodecContext *avctx)
 
av_cold int ff_h263_decode_end (AVCodecContext *avctx)
 
static int get_consumed_bytes (MpegEncContext *s, int buf_size)
 Return the number of bytes consumed for building the current frame. More...
 
static int decode_slice (MpegEncContext *s)
 
int ff_h263_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420 []
 
AVCodec ff_h263_decoder
 
AVCodec ff_h263p_decoder
 

Detailed Description

H.263 decoder.

Definition in file libavcodec/h263dec.c.

Macro Definition Documentation

#define SET_QPEL_FUNC (   postfix1,
  postfix2 
)
Value:
s->dsp.put_ ## postfix1 = ff_put_ ## postfix2;\
s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2;\
s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2;
const char * s
Definition: avisynth_c.h:668

Referenced by ff_h263_decode_frame().

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 28 of file libavcodec/h263dec.c.

Function Documentation

static int decode_slice ( MpegEncContext s)
static

Definition at line 158 of file libavcodec/h263dec.c.

Referenced by ff_h263_decode_frame().

av_cold int ff_h263_decode_end ( AVCodecContext avctx)

Definition at line 129 of file libavcodec/h263dec.c.

Referenced by wmv2_decode_end().

int ff_h263_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)

Definition at line 348 of file libavcodec/h263dec.c.

av_cold int ff_h263_decode_init ( AVCodecContext avctx)

Definition at line 47 of file libavcodec/h263dec.c.

Referenced by decode_init(), and ff_msmpeg4_decode_init().

static int get_consumed_bytes ( MpegEncContext s,
int  buf_size 
)
static

Return the number of bytes consumed for building the current frame.

Definition at line 140 of file libavcodec/h263dec.c.

Referenced by ff_h263_decode_frame().

Variable Documentation

AVCodec ff_h263_decoder
Initial value:
= {
.name = "h263",
.priv_data_size = sizeof(MpegEncContext),
.max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
}
struct MpegEncContext MpegEncContext
MpegEncContext.
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_TRUNCATED
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:3066
#define CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
static void flush(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 787 of file libavcodec/h263dec.c.

enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
Initial value:
= {
}
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:68

Definition at line 776 of file libavcodec/h263dec.c.

AVCodec ff_h263p_decoder
Initial value:
= {
.name = "h263p",
.priv_data_size = sizeof(MpegEncContext),
.max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
}
struct MpegEncContext MpegEncContext
MpegEncContext.
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_TRUNCATED
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:3066
#define CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
static void flush(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 803 of file libavcodec/h263dec.c.