vl: add flag and definition for protected playback
authorBoyuan Zhang <boyuan.zhang@amd.com>
Mon, 10 Feb 2020 19:37:36 +0000 (14:37 -0500)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 4 Nov 2020 08:21:13 +0000 (09:21 +0100)
Add a flag to indicate if playback is protected/encrypted.
Add a pointer to decryption key for later decryption use.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7006>

src/gallium/include/pipe/p_video_state.h

index 9b10acd..43320c2 100644 (file)
@@ -151,6 +151,8 @@ struct pipe_picture_desc
 {
    enum pipe_video_profile profile;
    enum pipe_video_entrypoint entry_point;
+   bool protected_playback;
+   uint8_t *decrypt_key;
 };
 
 struct pipe_quant_matrix