Skip to content

Commit f83f71f

Browse files
Sylwester NawrockiMauro Carvalho Chehab
Sylwester Nawrocki
authored and
Mauro Carvalho Chehab
committed
[media] s5p-fimc: Use correct fourcc for RGB565 colour format
With 16-bit RGB565 colour format pixels are stored by the device in memory in the following order: | b3 | b2 | b1 | b0 | ~+-----+-----+-----+-----+ | R5 G6 B5 | R5 G6 B5 | This corresponds to V4L2_PIX_FMT_RGB565 fourcc, not V4L2_PIX_FMT_RGB565X. This change is required to avoid trouble when setting up video pipeline with the s5p-tv devices, so the colour formats at both devices can be properly matched. Cc: <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent d12392e commit f83f71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/video/s5p-fimc/fimc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static char *fimc_clocks[MAX_FIMC_CLOCKS] = {
3737
static struct fimc_fmt fimc_formats[] = {
3838
{
3939
.name = "RGB565",
40-
.fourcc = V4L2_PIX_FMT_RGB565X,
40+
.fourcc = V4L2_PIX_FMT_RGB565,
4141
.depth = { 16 },
4242
.color = S5P_FIMC_RGB565,
4343
.memplanes = 1,

0 commit comments

Comments
 (0)