Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

i have a requirement to develop camera application and scenario is like this.

1.) if device has one camera

2.) if device has secondary camera also.

 

I am able to do first part but I have no clue how this will work in case of video call and when secondary camera needed

Do you need support for Video call implementation or do you want to launch secondary camera?

Do you need support for Video call implementation or do you want to launch secondary camera?

Thanks smahesh, i wanted to launch secondary camera. I am using below code:

err = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_CAMERA, (void **)&pMe->pCamera);

DBGPRINTF("####create instance err=%d",err);

// Register callback notification function.

err = ICAMERA_RegisterNotify( pMe->pCamera, _CameraNotify, pMe);

DBGPRINTF("####register notify err=%d",err);

//Set the size of the image to be recorded by the camera.

err = ICAMERA_SetSize(pMe->pCamera, &rc);

DBGPRINTF("####SetSize err=%d",err);

//Set the size of the image to be displayed to the screen.

err = ICAMERA_SetDisplaySize(pMe->pCamera, &rc);

DBGPRINTF("####SetDisplaySize err=%d",err);

DBGPRINTF("X= %d Y=%d",pMe->DeviceInfo.cxScreen,pMe->DeviceInfo.cyScreen);

Thanks smahesh, i wanted to launch secondary camera. I am using below code:

err = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_CAMERA, (void **)&pMe->pCamera);

DBGPRINTF("####create instance err=%d",err);

// Register callback notification function.

err = ICAMERA_RegisterNotify( pMe->pCamera, _CameraNotify, pMe);

DBGPRINTF("####register notify err=%d",err);

//Set the size of the image to be recorded by the camera.

err = ICAMERA_SetSize(pMe->pCamera, &rc);

DBGPRINTF("####SetSize err=%d",err);

//Set the size of the image to be displayed to the screen.

err = ICAMERA_SetDisplaySize(pMe->pCamera, &rc);

DBGPRINTF("####SetDisplaySize err=%d",err);

DBGPRINTF("X= %d Y=%d",pMe->DeviceInfo.cxScreen,pMe->DeviceInfo.cyScreen);

Use AEECLSID_CAMERA1 for secondary camera, please refer DPK for more detials. this will work.

Use AEECLSID_CAMERA1 for secondary camera, please refer DPK for more detials. this will work.