mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
st/va: add VP9 config to enable profile2
Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
dac0024b58
commit
fa328456e8
2 changed files with 5 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list, int *num_
|
|||
*num_profiles = 0;
|
||||
|
||||
pscreen = VL_VA_PSCREEN(ctx);
|
||||
for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_VP9_PROFILE0; ++p) {
|
||||
for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_VP9_PROFILE2; ++p) {
|
||||
if (u_reduce_video_profile(p) == PIPE_VIDEO_FORMAT_MPEG4 && !debug_get_option_mpeg4())
|
||||
continue;
|
||||
|
||||
|
|
|
|||
|
|
@ -174,6 +174,8 @@ PipeToProfile(enum pipe_video_profile profile)
|
|||
return VAProfileJPEGBaseline;
|
||||
case PIPE_VIDEO_PROFILE_VP9_PROFILE0:
|
||||
return VAProfileVP9Profile0;
|
||||
case PIPE_VIDEO_PROFILE_VP9_PROFILE2:
|
||||
return VAProfileVP9Profile2;
|
||||
case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
|
||||
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
|
||||
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
|
||||
|
|
@ -222,6 +224,8 @@ ProfileToPipe(VAProfile profile)
|
|||
return PIPE_VIDEO_PROFILE_JPEG_BASELINE;
|
||||
case VAProfileVP9Profile0:
|
||||
return PIPE_VIDEO_PROFILE_VP9_PROFILE0;
|
||||
case VAProfileVP9Profile2:
|
||||
return PIPE_VIDEO_PROFILE_VP9_PROFILE2;
|
||||
case VAProfileNone:
|
||||
return PIPE_VIDEO_PROFILE_UNKNOWN;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue