Skip to content

Commit

Permalink
[HEVCe] update header logic
Browse files Browse the repository at this point in the history
update hevce fill header logic when VAConfigAttribEncHEVCFeatures
supported.
  • Loading branch information
bai-isaac committed Jul 16, 2024
1 parent bbf09fa commit 067b4ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions encode/hevcencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,9 @@ void fill_sps_header(struct SeqParamSet *sps, int id)
sps->log2_min_luma_transform_block_size_minus2) : 3;
sps->max_transform_hierarchy_depth_inter = use_block_sizes ? block_sizes.max_max_transform_hierarchy_depth_inter : 2;
sps->max_transform_hierarchy_depth_intra = use_block_sizes ? block_sizes.max_max_transform_hierarchy_depth_intra : 2;
sps->scaling_list_enabled_flag = use_features ? features.scaling_lists : 0;
sps->sps_scaling_list_data_present_flag = 0;
sps->amp_enabled_flag = use_features ? features.amp : 1;
sps->scaling_list_enabled_flag = 0;
//sps->sps_scaling_list_data_present_flag; // ignore since scaling_list_enabled_flag equal to 0
sps->amp_enabled_flag = use_features ? features.amp >= 1 : 1;
sps->sample_adaptive_offset_enabled_flag = use_features ? features.sao : 1;
sps->pcm_enabled_flag = use_features ? features.pcm : 0;
/* ignore below parameters seting since pcm_enabled_flag equal to 0
Expand Down Expand Up @@ -899,7 +899,7 @@ static void fill_pps_header(
pps->init_qp_minus26 = initial_qp - 26;
pps->constrained_intra_pred_flag = use_features ? features.constrained_intra_pred : 0;
pps->transform_skip_enabled_flag = use_features ? features.transform_skip : 0;
pps->cu_qp_delta_enabled_flag = use_features ? features.cu_qp_delta : 1;
pps->cu_qp_delta_enabled_flag = use_features ? features.cu_qp_delta >= 1 : 1;
if (pps->cu_qp_delta_enabled_flag)
pps->diff_cu_qp_delta_depth = 2;
pps->pps_cb_qp_offset = 0;
Expand Down Expand Up @@ -2048,7 +2048,6 @@ static int init_va(void)

if (lowpower)
{
entryPoint = VAEntrypointEncSliceLP;
LCU_SIZE = 64;
}

Expand Down

0 comments on commit 067b4ae

Please sign in to comment.