summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-12-03 11:18:00 -0800
committerAndreas Huber <andih@google.com>2012-12-03 11:40:44 -0800
commit57a339cdb7524f883de3ceb364c0b5606df0c610 (patch)
tree1cd8ed123b560f94745940eeab4c5b0b9fa2a180 /media/libmediaplayerservice/nuplayer/NuPlayer.h
parentece53e018b38794f7cdf978a605f943f9ec96c3b (diff)
downloadframeworks_av-57a339cdb7524f883de3ceb364c0b5606df0c610.zip
frameworks_av-57a339cdb7524f883de3ceb364c0b5606df0c610.tar.gz
frameworks_av-57a339cdb7524f883de3ceb364c0b5606df0c610.tar.bz2
setVideoSurfaceTexture is now synchronous and applied dynamically
while playing. Change-Id: If9f08659a01bdc7dac0999730368e9dfa5e58d36 related-to-bug: 5666482
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.h b/media/libmediaplayerservice/nuplayer/NuPlayer.h
index 6e174e0..ca87be9 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.h
@@ -42,7 +42,9 @@ struct NuPlayer : public AHandler {
void setDataSource(int fd, int64_t offset, int64_t length);
- void setVideoSurfaceTexture(const sp<ISurfaceTexture> &surfaceTexture);
+ void setVideoSurfaceTextureAsync(
+ const sp<ISurfaceTexture> &surfaceTexture);
+
void setAudioSink(const sp<MediaPlayerBase::AudioSink> &sink);
void start();
@@ -75,6 +77,7 @@ private:
struct StreamingSource;
struct Action;
struct SeekAction;
+ struct SetSurfaceAction;
struct SimpleAction;
enum {
@@ -140,6 +143,8 @@ private:
int32_t mVideoScalingMode;
+ bool mStarted;
+
status_t instantiateDecoder(bool audio, sp<Decoder> *decoder);
status_t feedDecoderInputData(bool audio, const sp<AMessage> &msg);
@@ -165,6 +170,7 @@ private:
void performDecoderShutdown();
void performReset();
void performScanSources();
+ void performSetSurface(const sp<NativeWindowWrapper> &wrapper);
DISALLOW_EVIL_CONSTRUCTORS(NuPlayer);
};