From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Arun Kumar K <arun.kk@samsung.com>
Cc: linux-media@vger.kernel.org, k.debski@samsung.com,
jtp.park@samsung.com, avnd.kiran@samsung.com,
arunkk.samsung@gmail.com
Subject: Re: [PATCH 5/6] [media] V4L: Add VP8 encoder controls
Date: Mon, 10 Jun 2013 15:45:26 +0200 [thread overview]
Message-ID: <51B5D876.2000704@samsung.com> (raw)
In-Reply-To: <1370870586-24141-6-git-send-email-arun.kk@samsung.com>
Hi Arun,
On 06/10/2013 03:23 PM, Arun Kumar K wrote:
> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
> index fccd08b..2cf17d4 100644
> --- a/drivers/media/v4l2-core/v4l2-ctrls.c
> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c
> @@ -456,6 +456,23 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
> "RGB full range (0-255)",
> NULL,
> };
> + static const char * const vpx_num_partitions[] = {
> + "1 partition",
> + "2 partitions",
> + "4 partitions",
> + "8 partitions",
> + NULL,
> + };
> + static const char * const vpx_num_ref_frames[] = {
> + "1 reference frame",
> + "2 reference frame",
> + NULL,
> + };
Have you considered using V4L2_CTRL_TYPE_INTEGER_MENU control type for this ?
One example is V4L2_CID_ISO_SENSITIVITY control.
> +/* VPX streams, specific to multiplexed streams */
> +#define V4L2_CID_VPX_NUM_PARTITIONS (V4L2_CID_VPX_BASE+0)
> +enum v4l2_vp8_num_partitions {
> + V4L2_VPX_1_PARTITION = 0,
> + V4L2_VPX_2_PARTITIONS = (1 << 1),
> + V4L2_VPX_4_PARTITIONS = (1 << 2),
> + V4L2_VPX_8_PARTITIONS = (1 << 3),
> +};
I think we could still have such standard value definitions if needed,
but rather in form of:
#define V4L2_VPX_1_PARTITION 1
#define V4L2_VPX_2_PARTITIONS 2
#define V4L2_VPX_4_PARTITIONS 4
#define V4L2_VPX_8_PARTITIONS 8
> +#define V4L2_CID_VPX_IMD_DISABLE_4X4 (V4L2_CID_VPX_BASE+1)
> +#define V4L2_CID_VPX_NUM_REF_FRAMES (V4L2_CID_VPX_BASE+2)
> +enum v4l2_vp8_num_ref_frames {
> + V4L2_VPX_1_REF_FRAME = 0,
> + V4L2_VPX_2_REF_FRAME = 1,
> +};
Regards,
Sylwester
next prev parent reply other threads:[~2013-06-10 13:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 13:23 [PATCH 0/6] s5p-mfc: Add support for MFC v7 firmware Arun Kumar K
2013-06-10 13:23 ` [PATCH 1/6] [media] s5p-mfc: Update v6 encoder buffer sizes Arun Kumar K
2013-06-10 13:23 ` [PATCH 2/6] [media] s5p-mfc: Add register definition file for MFC v7 Arun Kumar K
2013-06-10 13:23 ` [PATCH 3/6] [media] s5p-mfc: Core support " Arun Kumar K
2013-06-17 14:45 ` Kamil Debski
2013-06-18 4:51 ` Arun Kumar K
2013-06-18 5:26 ` Sachin Kamat
2013-06-18 5:55 ` Arun Kumar K
2013-06-18 6:12 ` Sachin Kamat
2013-06-18 6:15 ` Arun Kumar K
2013-06-18 8:19 ` Kamil Debski
2013-06-10 13:23 ` [PATCH 4/6] [media] s5p-mfc: Update driver for v7 firmware Arun Kumar K
2013-06-10 13:23 ` [PATCH 5/6] [media] V4L: Add VP8 encoder controls Arun Kumar K
2013-06-10 13:30 ` Hans Verkuil
2013-06-11 9:13 ` Arun Kumar K
2013-06-10 13:45 ` Sylwester Nawrocki [this message]
2013-06-11 9:14 ` Arun Kumar K
2013-06-14 9:26 ` Arun Kumar K
2013-06-14 9:53 ` Sylwester Nawrocki
2013-06-14 13:21 ` Arun Kumar K
2013-06-14 19:31 ` Sylwester Nawrocki
2013-06-17 4:25 ` Arun Kumar K
2013-06-17 9:04 ` Sylwester Nawrocki
2013-06-17 9:25 ` Arun Kumar K
2013-06-17 9:17 ` [PATCH] V4L: Add support for integer menu controls with standard menu items Sylwester Nawrocki
2013-06-17 6:18 ` [PATCH 5/6] [media] V4L: Add VP8 encoder controls Arun Kumar K
2013-06-10 13:23 ` [PATCH 6/6] [media] s5p-mfc: Add support for VP8 encoder Arun Kumar K
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=51B5D876.2000704@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=arun.kk@samsung.com \
--cc=arunkk.samsung@gmail.com \
--cc=avnd.kiran@samsung.com \
--cc=jtp.park@samsung.com \
--cc=k.debski@samsung.com \
--cc=linux-media@vger.kernel.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.