This repository was archived by the owner on Sep 22, 2025. It is now read-only.
Two Camera Support in Camera Mediation#11
Open
pillai45 wants to merge 1 commit intoprojectceladon:mainfrom
Open
Two Camera Support in Camera Mediation#11pillai45 wants to merge 1 commit intoprojectceladon:mainfrom
pillai45 wants to merge 1 commit intoprojectceladon:mainfrom
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 <venkatesh.pillai@intel.com>
ca6278f to
7ab536f
Compare
shivasku82
reviewed
Jan 5, 2023
Contributor
shivasku82
left a comment
There was a problem hiding this comment.
you need to inform 2 camera configuration to guest and camera id also to guest
|
|
||
| return stop?0:1; | ||
| } | ||
| */ |
Contributor
There was a problem hiding this comment.
remove this updated code
| const char *device_family = get_device_family(); | ||
|
|
||
| stream_ctx = (stream_ctx_t *)malloc(sizeof(stream_ctx_t)); | ||
|
|
|
|
||
| if(!stream_ctx) | ||
| return -1; | ||
|
|
| 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) |
| char sys_path[255]; | ||
| cout <<"Venkatesh host_camera_server in main"<<endl; | ||
| pthread_t t_handle; | ||
| #if 0 |
Contributor
There was a problem hiding this comment.
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); |
| } | ||
|
|
||
|
|
||
| if(!stop){ |
| struct timeval tval_before, tval_after, tval_result; | ||
|
|
||
| struct timeval tval_before, tval_after, tval_result; | ||
| /* if(doStream()) |
| break; | ||
| } | ||
| /* | ||
| if(close_camera) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 venkatesh.pillai@intel.com