On Mon, May 16, 2011 at 11:03 AM, white <[email protected]> wrote:
> Hi All,
> I am just trying to understand the VideoRecording Path. As far as my
> understanding goes the flow is as below,
>
> Camera.java ->android_hardware_Camera.cpp ->Camera.cpp ->ICamera.cpp -
>>CameraService.cpp -> CameraHAL.cpp -> V4L2 Interface
>
> I see that the callback functions are set in CameraService.cpp as
> below,
> CameraService::Client::Client(...)
> {
>   [..]
>   mHardware->setCallbacks(notifyCallback,
>                            dataCallback,
>                            dataCallbackTimestamp,
>                            mCameraService.get());
>           [..]
> }
>
> So, once HAL layer finishes grabbing via a frame via V4L2 it should
> call the dataCallback() function registered and our video data should
> be present at "dataPtr" memory location.
>        dataCallback(int32_t msgType, const sp<IMemory>& dataPtr,
> void* user)
>
> After this point I am not able to figure out as to how does this video
> data gets passed to StageFrightRecorder interface. I believe
> CameraService should be the place from where the data goes into the
> StageFright framework for encoding. Am I right ?
>
> Please help me with the code pointer where the data gets passed into
> framework for encoding.
>

Hi, this may help
http://arowboat.wordpress.com/2011/03/07/camera-porting-trials-on-gingerbread/

Regards,
Amit Pundir

> Thanks
> White
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to