Re: [PATCH] v4l2-ctl: skip precalculate_bars() for compressed formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry.. wrong patch..
Please ignore this noise.

Thanks.

Roy

On Tue, Apr 9, 2013 at 2:35 PM, Tzu-Jung Lee <roylee17@xxxxxxxxx> wrote:
> Signed-off-by: Tzu-Jung Lee <tjlee@xxxxxxxxxxxxx>
> ---
>  utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
> index a6ea8b3..ec18312 100644
> --- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
> +++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
> @@ -771,7 +771,10 @@ void streaming_set(int fd)
>                 fmt.type = type;
>                 doioctl(fd, VIDIOC_G_FMT, &fmt);
>
> -               if (!precalculate_bars(fmt.fmt.pix.pixelformat, stream_pat % NUM_PATTERNS)) {
> +               if (!(fmt.flags && V4L2_FMT_FLAG_COMPRESSED) &&
> +                               !precalculate_bars(fmt.fmt.pix.pixelformat,
> +                                       stream_pat % NUM_PATTERNS)) {
> +
>                         fprintf(stderr, "unsupported pixelformat\n");
>                         return;
>                 }
> --
> 1.8.1.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux