FFmpeg
|
Chinese AVS video (AVS1-P2, JiZhun profile) decoder. More...
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "h264chroma.h"
#include "mathops.h"
#include "cavs.h"
Go to the source code of this file.
Macros | |
#define | SET_PARAMS |
#define | LOWPASS(ARRAY, INDEX) ((ARRAY[(INDEX) - 1] + 2 * ARRAY[(INDEX)] + ARRAY[(INDEX) + 1] + 2) >> 2) |
Variables | |
static const uint8_t | alpha_tab [64] |
static const uint8_t | beta_tab [64] |
static const uint8_t | tc_tab [64] |
static const cavs_vector | un_mv = { 0, 0, 1, NOT_AVAIL } |
mark block as unavailable, i.e. More... | |
static const int8_t | left_modifier_l [8] = { 0, -1, 6, -1, -1, 7, 6, 7 } |
static const int8_t | top_modifier_l [8] = { -1, 1, 5, -1, -1, 5, 7, 7 } |
static const int8_t | left_modifier_c [7] = { 5, -1, 2, -1, 6, 5, 6 } |
static const int8_t | top_modifier_c [7] = { 4, 1, -1, -1, 4, 6, 6 } |
Detailed Description
Chinese AVS video (AVS1-P2, JiZhun profile) decoder.
Definition in file cavs.c.
Macro Definition Documentation
#define LOWPASS | ( | ARRAY, | |
INDEX | |||
) | ((ARRAY[(INDEX) - 1] + 2 * ARRAY[(INDEX)] + ARRAY[(INDEX) + 1] + 2) >> 2) |
Definition at line 293 of file cavs.c.
Referenced by avfilter_register_all(), intra_pred_down_left(), intra_pred_down_right(), intra_pred_lp(), intra_pred_lp_left(), and intra_pred_lp_top().
#define SET_PARAMS |
Function Documentation
av_cold int ff_cavs_end | ( | AVCodecContext * | avctx | ) |
Definition at line 771 of file cavs.c.
Referenced by ff_cavs_init(), and set_mvs().
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 |
1 3 |
Definition at line 106 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_i(), decode_mb_p(), and set_mvs().
av_cold int ff_cavs_init | ( | AVCodecContext * | avctx | ) |
void ff_cavs_init_mb | ( | AVSContext * | h | ) |
initialise predictors for motion vectors and intra prediction
Definition at line 592 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_i(), decode_mb_p(), and set_mvs().
int ff_cavs_init_pic | ( | AVSContext * | h | ) |
Definition at line 676 of file cavs.c.
Referenced by decode_pic(), and set_mvs().
void 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 711 of file cavs.c.
Referenced by decode_seq_header(), and set_mvs().
void ff_cavs_inter | ( | AVSContext * | h, |
enum cavs_mb | mb_type | ||
) |
Definition at line 464 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_p(), and set_mvs().
void ff_cavs_load_intra_pred_chroma | ( | AVSContext * | h | ) |
Definition at line 229 of file cavs.c.
Referenced by decode_mb_i(), and set_mvs().
void ff_cavs_load_intra_pred_luma | ( | AVSContext * | h, |
uint8_t * | top, | ||
uint8_t ** | left, | ||
int | block | ||
) |
Definition at line 178 of file cavs.c.
Referenced by decode_mb_i(), and set_mvs().
void ff_cavs_modify_mb_i | ( | AVSContext * | h, |
int * | pred_mode_uv | ||
) |
Definition at line 352 of file cavs.c.
Referenced by decode_mb_i(), and set_mvs().
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 539 of file cavs.c.
Referenced by decode_mb_b(), decode_mb_p(), and set_mvs().
int ff_cavs_next_mb | ( | AVSContext * | h | ) |
save predictors for later macroblocks and increase macroblock address
- Returns
- 0 if end of frame is reached, 1 otherwise
Definition at line 632 of file cavs.c.
Referenced by decode_pic(), and set_mvs().
|
inlinestatic |
Definition at line 71 of file cavs.c.
Referenced by ff_cavs_filter().
Definition at line 266 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 304 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 312 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 256 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 296 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 325 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 333 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 274 of file cavs.c.
Referenced by ff_cavs_init().
Definition at line 247 of file cavs.c.
Referenced by ff_cavs_init().
|
inlinestatic |
Definition at line 379 of file cavs.c.
Referenced by mc_part_std().
|
inlinestatic |
Definition at line 431 of file cavs.c.
Referenced by ff_cavs_inter(), and mc_part().
|
inlinestatic |
Definition at line 343 of file cavs.c.
Referenced by ff_cavs_modify_mb_i().
|
inlinestatic |
Definition at line 513 of file cavs.c.
Referenced by ff_cavs_mv().
|
inlinestatic |
Definition at line 506 of file cavs.c.
Referenced by mv_pred_median().
Variable Documentation
|
static |
|
static |
|
static |
Definition at line 62 of file cavs.c.
Referenced by ff_cavs_modify_mb_i().
|
static |
Definition at line 60 of file cavs.c.
Referenced by ff_cavs_modify_mb_i().
|
static |
|
static |
Definition at line 63 of file cavs.c.
Referenced by ff_cavs_modify_mb_i().
|
static |
Definition at line 61 of file cavs.c.
Referenced by ff_cavs_modify_mb_i().
|
static |
mark block as unavailable, i.e.
out of picture or not yet decoded
Definition at line 58 of file cavs.c.
Referenced by ff_cavs_init(), ff_cavs_init_mb(), ff_cavs_init_pic(), ff_cavs_mv(), and ff_cavs_next_mb().
Generated on Mon Nov 18 2024 06:52:05 for FFmpeg by 1.8.11