v4l: vsp1: Add format for Mem2Mem Playback
Subsystems (2)
From: Hiroki Negishi <[email protected]>
---
This patch is based on the master branch of linuxtv.org/media_tree.git.
drivers/media/platform/vsp1/vsp1_video.c | 3 +++ include/uapi/linux/videodev2.h | 3 +++ 2 files changed, 6 insertions(+)
drivers/media/platform/vsp1/vsp1_video.c +3 -0
@@ -130,6 +130,9 @@ static const struct vsp1_format_info vsp1_video_formats[] = { VI6_FMT_Y_U_V_420, VI6_RPF_DSWAP_P_LLS | VI6_RPF_DSWAP_P_LWS | VI6_RPF_DSWAP_P_WDS | VI6_RPF_DSWAP_P_BTS, 3, { 8, 8, 8 }, false, false, 2, 2, false }, + { V4L2_PIX_FMT_RGB32S, MEDIA_BUS_FMT_ARGB8888_1X32, +VI6_FMT_ARGB_8888 ,VI6_RPF_DSWAP_P_LLS |VI6_RPF_DSWAP_P_LWS , + 1, { 32, 0, 0 }, false, false, 1, 1, false }, };/*
include/uapi/linux/videodev2.h +3 -0
@@ -396,6 +396,9 @@ struct v4l2_pix_format {#define V4L2_PIX_FMT_ARGB32 v4l2_fourcc('B', 'A', '2', '4')/* 32 ARGB-8-8-8-8 */ #define V4L2_PIX_FMT_XRGB32 v4l2_fourcc('B', 'X', '2', '4')/* 32 XRGB-8-8-8-8 */ +/* RGB formats for memory output */ +#define V4L2_PIX_FMT_RGB32S v4l2_fourcc('R', 'G', '4', 'S')/* 32 RGB-8-8-8-8 */ +/* Grey formats */ #define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y')/* 8 Greyscale */ #define V4L2_PIX_FMT_Y4 v4l2_fourcc('Y', '0', '4', ' ')/* 4 Greyscale */
Signature · 1 line
1.9.1
Hello Kaneko-san,
Thank you for the patch.
Quoted 38 lines · On Saturday 20 December 2014 23:16:03 Yoshihiro Kaneko wrote:
From: Hiroki Negishi <[email protected]>
Signed-off-by Hiroki Negishi <[email protected]>Signed-off-by Yoshifumi Hosoya <[email protected]>Signed-off-by Yoshihiro Kaneko <[email protected]>---
This patch is based on the master branch of linuxtv.org/media_tree.git.
drivers/media/platform/vsp1/vsp1_video.c | 3 +++ include/uapi/linux/videodev2.h | 3 +++ 2 files changed, 6 insertions(+)(quoted diff) +0
-0
b/drivers/media/platform/vsp1/vsp1_video.cindex e512336..9bbc02a 100644drivers/media/platform/vsp1/vsp1_video.c +0
-0@@ -130,6 +130,9 @@ static const struct vsp1_format_infovsp1_video_formats[] = {
VI6_FMT_Y_U_V_420,VI6_RPF_DSWAP_P_LLS|VI6_RPF_DSWAP_P_LWS|VI6_RPF_DSWAP_P_WDS|VI6_RPF_DSWAP_P_BTS,drivers/media/platform/vsp1/vsp1_video.c +3
-03, { 8, 8, 8 }, false, false, 2, 2, false }, + { V4L2_PIX_FMT_RGB32S, MEDIA_BUS_FMT_ARGB8888_1X32, +VI6_FMT_ARGB_8888 ,VI6_RPF_DSWAP_P_LLS |VI6_RPF_DSWAP_P_LWS , + 1, { 32, 0, 0 }, false, false, 1, 1, false }, };/* include/uapi/linux/videodev2.h +0
-0@@ -396,6 +396,9 @@ struct v4l2_pix_format {#define V4L2_PIX_FMT_ARGB32 v4l2_fourcc('B', 'A', '2', '4')/* 32 ARGB-8-8-8-8 */ #define V4L2_PIX_FMT_XRGB32 v4l2_fourcc('B', 'X', '2','4') /* 32 XRGB-8-8-8-8 */
include/uapi/linux/videodev2.h +2
-0+/* RGB formats for memory output */ +#define V4L2_PIX_FMT_RGB32S v4l2_fourcc('R', 'G', '4', 'S')/* 32
Quoted 1 line
RGB-8-8-8-8 */ +
When adding a new format V4L2 also requires a documentation update to describe the format. I assume your format falls in the category of packed RGB formats, could you thus please update Documentation/DocBook/media/v4l/pixfmt-packed- rgb.xml in this patch as well ?
Quoted 4 lines
/* Grey formats */
#defineV4L2_PIX_FMT_GREYv4l2_fourcc('G', 'R', 'E', 'Y')/* 8
Greyscale */ #defineV4L2_PIX_FMT_Y4v4l2_fourcc('Y', '0', '4', '
') /* 4 Greyscale */
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent-san,
Thanks for your comment.
2014-12-21 3:35 GMT+09:00 Laurent Pinchart <[email protected]>:
Quoted 42 lines
Hello Kaneko-san,
Thank you for the patch.
Quoted 36 lines · On Saturday 20 December 2014 23:16:03 Yoshihiro Kaneko wrote:
From: Hiroki Negishi <[email protected]>
Signed-off-by Hiroki Negishi <[email protected]>Signed-off-by Yoshifumi Hosoya <[email protected]>Signed-off-by Yoshihiro Kaneko <[email protected]>---
This patch is based on the master branch of linuxtv.org/media_tree.git.
drivers/media/platform/vsp1/vsp1_video.c | 3 +++ include/uapi/linux/videodev2.h | 3 +++ 2 files changed, 6 insertions(+)(quoted diff) +0
-0
b/drivers/media/platform/vsp1/vsp1_video.cindex e512336..9bbc02a 100644drivers/media/platform/vsp1/vsp1_video.c +0
-0@@ -130,6 +130,9 @@ static const struct vsp1_format_infovsp1_video_formats[] = {
VI6_FMT_Y_U_V_420,VI6_RPF_DSWAP_P_LLS|VI6_RPF_DSWAP_P_LWS|VI6_RPF_DSWAP_P_WDS|VI6_RPF_DSWAP_P_BTS,3, { 8, 8, 8 }, false, false, 2, 2, false },drivers/media/platform/vsp1/vsp1_video.c +3
-0+ {V4L2_PIX_FMT_RGB32S ,MEDIA_BUS_FMT_ARGB8888_1X32 , +VI6_FMT_ARGB_8888 ,VI6_RPF_DSWAP_P_LLS |VI6_RPF_DSWAP_P_LWS , + 1, { 32, 0, 0 }, false, false, 1, 1, false }, };/* include/uapi/linux/videodev2.h +0
-0@@ -396,6 +396,9 @@ struct v4l2_pix_format {#define V4L2_PIX_FMT_ARGB32 v4l2_fourcc('B', 'A', '2', '4')/* 32 ARGB-8-8-8-8 */ #define V4L2_PIX_FMT_XRGB32 v4l2_fourcc('B', 'X', '2','4') /* 32 XRGB-8-8-8-8 */
Quoted 8 lines
Quoted 3 lines
include/uapi/linux/videodev2.h +2
-0+/* RGB formats for memory output */ +#define V4L2_PIX_FMT_RGB32S v4l2_fourcc('R', 'G', '4', 'S')/* 32 RGB-8-8-8-8 */ +
When adding a new format V4L2 also requires a documentation update to describe the format. I assume your format falls in the category of packed RGB formats, could you thus please update
Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml in this patch as well ?
Thank you very much for your advice.
I'll look into the documentation and update this patch.
Thanks,
Kaneko
Quoted 11 lines
Quoted 5 lines
/* Grey formats */
#defineV4L2_PIX_FMT_GREYv4l2_fourcc('G', 'R', 'E', 'Y')/* 8
Greyscale */ #defineV4L2_PIX_FMT_Y4v4l2_fourcc('Y', '0', '4', '
') /* 4 Greyscale */--
Regards,Laurent Pinchart