OnCameraCaptured – dimensions of preview…

OnCameraCaptured – dimensions of preview…

BY 19 Jul 2013 Native Application Development

Hello (using RD-PQ):

1. In app PreviewResolution is set to 960×720, Capture resolution is set to 8MPx (3264×2448).

im using function camera.Capture() and as result of image captured OnCameraCaptured function is called
 

void Example::OnCameraCaptured(Tizen::Base::ByteBuffer& capturedData, result r)
{
Image img;
img.Construct();
Bitmap*bmp = null;
bmp = img.DecodeN(capturedData, IMG_FORMAT_JPG , BITMAP_PIXEL_FORMAT_ARGB8888);
int width = bmp->GetWidth();
int height = bmp->GetHeight();
img.EncodeToFile(*bmp, IMG_FORMAT_PNG, path, true);
}
 

With and Height of captured image/bitmap is 960×720.. even if I use .DecodeN(capturedData, BITMAP_PIXEL_FORMAT_RGB565 , dim.width, dim.height);
Bitmap format doesn’t matter…

Function GetCaptureResolution(); returns 3264×2448…

Short version: Capture resolution set to 3264×2448 but captured image resolution is preview image resolution.

So what is wrong?

 

2. There is Exposure, Brightness and Contrast in Native API.. we can check which features are available on RD-PQ Brightness and Contrast “should be” because MediaCapability::GetValue returns true as a value for them.

But.. only changing camera Brightness value with SetBrightness is changing the preview image (its brighter..). Changing Contrast value make no visible changes on the screen… so what’s wrong?

Short version: Contrast camera feature is available but not changing image on preview.

Regards…

Tizen SDK 2.2b, RD-PQ with 2.2b

Written by