SkMovie Class Reference

#include <SkMovie.h>

Inherits SkRefCnt.

Collaboration diagram for SkMovie:
[legend]

List of all members.

Classes

struct  Info

Public Member Functions

SkMSec duration ()
int width ()
int height ()
int isOpaque ()
bool setTime (SkMSec)
const SkBitmapbitmap ()

Static Public Member Functions

static SkMovieDecodeStream (SkStream *)
static SkMovieDecodeFile (const char path[])
static SkMovieDecodeMemory (const void *data, size_t length)

Protected Member Functions

virtual bool onGetInfo (Info *)=0
virtual bool onSetTime (SkMSec)=0
virtual bool onGetBitmap (SkBitmap *)=0
 SkMovie ()

Detailed Description

Definition at line 25 of file SkMovie.h.


Constructor & Destructor Documentation

SkMovie::SkMovie (  )  [protected]

Member Function Documentation

const SkBitmap& SkMovie::bitmap (  ) 
static SkMovie* SkMovie::DecodeFile ( const char  path[]  )  [static]

Try to create a movie from the specified file path. If the file is not found, or the format is not supported, return NULL. If a movie is returned, the stream may be retained by the movie (via ref()) until the movie is finished with it (by calling unref()).

static SkMovie* SkMovie::DecodeMemory ( const void *  data,
size_t  length 
) [static]

Try to create a movie from the specified memory. If the format is not supported, return NULL. If a movie is returned, the data will have been read or copied, and so the caller may free it.

static SkMovie* SkMovie::DecodeStream ( SkStream  )  [static]

Try to create a movie from the stream. If the stream format is not supported, return NULL.

SkMSec SkMovie::duration (  ) 
int SkMovie::height (  ) 
int SkMovie::isOpaque (  ) 
virtual bool SkMovie::onGetBitmap ( SkBitmap  )  [protected, pure virtual]
virtual bool SkMovie::onGetInfo ( Info  )  [protected, pure virtual]
virtual bool SkMovie::onSetTime ( SkMSec   )  [protected, pure virtual]
bool SkMovie::setTime ( SkMSec   ) 

Specify the time code (between 0...duration) to sample a bitmap from the movie. Returns true if this time code generated a different bitmap/frame from the previous state (i.e. true means you need to redraw).

int SkMovie::width (  ) 

The documentation for this class was generated from the following file:

Generated on Tue Oct 20 10:33:04 2009 for Skia by  doxygen 1.6.1