Re: DeviceIOControl by OGLES
OGLES
Sun Aug 13 05:32:37 CDT 2006
Hi Juggs,
Unfortunately, it is not possible to contact the "device manufacturer
for more details"..
Anyhow - I've figured out that the output is RGB565, y-flipped.. so
just now need to know how convert this into a Bitmap..
Any ideas ?
Regards,
OGLES
Juggs Ravalia (MS) wrote:
> It seems that you are using a custom OEM defined IOCTL here. Since the
> Camera driver could be written/changed by the OEM to provide more info - I
> would say that you contact the device manufacturer for more detials on the
> capabilities of IOCTL_OEM_CAM_CAPTURE IOCTL code.
>
> Juggs Ravalia [MSFT]
> jayrava@online.microsoft.com
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "OGLES" <ogless@hotmail.com> wrote in message
> news:1153494110.564761.21770@m79g2000cwm.googlegroups.com...
> > Hi all,
> >
> > I have the output from DeviceIOControl when trying to take a picture
> > using a camera; something like this:
> >
> > if (DeviceIoControl(Camera_FileHandle, IOCTL_OEM_CAM_CAPTURE,
> > &vinFrame, sizeof(VINFRAMEINFO), Camera_CaptureYUV2,
> > CAMERA_CAPTURE_SIZEBYTES, &cbRet, NULL))
> > return true;
> > }
> >
> > I can also dump the output as a file, but how can I convert this into a
> > picture ?
> >
> > Thanks in advance,
> > OGLES
> >