summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorPannag Sanketi <psanketi@google.com>2011-08-24 15:18:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-24 15:18:07 -0700
commit1797e5d00e0ba4048c2258f091e6fd80748aa0ad (patch)
tree1b062f277b2cd983b01e64276e1207dcbfae3a92 /include/media
parent3281e721c785304613c44853fc506b43cfea343c (diff)
parent0c5c7d2b119d2350c186ae9902919bcf28c3e277 (diff)
downloadframeworks_av-1797e5d00e0ba4048c2258f091e6fd80748aa0ad.zip
frameworks_av-1797e5d00e0ba4048c2258f091e6fd80748aa0ad.tar.gz
frameworks_av-1797e5d00e0ba4048c2258f091e6fd80748aa0ad.tar.bz2
Merge "Testing the GL/ CPU encoding w/ Gralloc buffers"
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/SurfaceMediaSource.h15
-rw-r--r--include/media/stagefright/openmax/OMX_IVCommon.h3
2 files changed, 13 insertions, 5 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h
index 1affb8a..74d54d1 100644
--- a/include/media/stagefright/SurfaceMediaSource.h
+++ b/include/media/stagefright/SurfaceMediaSource.h
@@ -182,9 +182,9 @@ public:
protected:
- // freeAllBuffers frees the resources (both GraphicBuffer and EGLImage) for
+ // freeAllBuffersLocked frees the resources (both GraphicBuffer and EGLImage) for
// all slots.
- void freeAllBuffers();
+ void freeAllBuffersLocked();
static bool isExternalFormat(uint32_t format);
private:
@@ -337,8 +337,15 @@ private:
// Set to a default of 30 fps if not specified by the client side
int32_t mFrameRate;
- // mStarted is a flag to check if the recording has started
- bool mStarted;
+ // mStopped is a flag to check if the recording is going on
+ bool mStopped;
+
+ // mNumFramesReceived indicates the number of frames recieved from
+ // the client side
+ int mNumFramesReceived;
+ // mNumFramesEncoded indicates the number of frames passed on to the
+ // encoder
+ int mNumFramesEncoded;
// mFrameAvailableCondition condition used to indicate whether there
// is a frame available for dequeuing
diff --git a/include/media/stagefright/openmax/OMX_IVCommon.h b/include/media/stagefright/openmax/OMX_IVCommon.h
index 97170d7..65b6339 100644
--- a/include/media/stagefright/openmax/OMX_IVCommon.h
+++ b/include/media/stagefright/openmax/OMX_IVCommon.h
@@ -154,7 +154,8 @@ typedef enum OMX_COLOR_FORMATTYPE {
* Gralloc Buffers.
* FIXME: In the process of reserving some enum values for
* Android-specific OMX IL colorformats. Change this enum to
- * an acceptable range once that is done.*/
+ * an acceptable range once that is done.
+ * */
OMX_COLOR_FormatAndroidOpaque = 0x7F000001,
OMX_TI_COLOR_FormatYUV420PackedSemiPlanar = 0x7F000100,
OMX_QCOM_COLOR_FormatYVU420SemiPlanar = 0x7FA30C00,