Skip to content

Commit

Permalink
report the attribute, each refer list should be not empty when it is …
Browse files Browse the repository at this point in the history
…inter prediction

this attribute is used to distinguish whether driver support P frame or just support low delay B frame

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
  • Loading branch information
XinfengZhang authored and intel-mediadev committed May 29, 2020
1 parent 5bef595 commit d7061b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media_driver/linux/common/ddi/media_libva_caps.cpp
Expand Up @@ -928,7 +928,7 @@ VAStatus MediaLibvaCaps::CreateEncAttributes(
if (IsHevcProfile(profile) && (entrypoint == VAEntrypointEncSliceLP))
{
attrib.type = (VAConfigAttribType) VAConfigAttribPredictionDirection;
attrib.value = VA_PREDICTION_DIRECTION_PREVIOUS;
attrib.value = VA_PREDICTION_DIRECTION_PREVIOUS | VA_PREDICTION_DIRECTION_BI_NOT_EMPTY;
(*attribList)[attrib.type] = attrib.value;
}
return status;
Expand Down
2 changes: 1 addition & 1 deletion media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp
Expand Up @@ -1664,7 +1664,7 @@ VAStatus MediaLibvaCapsG12::CreateEncAttributes(
else if (IsHevcProfile(profile))
{
attrib.type = (VAConfigAttribType) VAConfigAttribPredictionDirection;
attrib.value = VA_PREDICTION_DIRECTION_PREVIOUS | VA_PREDICTION_DIRECTION_FUTURE;
attrib.value = VA_PREDICTION_DIRECTION_PREVIOUS | VA_PREDICTION_DIRECTION_FUTURE | VA_PREDICTION_DIRECTION_BI_NOT_EMPTY;
(*attribList)[attrib.type] = attrib.value;
}
}
Expand Down

0 comments on commit d7061b6

Please sign in to comment.