mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
media: rockchip: isp1: fix sp rgb output format
sp rgb888 format is bgrx 32bit in memory, change to BGRX. sp rgb666 format is 2bit unused + 6bit data as b/g/r, append 1bits unused, 32bit in memory, no V4L2 format apply to it, so delete it. Change-Id: Iff8c2e560030d76b26d81faff19a3bd49ca33643 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -503,9 +503,9 @@ static const struct capture_fmt sp_fmts[] = {
|
||||
},
|
||||
/* rgb */
|
||||
{
|
||||
.fourcc = V4L2_PIX_FMT_RGB24,
|
||||
.fourcc = V4L2_PIX_FMT_XBGR32,
|
||||
.fmt_type = FMT_RGB,
|
||||
.bpp = { 24 },
|
||||
.bpp = { 32 },
|
||||
.mplanes = 1,
|
||||
.write_format = MI_CTRL_SP_WRITE_PLA,
|
||||
.output_format = MI_CTRL_SP_OUTPUT_RGB888,
|
||||
@@ -516,14 +516,7 @@ static const struct capture_fmt sp_fmts[] = {
|
||||
.mplanes = 1,
|
||||
.write_format = MI_CTRL_SP_WRITE_PLA,
|
||||
.output_format = MI_CTRL_SP_OUTPUT_RGB565,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_BGR666,
|
||||
.fmt_type = FMT_RGB,
|
||||
.bpp = { 18 },
|
||||
.mplanes = 1,
|
||||
.write_format = MI_CTRL_SP_WRITE_PLA,
|
||||
.output_format = MI_CTRL_SP_OUTPUT_RGB666,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
static const struct capture_fmt raw_fmts[] = {
|
||||
|
||||
Reference in New Issue
Block a user