|
|
@@ -82,7 +82,7 @@ static int get_local_video_frame(video_frame** frame, int itype, Clibvideoqueue*
|
|
|
int ivideo_width = 0;
|
|
|
int ivideo_height = 0;
|
|
|
int isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("isize = %d, ivideo_width = %d, ivideo_height = %d.", isize, ivideo_width, ivideo_height);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("isize = %d, ivideo_width = %d, ivideo_height = %d.", isize, ivideo_width, ivideo_height);
|
|
|
blog = false;
|
|
|
}
|
|
|
|
|
|
@@ -144,6 +144,7 @@ void* rvc_videorender_func(void* arg)
|
|
|
}
|
|
|
|
|
|
Clibvideoqueue* local_video_queue = NULL;
|
|
|
+ RVC_RendererFlip renderflip = RVC_FLIP_VERTICAL;
|
|
|
int iwidth = 0;
|
|
|
int iheight = 0;
|
|
|
if (CAMERA_TYPE_ENV == irender_camera) {
|
|
|
@@ -155,12 +156,13 @@ void* rvc_videorender_func(void* arg)
|
|
|
local_video_queue = new Clibvideoqueue(REC_COMMON_VIDEO_OPT_SHM_PREVIEW_QUEUE);
|
|
|
iwidth = REC_COMMON_VIDEO_PREVIEW_HEIGHT;
|
|
|
iheight = REC_COMMON_VIDEO_PREVIEW_WIDTH;
|
|
|
+ renderflip = RVC_FLIP_NONE;
|
|
|
}
|
|
|
|
|
|
int ivideo_width = 0;
|
|
|
int ivideo_height = 0;
|
|
|
int isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.",__FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.",__FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
|
|
|
if (ivideo_width > 0 && ivideo_height > 0) {
|
|
|
iwidth = ivideo_width;
|
|
|
iheight = ivideo_height;
|
|
|
@@ -216,7 +218,7 @@ void* rvc_videorender_func(void* arg)
|
|
|
ivideo_width = 0;
|
|
|
ivideo_height = 0;
|
|
|
isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.", __FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.", __FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
|
|
|
|
|
|
for (; ; ) {
|
|
|
struct timespec ts;
|
|
|
@@ -233,12 +235,12 @@ void* rvc_videorender_func(void* arg)
|
|
|
if (NULL != local_video_frame) {
|
|
|
video_frame* localframe = NULL;
|
|
|
if (0 == translate_image_resolution(&localframe, param->render_param.ilocal_view_cx, param->render_param.ilocal_view_cy, local_video_frame)) {
|
|
|
- param->plocal_render->RenderVideoFrame(localframe, RVC_FLIP_VERTICAL);
|
|
|
+ param->plocal_render->RenderVideoFrame(localframe, renderflip);
|
|
|
video_frame_delete(localframe);
|
|
|
localframe = NULL;
|
|
|
}
|
|
|
else {
|
|
|
- param->plocal_render->RenderVideoFrame(local_video_frame, RVC_FLIP_VERTICAL);
|
|
|
+ param->plocal_render->RenderVideoFrame(local_video_frame, renderflip);
|
|
|
}
|
|
|
|
|
|
bshow_local = true;
|