[FFmpeg-devel] [PATCH v1 2/2] vaapi: add vaapi_avs2 support

Zhao Zhili quinkblack at foxmail.com
Sat Jan 20 06:22:33 EET 2024


> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of jianfeng.zheng
> Sent: 2024年1月19日 23:53
> To: ffmpeg-devel at ffmpeg.org
> Cc: jianfeng.zheng <jianfeng.zheng at mthreads.com>
> Subject: [FFmpeg-devel] [PATCH v1 2/2] vaapi: add vaapi_avs2 support
> 
> see https://github.com/intel/libva/pull/738
> 
> [Moore Threads](https://www.mthreads.com) (short for Mthreads) is a
> Chinese GPU manufacturer. All our products, like MTTS70/MTTS80/.. ,
> support AVS2 8bit/10bit HW decoding at max 8k resolution.
> 
> Signed-off-by: jianfeng.zheng <jianfeng.zheng at mthreads.com>
> ---
>  configure                    |   7 +
>  libavcodec/Makefile          |   2 +
>  libavcodec/allcodecs.c       |   1 +
>  libavcodec/avs2.c            | 345 ++++++++++++++-
>  libavcodec/avs2.h            | 460 +++++++++++++++++++-
>  libavcodec/avs2_parser.c     |   5 +-
>  libavcodec/avs2dec.c         | 569 +++++++++++++++++++++++++
>  libavcodec/avs2dec.h         |  48 +++
>  libavcodec/avs2dec_headers.c | 787 +++++++++++++++++++++++++++++++++++
>  libavcodec/codec_desc.c      |   5 +-
>  libavcodec/defs.h            |   4 +
>  libavcodec/hwaccels.h        |   1 +
>  libavcodec/libdavs2.c        |   2 +-
>  libavcodec/profiles.c        |   6 +
>  libavcodec/profiles.h        |   1 +
>  libavcodec/vaapi_avs2.c      | 227 ++++++++++
>  libavcodec/vaapi_decode.c    |   5 +
>  libavformat/matroska.c       |   1 +
>  libavformat/mpeg.h           |   1 +
>  19 files changed, 2450 insertions(+), 27 deletions(-)
>  create mode 100644 libavcodec/avs2dec.c
>  create mode 100644 libavcodec/avs2dec.h
>  create mode 100644 libavcodec/avs2dec_headers.c
>  create mode 100644 libavcodec/vaapi_avs2.c
> 

Please split the patch properly. It's hard to review in a single chunk, and it can't be tested
without the hardware.



More information about the ffmpeg-devel mailing list