-
Notifications
You must be signed in to change notification settings - Fork 3
Two Camera Support in Camera Mediation #11
base: main
Are you sure you want to change the base?
Conversation
61de15b to
72f5b17
Compare
A functionality deployment to support two camera/ camera switch in camera mediation of CIV Changes done: -Open and Close camera were implemented as functions -Physical nodes were used to retrieve frames -Switch command from Camera Vhal was handled -Mismatched calls from Camera Vhal was handled Tracked-On: OAM-104829 Signed-off-by: pillaive <[email protected]>
ca6278f to
7ab536f
Compare
shivasku82
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to inform 2 camera configuration to guest and camera id also to guest
| return stop?0:1; | ||
| } | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this updated code
| const char *device_family = get_device_family(); | ||
|
|
||
| stream_ctx = (stream_ctx_t *)malloc(sizeof(stream_ctx_t)); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep original
|
|
||
| if(!stream_ctx) | ||
| return -1; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep original
| stream_ctx->out_codec_ctx = NULL; | ||
|
|
||
| if (init_device_and_input_context(stream_ctx, device_family, device_index, width, height, fps) != 0) | ||
| if (init_device_and_input_context(stream_ctx, device_family, device_index, width, height, fps) != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| char sys_path[255]; | ||
| cout <<"Venkatesh host_camera_server in main"<<endl; | ||
| pthread_t t_handle; | ||
| #if 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is needed to read virtual camera node from sysfs
| pthread_mutex_unlock(&thread_lock); | ||
| this_thread::sleep_for(100ms); | ||
| this_thread::sleep_for(100ms); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| } | ||
|
|
||
|
|
||
| if(!stop){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct indentation
| struct timeval tval_before, tval_after, tval_result; | ||
|
|
||
| struct timeval tval_before, tval_after, tval_result; | ||
| /* if(doStream()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unwanted code
| break; | ||
| } | ||
| /* | ||
| if(close_camera) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unwanted code
A functionality deployment to support two camera/ camera switch in camera mediation of CIV
Changes done:
-Open and Close camera were implemented as functions -Physical nodes were used to retrieve frames
-Switch command from Camera Vhal was handled
-Mismatched calls from Camera Vhal was handled
Tracked-On:104829
Signed-off-by: pillaive [email protected]