From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Wu-Cheng Li <wuchengli@chromium.org>,
pawel@osciak.com, mchehab@osg.samsung.com, hverkuil@xs4all.nl,
k.debski@samsung.com, crope@iki.fi, standby24x7@gmail.com,
ricardo.ribalda@gmail.com, ao2@ao2.it, bparrot@ti.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-api@vger.kernel.org
Subject: Re: [PATCH] v4l: add V4L2_CID_MPEG_VIDEO_FORCE_FRAME_TYPE
Date: Wed, 13 Jan 2016 10:02:42 -0500 [thread overview]
Message-ID: <1452697362.3605.8.camel@collabora.com> (raw)
In-Reply-To: <1452686611-145620-1-git-send-email-wuchengli@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
Le mercredi 13 janvier 2016 à 20:03 +0800, Wu-Cheng Li a écrit :
> Some drivers also need a control like
> V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE to force an encoder frame
> type. This patch adds a general V4L2_CID_MPEG_VIDEO_FORCE_FRAME_TYPE.
>
> This control only affects the next queued buffer. There's no need to
> clear the value after requesting an I frame. But all controls are set
> in v4l2_ctrl_handler_setup. So a default DISABLED value is required.
> Basically this control is like V4L2_CTRL_TYPE_BUTTON with parameters.
> How to prevent a control from being set in v4l2_ctrl_handler_setup so
> DISABLED value is not needed? Does it make sense not to set a control
> if it is EXECUTE_ON_WRITE?
I don't like the way it's implemented. I don't know any decoder that
have a frame type forcing feature other they I-Frame. It would be much
more natural to use a toggle button control (and add more controls for
other types when needed) then trying to merge hypothetical toggles into
something that manually need to be set and disabled.
>
> Wu-Cheng Li (1):
> v4l: add V4L2_CID_MPEG_VIDEO_FORCE_FRAME_TYPE.
>
> Documentation/DocBook/media/v4l/controls.xml | 23
> +++++++++++++++++++++++
> drivers/media/v4l2-core/v4l2-ctrls.c | 13 +++++++++++++
> include/uapi/linux/v4l2-controls.h | 5 +++++
> 3 files changed, 41 insertions(+)
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2016-01-13 15:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 12:03 [PATCH] v4l: add V4L2_CID_MPEG_VIDEO_FORCE_FRAME_TYPE Wu-Cheng Li
2016-01-13 12:03 ` Wu-Cheng Li
2016-01-13 16:43 ` Kamil Debski
2016-01-14 15:02 ` Nicolas Dufresne
2016-01-14 15:02 ` Nicolas Dufresne
[not found] ` <1452783743.10009.18.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2016-01-14 17:21 ` Kamil Debski
2016-01-14 17:21 ` Kamil Debski
2016-01-14 19:02 ` Nicolas Dufresne
2016-01-14 19:02 ` Nicolas Dufresne
2016-01-15 17:01 ` Kamil Debski
2016-01-15 17:21 ` Nicolas Dufresne
2016-01-13 15:02 ` Nicolas Dufresne [this message]
[not found] ` <1452697362.3605.8.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2016-01-13 16:07 ` Wu-Cheng Li (李務誠)
2016-01-13 16:07 ` Wu-Cheng Li (李務誠)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452697362.3605.8.camel@collabora.com \
--to=nicolas.dufresne@collabora.com \
--cc=ao2@ao2.it \
--cc=bparrot@ti.com \
--cc=crope@iki.fi \
--cc=hverkuil@xs4all.nl \
--cc=k.debski@samsung.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=pawel@osciak.com \
--cc=ricardo.ribalda@gmail.com \
--cc=standby24x7@gmail.com \
--cc=wuchengli@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.