This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2-compliance: fix G/S_PARM tests for stateful encoders Author: Hans Verkuil <[email protected]> Date: Mon Apr 25 07:31:44 2022 +0200 G/S_PARM doesn't make sense for the capture queue of a stateful encoder, unless V4L2_FMT_FLAG_ENC_CAP_FRAME_INTERVAL is set to reserve hardware resources. Improve the test for such devices. Signed-off-by: Hans Verkuil <[email protected]> utils/v4l2-compliance/v4l2-test-formats.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=163144712a46229f3476b04f6c0037c4b7f00299 diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp index 3761b1fa9e46..269a3832fcdf 100644 --- a/utils/v4l2-compliance/v4l2-test-formats.cpp +++ b/utils/v4l2-compliance/v4l2-test-formats.cpp @@ -1341,8 +1341,16 @@ static int testParmType(struct node *node, unsigned type) case V4L2_BUF_TYPE_VIDEO_OUTPUT: case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE: if (node->g_caps() & buftype2cap[type]) { - fail_on_test(ret && node->has_frmintervals); - fail_on_test(ret && node->has_enc_cap_frame_interval); + if (is_stateful_enc) { + if (V4L2_TYPE_IS_OUTPUT(type)) + fail_on_test(ret && node->has_frmintervals); + else if (node->has_enc_cap_frame_interval) + fail_on_test(ret); + else + fail_on_test(!ret); + } else { + fail_on_test(ret && node->has_frmintervals); + } } break; default: _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
