h263dec.c File Reference

H.263 decoder. More...

#include "libavutil/cpu.h"
#include "internal.h"
#include "avcodec.h"
#include "dsputil.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"

Go to the source code of this file.

Macros

#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 *data_size, AVPacket *avpkt)
 

Variables

AVCodec ff_h263_decoder
 

Detailed Description

H.263 decoder.

Definition in file 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;

Referenced by ff_h263_decode_frame().

Function Documentation

static int decode_slice ( MpegEncContext s)
static

Definition at line 150 of file h263dec.c.

Referenced by ff_h263_decode_frame().

av_cold int ff_h263_decode_end ( AVCodecContext avctx)

Definition at line 121 of file h263dec.c.

Referenced by wmv2_decode_end().

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

Definition at line 338 of file h263dec.c.

av_cold int ff_h263_decode_init ( AVCodecContext avctx)

Definition at line 45 of file 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 132 of file 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 int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
enum PixelFormat ff_hwaccel_pixfmt_list_420[]
Definition: mpegvideo.c:135
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
#define CODEC_CAP_TRUNCATED
Definition: avcodec.h:724
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:2640
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
Definition: h263dec.c:121
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
#define CODEC_CAP_DRAW_HORIZ_BAND
Definition: avcodec.h:713
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
Definition: h263dec.c:45
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
Definition: alsdec.c:1779
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: h263dec.c:338
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:750

Definition at line 744 of file h263dec.c.