chromium-fix-libva-redef.patch 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --- a/third_party/libva_protected_content/va_protected_content.h
  2. +++ b/third_party/libva_protected_content/va_protected_content.h
  3. @@ -132,19 +132,6 @@
  4. #define VA_PC_SAMPLE_TYPE_FULLSAMPLE 0x00000001
  5. #define VA_PC_SAMPLE_TYPE_SUBSAMPLE 0x00000002
  6. -/** \brief TeeExec Function Codes. */
  7. -typedef enum _VA_TEE_EXEC_FUNCTION_ID {
  8. - VA_TEE_EXEC_TEE_FUNCID_PASS_THROUGH_NONE = 0x0,
  9. -
  10. - // 0x40000000~0x400000FFF reserved for TEE Exec GPU function
  11. - VA_TEE_EXEC_GPU_FUNCID_ENCRYPTION_BLT = 0x40000000,
  12. - VA_TEE_EXEC_GPU_FUNCID_DECRYPTION_BLT = 0x40000001,
  13. -
  14. - // 0x40001000~0x400001FFF reserved for TEE Exec TEE function
  15. - VA_TEE_EXEC_TEE_FUNCID_PASS_THROUGH = 0x40001000,
  16. -
  17. -} VA_TEE_EXEC_FUNCTION_ID;
  18. -
  19. /** \brief values for the encryption return status. */
  20. typedef enum {
  21. /** \brief Indicate encryption operation is successful.*/
  22. @@ -159,63 +146,6 @@
  23. VA_ENCRYPTION_STATUS_UNSUPPORT
  24. } VAEncryptionStatus;
  25. -/** \brief structure for encrypted segment info. */
  26. -typedef struct _VAEncryptionSegmentInfo {
  27. - /** \brief The offset relative to the start of the bitstream input in
  28. - * bytes of the start of the segment*/
  29. - uint32_t segment_start_offset;
  30. - /** \brief The length of the segments in bytes*/
  31. - uint32_t segment_length;
  32. - /** \brief The length in bytes of the remainder of an incomplete block
  33. - * from a previous segment*/
  34. - uint32_t partial_aes_block_size;
  35. - /** \brief The length in bytes of the initial clear data */
  36. - uint32_t init_byte_length;
  37. - /** \brief This will be AES 128 counter for secure decode and secure
  38. - * encode when numSegments equals 1 */
  39. - uint8_t aes_cbc_iv_or_ctr[16];
  40. - /** \brief Reserved bytes for future use, must be zero */
  41. - uint32_t va_reserved[VA_PADDING_MEDIUM];
  42. -} VAEncryptionSegmentInfo;
  43. -
  44. -/** \brief encryption parameters, corresponding to
  45. - * #VAEncryptionParameterBufferType*/
  46. -typedef struct _VAEncryptionParameters {
  47. - /** \brief Encryption type, attribute values. */
  48. - uint32_t encryption_type;
  49. - /** \brief The number of sengments */
  50. - uint32_t num_segments;
  51. - /** \brief Pointer of segments */
  52. - VAEncryptionSegmentInfo* segment_info;
  53. - /** \brief The status report index for CENC workload.
  54. - * The value is to indicate CENC workload and needs to be
  55. - * different for each CENC workload */
  56. - uint32_t status_report_index;
  57. - /** \brief CENC counter length */
  58. - uint32_t size_of_length;
  59. - /** \brief Wrapped decrypt blob (Snd)kb */
  60. - uint8_t wrapped_decrypt_blob[16];
  61. - /** \brief Wrapped Key blob info (Sne)kb */
  62. - uint8_t wrapped_encrypt_blob[16];
  63. - /** \brief Indicates the number of 16-byte BLOCKS that are encrypted in any
  64. - * given encrypted region of segments.
  65. - * If this value is zero:
  66. - * 1. All bytes in encrypted region of segments are encrypted, i.e. the
  67. - * CENC or CBC1 scheme is being used
  68. - * 2. blocks_stripe_clear must also be zero.
  69. - * If this value is non-zero, blocks_stripe_clear must also be non-zero. */
  70. - uint32_t blocks_stripe_encrypted;
  71. - /** \brief Indicates the number of 16-byte BLOCKS that are clear in any given
  72. - * encrypted region of segments, as defined by the CENS and CBCS schemes in
  73. - * the common encryption spec.
  74. - * If this value is zero, all bytes in encrypted region of segments are
  75. - * encrypted, i.e. the CENC or CBC1 scheme is being used.
  76. - */
  77. - uint32_t blocks_stripe_clear;
  78. - /** \brief Reserved bytes for future use, must be zero */
  79. - uint32_t va_reserved[VA_PADDING_MEDIUM];
  80. -} VAEncryptionParameters;
  81. -
  82. /** \brief structure for VA_TEE_EXEC_GPU_FUNCID_ENCRYPTION_BLT */
  83. typedef struct _VA_PROTECTED_BLT_PARAMS {
  84. uint8_t* src_resource; // The source resource which contains the clear data.