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.

Thanks
White

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

Reply via email to