update(media): update sensor mirror.

This commit is contained in:
kangjun
2025-04-29 10:52:42 +08:00
parent 796620b3ab
commit 1868c85e8d
5 changed files with 117 additions and 9 deletions

View File

@@ -117,7 +117,7 @@ static struct regval_list sensor_800x600_30_regs[] = {
{0x3213, 0x02},
{0x3215, 0x31},
{0x3220, 0x01},
{0x3221, 0x60},
{0x3221, 0x06},
{0x3248, 0x02},
{0x3253, 0x0a},
{0x3301, 0xff},
@@ -340,7 +340,7 @@ static struct regval_list sensor_800x600_30_regs[] = {
static struct regval_list sensor_1600x1200_30_regs[] = {
{0x0103,0x01},
{0x0100,0x00},
{0x3221,0x60},//hflip:0x06 vflip:0x60
{0x3221,0x06},//hflip:0x06 vflip:0x60
{0x36e9,0x80},
{0x36e9,0x24},
{0x301f,0x01},
@@ -695,7 +695,7 @@ static int sensor_init(int id)
static struct sensor_format_struct sensor_formats[] = {
#ifdef SC2356_800X600_30FPS
{
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,//MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.width = 800,
.height = 600,//1080,
.hoffset = 0,
@@ -719,7 +719,7 @@ static struct sensor_format_struct sensor_formats[] = {
#ifdef SC2356_1600X1200_30FPS
{
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,//MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.width = 1600,
.height = 1200,//1080,
.hoffset = 0,