Hi.

Thanks for your reply.

First of all, we have already tried like that. But, it was not working.
Before this, we have already checked our register configureation in
s5k4ecgx.h is working on another MCU with firmware.

I think this probem occurs on fimc of Kernel and SecCameraHWInterface.cpp
of Android.
Our kernel version is 3.0.15 and android vesion is 4.0.4

I'm looking into these sources but I think there's no source code about Raw
Bayer.
There are something only for YUV and RGB.

So, I added some source cods as follwings.

For example,
@ kernel/drivers/media/video/samsung/fimc/fimc_capture.c
static const struct v4l2_fmtdesc capture_fmts[] = {
    . . .
    {
        .index          = 13,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .flags          = FORMAT_FLAGS_PLANAR,
        .description    = "YUV 4:2:0 planar, Y/Cr/Cb",
        .pixelformat    = V4L2_PIX_FMT_YVU420,
    }, {
        .index          = 14,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .description    = "JPEG encoded data",
        .pixelformat    = V4L2_PIX_FMT_JPEG,
    },
    // JJongspi
    {
        .index          = 15,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .description    = "V4L2_PIX_FMT_SBGGR10",
        .pixelformat    = V4L2_PIX_FMT_SBGGR10,
    }, {
        .index          = 16,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .description    = "V4L2_PIX_FMT_SGBRG10",
        .pixelformat    = V4L2_PIX_FMT_SGBRG10,
    }, {
        .index          = 17,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .description    = "V4L2_PIX_FMT_SGRBG10",
        .pixelformat    = V4L2_PIX_FMT_SGRBG10,
    }, {
        .index          = 18,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .description    = "V4L2_PIX_FMT_SRGGB10",
        .pixelformat    = V4L2_PIX_FMT_SRGGB10,
    },
};
void CameraHardwareSec::initDefaultParameters(int cameraId) {
    parameterString =
CameraParameters::PIXEL_FORMAT_YUV420P;                   // "yuv420p"
    parameterString.append(",");

parameterString.append(CameraParameters::PIXEL_FORMAT_YUV420SP);
// "yuv420p,yuv420sp"
    // JJongspi
    parameterString.append(",");
    parameterString.append(CameraParameters::PIXEL_FORMAT_BAYER_RGGB);
    parameterString.append(",");
    parameterString.append(CameraParameters::PIXEL_FORMAT_BAYER_GRBG);
    p.set(CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS,
parameterString);    // "preview-format-values"
//  p.setPreviewFormat(CameraParameters::PIXEL_FORMAT_YUV420P);
//  p.setPreviewFormat(CameraParameters::PIXEL_FORMAT_BAYER_RGGB);  //
JJongspi
    p.setPreviewFormat(CameraParameters::PIXEL_FORMAT_BAYER_GRBG);  //
JJongspi
};

I added some source codes like above and modified other files.

But android logcat said "01-02 05:38:34.610: E/SecCamera(1202): int
V4L2_PIX_2_HAL_PIXEL_FORMAT(int)::unmatched V4L2_PIX color_space(808534338)"
Do I have to change the souce code version??

Please help me.

Thanks.
Regards.

2013/2/18 <jjong...@gmail.com>

> Hi, This is GilJong, and natarajan's colleague.
>
> We have already checked this camera's preview and capture in MIPI(preview:
> YUV, capture: JPEG) work properly.
> And then, We configured this camera and FIMC for Raw Bayer preview and
> capture.
> The camera we're using is s5k4ecgx and we configured it as Raw Bayer 10
> bit output(for preview and capture) in s5k4ecgx.h file.
> And we also configured FIMC as follows.
>
> @ kernel/arch/arm/mach-exynos/mach-smdkv310.c
> static struct s3c_platform_camera s5k4ecgx = {
>     .type               = CAM_TYPE_MIPI,
>     .fmt                = MIPI_CSI_RAW10,
>     .mipi_lanes         = 2,
>     .mipi_align         = 24,
> };
>
>
>
> 2013년 2월 14일 목요일 오전 12시 56분 26초 UTC+9, Arun 님의 말:
>
>> Hi,
>>
>> There is nothing like yuv sensor, nearly all sensors are Bayer sensors if
>> you look at their pixel arrangement.
>> YUV, RGB is the output pixel format.
>> You mostly have problems with pixel format configuration.
>> Start with the sensor, see in which format it is configured to send out
>> pixels, similar read in the same format on the android side.
>>
>> Can you post more details about the data path and sensor.
>> is this a camera module or a stand alone sensor which you are trying to
>> interface with android?
>> Is the sensor sending parallel data? what do you mean raw10, is it 10-bit
>> raw data in parallel?
>> MIPI is a serial interface, if the sensor has parallel outputs, is the
>> parallel-to-serial conversion ok?
>> Also it mostly uses yuv format, if the sensor is not able to send in this
>> format, check whether this conversion is ok?
>> If you can grab raw data check whether it is actually a proper image or
>> junk.
>> Is the sensor actually sending any meaningful data? I mean are the
>> clocks, reset, supplies ok?
>>
>> -br
>> Arun
>>
>>
>> On Wednesday, 13 February 2013 02:06:09 UTC, jackal wrote:
>>>
>>> Hi.
>>>
>>> This is natarajan..i need some information about
>>> porting camera in android based device. Am using S5PV310 MCU with
>>>  ICS(4.0.4) and
>>> (kernel version 3.0.15 ). First i used yuv sensor it's working good
>>> preview and capture.. now i need
>>> to change the sensor with Bayer(raw10) input(MIPI interface)..i get
>>> preview black there is no sign of image data
>>>
>>> Camera driver init seems to be ok...is there anything to change in
>>> android ?
>>>
>>> if so please help  me which part i need to change..
>>>
>>> Thankyou!!
>>> Regards
>>> V.Natarajan
>>>
>>  --
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
> ---
> You received this message because you are subscribed to the Google Groups
> "android-porting" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-porting+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to