diff options
| author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2021-02-02 12:16:22 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-02-02 15:27:45 +0800 |
| commit | 8f00772c19e7b5cc9dab1b3eb3a36787d35412f7 (patch) | |
| tree | 6d1a3d4266858b65468760ed5cae962fb8d9e8f6 /recipes-multimedia/libva/files | |
| parent | 09d2b6900eeb93b62bee58aa6782db43ace97516 (diff) | |
| download | meta-intel-8f00772c19e7b5cc9dab1b3eb3a36787d35412f7.tar.gz | |
intel-media-driver: backport fixed VP9 444 frame header.
Fixes VP9 444 encode output not able decode with
gstreamer-vaapi master.
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia/libva/files')
| -rw-r--r-- | recipes-multimedia/libva/files/0001-Encode-Fixed-VP9-444-frame-header.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0001-Encode-Fixed-VP9-444-frame-header.patch b/recipes-multimedia/libva/files/0001-Encode-Fixed-VP9-444-frame-header.patch new file mode 100644 index 00000000..3f220f7a --- /dev/null +++ b/recipes-multimedia/libva/files/0001-Encode-Fixed-VP9-444-frame-header.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From 24da63ad1e0215b103c29b1bce29e126ca94ba00 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Lim Siew Hoon <siew.hoon.lim@intel.com> | ||
| 3 | Date: Thu, 17 Dec 2020 14:33:21 +0800 | ||
| 4 | Subject: [PATCH] [Encode] Fixed VP9 444 frame header | ||
| 5 | |||
| 6 | According VP9 spec section 7.2.2 color config semantics, | ||
| 7 | both subsampling_x and subsampling_y should be 0 for YUV444. | ||
| 8 | Only YUV440 subsampling_x=0 and subsampling_y=1. | ||
| 9 | |||
| 10 | fixes #1074 | ||
| 11 | |||
| 12 | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> | ||
| 13 | |||
| 14 | The patch was imported from the iHD media-driver git server | ||
| 15 | (https://github.com/intel/media-driver.git) as of commit id | ||
| 16 | a33eaaec2f71f04c8850db9287ee4012e143e283. | ||
| 17 | |||
| 18 | Upstream-Status: Backport | ||
| 19 | |||
| 20 | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> | ||
| 21 | --- | ||
| 22 | media_driver/linux/common/codec/ddi/media_libvpx_vp9.cpp | 4 ++-- | ||
| 23 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 24 | |||
| 25 | diff --git a/media_driver/linux/common/codec/ddi/media_libvpx_vp9.cpp b/media_driver/linux/common/codec/ddi/media_libvpx_vp9.cpp | ||
| 26 | index df89f4fe..41357b0e 100644 | ||
| 27 | --- a/media_driver/linux/common/codec/ddi/media_libvpx_vp9.cpp | ||
| 28 | +++ b/media_driver/linux/common/codec/ddi/media_libvpx_vp9.cpp | ||
| 29 | @@ -97,9 +97,9 @@ void write_bitdepth_colorspace_sampling(uint32_t codecProfile, | ||
| 30 | (codecProfile == VP9_PROFILE_3)) | ||
| 31 | { | ||
| 32 | /* sub_sampling_x/y */ | ||
| 33 | - /* Currently the sub_sampling_x = 0, sub_sampling_y = 1 */ | ||
| 34 | + /* Currently the sub_sampling_x = 0, sub_sampling_y = 0 */ | ||
| 35 | + vp9_wb_write_bit(wb, 0); | ||
| 36 | vp9_wb_write_bit(wb, 0); | ||
| 37 | - vp9_wb_write_bit(wb, 1); | ||
| 38 | vp9_wb_write_bit(wb, 0); // unused | ||
| 39 | } | ||
| 40 | } | ||
| 41 | -- | ||
| 42 | 2.17.1 | ||
| 43 | |||
