FFmpeg
Macros | Functions | Variables
h263dec.c File Reference
#include "libavutil/cpu.h"
#include "libavutil/video_enc_params.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 []
 
const AVCodecHWConfigInternal *const ff_h263_hw_config_list []
 
const AVCodec ff_h263_decoder
 
const AVCodec ff_h263p_decoder
 

Detailed Description

H.263 decoder.

Definition in file h263dec.c.

Macro Definition Documentation

◆ UNCHECKED_BITSTREAM_READER

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 28 of file h263dec.c.

Function Documentation

◆ h263_get_format()

static enum AVPixelFormat h263_get_format ( AVCodecContext avctx)
static

Definition at line 50 of file h263dec.c.

Referenced by ff_h263_decode_frame(), and ff_h263_decode_init().

◆ ff_h263_decode_init()

av_cold int ff_h263_decode_init ( AVCodecContext avctx)

Definition at line 70 of file h263dec.c.

Referenced by decode_init(), and ff_msmpeg4_decode_init().

◆ ff_h263_decode_end()

av_cold int ff_h263_decode_end ( AVCodecContext avctx)

Definition at line 155 of file h263dec.c.

Referenced by wmv2_decode_end().

◆ get_consumed_bytes()

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

Referenced by ff_h263_decode_frame().

◆ decode_slice()

static int decode_slice ( MpegEncContext s)
static

Definition at line 192 of file h263dec.c.

Referenced by ff_h263_decode_frame().

◆ ff_h263_decode_frame()

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

Definition at line 421 of file h263dec.c.

Variable Documentation

◆ ff_h263_hwaccel_pixfmt_list_420

enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
Initial value:
= {
#if CONFIG_H263_VAAPI_HWACCEL || CONFIG_MPEG4_VAAPI_HWACCEL
#endif
#if CONFIG_MPEG4_NVDEC_HWACCEL
#endif
#if CONFIG_MPEG4_VDPAU_HWACCEL
#endif
#if CONFIG_H263_VIDEOTOOLBOX_HWACCEL || CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL
#endif
}

Definition at line 729 of file h263dec.c.

◆ ff_h263_hw_config_list

const AVCodecHWConfigInternal* const ff_h263_hw_config_list[]
Initial value:
= {
#if CONFIG_H263_VAAPI_HWACCEL
#endif
#if CONFIG_MPEG4_NVDEC_HWACCEL
HWACCEL_NVDEC(mpeg4),
#endif
#if CONFIG_MPEG4_VDPAU_HWACCEL
HWACCEL_VDPAU(mpeg4),
#endif
#if CONFIG_H263_VIDEOTOOLBOX_HWACCEL
#endif
}

Definition at line 746 of file h263dec.c.

◆ ff_h263_decoder

const 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,
.hw_configs = ff_h263_hw_config_list,
}

Definition at line 762 of file h263dec.c.

◆ ff_h263p_decoder

const 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,
.hw_configs = ff_h263_hw_config_list,
}

Definition at line 780 of file h263dec.c.

AV_PIX_FMT_CUDA
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
Definition: pixfmt.h:225
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
AV_CODEC_CAP_TRUNCATED
#define AV_CODEC_CAP_TRUNCATED
Definition: codec.h:53
HWACCEL_VDPAU
#define HWACCEL_VDPAU(codec)
Definition: hwconfig.h:75
HWACCEL_VIDEOTOOLBOX
@ HWACCEL_VIDEOTOOLBOX
Definition: ffmpeg.h:62
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#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...
Definition: internal.h:61
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:289
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
ff_h263_decode_frame
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:421
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:592
NULL
#define NULL
Definition: coverity.c:32
ff_h263_decode_end
av_cold int ff_h263_decode_end(AVCodecContext *avctx)
Definition: h263dec.c:155
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_ID_H263
@ AV_CODEC_ID_H263
Definition: codec_id.h:53
ff_mpeg_flush
void ff_mpeg_flush(AVCodecContext *avctx)
Definition: mpegvideo.c:2300
HWACCEL_NVDEC
#define HWACCEL_NVDEC(codec)
Definition: hwconfig.h:71
AV_PIX_FMT_VAAPI
@ AV_PIX_FMT_VAAPI
Hardware acceleration through VA-API, data[3] contains a VASurfaceID.
Definition: pixfmt.h:119
AV_PIX_FMT_VDPAU
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:187
AV_PIX_FMT_VIDEOTOOLBOX
@ AV_PIX_FMT_VIDEOTOOLBOX
hardware decoding through Videotoolbox
Definition: pixfmt.h:272
ff_h263_hwaccel_pixfmt_list_420
enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[]
Definition: h263dec.c:729
ff_h263_decode_init
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
Definition: h263dec.c:70
AV_CODEC_ID_H263P
@ AV_CODEC_ID_H263P
Definition: codec_id.h:68
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_CODEC_CAP_DELAY
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:77
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
HWACCEL_VAAPI
#define HWACCEL_VAAPI(codec)
Definition: hwconfig.h:73
AV_CODEC_CAP_DRAW_HORIZ_BAND
#define AV_CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: codec.h:44
ff_h263_hw_config_list
const AVCodecHWConfigInternal *const ff_h263_hw_config_list[]
Definition: h263dec.c:746
MpegEncContext
MpegEncContext.
Definition: mpegvideo.h:81