瑞芯微Rockchip开发者社区
直播中

张勇

7年用户 1479经验值
私信 关注
[经验]

RK3288系统左右镜像实现代码

源码路径
hardware/rockchip/camera/CameraHal/CameraHal_Module.cpp

if(strcmp((char*)&capability.driver[0],"uvcvideo") == 0)//uvc
{
camInfoTmp[cam_cnt&0x01].facing_info.facing = CAMERA_FACING_FRONT;//2019 liangzg add camera mirror
int ret,i=0,j=0;
struct v4l2_frmivalenum fival;
struct v4l2_frmsizeenum fsize;
struct v4l2_fmtdesc fmtdesc;
unsigned int width, height;
unsigned int sensor_resolution_w=0,sensor_resolution_h=0;
unsigned int CameraHal_SupportFmt[6]={0};
unsigned int mCamDriverSupportFmt[CAMERA_DRIVER_SUPPORT_FORMAT_MAX]={0};
unsigned int mCamDriverPreviewFmt=0;
unsigned int maxfps;

原作者:a_fly_pig

更多回帖

发帖
×
20
完善资料,
赚取积分