mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-12-17 19:04:05 +00:00
Fix several compile errors:
src/search_inter.c:1210: implicit conversion from 'int' to 'int16_t' was truncating constants. src/intra.c:511: const qualifier discarded
This commit is contained in:
parent
be90897fd2
commit
055b813bb3
|
@ -508,7 +508,7 @@ static void predict_cclm(
|
||||||
int available_left_below = 0;
|
int available_left_below = 0;
|
||||||
|
|
||||||
|
|
||||||
uvg_pixel *y_rec = lcu->rec.y + x_scu + y_scu * LCU_WIDTH;
|
const uvg_pixel *y_rec = lcu->rec.y + x_scu + y_scu * LCU_WIDTH;
|
||||||
const int stride2 = (((state->tile->frame->width + 7) & ~7) + FRAME_PADDING_LUMA);
|
const int stride2 = (((state->tile->frame->width + 7) & ~7) + FRAME_PADDING_LUMA);
|
||||||
|
|
||||||
// Essentially what this does is that it uses 6-tap filtering to downsample
|
// Essentially what this does is that it uses 6-tap filtering to downsample
|
||||||
|
|
|
@ -1204,7 +1204,7 @@ int uvg_get_skip_context(int x, int y, lcu_t* const lcu, cu_array_t* const cu_a,
|
||||||
/**
|
/**
|
||||||
* \brief Calculate the scaled MV
|
* \brief Calculate the scaled MV
|
||||||
*/
|
*/
|
||||||
static INLINE int16_t get_scaled_mv(int16_t mv, int scale)
|
static INLINE int32_t get_scaled_mv(int16_t mv, int scale)
|
||||||
{
|
{
|
||||||
int32_t scaled = scale * mv;
|
int32_t scaled = scale * mv;
|
||||||
return CLIP(-131072, 131071, (scaled + 127 + (scaled < 0)) >> 8);
|
return CLIP(-131072, 131071, (scaled + 127 + (scaled < 0)) >> 8);
|
||||||
|
|
Loading…
Reference in a new issue