All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: jtp.park@samsung.com
Cc: linux-media@vger.kernel.org,
	'Kamil Debski' <k.debski@samsung.com>,
	janghyuck.kim@samsung.com, jaeryul.oh@samsung.com,
	'Marek Szyprowski' <m.szyprowski@samsung.com>
Subject: Re: [PATCH 1/3] v4l: add contorl definitions for codec devices.
Date: Fri, 02 Mar 2012 09:45:30 +0100	[thread overview]
Message-ID: <4F5088AA.80704@samsung.com> (raw)
In-Reply-To: <007101ccf81a$a507c610$ef175230$%park@samsung.com>

Hi Jongtae,

On 03/02/2012 03:17 AM, Jeongtae Park wrote:
> @@ -1458,17 +1462,18 @@ enum v4l2_mpeg_video_header_mode {
>  };
>  #define V4L2_CID_MPEG_VIDEO_MAX_REF_PIC			(V4L2_CID_MPEG_BASE+217)
>  #define V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE		(V4L2_CID_MPEG_BASE+218)
> -#define V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES	(V4L2_CID_MPEG_BASE+219)
> +#define V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BITS	(V4L2_CID_MPEG_BASE+219)
>  #define V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB		(V4L2_CID_MPEG_BASE+220)
>  #define V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE		(V4L2_CID_MPEG_BASE+221)
>  enum v4l2_mpeg_video_multi_slice_mode {
>  	V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE		= 0,
> -	V4L2_MPEG_VIDEO_MULTI_SICE_MODE_MAX_MB		= 1,
> -	V4L2_MPEG_VIDEO_MULTI_SICE_MODE_MAX_BYTES	= 2,
> +	V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB		= 1,
> +	V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BITS	= 2,

Should this be a separate bugfix patch ? We need to make sure the 
applications work with older kernels too, perhaps a patch with 
stable@vger.kernel.org at Cc would do.

Don't you need to update the multi_slice[] array in v4l2-ctrls.c 
as well ? Now it is:

static const char * const multi_slice[] = {
	"Single",
	"Max Macroblocks",
	"Max Bytes",
	NULL,
}; 

And the corresponding individual controls:

 case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES: return "Maximum Bytes in a Slice";
 case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB:	 return "Number of MBs in a Slice";

Please make sure the descriptions are consistent with CIDs.

--

Regards,
Sylwester

      parent reply	other threads:[~2012-03-02  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02  2:17 [PATCH 1/3] v4l: add contorl definitions for codec devices Jeongtae Park
2012-03-02  8:13 ` Hans Verkuil
2012-03-07 10:10   ` Kamil Debski
2012-03-02  8:45 ` Sylwester Nawrocki [this message]

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=4F5088AA.80704@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=jaeryul.oh@samsung.com \
    --cc=janghyuck.kim@samsung.com \
    --cc=jtp.park@samsung.com \
    --cc=k.debski@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    /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.