mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix missing field initializers.
This commit is contained in:
parent
06b82bf888
commit
22cc97ffb1
|
@ -661,7 +661,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
||||||
unsigned d; // depth
|
unsigned d; // depth
|
||||||
unsigned r; // references
|
unsigned r; // references
|
||||||
unsigned t; // temporal
|
unsigned t; // temporal
|
||||||
} gop = { 0 };
|
} gop = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
if (sscanf(value, "lp-g%ud%ur%ut%u", &gop.g, &gop.d, &gop.r, &gop.t) != 4) {
|
if (sscanf(value, "lp-g%ud%ur%ut%u", &gop.g, &gop.d, &gop.r, &gop.t) != 4) {
|
||||||
fprintf(stderr, "Error in GOP syntax. Example: lp-g8d4r2t2\n");
|
fprintf(stderr, "Error in GOP syntax. Example: lp-g8d4r2t2\n");
|
||||||
|
|
12
src/inter.c
12
src/inter.c
|
@ -45,7 +45,7 @@ static void inter_recon_frac_luma(const encoder_state_t * const state,
|
||||||
#define FILTER_SIZE_Y 8 //Luma filter size
|
#define FILTER_SIZE_Y 8 //Luma filter size
|
||||||
|
|
||||||
// Fractional luma 1/4-pel
|
// Fractional luma 1/4-pel
|
||||||
kvz_extended_block src = {0, 0, 0};
|
kvz_extended_block src = {0, 0, 0, 0};
|
||||||
|
|
||||||
// Fractional luma
|
// Fractional luma
|
||||||
kvz_get_extended_block(xpos,
|
kvz_get_extended_block(xpos,
|
||||||
|
@ -90,7 +90,7 @@ static void inter_recon_14bit_frac_luma(const encoder_state_t * const state,
|
||||||
#define FILTER_SIZE_Y 8 //Luma filter size
|
#define FILTER_SIZE_Y 8 //Luma filter size
|
||||||
|
|
||||||
// Fractional luma 1/4-pel
|
// Fractional luma 1/4-pel
|
||||||
kvz_extended_block src = { 0, 0, 0 };
|
kvz_extended_block src = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
// Fractional luma
|
// Fractional luma
|
||||||
kvz_get_extended_block(xpos,
|
kvz_get_extended_block(xpos,
|
||||||
|
@ -141,8 +141,8 @@ static void inter_recon_frac_chroma(const encoder_state_t * const state,
|
||||||
#define FILTER_SIZE_C 4 //Chroma filter size
|
#define FILTER_SIZE_C 4 //Chroma filter size
|
||||||
|
|
||||||
// Fractional chroma 1/8-pel
|
// Fractional chroma 1/8-pel
|
||||||
kvz_extended_block src_u = { 0, 0, 0 };
|
kvz_extended_block src_u = { 0, 0, 0, 0 };
|
||||||
kvz_extended_block src_v = { 0, 0, 0 };
|
kvz_extended_block src_v = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
//Fractional chroma U
|
//Fractional chroma U
|
||||||
kvz_get_extended_block(xpos, ypos, (mv_param[0] >> 2) >> 1, (mv_param[1] >> 2) >> 1, state->tile->lcu_offset_x * LCU_WIDTH_C, state->tile->lcu_offset_y * LCU_WIDTH_C,
|
kvz_get_extended_block(xpos, ypos, (mv_param[0] >> 2) >> 1, (mv_param[1] >> 2) >> 1, state->tile->lcu_offset_x * LCU_WIDTH_C, state->tile->lcu_offset_y * LCU_WIDTH_C,
|
||||||
|
@ -181,8 +181,8 @@ static void inter_recon_14bit_frac_chroma(const encoder_state_t * const state,
|
||||||
#define FILTER_SIZE_C 4 //Chroma filter size
|
#define FILTER_SIZE_C 4 //Chroma filter size
|
||||||
|
|
||||||
// Fractional chroma 1/8-pel
|
// Fractional chroma 1/8-pel
|
||||||
kvz_extended_block src_u = { 0, 0, 0 };
|
kvz_extended_block src_u = { 0, 0, 0, 0 };
|
||||||
kvz_extended_block src_v = { 0, 0, 0 };
|
kvz_extended_block src_v = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
//Fractional chroma U
|
//Fractional chroma U
|
||||||
kvz_get_extended_block(xpos,
|
kvz_get_extended_block(xpos,
|
||||||
|
|
|
@ -283,7 +283,7 @@ static int kvazaar_field_encoding_adapter(kvz_encoder *enc,
|
||||||
struct {
|
struct {
|
||||||
kvz_data_chunk* data_out;
|
kvz_data_chunk* data_out;
|
||||||
uint32_t len_out;
|
uint32_t len_out;
|
||||||
} first = { 0 }, second = { 0 };
|
} first = { 0, 0 }, second = { 0, 0 };
|
||||||
|
|
||||||
if (pic_in != NULL) {
|
if (pic_in != NULL) {
|
||||||
first_field = kvz_image_alloc(state->encoder_control->in.width, state->encoder_control->in.height);
|
first_field = kvz_image_alloc(state->encoder_control->in.width, state->encoder_control->in.height);
|
||||||
|
|
|
@ -1017,7 +1017,7 @@ static unsigned search_frac(encoder_state_t * const state,
|
||||||
|
|
||||||
unsigned costs[4] = { 0 };
|
unsigned costs[4] = { 0 };
|
||||||
|
|
||||||
kvz_extended_block src = { 0, 0, 0 };
|
kvz_extended_block src = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
// Buffers for interpolated fractional pixels one
|
// Buffers for interpolated fractional pixels one
|
||||||
// for each position excluding the integer position.
|
// for each position excluding the integer position.
|
||||||
|
|
Loading…
Reference in a new issue