mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Change max function to MAX macro for clang/gcc compatibility.
Remove couple of unnecessary comments
This commit is contained in:
parent
5f7c5443a3
commit
769b17768d
1
src/cu.h
1
src/cu.h
|
@ -143,7 +143,6 @@ typedef struct
|
||||||
#endif
|
#endif
|
||||||
} intra;
|
} intra;
|
||||||
struct {
|
struct {
|
||||||
//uint32_t poc[2];
|
|
||||||
int16_t mv[2][2]; // \brief Motion vectors for L0 and L1
|
int16_t mv[2][2]; // \brief Motion vectors for L0 and L1
|
||||||
uint8_t mv_ref[2]; // \brief Index of the L0 and L1 array.
|
uint8_t mv_ref[2]; // \brief Index of the L0 and L1 array.
|
||||||
uint8_t mv_cand0 : 3; // \brief selected MV candidate
|
uint8_t mv_cand0 : 3; // \brief selected MV candidate
|
||||||
|
|
|
@ -831,7 +831,6 @@ void kvz_encoder_create_ref_lists(const encoder_state_t *const state)
|
||||||
}
|
}
|
||||||
|
|
||||||
encoder_ref_insertion_sort(state, state->frame->ref_LX[0], state->frame->ref_LX_size[0]);
|
encoder_ref_insertion_sort(state, state->frame->ref_LX[0], state->frame->ref_LX_size[0]);
|
||||||
//encoder_ref_insertion_sort(state, state->frame->ref_LX[1], state->frame->ref_LX_size[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1249,7 +1249,7 @@ static void search_pu_inter_ref(encoder_state_t * const state,
|
||||||
// the index of the ref_idx in L0 or L1 list
|
// the index of the ref_idx in L0 or L1 list
|
||||||
int8_t LX_idx;
|
int8_t LX_idx;
|
||||||
// max value of LX_idx plus one
|
// max value of LX_idx plus one
|
||||||
const int8_t LX_IDX_MAX_PLUS_1 = max(state->frame->ref_LX_size[0],
|
const int8_t LX_IDX_MAX_PLUS_1 = MAX(state->frame->ref_LX_size[0],
|
||||||
state->frame->ref_LX_size[1]);
|
state->frame->ref_LX_size[1]);
|
||||||
|
|
||||||
for (LX_idx = 0; LX_idx < LX_IDX_MAX_PLUS_1; LX_idx++)
|
for (LX_idx = 0; LX_idx < LX_IDX_MAX_PLUS_1; LX_idx++)
|
||||||
|
|
Loading…
Reference in a new issue