diff options
author | Andreas Huber <andih@google.com> | 2012-12-03 11:18:00 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-12-03 11:40:44 -0800 |
commit | 1a447be0cf1abc7564ae2afe7b4d2240c875de54 (patch) | |
tree | a803fa1872f7dee894c405c8a3219c69f96e5aa5 /media/libmediaplayerservice/nuplayer/NuPlayer.h | |
parent | 3e5abe9b119513bdb5b8b8d7c9aa72de7339f78f (diff) | |
download | frameworks_av-1a447be0cf1abc7564ae2afe7b4d2240c875de54.zip frameworks_av-1a447be0cf1abc7564ae2afe7b4d2240c875de54.tar.gz frameworks_av-1a447be0cf1abc7564ae2afe7b4d2240c875de54.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.h | 8 |
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); }; |