gallium: add temporal layers cap enum
authorThong Thai <thong.thai@amd.com>
Tue, 13 Jul 2021 15:55:00 +0000 (11:55 -0400)
committerThong Thai <thong.thai@amd.com>
Mon, 26 Jul 2021 19:05:26 +0000 (15:05 -0400)
Determine the number of temporal layers the encoder supports. Used for
encoding Scalable Video Coding (SVC) videos.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>

src/gallium/include/pipe/p_video_enums.h

index e26f73f..02a3ff8 100644 (file)
@@ -90,6 +90,7 @@ enum pipe_video_cap
    PIPE_VIDEO_CAP_MAX_LEVEL = 8,
    PIPE_VIDEO_CAP_STACKED_FRAMES = 9,
    PIPE_VIDEO_CAP_MAX_MACROBLOCKS = 10,
+   PIPE_VIDEO_CAP_MAX_TEMPORAL_LAYERS = 11,
 };
 
 enum pipe_video_entrypoint