|
FFmpeg
|
#include <stddef.h>#include <stdint.h>#include <string.h>#include "libavutil/attributes.h"#include "libavutil/frame.h"#include "libavutil/mem_internal.h"#include "avcodec.h"#include "cavs_aec.h"#include "cavsdsp.h"#include "blockdsp.h"#include "h264chroma.h"#include "get_bits.h"#include "videodsp.h"Go to the source code of this file.
Data Structures | |
| struct | cavs_vector |
| struct | dec_2dvlc |
| struct | AVSFrame |
| struct | AVSContext |
Macros | |
| #define | SLICE_MAX_START_CODE 0x000001af |
| #define | EXT_START_CODE 0x000001b5 |
| #define | USER_START_CODE 0x000001b2 |
| #define | CAVS_START_CODE 0x000001b0 |
| #define | PIC_I_START_CODE 0x000001b3 |
| #define | PIC_PB_START_CODE 0x000001b6 |
| #define | A_AVAIL 1 |
| #define | B_AVAIL 2 |
| #define | C_AVAIL 4 |
| #define | D_AVAIL 8 |
| #define | NOT_AVAIL -1 |
| #define | REF_INTRA -2 |
| #define | REF_DIR -3 |
| #define | ESCAPE_CODE 59 |
| #define | FWD0 0x01 |
| #define | FWD1 0x02 |
| #define | BWD0 0x04 |
| #define | BWD1 0x08 |
| #define | SYM0 0x10 |
| #define | SYM1 0x20 |
| #define | SPLITH 0x40 |
| #define | SPLITV 0x80 |
| #define | MV_BWD_OFFS 12 |
| #define | MV_STRIDE 4 |
| #define | CAVS_DIR_MV (cavs_vector){ 0, 0, 1, REF_DIR, 0 } |
| mark block as using intra prediction | |
| #define | CAVS_INTRA_MV (cavs_vector){ 0, 0, 1, REF_INTRA, 0 } |
| mark block as "no prediction from this direction" e.g. | |
Functions | |
| static void | set_mvs (cavs_vector *mv, enum cavs_block size) |
| static void | set_mvds (int16_t(*mvd)[2], enum cavs_block size) |
| replicate one partition's mv_diff over the 8x8 blocks it covers | |
| void | ff_cavs_filter (AVSContext *h, enum cavs_mb mb_type) |
| in-loop deblocking filter for a single macroblock | |
| void | ff_cavs_load_intra_pred_luma (AVSContext *h, uint8_t *top, uint8_t **left, int block) |
| void | ff_cavs_load_intra_pred_chroma (AVSContext *h) |
| void | ff_cavs_modify_mb_i (AVSContext *h, int *pred_mode_uv) |
| void | ff_cavs_inter (AVSContext *h, enum cavs_mb mb_type) |
| void | ff_cavs_mv (AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC, enum cavs_mv_pred mode, enum cavs_block size, int ref) |
| void | ff_cavs_init_mb (AVSContext *h) |
| initialise predictors for motion vectors and intra prediction | |
| void | ff_cavs_set_mb_row (AVSContext *h) |
| Point the macroblock sample pointers at macroblock row h->mby, addressed inside the macroblock's own field at the doubled stride (clause 7.2.3.1). | |
| int | ff_cavs_next_mb (AVSContext *h) |
| save predictors for later macroblocks and increase macroblock address | |
| int | ff_cavs_init_pic (AVSContext *h) |
| int | ff_cavs_init_top_lines (AVSContext *h) |
| some predictions require data from the top-neighbouring macroblock. | |
| int | ff_cavs_init (AVCodecContext *avctx) |
| int | ff_cavs_end (AVCodecContext *avctx) |
Variables | |
| const uint8_t | ff_cavs_chroma_qp [64] |
| const uint8_t | ff_cavs_partition_flags [30] |
| #define SLICE_MAX_START_CODE 0x000001af |
Definition at line 41 of file cavs.h.
Referenced by annex_a_applies(), check_for_slice(), decode_chunks(), mpeg1_find_frame_end(), mpegvideo_extract_headers(), and slice_decode_thread().
| #define EXT_START_CODE 0x000001b5 |
Definition at line 42 of file cavs.h.
Referenced by cavs_decode_frame(), check_for_slice(), decode_chunks(), mpeg1_find_frame_end(), and mpegvideo_extract_headers().
| #define USER_START_CODE 0x000001b2 |
Definition at line 43 of file cavs.h.
Referenced by cavs_decode_frame(), check_for_slice(), and decode_chunks().
| #define CAVS_START_CODE 0x000001b0 |
Definition at line 44 of file cavs.h.
Referenced by cavs_decode_frame(), cavs_find_frame_end(), and cavs_parse_frame().
| #define PIC_I_START_CODE 0x000001b3 |
Definition at line 45 of file cavs.h.
Referenced by annex_a_applies(), cavs_decode_frame(), cavs_find_frame_end(), and cavs_parse_frame().
| #define PIC_PB_START_CODE 0x000001b6 |
Definition at line 46 of file cavs.h.
Referenced by annex_a_applies(), cavs_decode_frame(), cavs_find_frame_end(), and decode_pic().
| #define A_AVAIL 1 |
Definition at line 48 of file cavs.h.
Referenced by aec_cbp(), aec_intra_chroma_pred_mode(), aec_mb_type_b(), ff_cavs_filter(), ff_cavs_load_intra_pred_chroma(), ff_cavs_load_intra_pred_luma(), ff_cavs_modify_mb_i(), and ff_cavs_next_mb().
| #define B_AVAIL 2 |
Definition at line 49 of file cavs.h.
Referenced by aec_cbp(), aec_intra_chroma_pred_mode(), aec_mb_type_b(), decode_slice_header(), ff_cavs_filter(), ff_cavs_init_mb(), ff_cavs_load_intra_pred_chroma(), ff_cavs_load_intra_pred_luma(), ff_cavs_modify_mb_i(), ff_cavs_next_mb(), and ff_cavs_set_mb_row().
| #define C_AVAIL 4 |
Definition at line 50 of file cavs.h.
Referenced by decode_slice_header(), ff_cavs_init_mb(), ff_cavs_load_intra_pred_chroma(), ff_cavs_load_intra_pred_luma(), ff_cavs_next_mb(), and ff_cavs_set_mb_row().
| #define D_AVAIL 8 |
Definition at line 51 of file cavs.h.
Referenced by ff_cavs_init_mb(), and ff_cavs_set_mb_row().
| #define NOT_AVAIL -1 |
Definition at line 52 of file cavs.h.
Referenced by decode_mb_i(), ff_cavs_init_mb(), ff_cavs_init_pic(), ff_cavs_mv(), ff_cavs_next_mb(), and set_intra_mode_default().
| #define ESCAPE_CODE 59 |
Definition at line 56 of file cavs.h.
Referenced by decode_residual_block().
| #define FWD0 0x01 |
Definition at line 58 of file cavs.h.
Referenced by decode_mb_b().
| #define FWD1 0x02 |
Definition at line 59 of file cavs.h.
Referenced by decode_mb_b().
| #define BWD0 0x04 |
Definition at line 60 of file cavs.h.
Referenced by decode_mb_b().
| #define BWD1 0x08 |
Definition at line 61 of file cavs.h.
Referenced by decode_mb_b().
| #define SYM0 0x10 |
Definition at line 62 of file cavs.h.
Referenced by decode_mb_b().
| #define SYM1 0x20 |
Definition at line 63 of file cavs.h.
Referenced by decode_mb_b().
| #define SPLITH 0x40 |
Definition at line 64 of file cavs.h.
Referenced by ff_cavs_filter().
| #define SPLITV 0x80 |
Definition at line 65 of file cavs.h.
Referenced by ff_cavs_filter().
| #define MV_BWD_OFFS 12 |
Definition at line 67 of file cavs.h.
Referenced by decode_mb_b(), get_bs(), mc_part_std(), mv_pred_direct(), and mv_pred_sym().
| #define MV_STRIDE 4 |
Definition at line 68 of file cavs.h.
Referenced by set_mvds(), and set_mvs().
| #define CAVS_DIR_MV (cavs_vector){ 0, 0, 1, REF_DIR, 0 } |
mark block as using intra prediction
Definition at line 312 of file cavs.h.
Referenced by decode_mb_b(), and ff_cavs_init_pic().
| #define CAVS_INTRA_MV (cavs_vector){ 0, 0, 1, REF_INTRA, 0 } |
mark block as "no prediction from this direction" e.g.
forward motion vector in BWD partition
Definition at line 315 of file cavs.h.
Referenced by set_mv_intra().
| enum cavs_mb |
| enum cavs_sub_mb |
| enum cavs_intra_luma |
| enum cavs_intra_chroma |
| enum cavs_mv_pred |
| enum cavs_block |
| enum cavs_mv_loc |
|
inlinestatic |
Definition at line 317 of file cavs.h.
Referenced by decode_mb_b(), ff_cavs_init_pic(), ff_cavs_mv(), mv_pred_sym(), and set_mv_intra().
|
inlinestatic |
replicate one partition's mv_diff over the 8x8 blocks it covers
Definition at line 333 of file cavs.h.
Referenced by ff_cavs_mv().
| void ff_cavs_filter | ( | AVSContext * | h, |
| enum cavs_mb | mb_type ) |
in-loop deblocking filter for a single macroblock
boundary strength (bs) mapping:
–4—5– 0 2 | | 6 | 7 |
Definition at line 119 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_i(), and decode_mb_p().
| void ff_cavs_load_intra_pred_luma | ( | AVSContext * | h, |
| uint8_t * | top, | ||
| uint8_t ** | left, | ||
| int | block ) |
Definition at line 195 of file cavs.c.
Referenced by decode_mb_i().
| void ff_cavs_load_intra_pred_chroma | ( | AVSContext * | h | ) |
Definition at line 246 of file cavs.c.
Referenced by decode_mb_i().
| void ff_cavs_modify_mb_i | ( | AVSContext * | h, |
| int * | pred_mode_uv ) |
Definition at line 373 of file cavs.c.
Referenced by decode_mb_i().
| void ff_cavs_inter | ( | AVSContext * | h, |
| enum cavs_mb | mb_type ) |
Definition at line 513 of file cavs.c.
Referenced by decode_mb_b(), and decode_mb_p().
| void ff_cavs_mv | ( | AVSContext * | h, |
| enum cavs_mv_loc | nP, | ||
| enum cavs_mv_loc | nC, | ||
| enum cavs_mv_pred | mode, | ||
| enum cavs_block | size, | ||
| int | ref ) |
Definition at line 594 of file cavs.c.
Referenced by decode_mb_b(), and decode_mv().
| void ff_cavs_init_mb | ( | AVSContext * | h | ) |
initialise predictors for motion vectors and intra prediction
Definition at line 699 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_i(), and decode_mb_p().
| void ff_cavs_set_mb_row | ( | AVSContext * | h | ) |
Point the macroblock sample pointers at macroblock row h->mby, addressed inside the macroblock's own field at the doubled stride (clause 7.2.3.1).
Definition at line 676 of file cavs.c.
Referenced by decode_slice_header(), ff_cavs_init_pic(), and ff_cavs_next_mb().
| int ff_cavs_next_mb | ( | AVSContext * | h | ) |
save predictors for later macroblocks and increase macroblock address
Definition at line 745 of file cavs.c.
Referenced by decode_pic().
| int ff_cavs_init_pic | ( | AVSContext * | h | ) |
Definition at line 792 of file cavs.c.
Referenced by decode_pic().
| int ff_cavs_init_top_lines | ( | AVSContext * | h | ) |
some predictions require data from the top-neighbouring macroblock.
this data has to be stored for one complete row of macroblocks and this storage space is allocated here
Definition at line 829 of file cavs.c.
Referenced by decode_seq_header().
| int ff_cavs_init | ( | AVCodecContext * | avctx | ) |
| int ff_cavs_end | ( | AVCodecContext * | avctx | ) |
|
extern |
Definition at line 57 of file cavsdata.c.
Referenced by decode_residual_chroma(), and ff_cavs_filter().
|
extern |
Definition at line 24 of file cavsdata.c.
Referenced by decode_mb_b(), ff_cavs_filter(), and ff_cavs_inter().