diff options
author | Chih-Chung Chang <chihchung@google.com> | 2011-08-11 18:36:45 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2011-08-11 20:22:22 +0800 |
commit | 08b82bddf54757ad6bd243181f1b68a79bb70e6d (patch) | |
tree | 59ff1b5558c1f993f1249571e40f793c5b056d80 /libvideoeditor/lvpp/VideoEditorPreviewController.cpp | |
parent | 7b0a960ef4bdf5529070d575b98222f55433f243 (diff) | |
download | frameworks_av-08b82bddf54757ad6bd243181f1b68a79bb70e6d.zip frameworks_av-08b82bddf54757ad6bd243181f1b68a79bb70e6d.tar.gz frameworks_av-08b82bddf54757ad6bd243181f1b68a79bb70e6d.tar.bz2 |
Add connect calls for SurfaceTexture. Clean PreviewRenderer.
Now connect() is necessary for SurfaceTexture.
Also cleaned unused code in PreviewRenderer.
Change-Id: Ic49df01e79f38a48a8c2cf194d13ee575660c834
Diffstat (limited to 'libvideoeditor/lvpp/VideoEditorPreviewController.cpp')
-rwxr-xr-x | libvideoeditor/lvpp/VideoEditorPreviewController.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp index a17015e..29dd150 100755 --- a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp +++ b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp @@ -747,8 +747,8 @@ M4OSA_ERR VideoEditorPreviewController::clearSurface( if(mTarget == NULL) { mTarget = PreviewRenderer::CreatePreviewRenderer( - OMX_COLOR_FormatYUV420Planar, surface, outputBufferWidth, outputBufferHeight, - outputBufferWidth, outputBufferHeight, 0); + surface, + outputBufferWidth, outputBufferHeight); if(mTarget == NULL) { LOGE("renderPreviewFrame: cannot create PreviewRenderer"); @@ -813,13 +813,9 @@ M4OSA_ERR VideoEditorPreviewController::renderPreviewFrame( // Initialize the renderer if(mTarget == NULL) { - /*mTarget = new PreviewRenderer( - OMX_COLOR_FormatYUV420Planar, surface, mOutputVideoWidth, mOutputVideoHeight, - mOutputVideoWidth, mOutputVideoHeight, 0);*/ - mTarget = PreviewRenderer::CreatePreviewRenderer( - OMX_COLOR_FormatYUV420Planar, surface, mOutputVideoWidth, mOutputVideoHeight, - mOutputVideoWidth, mOutputVideoHeight, 0); + surface, + mOutputVideoWidth, mOutputVideoHeight); if(mTarget == NULL) { LOGE("renderPreviewFrame: cannot create PreviewRenderer"); |