mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
st/va: add h264 decoder level support
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
b2596efeb7
commit
2d4a890c0b
1 changed files with 5 additions and 0 deletions
|
|
@ -167,6 +167,11 @@ vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width,
|
|||
templat.max_references = num_render_targets;
|
||||
templat.expect_chunked_decode = true;
|
||||
|
||||
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);
|
||||
|
||||
context->decoder = drv->pipe->create_video_codec(drv->pipe, &templat);
|
||||
if (!context->decoder) {
|
||||
FREE(context);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue