From 43fcc396614a587851e2b7c4cea2876ec58b8648 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Tue, 2 Aug 2011 16:17:39 +0800 Subject: Use GL to render preview. To speed up the preview, we direct the decoder output to a SurfaceTexture, then draw the texture to a surface. The media rendering parameters (crop, black-border) are implemented using different vertex coordinates. The color effects are implemented using fragment shaders. Currently only three color effects are implemented, but that's all the appplication uses. Change-Id: If84439fee572ed37ea077749ef9f2bd4f78703e1 --- libvideoeditor/lvpp/VideoEditorPlayer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libvideoeditor/lvpp/VideoEditorPlayer.h') diff --git a/libvideoeditor/lvpp/VideoEditorPlayer.h b/libvideoeditor/lvpp/VideoEditorPlayer.h index d1df0e0..6b10b36 100755 --- a/libvideoeditor/lvpp/VideoEditorPlayer.h +++ b/libvideoeditor/lvpp/VideoEditorPlayer.h @@ -23,6 +23,7 @@ #include "VideoEditorMain.h" #include "VideoEditorTools.h" #include "VideoEditorAudioPlayer.h" +#include "NativeWindowRenderer.h" namespace android { @@ -87,7 +88,7 @@ class VideoEditorPlayer : public MediaPlayerInterface { }; public: - VideoEditorPlayer(); + VideoEditorPlayer(NativeWindowRenderer* renderer); virtual ~VideoEditorPlayer(); virtual status_t initCheck(); -- cgit v1.1