diff options
Diffstat (limited to 'dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch')
| -rw-r--r-- | dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch new file mode 100644 index 000000000..7d962d694 --- /dev/null +++ b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From cce8813b76367550ca0a934481ff9263afc09698 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hou Qi <qi.hou@nxp.com> | ||
| 3 | Date: Thu, 15 Sep 2022 18:12:55 +0800 | ||
| 4 | Subject: [PATCH 17/17] V4L2VDA: Enlarge input buffer count to 16 | ||
| 5 | |||
| 6 | Some stream can decode one frame only after queuing over 8 buffers. | ||
| 7 | So enlarge input buffer count to 16 to avoid such stream cannot play. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [NXP specific] | ||
| 10 | --- | ||
| 11 | media/gpu/v4l2/v4l2_video_decode_accelerator.h | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/media/gpu/v4l2/v4l2_video_decode_accelerator.h b/media/gpu/v4l2/v4l2_video_decode_accelerator.h | ||
| 15 | index d16ee5857785b..5724a972ce4f3 100644 | ||
| 16 | --- a/media/gpu/v4l2/v4l2_video_decode_accelerator.h | ||
| 17 | +++ b/media/gpu/v4l2/v4l2_video_decode_accelerator.h | ||
| 18 | @@ -145,7 +145,7 @@ class MEDIA_GPU_EXPORT V4L2VideoDecodeAccelerator | ||
| 19 | private: | ||
| 20 | // These are rather subjectively tuned. | ||
| 21 | enum { | ||
| 22 | - kInputBufferCount = 8, | ||
| 23 | + kInputBufferCount = 16, | ||
| 24 | // TODO(posciak): determine input buffer size based on level limits. | ||
| 25 | // See http://crbug.com/255116. | ||
| 26 | // Input bitstream buffer size for up to 1080p streams. | ||
| 27 | -- | ||
| 28 | 2.17.1 | ||
| 29 | |||
