Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Conversation

@pillai45
Copy link

@pillai45 pillai45 commented Jan 5, 2023

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]

@pillai45 pillai45 force-pushed the camera_switching branch 2 times, most recently from 61de15b to 72f5b17 Compare January 5, 2023 12:14
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]>
@pillai45 pillai45 force-pushed the camera_switching branch 2 times, most recently from ca6278f to 7ab536f Compare January 5, 2023 12:22
Copy link
Contributor

@shivasku82 shivasku82 left a 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;
}
*/
Copy link
Contributor

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));

Copy link
Contributor

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;

Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

}


if(!stop){
Copy link
Contributor

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())
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unwanted code

@sysopenci sysopenci added the stale label Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants