diff options
Diffstat (limited to 'recipes-multimedia/libva/files/0001-Change-RGB-mask-and-order-for-BMG.patch')
-rw-r--r-- | recipes-multimedia/libva/files/0001-Change-RGB-mask-and-order-for-BMG.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/recipes-multimedia/libva/files/0001-Change-RGB-mask-and-order-for-BMG.patch b/recipes-multimedia/libva/files/0001-Change-RGB-mask-and-order-for-BMG.patch deleted file mode 100644 index 0b3277b0..00000000 --- a/recipes-multimedia/libva/files/0001-Change-RGB-mask-and-order-for-BMG.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 8e7b263729bec520cf830cbf85216c2d6466421d Mon Sep 17 00:00:00 2001 | ||
2 | From: "Hoe, Sheng Yang" <sheng.yang.hoe@intel.com> | ||
3 | Date: Fri, 22 Nov 2024 10:11:14 +0000 | ||
4 | Subject: [PATCH] Change RGB mask and order for BMG | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/intel/media-driver/pull/1884] | ||
7 | |||
8 | Signed-off-by: Hoe, Sheng Yang <sheng.yang.hoe@intel.com> | ||
9 | --- | ||
10 | .../ddi/capstable_data_image_format_definition.h | 11 ++++++----- | ||
11 | 1 file changed, 6 insertions(+), 5 deletions(-) | ||
12 | |||
13 | diff --git a/media_softlet/linux/common/ddi/capstable_data_image_format_definition.h b/media_softlet/linux/common/ddi/capstable_data_image_format_definition.h | ||
14 | index af28653a5..ec99164ce 100644 | ||
15 | --- a/media_softlet/linux/common/ddi/capstable_data_image_format_definition.h | ||
16 | +++ b/media_softlet/linux/common/ddi/capstable_data_image_format_definition.h | ||
17 | @@ -29,13 +29,14 @@ | ||
18 | |||
19 | #include "va/va.h" | ||
20 | |||
21 | -static VAImageFormat formatBGRA = {VA_FOURCC_BGRA, VA_LSB_FIRST, 32, 32, 0x0000ff00, 0x00ff0000, 0xff000000, 0x000000ff }; /* [31:0] B:G:R:A 8:8:8:8 little endian */ | ||
22 | +// "VA_LSB_FIRST" is to identify how following bit masks mapped to address instead of char order in VA_FOURCC_RGBA naming. | ||
23 | +static VAImageFormat formatBGRA = {VA_FOURCC_BGRA, VA_LSB_FIRST, 32, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000}; /* [31:0] A:R:G:B 8:8:8:8 little endian */ | ||
24 | static VAImageFormat formatARGB = {VA_FOURCC_ARGB, VA_LSB_FIRST, 32, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 }; /* [31:0] A:R:G:B 8:8:8:8 little endian */ | ||
25 | -static VAImageFormat formatRGBA = {VA_FOURCC_RGBA, VA_LSB_FIRST, 32, 32, 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff }; /* [31:0] R:G:B:A 8:8:8:8 little endian */ | ||
26 | +static VAImageFormat formatRGBA = {VA_FOURCC_RGBA, VA_LSB_FIRST, 32, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000}; /* [31:0] A:B:G:R 8:8:8:8 little endian */ | ||
27 | static VAImageFormat formatABGR = {VA_FOURCC_ABGR, VA_LSB_FIRST, 32, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 }; /* [31:0] A:B:G:R 8:8:8:8 little endian */ | ||
28 | -static VAImageFormat formatBGRX = {VA_FOURCC_BGRX, VA_LSB_FIRST, 32, 24, 0x0000ff00, 0x00ff0000, 0xff000000, 0 }; /* [31:0] B:G:R:x 8:8:8:8 little endian */ | ||
29 | +static VAImageFormat formatBGRX = {VA_FOURCC_BGRX, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0}; /* [31:0] X:R:G:B 8:8:8:8 little endian */ | ||
30 | static VAImageFormat formatXRGB = {VA_FOURCC_XRGB, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0 }; /* [31:0] x:R:G:B 8:8:8:8 little endian */ | ||
31 | -static VAImageFormat formatRGBX = {VA_FOURCC_RGBX, VA_LSB_FIRST, 32, 24, 0xff000000, 0x00ff0000, 0x0000ff00, 0 }; /* [31:0] R:G:B:x 8:8:8:8 little endian */ | ||
32 | +static VAImageFormat formatRGBX = {VA_FOURCC_RGBX, VA_LSB_FIRST, 32, 24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0}; /* [31:0] X:B:G:R 8:8:8:8 little endian */ | ||
33 | static VAImageFormat formatXBGR = {VA_FOURCC_XBGR, VA_LSB_FIRST, 32, 24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0 }; /* [31:0] x:B:G:R 8:8:8:8 little endian */ | ||
34 | static VAImageFormat formatA2R10G10B10 = {VA_FOURCC_A2R10G10B10, VA_LSB_FIRST, 32, 30, 0x3ff00000, 0x000ffc00, 0x000003ff, 0x30000000 }; /* [31:0] A:R:G:B 2:10:10:10 little endian */ | ||
35 | static VAImageFormat formatA2B10G10R10 = {VA_FOURCC_A2B10G10R10, VA_LSB_FIRST, 32, 30, 0x000003ff, 0x000ffc00, 0x3ff00000, 0x30000000 }; /* [31:0] A:B:G:R 2:10:10:10 little endian */ | ||
36 | @@ -70,4 +71,4 @@ static VAImageFormat formatY416 = {VA_FOURCC_Y416, VA_LSB_FIRST, | ||
37 | static VAImageFormat formatRGBP = {VA_FOURCC_RGBP, VA_LSB_FIRST, 24, 24,0,0,0,0}; | ||
38 | static VAImageFormat formatBGRP = {VA_FOURCC_BGRP, VA_LSB_FIRST, 24, 24,0,0,0,0}; | ||
39 | |||
40 | -#endif //__CAPSTABLE_DATA_IMAGE_FORMAT_DEFINITION_H__ | ||
41 | \ No newline at end of file | ||
42 | +#endif //__CAPSTABLE_DATA_IMAGE_FORMAT_DEFINITION_H__ | ||
43 | -- | ||
44 | 2.34.1 | ||
45 | |||