~ubuntu-branches/ubuntu/utopic/libhybris/utopic-proposed

« back to all changes in this revision

Viewing changes to compat/media/SimplePlayer.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2014-01-23 02:38:35 UTC
  • Revision ID: package-import@ubuntu.com-20140123023835-wtt32jl6x1o7zyk5
Tags: 0.1.0+git20131207+e452e83-0ubuntu6
Making compat code compatible with Android 4.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
struct ABuffer;
26
26
struct ALooper;
27
27
struct AudioTrack;
 
28
#if ANDROID_VERSION_MAJOR==4 && ANDROID_VERSION_MINOR<=2
28
29
struct ISurfaceTexture;
 
30
#else
 
31
struct IGraphicBufferProducer;
 
32
#endif
29
33
struct MediaCodec;
30
34
struct NativeWindowWrapper;
31
35
struct NuMediaExtractor;
34
38
    SimplePlayer();
35
39
 
36
40
    status_t setDataSource(const char *path);
 
41
#if ANDROID_VERSION_MAJOR==4 && ANDROID_VERSION_MINOR<=2
37
42
    status_t setSurface(const sp<ISurfaceTexture> &surfaceTexture);
 
43
#else
 
44
    status_t setSurface(const sp<IGraphicBufferProducer> &surfaceTexture);
 
45
#endif
38
46
    status_t prepare();
39
47
    status_t start();
40
48
    status_t stop();