lkml.org 
[lkml]   [2022]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Allow S/G_PARM for stateful decoder
Date
Some stateful decoder supports S/G_PARM similar to a
stateful encoder. S_PARM(OUTPUT) reserves hardware decoder
resources, and G_PARM(CAPTURE) returns the embedded
frame interval. Allow the same with this change.

Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
---
utils/v4l2-compliance/v4l2-test-formats.cpp | 4 ----
1 file changed, 4 deletions(-)

diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp
index 269a383..e996558 100644
--- a/utils/v4l2-compliance/v4l2-test-formats.cpp
+++ b/utils/v4l2-compliance/v4l2-test-formats.cpp
@@ -64,8 +64,6 @@ static int testEnumFrameIntervals(struct node *node, __u32 pixfmt,
ret = doioctl(node, VIDIOC_ENUM_FRAMEINTERVALS, &frmival);
if (ret == ENOTTY)
return ret;
- // M2M devices don't support this, except for stateful encoders
- fail_on_test(node->is_m2m && !(node->codec_mask & STATEFUL_ENCODER));
if (f == 0 && ret == EINVAL) {
if (type == V4L2_FRMSIZE_TYPE_DISCRETE)
warn("found framesize %dx%d, but no frame intervals\n", w, h);
@@ -1367,8 +1365,6 @@ static int testParmType(struct node *node, unsigned type)
}
if (ret == ENOTTY)
return ret;
- // M2M devices don't support this, except for stateful encoders
- fail_on_test(node->is_m2m && !is_stateful_enc);
if (ret == EINVAL)
return ENOTTY;
if (ret)
--
2.7.4
\
 
 \ /
  Last update: 2022-08-29 09:55    [W:0.378 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site