[PATCH 1/2] added support for hevc encoder

Kamil Konieczny kamil.konieczny at linux.intel.com
Wed Mar 20 11:06:06 UTC 2024


Hi Himanshu,
On 2024-03-19 at 18:29:14 +0530, Himanshu Nayak wrote:

Add description here. Also correct your subject, was:

[PATCH 1/2] added support for hevc encoder
------^---- ^
should be:

[PATCH i-g-t 1/2] tests/amdgpu/amd_vcn_hevc: added support for hevc encoder

> ---
>  lib/amdgpu/amd_mmd_decode_messages.h | 373 ++++++++++-
>  lib/amdgpu/amd_mmd_frame.h           | 771 +++++++++++++++++++++++
>  tests/amdgpu/amd_vcn.c               | 828 ++-----------------------
>  tests/amdgpu/amd_vcn_common.c        | 727 ++++++++++++++++++++++
>  tests/amdgpu/amd_vcn_common.h        | 187 ++++++
---^^^^^^^^^^^^^^^^^^^^^^^^^^^
Consider moving this to new lib, also split this patch into
smaller ones to easy review.

Last note, please subscribe to igt-dev list here:

https://lists.freedesktop.org/mailman/listinfo/igt-dev

Regards,
Kamil

>  tests/amdgpu/amd_vcn_hevc.c          | 887 +++++++++++++++++++++++++++
>  tests/amdgpu/amd_vcn_hevc.h          |  89 +++
>  7 files changed, 3075 insertions(+), 787 deletions(-)
>  create mode 100644 tests/amdgpu/amd_vcn_common.c
>  create mode 100644 tests/amdgpu/amd_vcn_common.h
>  create mode 100644 tests/amdgpu/amd_vcn_hevc.c
>  create mode 100644 tests/amdgpu/amd_vcn_hevc.h
> 
> diff --git a/lib/amdgpu/amd_mmd_decode_messages.h b/lib/amdgpu/amd_mmd_decode_messages.h
> index 22f223aaf..c30202411 100644
> --- a/lib/amdgpu/amd_mmd_decode_messages.h
> +++ b/lib/amdgpu/amd_mmd_decode_messages.h
> @@ -324,6 +324,123 @@ static const uint8_t uvd_bitstream[] ={
>  	0xeb,0xae,0xba,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
>  };
>  
> +static const uint8_t hevc_bitstream[] ={
> +	0x00,0x00,0x00,0x01,0x26,0x01,0xAD,0xC0,0x37,0x12,0x32,0xE0,0x72,0x3D,0xA8,0x69,
> +	0x4D,0x13,0xB7,0x96,0xB6,0x88,0x98,0x91,0x51,0x41,0xAE,0x7B,0x2C,0x61,0xF0,0xE4,
> +	0xE0,0x37,0x42,0x4F,0x5A,0x44,0x6C,0xE2,0x34,0x0D,0x69,0x57,0x92,0x3A,0x00,0x03,

...cut...



More information about the igt-dev mailing list