|
我也正在研究摄像头的程序,感谢各位不遗余力的帮忙!在6410的程序中,图像缓冲区是固定的,是三星自己写的,在S3c6410.h中
#define PREVIEW_BUFFER_SIZE 614400 // ( 320*240*2 ) * MAX_HW_FRAMES
因此只能播放320*240分辨率的图像,将该定义改大即可实现高分辨率的播放,当然SensorFormats.h中要增加内容:
MAKE_STREAM_MODE_RGB565(DCAM_StreamMode_0, 320, 240, 16, 30);
MAKE_STREAM_MODE_RGB565(DCAM_StreamMode_1, 176, 144, 16, 30);
MAKE_STREAM_MODE_RGB565(DCAM_StreamMode_2, 320, 240, 16, 15);
MAKE_STREAM_MODE_RGB565(DCAM_StreamMode_3, 640, 480, 16, 15);
MAKE_STREAM_MODE_RGB565(DCAM_StreamMode_4, 720, 576, 16, 15);
MAKE_STREAM_MODE_YV12(DCAM_StreamMode_5, 176, -144, 12, 15);
MAKE_STREAM_MODE_YV12(DCAM_StreamMode_6, 320, -240, 12, 15);
MAKE_STREAM_MODE_YV12(DCAM_StreamMode_7, 176, -144, 12, 15);
MAKE_STREAM_MODE_YV12(DCAM_StreamMode_8, 640, -480, 12, 15);
MAKE_STREAM_MODE_YV12(DCAM_StreamMode_9, 720, -576, 12, 15);
还有在CameraPDD.cpp中做修改
// m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[0] = &DCAM_StreamMode_8;
// m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[0] = &DCAM_StreamMode_3;
m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[0] = &DCAM_StreamMode_4;
m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[1] = &DCAM_StreamMode_1;
m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[2] = &DCAM_StreamMode_2;
m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[3] = &DCAM_StreamMode_3;
// m_pModeVideoFormat[PREVIEW].pCsDataRangeVideo[4] = &DCAM_StreamMode_0; //新加
即可实现 |
|