Libav
|
H.264 / AVC / MPEG-4 part10 codec. More...
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timer.h"
#include "internal.h"
#include "bytestream.h"
#include "cabac.h"
#include "cabac_functions.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "h264.h"
#include "h264dec.h"
#include "h2645_parse.h"
#include "h264data.h"
#include "h264chroma.h"
#include "h264_mvpred.h"
#include "h264_ps.h"
#include "golomb.h"
#include "mathops.h"
#include "me_cmp.h"
#include "mpegutils.h"
#include "profiles.h"
#include "rectangle.h"
#include "thread.h"
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | OFFSET(x) offsetof(H264Context, x) |
#define | VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static void | h264_er_decode_mb (void *opaque, int ref, int mv_dir, int mv_type, int(*mv)[2][4][2], int mb_x, int mb_y, int mb_intra, int mb_skipped) |
void | ff_h264_draw_horiz_band (const H264Context *h, H264SliceContext *sl, int y, int height) |
void | ff_h264_free_tables (H264Context *h) |
int | ff_h264_alloc_tables (H264Context *h) |
Allocate tables. More... | |
int | ff_h264_slice_context_init (H264Context *h, H264SliceContext *sl) |
Init context Allocate buffers which are not shared amongst multiple threads. More... | |
static int | h264_init_context (AVCodecContext *avctx, H264Context *h) |
static av_cold int | h264_decode_end (AVCodecContext *avctx) |
av_cold int | ff_h264_decode_init (AVCodecContext *avctx) |
static int | decode_init_thread_copy (AVCodecContext *avctx) |
static void | idr (H264Context *h) |
instantaneous decoder refresh. More... | |
void | ff_h264_flush_change (H264Context *h) |
static void | flush_dpb (AVCodecContext *avctx) |
static int | get_last_needed_nal (H264Context *h) |
static int | decode_nal_units (H264Context *h, const uint8_t *buf, int buf_size) |
static int | get_consumed_bytes (int pos, int buf_size) |
Return the number of bytes consumed for building the current frame. More... | |
static int | output_frame (H264Context *h, AVFrame *dst, AVFrame *src) |
static int | h264_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
Variables | |
const uint16_t | ff_h264_mb_sizes [4] = { 256, 384, 512, 768 } |
static AVOnce | h264_vlc_init = AV_ONCE_INIT |
static const AVOption | h264_options [] |
static const AVClass | h264_class |
AVCodec | ff_h264_decoder |
H.264 / AVC / MPEG-4 part10 codec.
Definition in file h264dec.c.
#define OFFSET | ( | x | ) | offsetof(H264Context, x) |
#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
|
static |
Definition at line 58 of file h264dec.c.
Referenced by ff_h264_slice_context_init().
void ff_h264_draw_horiz_band | ( | const H264Context * | h, |
H264SliceContext * | sl, | ||
int | y, | ||
int | height | ||
) |
Definition at line 85 of file h264dec.c.
Referenced by decode_finish_row(), dxva2_h264_end_frame(), get_dct8x8_allowed(), vaapi_h264_end_frame(), and vdpau_h264_end_frame().
void ff_h264_free_tables | ( | H264Context * | h | ) |
Definition at line 120 of file h264dec.c.
Referenced by ff_h264_alloc_tables(), flush_dpb(), get_dct8x8_allowed(), h264_decode_end(), and h264_slice_header_init().
int ff_h264_alloc_tables | ( | H264Context * | h | ) |
Allocate tables.
needs width/height
Definition at line 163 of file h264dec.c.
Referenced by h264_slice_header_init().
int ff_h264_slice_context_init | ( | H264Context * | h, |
H264SliceContext * | sl | ||
) |
Init context Allocate buffers which are not shared amongst multiple threads.
Definition at line 221 of file h264dec.c.
Referenced by get_dct8x8_allowed(), and h264_slice_header_init().
|
static |
Definition at line 282 of file h264dec.c.
Referenced by decode_init_thread_copy(), and ff_h264_decode_init().
|
static |
Definition at line 331 of file h264dec.c.
Referenced by ff_h264_decode_init().
av_cold int ff_h264_decode_init | ( | AVCodecContext * | avctx | ) |
|
static |
|
static |
instantaneous decoder refresh.
Definition at line 432 of file h264dec.c.
Referenced by decode_nal_units(), ff_h264_flush_change(), and h264_probe().
void ff_h264_flush_change | ( | H264Context * | h | ) |
Definition at line 442 of file h264dec.c.
Referenced by flush_dpb(), get_dct8x8_allowed(), and h264_init_ps().
|
static |
|
static |
Definition at line 479 of file h264dec.c.
Referenced by decode_nal_units().
|
static |
< number of NALs that need decoding before the next frame thread starts
Definition at line 516 of file h264dec.c.
Referenced by h264_decode_frame().
|
static |
Return the number of bytes consumed for building the current frame.
Definition at line 653 of file h264dec.c.
Referenced by h264_decode_frame().
|
static |
Definition at line 663 of file h264dec.c.
Referenced by h264_decode_frame(), load_encode_and_write(), and scale_vaapi_filter_frame().
|
static |
const uint16_t ff_h264_mb_sizes[4] = { 256, 384, 512, 768 } |
Definition at line 56 of file h264dec.c.
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and hl_decode_mb().
|
static |
|
static |
|
static |
AVCodec ff_h264_decoder |