dsmryder
Android Expert
I removed the HTC line and it still compiled over here.
While poking around in cameraHALL.cpp I see a few references to "BOARD_USE_FROYO_LIBCAMERA". We are using the libcamera from Froyo, correct? Maybe enabling this will help.
[HIGH]#if defined(BOARD_USE_FROYO_LIBCAMERA)
#ifndef FIRST_CAMERA_FACING
#define FIRST_CAMERA_FACING CAMERA_FACING_BACK
#endif
#ifndef FIRST_CAMERA_ORIENTATION
#define FIRST_CAMERA_ORIENTATION 90
#endif
static const CameraInfo sCameraInfo[] = {
{
FIRST_CAMERA_FACING,
FIRST_CAMERA_ORIENTATION, /* orientation */
1, /* CAMERA_MODE_2D */
},
{
CAMERA_FACING_FRONT,
270, /* orientation */
1, /* CAMERA_MODE_2D */
}
};
#endif[/HIGH]
I didn't just remove the HTC referance, I also added in the BOARD_CAMERA_USE_GETBUFFERINFO := true from CM7.
When I did it had an error that said something like a bunch of method calls weren't in libcamera2.so. I didn't go any further as I thought I was going in the wrong direction.
Looking at mozzwald's post I see some oreintation definitions that I could play with. Just to see what happens.