summaryrefslogtreecommitdiffstats
path: root/media/jni/mediaeditor/VideoBrowserMain.h
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2011-08-09 20:54:01 +0800
committerChih-Chung Chang <chihchung@google.com>2011-08-15 10:08:33 +0800
commitcb04a1f3a31c252a0e3fda5e7eaa16f3257c9397 (patch)
tree5993d0c25f98c9c78a57c1c5949a21c16c0c1b44 /media/jni/mediaeditor/VideoBrowserMain.h
parent37d81ac316db1e9fab455d5b80012c8cf8b6c334 (diff)
downloadframeworks_base-cb04a1f3a31c252a0e3fda5e7eaa16f3257c9397.zip
frameworks_base-cb04a1f3a31c252a0e3fda5e7eaa16f3257c9397.tar.gz
frameworks_base-cb04a1f3a31c252a0e3fda5e7eaa16f3257c9397.tar.bz2
Speed up thumbnail generation.
We don't need to have precise position for thumbnails, so we add a tolerance parameter to the decoder. The decoder can return an earlier frame within the tolerance time given. Change-Id: I0a49ed6b03f8c3264606e4143dd5ecf48e9d0f62
Diffstat (limited to 'media/jni/mediaeditor/VideoBrowserMain.h')
-rwxr-xr-xmedia/jni/mediaeditor/VideoBrowserMain.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/jni/mediaeditor/VideoBrowserMain.h b/media/jni/mediaeditor/VideoBrowserMain.h
index 5156ebb..00b5e05 100755
--- a/media/jni/mediaeditor/VideoBrowserMain.h
+++ b/media/jni/mediaeditor/VideoBrowserMain.h
@@ -133,7 +133,8 @@ M4OSA_ERR videoBrowserCleanUp(M4OSA_Context pContext) ;
* this function with the reached time
* @return M4NO_ERROR / M4ERR_PARAMETER / M4ERR_STATE / M4ERR_ALLOC
******************************************************************************/
-M4OSA_ERR videoBrowserPrepareFrame(M4OSA_Context pContext, M4OSA_UInt32* pTime);
+M4OSA_ERR videoBrowserPrepareFrame(M4OSA_Context pContext, M4OSA_UInt32* pTime,
+ M4OSA_UInt32 tolerance);
/******************************************************************************
* @brief This function sets the size and the position of the display.