mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
utils: add H.264 MVC profiles.
Add "MultiView High" and "Stereo High" definitions. Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com> [require VA-API >= 0.35.2 for MVC profiles] Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
800bfc1add
commit
fb7ecb15e2
2 changed files with 15 additions and 0 deletions
|
@ -112,6 +112,14 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = {
|
||||||
{ GST_VAAPI_PROFILE_H264_HIGH, VAProfileH264High,
|
{ GST_VAAPI_PROFILE_H264_HIGH, VAProfileH264High,
|
||||||
"video/x-h264", "high"
|
"video/x-h264", "high"
|
||||||
},
|
},
|
||||||
|
#if VA_CHECK_VERSION(0,35,2)
|
||||||
|
{ GST_VAAPI_PROFILE_H264_MULTIVIEW_HIGH, VAProfileH264MultiviewHigh,
|
||||||
|
"video/x-h264", "multiview-high"
|
||||||
|
},
|
||||||
|
{ GST_VAAPI_PROFILE_H264_STEREO_HIGH, VAProfileH264StereoHigh,
|
||||||
|
"video/x-h264", "stereo-high"
|
||||||
|
},
|
||||||
|
#endif
|
||||||
{ GST_VAAPI_PROFILE_VC1_SIMPLE, VAProfileVC1Simple,
|
{ GST_VAAPI_PROFILE_VC1_SIMPLE, VAProfileVC1Simple,
|
||||||
"video/x-wmv, wmvversion=3", "simple"
|
"video/x-wmv, wmvversion=3", "simple"
|
||||||
},
|
},
|
||||||
|
@ -275,6 +283,9 @@ gst_vaapi_profile_from_codec_data_h264(GstBuffer *buffer)
|
||||||
GST_VAAPI_PROFILE_H264_BASELINE);
|
GST_VAAPI_PROFILE_H264_BASELINE);
|
||||||
case 77: return GST_VAAPI_PROFILE_H264_MAIN;
|
case 77: return GST_VAAPI_PROFILE_H264_MAIN;
|
||||||
case 100: return GST_VAAPI_PROFILE_H264_HIGH;
|
case 100: return GST_VAAPI_PROFILE_H264_HIGH;
|
||||||
|
case 118: return GST_VAAPI_PROFILE_H264_MULTIVIEW_HIGH;
|
||||||
|
case 128: return GST_VAAPI_PROFILE_H264_STEREO_HIGH;
|
||||||
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,6 +142,10 @@ string_of_VAProfile (VAProfile profile)
|
||||||
MAP (H264Baseline);
|
MAP (H264Baseline);
|
||||||
MAP (H264Main);
|
MAP (H264Main);
|
||||||
MAP (H264High);
|
MAP (H264High);
|
||||||
|
#if VA_CHECK_VERSION(0,35,2)
|
||||||
|
MAP (H264MultiviewHigh);
|
||||||
|
MAP (H264StereoHigh);
|
||||||
|
#endif
|
||||||
MAP (VC1Simple);
|
MAP (VC1Simple);
|
||||||
MAP (VC1Main);
|
MAP (VC1Main);
|
||||||
MAP (VC1Advanced);
|
MAP (VC1Advanced);
|
||||||
|
|
Loading…
Reference in a new issue