TUT HEVC Encoder
Loading...
Searching...
No Matches
quant-generic.h File Reference

Generic C implementations of optimized functions.

#include "cu.h"
#include "encoderstate.h"
#include "global.h"
#include "kvazaar.h"
#include "tables.h"
Include dependency graph for quant-generic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QUANT_SHIFT   14
 

Functions

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.
 

Macro Definition Documentation

◆ QUANT_SHIFT

#define QUANT_SHIFT   14

Function Documentation

◆ kvz_quant_generic()

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 )

< Represents scaling through forward transform

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
widthTransform width.
colorColor.
scan_orderCoefficient scan order.
use_trskipWhether transform skip is used.
strideStride for ref_in, pred_in and rec_out.
ref_inReference pixels.
pred_inPredicted pixels.
rec_outReconstructed pixels.
coeff_outCoefficients used for reconstruction of rec_out.
early_skipif this is used for early skip, bypass IT and IQ
Returns
Whether coeff_out contains any non-zero coefficients.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_strategy_register_quant_generic()

int kvz_strategy_register_quant_generic ( void * opaque,
uint8_t bitdepth )
Here is the call graph for this function:
Here is the caller graph for this function: