FFmpeg  2.6.9
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions | Variables
h263dec.c File Reference

H.263 decoder. More...

#include "libavutil/cpu.h"
#include "avcodec.h"
#include "error_resilience.h"
#include "flv.h"
#include "h263.h"
#include "h263_parser.h"
#include "internal.h"
#include "mpeg_er.h"
#include "mpeg4video.h"
#include "mpeg4video_parser.h"
#include "mpegvideo.h"
#include "msmpeg4.h"
#include "qpeldsp.h"
#include "vdpau_internal.h"
#include "thread.h"

Go to the source code of this file.

Macros

#define UNCHECKED_BITSTREAM_READER   1
 

Functions

static enum AVPixelFormat h263_get_format (AVCodecContext *avctx)
 
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 h263dec.c.

Macro Definition Documentation

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 28 of file h263dec.c.

Function Documentation

static enum AVPixelFormat h263_get_format ( AVCodecContext avctx)
static

Definition at line 46 of file h263dec.c.

Referenced by ff_h263_decode_frame(), and ff_h263_decode_init().

av_cold int ff_h263_decode_init ( AVCodecContext avctx)

Definition at line 54 of file h263dec.c.

Referenced by decode_init(), and ff_msmpeg4_decode_init().

av_cold int ff_h263_decode_end ( AVCodecContext avctx)

Definition at line 141 of file h263dec.c.

Referenced by wmv2_decode_end().

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 152 of file h263dec.c.

Referenced by ff_h263_decode_frame().

static int decode_slice ( MpegEncContext s)
static

Definition at line 178 of file h263dec.c.

Referenced by ff_h263_decode_frame().

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

Definition at line 401 of file h263dec.c.

Variable Documentation

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 714 of file h263dec.c.

AVCodec ff_h263_decoder
Initial value:
= {
.name = "h263",
.long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
.priv_data_size = sizeof(MpegEncContext),
.max_lowres = 3,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_TRUNCATED
Definition: avcodec.h:788
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:787
#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:822
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:180
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:3439
#define CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: avcodec.h:781
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:401
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
Definition: h263dec.c:141
static void flush(AVCodecContext *avctx)
Definition: aacdec.c:502
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
Definition: h263dec.c:54
MpegEncContext.
Definition: mpegvideo.h:213
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:520
enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
Definition: h263dec.c:714

Definition at line 725 of file h263dec.c.

AVCodec ff_h263p_decoder
Initial value:
= {
.name = "h263p",
.long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
.priv_data_size = sizeof(MpegEncContext),
.max_lowres = 3,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_TRUNCATED
Definition: avcodec.h:788
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:787
#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:822
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:180
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:3439
#define CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: avcodec.h:781
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:401
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
Definition: h263dec.c:141
static void flush(AVCodecContext *avctx)
Definition: aacdec.c:502
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
Definition: h263dec.c:54
MpegEncContext.
Definition: mpegvideo.h:213
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:520
enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
Definition: h263dec.c:714

Definition at line 741 of file h263dec.c.