OSDN Git Service

Connect MediaRecorder Native to SurfaceMediaSource
authorPannag Sanketi <psanketi@google.com>
Sat, 2 Jul 2011 00:39:39 +0000 (17:39 -0700)
committerPannag Sanketi <psanketi@google.com>
Fri, 22 Jul 2011 21:17:25 +0000 (14:17 -0700)
commitb33f3407bab0970a7f9241680723a1140b177c50
tree8c49b51867769176b088f5ee2dbecd69c188464f
parentfe388eedca9f46ed3fee9579258acecd93e88641
Connect MediaRecorder Native to SurfaceMediaSource

Making a connection from MediaRecorder Native layer to the
SurfaceMediaSource for the purpose of encoding GL Frames. This will be
called from the java side inside the Mobile Filter Framework.

The mediarecorder native layer (client), when set the videosource to
option VIDEO_SOURCE_FRAMES, asks the StageFrightRecorder on the mediaserver
side to create a SurfaceMediaSource object and pass it back as a
sp<ISurfaceTexture> object. Using that, the client side will dequeue and
queue buffers. Connecting the GL Frames to the obtained
sp<ISurfaceTexture> is not part of this CL.

Related to bug id: 4529323

Change-Id: I651bec718dd5b935779e7d7a050b841c2d0b0fcd
include/media/IMediaRecorder.h
include/media/MediaRecorderBase.h
include/media/mediarecorder.h
include/media/stagefright/SurfaceMediaSource.h
media/libmedia/IMediaRecorder.cpp
media/libmedia/mediarecorder.cpp
media/libmediaplayerservice/MediaRecorderClient.cpp
media/libmediaplayerservice/MediaRecorderClient.h
media/libmediaplayerservice/StagefrightRecorder.cpp
media/libmediaplayerservice/StagefrightRecorder.h
media/libstagefright/SurfaceMediaSource.cpp