FFmpeg
|
H.264 / AVC / MPEG4 part10 codec. More...
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/timer.h"
#include "internal.h"
#include "cabac.h"
#include "cabac_functions.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "h264.h"
#include "h264data.h"
#include "h264chroma.h"
#include "h264_mvpred.h"
#include "golomb.h"
#include "mathops.h"
#include "mpegutils.h"
#include "rectangle.h"
#include "thread.h"
Go to the source code of this file.
Macros | |
#define | IN_RANGE(a, b, size) (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size)))) |
#define | REBASE_PICTURE(pic, new_ctx, old_ctx) |
#define | copy_fields(to, from, start_field, end_field) |
#define | TRANSPOSE(x) ((x) >> 2) | (((x) << 2) & 0xF) |
#define | TRANSPOSE(x) ((x) >> 3) | (((x) & 7) << 3) |
#define | HWACCEL_MAX |
Variables | |
static const uint8_t | rem6 [QP_MAX_NUM+1] |
static const uint8_t | div6 [QP_MAX_NUM+1] |
static const uint8_t | field_scan [16+1] |
static const uint8_t | field_scan8x8 [64+1] |
static const uint8_t | field_scan8x8_cavlc [64+1] |
static const uint8_t | zigzag_scan8x8_cavlc [64+1] |
static const uint8_t | dequant4_coeff_init [6][3] |
static const uint8_t | dequant8_coeff_init_scan [16] |
static const uint8_t | dequant8_coeff_init [6][6] |
H.264 / AVC / MPEG4 part10 codec.
Definition in file h264_slice.c.
#define IN_RANGE | ( | a, | |
b, | |||
size | |||
) | (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size)))) |
Definition at line 386 of file h264_slice.c.
Referenced by copy_picture_range().
#define REBASE_PICTURE | ( | pic, | |
new_ctx, | |||
old_ctx | |||
) |
Definition at line 388 of file h264_slice.c.
Referenced by copy_picture_range(), and ff_h264_update_thread_context().
#define TRANSPOSE | ( | x | ) | ((x) >> 2) | (((x) << 2) & 0xF) |
Referenced by avfilter_register_all(), and init_scan_tables().
#define TRANSPOSE | ( | x | ) | ((x) >> 3) | (((x) & 7) << 3) |
#define HWACCEL_MAX |
Referenced by get_pixel_format().
|
static |
Definition at line 151 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header(), and h264_frame_start().
|
static |
Definition at line 164 of file h264_slice.c.
Referenced by decode_slice().
|
static |
Definition at line 196 of file h264_slice.c.
Referenced by alloc_picture().
|
static |
Definition at line 223 of file h264_slice.c.
Referenced by h264_frame_start().
|
inlinestatic |
Definition at line 292 of file h264_slice.c.
Referenced by find_unused_picture().
|
static |
Definition at line 299 of file h264_slice.c.
Referenced by h264_frame_start().
|
static |
Definition at line 314 of file h264_slice.c.
Referenced by ff_h264_init_dequant_tables().
|
static |
Definition at line 341 of file h264_slice.c.
Referenced by ff_h264_init_dequant_tables().
void ff_h264_init_dequant_tables | ( | H264Context * | h | ) |
Definition at line 367 of file h264_slice.c.
Referenced by ff_h264_alloc_tables(), and ff_h264_decode_slice_header().
|
static |
Definition at line 393 of file h264_slice.c.
Referenced by ff_h264_update_thread_context().
Definition at line 407 of file h264_slice.c.
Referenced by ff_h264_update_thread_context().
|
static |
Definition at line 1023 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header(), and ff_h264_update_thread_context().
int ff_h264_update_thread_context | ( | AVCodecContext * | dst, |
const AVCodecContext * | src | ||
) |
Definition at line 433 of file h264_slice.c.
|
static |
Definition at line 571 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header().
|
static |
Definition at line 668 of file h264_slice.c.
Referenced by loop_filter().
|
static |
Initialize implicit_weight table.
field | 0/1 initialize the weight for interlaced MBAFF -1 initializes the rest |
Definition at line 770 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header().
|
static |
initialize scan tables
Definition at line 834 of file h264_slice.c.
Referenced by h264_slice_header_init().
|
static |
Definition at line 868 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header().
|
static |
Definition at line 981 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header().
|
static |
Definition at line 1132 of file h264_slice.c.
Referenced by ff_h264_decode_slice_header().
int ff_h264_decode_slice_header | ( | H264Context * | h, |
H264SliceContext * | sl | ||
) |
Decode a slice header.
This will (re)intialize the decoder and call h264_frame_start() as needed.
h | h264context |
Definition at line 1151 of file h264_slice.c.
Referenced by decode_nal_units().
int ff_h264_get_slice_type | ( | const H264SliceContext * | sl | ) |
Reconstruct bitstream slice_type.
Definition at line 1953 of file h264_slice.c.
Referenced by fill_slice_long(), and vaapi_h264_decode_slice().
|
static |
Definition at line 1971 of file h264_slice.c.
Referenced by fill_filter_caches().
|
static |
Definition at line 2056 of file h264_slice.c.
Referenced by loop_filter().
|
static |
Definition at line 2201 of file h264_slice.c.
Referenced by decode_slice(), and xmv_read_extradata().
|
static |
Definition at line 2270 of file h264_slice.c.
Referenced by decode_slice().
|
static |
Draw edges and report progress for the last MB row.
Definition at line 2283 of file h264_slice.c.
Referenced by decode_slice().
|
static |
Definition at line 2314 of file h264_slice.c.
Referenced by decode_slice().
|
static |
Definition at line 2328 of file h264_slice.c.
Referenced by ff_h264_execute_decode_slices().
int ff_h264_execute_decode_slices | ( | H264Context * | h, |
unsigned | context_count | ||
) |
Call decode_slice() for each context.
h | h264 master context |
context_count | number of contexts to execute |
Definition at line 2534 of file h264_slice.c.
Referenced by decode_nal_units().
|
static |
Definition at line 47 of file h264_slice.c.
Referenced by ff_hevc_hls_residual_coding(), init_dequant4_coeff_table(), and init_dequant8_coeff_table().
|
static |
Definition at line 55 of file h264_slice.c.
Referenced by ff_hevc_hls_residual_coding(), init_dequant4_coeff_table(), and init_dequant8_coeff_table().
|
static |
Definition at line 63 of file h264_slice.c.
Referenced by init_scan_tables().
|
static |
Definition at line 70 of file h264_slice.c.
Referenced by init_scan_tables().
|
static |
Definition at line 89 of file h264_slice.c.
Referenced by init_scan_tables().
|
static |
Definition at line 109 of file h264_slice.c.
Referenced by init_scan_tables().
|
static |
Definition at line 128 of file h264_slice.c.
Referenced by init_dequant4_coeff_table().
|
static |
Definition at line 137 of file h264_slice.c.
Referenced by init_dequant8_coeff_table().
|
static |
Definition at line 141 of file h264_slice.c.
Referenced by init_dequant8_coeff_table().