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

Developer

Forums

I've been unable to get the camera on the LGE VX8100 (aka LG8100, aka 8100) to generate CAM_STATUS_FRAME notifications.

On the Motorola V710, the code below generates a CAM_STATUS_START notification followed by periodic CAM_STATUS_FRAME notifications. On the VX8100, it generates only the CAM_STATUS_START notification.

Am I doing something wrong here, or is this perhaps a firmware issue? (My device has version T81MOD04.)

void CameraNotifyCallback(void *pUser, AEECameraNotify *pNotify)
{
DBGPRINTF("cmd %d subcmd %d status %d",
pNotify->nCmd, pNotify->nSubCmd, pNotify->nStatus);

ICamera *StartCamera(IShell *shell, IDisplay *display)
{
AEERect rect;
AEESize size;
ICamera *camera = NULL;

IDISPLAY_GetClipRect(display, &rect);
size.cx = rect.dx;
size.cy = rect.dy;

if (ISHELL_CreateInstance(shell, AEECLSID_CAMERA, (void **)&camera) ||
ICAMERA_SetDisplaySize(camera, &size) ||
ICAMERA_RegisterNotify(camera, CameraNotifyCallback, NULL) ||
ICAMERA_Preview(camera)) {
if (camera != NULL) ICAMERA_Release(camera);
return NULL;
}
return camera;

Did you find the solution?

Did you find the solution?

I did, with some help from BREW Technical Support. The camera works properly provided that there's an interval of at least 300 milliseconds between creating the ICamera instance and calling ICAMERA_Preview.

I did, with some help from BREW Technical Support. The camera works properly provided that there's an interval of at least 300 milliseconds between creating the ICamera instance and calling ICAMERA_Preview.

It works..
Thank you.

It works..
Thank you.

Thanks... I was banging my head against the wall trying to figure this one out!
-Krad

Thanks... I was banging my head against the wall trying to figure this one out!
-Krad

Hi,
I think i might be facing the same issue with the LG 8360. Is it possible for you to post your code here.
SHould i even do the registration of the call back after 300 ms ?

Hi,
I think i might be facing the same issue with the LG 8360. Is it possible for you to post your code here.
SHould i even do the registration of the call back after 300 ms ?