Skip to content

Commit

Permalink
[Encode] Report sub features for HEVC VDENC
Browse files Browse the repository at this point in the history
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes
with the approriate values for HEVC VDENC.
  • Loading branch information
Tianhaol committed Jan 7, 2021
1 parent fcdacb4 commit d9ca0fe
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,51 @@ VAStatus MediaLibvaCapsG12::GetPlatformSpecificAttrib(VAProfile profile,
*value = VA_PREDICTION_DIRECTION_PREVIOUS | VA_PREDICTION_DIRECTION_FUTURE | VA_PREDICTION_DIRECTION_BI_NOT_EMPTY;
break;
}
case VAConfigAttribEncHEVCFeatures:
{
if(entrypoint == VAEntrypointEncSliceLP && IsHevcProfile(profile))
{
VAConfigAttribValEncHEVCFeatures hevcFeatures = {0};
hevcFeatures.bits.separate_colour_planes = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.scaling_lists = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.amp = VA_FEATURE_REQUIRED;
hevcFeatures.bits.sao = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.pcm = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.temporal_mvp = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.strong_intra_smoothing = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.dependent_slices = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.sign_data_hiding = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.constrained_intra_pred = VA_FEATURE_NOT_SUPPORTED;
hevcFeatures.bits.transform_skip = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.cu_qp_delta = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.weighted_prediction = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.transquant_bypass = VA_FEATURE_SUPPORTED;
hevcFeatures.bits.deblocking_filter_disable = VA_FEATURE_NOT_SUPPORTED;
*value = hevcFeatures.value;
}
break;
}
case VAConfigAttribEncHEVCBlockSizes:
{
if(entrypoint == VAEntrypointEncSliceLP && IsHevcProfile(profile))
{
VAConfigAttribValEncHEVCBlockSizes hevcBlockSize = {0};
hevcBlockSize.bits.log2_max_coding_tree_block_size_minus3 = 3;
hevcBlockSize.bits.log2_min_coding_tree_block_size_minus3 = 3;
hevcBlockSize.bits.log2_min_luma_coding_block_size_minus3 = 0;
hevcBlockSize.bits.log2_max_luma_transform_block_size_minus2 = 3;
hevcBlockSize.bits.log2_min_luma_transform_block_size_minus2 = 0;
hevcBlockSize.bits.max_max_transform_hierarchy_depth_inter = 2;
hevcBlockSize.bits.min_max_transform_hierarchy_depth_inter = 0;
hevcBlockSize.bits.max_max_transform_hierarchy_depth_intra = 2;
hevcBlockSize.bits.min_max_transform_hierarchy_depth_intra = 0;
hevcBlockSize.bits.log2_min_cu_qp_delta_size_minus3 = 0;
hevcBlockSize.bits.log2_max_pcm_coding_block_size_minus3 = 0;
hevcBlockSize.bits.log2_min_pcm_coding_block_size_minus3 = 0;
*value = hevcBlockSize.value;
}
break;
}
default:
status = VA_STATUS_ERROR_INVALID_PARAMETER;
break;
Expand Down

0 comments on commit d9ca0fe

Please sign in to comment.