瑞芯微Rockchip开发者社区
登录
直播中
吴湛
10年用户
884经验值
擅长:电源/新能源
私信
关注
[问答]
怎样去解决DVP Camera的预览回调数据是倒着的问题
开启该帖子的消息推送
dvp
Camera
寄存器
为什么DVP Camera修改参数后其预览回调数据还是倒着的?
怎样去解决DVP Camera的预览回调数据是倒着的问题?
回帖
(1)
贺服窍
2022-3-3 09:40:13
Platform: RK3288
OS: Android 6.0
Kernel: 3.10.92
需求:
摄像头安装之后预览和预览回调画面是倒着的,需要旋转180°。
现象:
通过修改camera_board.xml中的参数
,发现只有预览画面正常,而预览回调数据还是倒过来的。
说明此参数只对预览有效。
解决方法:
通过修改模组寄存器的flip参数。
代码改动:
diff --git a/Config/cam_board_rk3288.xml b/Config/cam_board_rk3288.xml
index d3ea5bc..279a9c7 100644
--- a/Config/cam_board_rk3288.xml
+++ b/Config/cam_board_rk3288.xml
@@ -21,7 +21,7 @@
-
+
diff --git a/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c b/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
index a8e25f3..dfe58c4 100755
--- a/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
+++ b/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
@@ -71,7 +71,7 @@ const IsiRegDescription_t OV5640_g_aRegDescription[] =
{0x3c09, 0x1c,"",eReadWrite,},
{0x3c0a, 0x9c,"",eReadWrite,},
{0x3c0b, 0x40,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -300,7 +300,7 @@ const IsiRegDescription_t OV5640_g_aRegDescription[] =
{0x3503, 0x00,"",eReadWrite,},
{0x3c07, 0x08,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -351,7 +351,7 @@ const IsiRegDescription_t OV5640_g_svga[] =
{0x3503, 0x00,"",eReadWrite,},
{0x3a00, 0x7c,"",eReadWrite,},
{0x3c07, 0x08,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -411,7 +411,7 @@ const IsiRegDescription_t OV5640_g_video_720p[] =
{0x380f,0xe4,"",eReadWrite,},
{0x3813,0x04,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,}, //ddl@rock-chips.com add start: qsxvga -> 720p isn't stream on
+ {0x3820, 0x47,"",eReadWrite,}, //ddl@rock-chips.com add start: qsxvga -> 720p isn't stream on
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -449,45 +449,45 @@ const IsiRegDescription_t OV5640_g_video_720p[] =
};
const IsiRegDescription_t OV5640_g_2592x1944[] =
{
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
Platform: RK3288
OS: Android 6.0
Kernel: 3.10.92
需求:
摄像头安装之后预览和预览回调画面是倒着的,需要旋转180°。
现象:
通过修改camera_board.xml中的参数
,发现只有预览画面正常,而预览回调数据还是倒过来的。
说明此参数只对预览有效。
解决方法:
通过修改模组寄存器的flip参数。
代码改动:
diff --git a/Config/cam_board_rk3288.xml b/Config/cam_board_rk3288.xml
index d3ea5bc..279a9c7 100644
--- a/Config/cam_board_rk3288.xml
+++ b/Config/cam_board_rk3288.xml
@@ -21,7 +21,7 @@
-
+
diff --git a/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c b/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
index a8e25f3..dfe58c4 100755
--- a/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
+++ b/SiliconImage/isi/drv/OV5640/source/OV5640_tables.c
@@ -71,7 +71,7 @@ const IsiRegDescription_t OV5640_g_aRegDescription[] =
{0x3c09, 0x1c,"",eReadWrite,},
{0x3c0a, 0x9c,"",eReadWrite,},
{0x3c0b, 0x40,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -300,7 +300,7 @@ const IsiRegDescription_t OV5640_g_aRegDescription[] =
{0x3503, 0x00,"",eReadWrite,},
{0x3c07, 0x08,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -351,7 +351,7 @@ const IsiRegDescription_t OV5640_g_svga[] =
{0x3503, 0x00,"",eReadWrite,},
{0x3a00, 0x7c,"",eReadWrite,},
{0x3c07, 0x08,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -411,7 +411,7 @@ const IsiRegDescription_t OV5640_g_video_720p[] =
{0x380f,0xe4,"",eReadWrite,},
{0x3813,0x04,"",eReadWrite,},
- {0x3820, 0x41,"",eReadWrite,}, //ddl@rock-chips.com add start: qsxvga -> 720p isn't stream on
+ {0x3820, 0x47,"",eReadWrite,}, //ddl@rock-chips.com add start: qsxvga -> 720p isn't stream on
{0x3821, 0x07,"",eReadWrite,},
{0x3814, 0x31,"",eReadWrite,},
{0x3815, 0x31,"",eReadWrite,},
@@ -449,45 +449,45 @@ const IsiRegDescription_t OV5640_g_video_720p[] =
};
const IsiRegDescription_t OV5640_g_2592x1944[] =
{
- {0x3820, 0x41,"",eReadWrite,},
+ {0x3820, 0x47,"",eReadWrite,},
举报
更多回帖
rotate(-90deg);
回复
相关问答
dvp
Camera
寄存器
怎样
去
写回
调
函数呢?
怎样
去
使用回
调
函数呢
2022-02-23
1412
怎样
在
DVP
或MIPI接口添加OV5640摄像头呢
2022-03-03
1645
请问一下
DVP
摄像头OV5640
预览
异常该怎么办呢
2022-04-25
3589
请问君正X1520,
DVP
跟MIPI
camera
可以同時工作嗎吗? 如不行,有哪一顆chip可以支援2顆
camera
2020-09-17
1837
k210
dvp
输出640*480时,输出
数据
部分为0是怎么回事?
2023-09-15
323
请问大神
怎样
去
解决RK3288 USBcamera相机
预览
左右镜像的问题呢
2022-02-10
1840
怎样
去
实现上位机与PLC之间的ModbusTCP通信?求解
2021-07-02
4521
怎样
去
解决外部中断
回
调
函数执行错误的问题呢
2022-08-22
2707
怎样
去
修改RK3288系统默认的PreviewSize
预览
尺寸和图片尺寸照片呢
2022-03-03
1298
请教大神
怎样
去
改动OV5640摄像头的
DVP
或MIPI接口呢
2022-04-25
4361
发帖
登录/注册
20万+
工程师都在用,
免费
PCB检查工具
无需安装、支持浏览器和手机在线查看、实时共享
查看
点击登录
登录更多精彩功能!
首页
论坛版块
小组
免费开发板试用
ebook
直播
搜索
登录
×
20
完善资料,
赚取积分