This commit is contained in:
committed by
Git OBS Bridge
parent
7e71b7ef50
commit
8c86bbfb76
@@ -2,7 +2,19 @@ Index: chromium-71.0.3578.80/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- chromium-71.0.3578.80.orig/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
--- chromium-71.0.3578.80.orig/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
||||||
+++ chromium-71.0.3578.80/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
+++ chromium-71.0.3578.80/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
||||||
@@ -58,9 +58,11 @@ constexpr VAImageFormat kImageFormatYUYV
|
@@ -47,9 +47,11 @@ static void ReportToUMA(VAJDADecoderFail
|
||||||
|
// macro in the header file without pulling in the entire <va/va.h>.
|
||||||
|
static_assert(VA_FOURCC_YUYV == VA_FOURCC('Y', 'U', 'Y', 'V'),
|
||||||
|
"VA_FOURCC_YUYV must be equal to VA_FOURCC('Y', 'U', 'Y', 'V')");
|
||||||
|
+#ifdef VA_FOURCC_I420
|
||||||
|
constexpr VAImageFormat kImageFormatI420 = {.fourcc = VA_FOURCC_I420,
|
||||||
|
.byte_order = VA_LSB_FIRST,
|
||||||
|
.bits_per_pixel = 12};
|
||||||
|
+#endif
|
||||||
|
constexpr VAImageFormat kImageFormatYUYV = {.fourcc = VA_FOURCC_YUYV,
|
||||||
|
.byte_order = VA_LSB_FIRST,
|
||||||
|
.bits_per_pixel = 16};
|
||||||
|
@@ -58,9 +60,11 @@ constexpr VAImageFormat kImageFormatYUYV
|
||||||
bool VaSurfaceFormatToImageFormat(uint32_t va_rt_format,
|
bool VaSurfaceFormatToImageFormat(uint32_t va_rt_format,
|
||||||
VAImageFormat* va_image_format) {
|
VAImageFormat* va_image_format) {
|
||||||
switch (va_rt_format) {
|
switch (va_rt_format) {
|
||||||
|
|||||||
Reference in New Issue
Block a user