[media] vivid: Introduce TPG_COLOR_ENC_LUMA
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
25e9007349
commit
ca2b32da59
@@ -184,7 +184,7 @@ struct vivid_fmt vivid_formats[] = {
|
||||
.fourcc = V4L2_PIX_FMT_GREY,
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 8 },
|
||||
.color_enc = TGP_COLOR_ENC_YCBCR,
|
||||
.color_enc = TGP_COLOR_ENC_LUMA,
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
@@ -192,7 +192,7 @@ struct vivid_fmt vivid_formats[] = {
|
||||
.fourcc = V4L2_PIX_FMT_Y16,
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 16 },
|
||||
.color_enc = TGP_COLOR_ENC_YCBCR,
|
||||
.color_enc = TGP_COLOR_ENC_LUMA,
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
@@ -200,7 +200,7 @@ struct vivid_fmt vivid_formats[] = {
|
||||
.fourcc = V4L2_PIX_FMT_Y16_BE,
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 16 },
|
||||
.color_enc = TGP_COLOR_ENC_YCBCR,
|
||||
.color_enc = TGP_COLOR_ENC_LUMA,
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
|
Reference in New Issue
Block a user