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

Developer

Forums

Forums:

how to implement Icamera

int Creat_Instance_Camera(Shooting * m_pSh)
{
int nErr = 0;
nErr = ISHELL_CreateInstance(m_pSh->m_pIShell, AEECLSID_CAMERA,
(void**)&m_pSh->m_pICamera );
if( SUCCESS == nErr )
{
AEESize previewSize = {0};
nErr = ICAMERA_RegisterNotify(m_pSh->m_pICamera,(PFNCAMERANOTIFY)CameraNotify, m_pSh );
previewSize.cx = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE WIDTH mipThis->previewRect.dx;
previewSize.cy = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE HEIGHT pThis->previewRect.dy;
ICAMERA_SetDisplaySize(m_pSh->m_pICamera, &previewSize );
ICAMERA_SetParm(m_pSh->m_pICamera,
CAM_PARM_FLASH,
CAM_FLASH_AUTO,
0);
}
if(ENOMEMORY == nErr)
DBGPRINTF("ENOMEMORY");
if(ECLASSNOTSUPPORT == nErr)
DBGPRINTF("ECLASSNOTSUPPORT");
return nErr;

Now problem is , i am unable to creat instance. Each time nErr variable gives 3 and control goes into if(ECLASSNOTSUPPORT == nErr) condition.
What is the issue behind this?

int Creat_Instance_Camera(Shooting * m_pSh)
{
int nErr = 0;
nErr = ISHELL_CreateInstance(m_pSh->m_pIShell, AEECLSID_CAMERA,
(void**)&m_pSh->m_pICamera );
if( SUCCESS == nErr )
{
AEESize previewSize = {0};
nErr = ICAMERA_RegisterNotify(m_pSh->m_pICamera,(PFNCAMERANOTIFY)CameraNotify, m_pSh );
previewSize.cx = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE WIDTH mipThis->previewRect.dx;
previewSize.cy = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE HEIGHT pThis->previewRect.dy;
ICAMERA_SetDisplaySize(m_pSh->m_pICamera, &previewSize );
ICAMERA_SetParm(m_pSh->m_pICamera,
CAM_PARM_FLASH,
CAM_FLASH_AUTO,
0);
}
if(ENOMEMORY == nErr)
DBGPRINTF("ENOMEMORY");
if(ECLASSNOTSUPPORT == nErr)
DBGPRINTF("ECLASSNOTSUPPORT");
return nErr;

Now problem is , i am unable to creat instance. Each time nErr variable gives 3 and control goes into if(ECLASSNOTSUPPORT == nErr) condition.
What is the issue behind this?

int Creat_Instance_Camera(Shooting * m_pSh)
{
int nErr = 0;
nErr = ISHELL_CreateInstance(m_pSh->m_pIShell, AEECLSID_CAMERA,
(void**)&m_pSh->m_pICamera );
if( SUCCESS == nErr )
{
AEESize previewSize = {0};
nErr = ICAMERA_RegisterNotify(m_pSh->m_pICamera,(PFNCAMERANOTIFY)CameraNotify, m_pSh );
previewSize.cx = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE WIDTH mipThis->previewRect.dx;
previewSize.cy = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE HEIGHT pThis->previewRect.dy;
ICAMERA_SetDisplaySize(m_pSh->m_pICamera, &previewSize );
ICAMERA_SetParm(m_pSh->m_pICamera,
CAM_PARM_FLASH,
CAM_FLASH_AUTO,
0);
}
if(ENOMEMORY == nErr)
DBGPRINTF("ENOMEMORY");
if(ECLASSNOTSUPPORT == nErr)
DBGPRINTF("ECLASSNOTSUPPORT");
return nErr;

Now problem is , i am unable to creat instance. Each time nErr variable gives 3 and control goes into if(ECLASSNOTSUPPORT == nErr) condition.
What is the issue behind this?

int Creat_Instance_Camera(Shooting * m_pSh)
{
int nErr = 0;
nErr = ISHELL_CreateInstance(m_pSh->m_pIShell, AEECLSID_CAMERA,
(void**)&m_pSh->m_pICamera );
if( SUCCESS == nErr )
{
AEESize previewSize = {0};
nErr = ICAMERA_RegisterNotify(m_pSh->m_pICamera,(PFNCAMERANOTIFY)CameraNotify, m_pSh );
previewSize.cx = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE WIDTH mipThis->previewRect.dx;
previewSize.cy = m_pSh->m_pDiffrect->m_di.cxScreen;// HOPING THAT IT IS FOR DEVICE HEIGHT pThis->previewRect.dy;
ICAMERA_SetDisplaySize(m_pSh->m_pICamera, &previewSize );
ICAMERA_SetParm(m_pSh->m_pICamera,
CAM_PARM_FLASH,
CAM_FLASH_AUTO,
0);
}
if(ENOMEMORY == nErr)
DBGPRINTF("ENOMEMORY");
if(ECLASSNOTSUPPORT == nErr)
DBGPRINTF("ECLASSNOTSUPPORT");
return nErr;

Now problem is , i am unable to creat instance. Each time nErr variable gives 3 and control goes into if(ECLASSNOTSUPPORT == nErr) condition.
What is the issue behind this?

plz remember u have to check it in a device ...i mean createinstance itself

plz remember u have to check it in a device ...i mean createinstance itself

Ok ......
I got insatnce.
I just use the dependencies option in mif.

Ok ......
I got insatnce.
I just use the dependencies option in mif.

What's the difference b/w
CAM_PARM_BASE and CAM_PARM_CTL_BASE...

What's the difference b/w
CAM_PARM_BASE and CAM_PARM_CTL_BASE...

Hi to all,
ICAMERA_SetParm(pMe->m_pICamera,CAM_PARAM_SIZE,CAM_MODE_SNAPSHOT, 0);
When i am using any CAM_PARAM_XXXX prameter it gives me error that the particular PARAM is undeclared identifier while in CAM_MODE_SNAPSHOT there is no problem.
Suggest me...............
Thanks

Hi to all,
ICAMERA_SetParm(pMe->m_pICamera,CAM_PARAM_SIZE,CAM_MODE_SNAPSHOT, 0);
When i am using any CAM_PARAM_XXXX prameter it gives me error that the particular PARAM is undeclared identifier while in CAM_MODE_SNAPSHOT there is no problem.
Suggest me...............
Thanks