Generic C implementations of optimized functions.
More...
#include "cu.h"
#include "encoderstate.h"
#include "global.h"
#include "kvazaar.h"
#include "tables.h"
Go to the source code of this file.
|
int | kvz_strategy_register_quant_generic (void *opaque, uint8_t bitdepth) |
|
void | kvz_quant_generic (const encoder_state_t *const state, coeff_t *coef, coeff_t *q_coef, int32_t width, int32_t height, int8_t type, int8_t scan_idx, int8_t block_type) |
| quantize transformed coefficents
|
|
int | kvz_quantize_residual_generic (encoder_state_t *const state, const cu_info_t *const cur_cu, const int width, const color_t color, const coeff_scan_order_t scan_order, const int use_trskip, const int in_stride, const int out_stride, const kvz_pixel *const ref_in, const kvz_pixel *const pred_in, kvz_pixel *rec_out, coeff_t *coeff_out, bool early_skip) |
| Quantize residual and get both the reconstruction and coeffs.
|
|
◆ QUANT_SHIFT
◆ kvz_quant_generic()
< Represents scaling through forward transform
◆ kvz_quantize_residual_generic()
int kvz_quantize_residual_generic |
( |
encoder_state_t *const |
state, |
|
|
const cu_info_t *const |
cur_cu, |
|
|
const int |
width, |
|
|
const color_t |
color, |
|
|
const coeff_scan_order_t |
scan_order, |
|
|
const int |
use_trskip, |
|
|
const int |
in_stride, |
|
|
const int |
out_stride, |
|
|
const kvz_pixel *const |
ref_in, |
|
|
const kvz_pixel *const |
pred_in, |
|
|
kvz_pixel * |
rec_out, |
|
|
coeff_t * |
coeff_out, |
|
|
bool |
early_skip |
|
) |
| |
- Parameters
-
width | Transform width. |
color | Color. |
scan_order | Coefficient scan order. |
use_trskip | Whether transform skip is used. |
stride | Stride for ref_in, pred_in and rec_out. |
ref_in | Reference pixels. |
pred_in | Predicted pixels. |
rec_out | Reconstructed pixels. |
coeff_out | Coefficients used for reconstruction of rec_out. |
early_skip | if this is used for early skip, bypass IT and IQ |
- Returns
- Whether coeff_out contains any non-zero coefficients.
◆ kvz_strategy_register_quant_generic()
int kvz_strategy_register_quant_generic |
( |
void * |
opaque, |
|
|
uint8_t |
bitdepth |
|
) |
| |