mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-06 17:37:52 +00:00
Rockchip linux/ffmpeg hevc: increase max slices count
This commit is contained in:
parent
40125b6aff
commit
2bcc43cf01
@ -0,0 +1,25 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Bee <knaerzche@gmail.com>
|
||||||
|
Date: Sun, 20 Jun 2021 20:19:19 +0200
|
||||||
|
Subject: [PATCH] v4l2request: hevc: increase max slices
|
||||||
|
|
||||||
|
It's required by some HEVC confromance tests
|
||||||
|
|
||||||
|
Signed-off-by: Alex Bee <knaerzche@gmail.com>
|
||||||
|
---
|
||||||
|
libavcodec/v4l2_request_hevc.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/v4l2_request_hevc.c b/libavcodec/v4l2_request_hevc.c
|
||||||
|
index be78382444..35ec87e310 100644
|
||||||
|
--- a/libavcodec/v4l2_request_hevc.c
|
||||||
|
+++ b/libavcodec/v4l2_request_hevc.c
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
#include "v4l2_request.h"
|
||||||
|
#include "hevc-ctrls.h"
|
||||||
|
|
||||||
|
-#define MAX_SLICES 16
|
||||||
|
+#define MAX_SLICES 32
|
||||||
|
|
||||||
|
typedef struct V4L2RequestControlsHEVC {
|
||||||
|
struct v4l2_ctrl_hevc_sps sps;
|
@ -2911,7 +2911,7 @@ index 81a14db30285..dd67e621f36f 100644
|
|||||||
+ .cfg.id = V4L2_CID_MPEG_VIDEO_HEVC_SLICE_PARAMS,
|
+ .cfg.id = V4L2_CID_MPEG_VIDEO_HEVC_SLICE_PARAMS,
|
||||||
+ // HACK: match ffmpeg v4l2 request api hwaccel size,
|
+ // HACK: match ffmpeg v4l2 request api hwaccel size,
|
||||||
+ // we should support variable length up to 600 slices
|
+ // we should support variable length up to 600 slices
|
||||||
+ .cfg.dims = { 16 },
|
+ .cfg.dims = { 32 },
|
||||||
+ },
|
+ },
|
||||||
+ {
|
+ {
|
||||||
+ .mandatory = true,
|
+ .mandatory = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user