diff options
author | Leo Liu <[email protected]> | 2015-03-12 14:09:49 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-04-28 17:42:29 +0200 |
commit | d043b51ba47688044b1a09a6023093a90ad62e6a (patch) | |
tree | 96711c561d9ba04309572bf4bfe23b17a36e8502 /src/gallium/state_trackers/vdpau | |
parent | 4509fc8b94a0dcf8a847e1f885685a4d2d660c5a (diff) |
st/vdpau: add h264 decoder level support
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau')
-rw-r--r-- | src/gallium/state_trackers/vdpau/decode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index 767d3114125..0634ba72fda 100644 --- a/src/gallium/state_trackers/vdpau/decode.c +++ b/src/gallium/state_trackers/vdpau/decode.c @@ -118,6 +118,11 @@ vlVdpDecoderCreate(VdpDevice device, templat.height = height; templat.max_references = max_references; + if (u_reduce_video_profile(templat.profile) == + PIPE_VIDEO_FORMAT_MPEG4_AVC) + templat.level = u_get_h264_level(templat.width, templat.height, + &templat.max_references); + vldecoder->decoder = pipe->create_video_codec(pipe, &templat); if (!vldecoder->decoder) { |