|
|
@@ -58,9 +58,9 @@ static void OnFrameReceived(IMV_Frame *pFrame, void *pUser) // 数据帧的回
|
|
|
if(NULL == pFrame) return;
|
|
|
|
|
|
// 1, 打印该帧信息
|
|
|
- sw_log_debug("[%s] +++GetOneFrame+++, Width[%u], Height[%u], FrameNum[%llu], FrameLen[%u], PixelType[0x%08X]", MODULE_NAME,
|
|
|
- pFrame->frameInfo.width, pFrame->frameInfo.height, pFrame->frameInfo.blockId, pFrame->frameInfo.size,
|
|
|
- (unsigned int)pFrame->frameInfo.pixelFormat);
|
|
|
+ sw_log_info("[%s] +++GetOneFrame+++, Width[%u], Height[%u], FrameNum[%llu], FrameLen[%u], PixelType[0x%08X]", MODULE_NAME,
|
|
|
+ pFrame->frameInfo.width, pFrame->frameInfo.height, pFrame->frameInfo.blockId, pFrame->frameInfo.size,
|
|
|
+ (unsigned int)pFrame->frameInfo.pixelFormat);
|
|
|
|
|
|
// 2, 自动曝光模式
|
|
|
if(ctx->isExposureAuto && waitAEDone != 0)
|
|
|
@@ -71,7 +71,7 @@ static void OnFrameReceived(IMV_Frame *pFrame, void *pUser) // 数据帧的回
|
|
|
|
|
|
struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now);
|
|
|
long elapsed = (now.tv_sec - ctx->expTime0.tv_sec)*1000 + (now.tv_nsec-ctx->expTime0.tv_nsec)/(1000*1000); // 计算时间差, 单位: ms
|
|
|
- sw_log_debug("[%s] +++GetOneFrame+++, 等待曝光完成, ExposureTime = %.2fus, ElapsedTime = %ldms", MODULE_NAME, curExpTime, elapsed);
|
|
|
+ sw_log_info("[%s] +++GetOneFrame+++, 等待曝光完成, ExposureTime = %.2fus, ElapsedTime = %ldms", MODULE_NAME, curExpTime, elapsed);
|
|
|
|
|
|
if(fabsf(curExpTime - ctx->lastExpTime) <= AE_EXP_TIME_EPS_US) ctx->expStableCnt++;
|
|
|
else ctx->expStableCnt = 0;
|
|
|
@@ -100,7 +100,7 @@ static int FrameSoftTrigger(unsigned long wParam, unsigned long lParam) // 线
|
|
|
|
|
|
while(sw_thrd_isAlive(hThrd))
|
|
|
{
|
|
|
- sw_log_debug("[%s] 触发一次拍照", MODULE_NAME);
|
|
|
+ sw_log_info("[%s] 触发一次拍照", MODULE_NAME);
|
|
|
ret = IMV_ExecuteCommandFeature(ctx->hCam, "TriggerSoftware");
|
|
|
if(IMV_OK != ret) { sw_log_error("[%s] 触发拍照失败, errCode=%d!!", MODULE_NAME, ret); break; }
|
|
|
else tick_ms = 0;
|