From: Mauro Carvalho Chehab <mchehab+samsung-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Ezequiel Garcia <ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Nicolas Dufresne
<nicolas.dufresne-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>,
Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
Tomasz Figa <tfiga-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Hans Verkuil
<hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
Miouyouyou <myy-tmjzNUIc0P1+EYZtW95mkQ@public.gmane.org>,
kernel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org,
Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v7 4/6] media: Add JPEG_RAW format
Date: Fri, 5 Oct 2018 08:09:24 -0300 [thread overview]
Message-ID: <20181005080924.78a1654b@coco.lan> (raw)
In-Reply-To: <20181005001226.12789-5-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Em Thu, 4 Oct 2018 21:12:24 -0300
Ezequiel Garcia <ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> escreveu:
> From: Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
>
> Add V4L2_PIX_FMT_JPEG_RAW format that does not contain
> JPEG header in the output frame.
>
> Signed-off-by: Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> Signed-off-by: Ezequiel Garcia <ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
> ---
> Documentation/media/uapi/v4l/pixfmt-compressed.rst | 9 +++++++++
> drivers/media/v4l2-core/v4l2-ioctl.c | 1 +
> include/uapi/linux/videodev2.h | 1 +
> 3 files changed, 11 insertions(+)
>
> diff --git a/Documentation/media/uapi/v4l/pixfmt-compressed.rst b/Documentation/media/uapi/v4l/pixfmt-compressed.rst
> index ba0f6c49d9bf..ad73076276ec 100644
> --- a/Documentation/media/uapi/v4l/pixfmt-compressed.rst
> +++ b/Documentation/media/uapi/v4l/pixfmt-compressed.rst
> @@ -23,6 +23,15 @@ Compressed Formats
> - 'JPEG'
> - TBD. See also :ref:`VIDIOC_G_JPEGCOMP <VIDIOC_G_JPEGCOMP>`,
> :ref:`VIDIOC_S_JPEGCOMP <VIDIOC_G_JPEGCOMP>`.
> + * .. _V4L2-PIX-FMT-JPEG-RAW:
> +
> + - ``V4L2_PIX_FMT_JPEG_RAW``
> + - 'Raw JPEG'
> + - Raw JPEG bitstream, containing a compressed payload. This format
> + contains an image scan, i.e. without any metadata or headers.
> + The user is expected to set the needed metadata such as
> + quantization and entropy encoding tables, via ``V4L2_CID_JPEG``
> + controls, see :ref:`jpeg-control-id`.
IMO, it is not very clear when someone should use V4L2_CID_JPEG or
V4L2_PIX_FMT_JPEG_RAW. Some drivers do add a JPEG header internally.
Also, if we're now starting to accept headerless JPEG images, you should
very patch libv4l as well, in order to accept this new format.
Regards,
Thanks,
Mauro
next prev parent reply other threads:[~2018-10-05 11:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-05 0:12 [PATCH v7 0/6] Add Rockchip VPU JPEG encoder Ezequiel Garcia
[not found] ` <20181005001226.12789-1-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-10-05 0:12 ` [PATCH v7 1/6] dt-bindings: Document the Rockchip VPU bindings Ezequiel Garcia
2018-10-05 0:12 ` [PATCH v7 2/6] ARM: dts: rockchip: add VPU device node for RK3288 Ezequiel Garcia
[not found] ` <20181005001226.12789-3-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-10-05 12:04 ` Heiko Stuebner
2018-10-17 13:09 ` Heiko Stuebner
2018-10-05 0:12 ` [PATCH v7 3/6] arm64: dts: rockchip: add VPU device node for RK3399 Ezequiel Garcia
[not found] ` <20181005001226.12789-4-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-10-05 12:04 ` Heiko Stuebner
2018-10-05 0:12 ` [PATCH v7 4/6] media: Add JPEG_RAW format Ezequiel Garcia
[not found] ` <20181005001226.12789-5-ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-10-05 11:09 ` Mauro Carvalho Chehab [this message]
[not found] ` <20181005080924.78a1654b-qA1ZUp+OV9c@public.gmane.org>
2018-10-05 11:53 ` Ezequiel Garcia
[not found] ` <90ef806ecfab6e93dc08e4acdce11cc2e15df637.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-10-05 12:20 ` Mauro Carvalho Chehab
2018-10-05 0:12 ` [PATCH v7 5/6] media: Add controls for JPEG quantization tables Ezequiel Garcia
2018-10-05 0:12 ` [PATCH v7 6/6] media: add Rockchip VPU JPEG encoder driver Ezequiel Garcia
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=20181005080924.78a1654b@coco.lan \
--to=mchehab+samsung-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
--cc=hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=kernel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
--cc=linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=myy-tmjzNUIc0P1+EYZtW95mkQ@public.gmane.org \
--cc=nicolas.dufresne-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=tfiga-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).