mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
scalinglist changes missing in previous commit
This commit is contained in:
parent
9901c38dd5
commit
e06253d437
|
@ -805,8 +805,8 @@ void encode_seq_parameter_set(const encoder_control * const encoder)
|
||||||
WRITE_UE(encoder->stream, TR_DEPTH_INTRA, "max_transform_hierarchy_depth_intra");
|
WRITE_UE(encoder->stream, TR_DEPTH_INTRA, "max_transform_hierarchy_depth_intra");
|
||||||
|
|
||||||
// scaling list
|
// scaling list
|
||||||
WRITE_U(encoder->stream, encoder->scaling_list_enable, 1, "scaling_list_enable_flag");
|
WRITE_U(encoder->stream, encoder->scaling_list.enable, 1, "scaling_list_enable_flag");
|
||||||
if (encoder->scaling_list_enable) {
|
if (encoder->scaling_list.enable) {
|
||||||
WRITE_U(encoder->stream, 1, 1, "sps_scaling_list_data_present_flag");
|
WRITE_U(encoder->stream, 1, 1, "sps_scaling_list_data_present_flag");
|
||||||
encode_scaling_list(encoder);
|
encode_scaling_list(encoder);
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,6 @@ typedef struct
|
||||||
int8_t aud_enable;
|
int8_t aud_enable;
|
||||||
|
|
||||||
//scaling list
|
//scaling list
|
||||||
uint8_t scaling_list_enable;
|
|
||||||
scaling_list scaling_list;
|
scaling_list scaling_list;
|
||||||
} encoder_control;
|
} encoder_control;
|
||||||
|
|
||||||
|
|
|
@ -764,7 +764,7 @@ void dequant(const encoder_control * const encoder, int16_t *q_coef, int16_t *co
|
||||||
|
|
||||||
shift = 20 - QUANT_SHIFT - transform_shift;
|
shift = 20 - QUANT_SHIFT - transform_shift;
|
||||||
|
|
||||||
if (encoder->scaling_list_enable)
|
if (encoder->scaling_list.enable)
|
||||||
{
|
{
|
||||||
uint32_t log2_tr_size = g_convert_to_bit[ width ] + 2;
|
uint32_t log2_tr_size = g_convert_to_bit[ width ] + 2;
|
||||||
int32_t scalinglist_type = (block_type == CU_INTRA ? 0 : 3) + (int8_t)("\0\3\1\2"[type]);
|
int32_t scalinglist_type = (block_type == CU_INTRA ? 0 : 3) + (int8_t)("\0\3\1\2"[type]);
|
||||||
|
|
Loading…
Reference in a new issue