mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[isp] Fix CI errors.
This commit is contained in:
parent
4794104ecc
commit
a28e61eff7
|
@ -465,7 +465,7 @@ void uvg_encode_last_significant_xy(cabac_data_t * const cabac,
|
|||
|
||||
static void encode_chroma_tu(
|
||||
encoder_state_t* const state,
|
||||
cu_loc_t *cu_loc,
|
||||
const cu_loc_t *cu_loc,
|
||||
int depth,
|
||||
cu_info_t* cur_pu,
|
||||
int8_t* scan_idx,
|
||||
|
@ -1880,12 +1880,13 @@ void uvg_encode_mvd(encoder_state_t * const state,
|
|||
* \param lcu_width LCU_WIDTH for luma, LCU_WIDTH_C for chroma.
|
||||
*
|
||||
*/
|
||||
void uvg_get_sub_coeff(coeff_t *dst, const coeff_t * const src, const int lcu_x, const int lcu_y, const int block_w, const int block_h, const int lcu_width)
|
||||
void uvg_get_sub_coeff(const coeff_t *dst, const coeff_t * const src, const int lcu_x, const int lcu_y, const int block_w, const int block_h, const int lcu_width)
|
||||
{
|
||||
// Take subset of coeff array
|
||||
coeff_t* dst_ptr = dst;
|
||||
const coeff_t* coeff_ptr = &src[lcu_x + lcu_y * lcu_width];
|
||||
for (int j = 0; j < block_h; ++j) {
|
||||
//memcpy(dst_coeff + (j * lcu_width), &coeff[j * tr_width], tr_width * sizeof(coeff_t));
|
||||
memcpy(&dst[j * block_w], &coeff_ptr[j * lcu_width], block_w * sizeof(coeff_t));
|
||||
memcpy(&dst_ptr[j * block_w], &coeff_ptr[j * lcu_width], block_w * sizeof(coeff_t));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ void uvg_encode_last_significant_xy(cabac_data_t * const cabac,
|
|||
uint8_t width, uint8_t height,
|
||||
uint8_t type, uint8_t scan, double* bits_out);
|
||||
|
||||
void uvg_get_sub_coeff(coeff_t* dst, const coeff_t* const src,
|
||||
void uvg_get_sub_coeff(const coeff_t* dst, const coeff_t* const src,
|
||||
const int lcu_x, const int lcu_y,
|
||||
const int block_w, const int block_h,
|
||||
const int lcu_width);
|
||||
|
|
17
src/intra.c
17
src/intra.c
|
@ -978,23 +978,6 @@ static void intra_predict_regular(
|
|||
}
|
||||
|
||||
|
||||
int get_isp_ref_pixels_num(const int lcu_x, const int lcu_y, const int width, const int height, const int isp_mode)
|
||||
{
|
||||
// TODO: this only works until non-square blocks are implemented
|
||||
const int block_size = MAX(width, height);
|
||||
const int split_size = MIN(width, height);
|
||||
if (isp_mode == ISP_MODE_HOR) {
|
||||
int ref_pix_left = LCU_WIDTH - lcu_y;
|
||||
}
|
||||
else if (isp_mode == ISP_MODE_VER) {
|
||||
|
||||
}
|
||||
else {
|
||||
assert(false && "This should never trigger.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void uvg_intra_build_reference_any(
|
||||
const cu_loc_t* const pu_loc,
|
||||
const cu_loc_t* const cu_loc,
|
||||
|
|
|
@ -117,7 +117,8 @@ void uvg_intra_build_reference(
|
|||
uvg_intra_references *const refs,
|
||||
bool entropy_sync,
|
||||
uvg_pixel *extra_refs,
|
||||
uint8_t multi_ref_idx);
|
||||
uint8_t multi_ref_idx,
|
||||
const uint8_t isp_mode);
|
||||
|
||||
/**
|
||||
* \brief Generate intra predictions.
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
void uvg_encode_coeff_nxn_avx2(encoder_state_t * const state,
|
||||
cabac_data_t * const cabac,
|
||||
const coeff_t *coeff,
|
||||
cu_loc_t *loc,
|
||||
const cu_loc_t *loc,
|
||||
uint8_t type,
|
||||
int8_t scan_mode,
|
||||
int8_t tr_skip,
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
void uvg_encode_coeff_nxn_generic(encoder_state_t * const state,
|
||||
cabac_data_t * const cabac,
|
||||
const coeff_t *coeff,
|
||||
cu_loc_t *cu_loc,
|
||||
const cu_loc_t *cu_loc,
|
||||
uint8_t color,
|
||||
int8_t scan_mode,
|
||||
cu_info_t* cur_cu,
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
void uvg_encode_coeff_nxn_generic(encoder_state_t * const state,
|
||||
cabac_data_t * const cabac,
|
||||
const coeff_t *coeff,
|
||||
cu_loc_t *loc,
|
||||
const cu_loc_t *loc,
|
||||
uint8_t color,
|
||||
int8_t scan_mode,
|
||||
cu_info_t* cur_cu,
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
typedef unsigned (encode_coeff_nxn_func)(encoder_state_t * const state,
|
||||
cabac_data_t * const cabac,
|
||||
const coeff_t *coeff,
|
||||
cu_loc_t *loc,
|
||||
const cu_loc_t *loc,
|
||||
uint8_t color,
|
||||
int8_t scan_mode,
|
||||
cu_info_t* cur_cu,
|
||||
|
|
Loading…
Reference in a new issue