Commit ccc9f1db authored by Ming Qian's avatar Ming Qian Committed by Hans Verkuil

media: imx-jpeg: Support contiguous and non contiguous format

mxc-jpeg supports non contiguous format nv12m,
and in order to compatible with the devices
that only support contiguous format nv12,
jpeg can support nv12 and nv12m in the same time.
Signed-off-by: default avatarMing Qian <ming.qian@nxp.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: document is_rgb variable]
parent 8b450a82
...@@ -45,11 +45,13 @@ enum mxc_jpeg_mode { ...@@ -45,11 +45,13 @@ enum mxc_jpeg_mode {
* @subsampling: subsampling of jpeg components * @subsampling: subsampling of jpeg components
* @nc: number of color components * @nc: number of color components
* @depth: number of bits per pixel * @depth: number of bits per pixel
* @colplanes: number of color planes (1 for packed formats) * @mem_planes: number of memory planes (1 for packed formats)
* @comp_planes:number of component planes, which includes the alpha plane (1 to 4).
* @h_align: horizontal alignment order (align to 2^h_align) * @h_align: horizontal alignment order (align to 2^h_align)
* @v_align: vertical alignment order (align to 2^v_align) * @v_align: vertical alignment order (align to 2^v_align)
* @flags: flags describing format applicability * @flags: flags describing format applicability
* @precision: jpeg sample precision * @precision: jpeg sample precision
* @is_rgb: is an RGB pixel format
*/ */
struct mxc_jpeg_fmt { struct mxc_jpeg_fmt {
const char *name; const char *name;
...@@ -57,11 +59,13 @@ struct mxc_jpeg_fmt { ...@@ -57,11 +59,13 @@ struct mxc_jpeg_fmt {
enum v4l2_jpeg_chroma_subsampling subsampling; enum v4l2_jpeg_chroma_subsampling subsampling;
int nc; int nc;
int depth; int depth;
int colplanes; int mem_planes;
int comp_planes;
int h_align; int h_align;
int v_align; int v_align;
u32 flags; u32 flags;
u8 precision; u8 precision;
u8 is_rgb;
}; };
struct mxc_jpeg_desc { struct mxc_jpeg_desc {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment