2006-02-11 00:38:53 +03:00
|
|
|
/*
|
2007-03-02 02:17:40 +03:00
|
|
|
* Copyright 2001-2007, Haiku Inc.
|
2006-02-11 00:38:53 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Marc Flerackers (mflerackers@androme.be)
|
2007-08-16 18:40:03 +04:00
|
|
|
* Stefano Ceccherini (stefano.ceccherini@gmail.com)
|
2007-03-02 02:17:40 +03:00
|
|
|
* Marcus Overhagen (marcus@overhagen.de)
|
2006-02-11 00:38:53 +03:00
|
|
|
*/
|
2007-10-16 00:13:55 +04:00
|
|
|
#ifndef _PICTURE_PLAYER_H
|
|
|
|
#define _PICTURE_PLAYER_H
|
2006-02-11 00:38:53 +03:00
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
/*! PicturePlayer is used to play picture data. */
|
2006-01-18 00:39:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
#include <GraphicsDefs.h>
|
|
|
|
#include <Point.h>
|
|
|
|
#include <Rect.h>
|
|
|
|
#include <DataIO.h>
|
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
class BList;
|
|
|
|
|
2006-01-18 00:39:07 +03:00
|
|
|
|
2007-08-16 18:40:03 +04:00
|
|
|
namespace BPrivate {
|
|
|
|
|
2006-02-11 00:38:53 +03:00
|
|
|
class PicturePlayer {
|
2006-01-18 00:39:07 +03:00
|
|
|
public:
|
2007-10-16 00:13:55 +04:00
|
|
|
PicturePlayer();
|
|
|
|
PicturePlayer(const void *data, size_t size, BList *pictures);
|
|
|
|
virtual ~PicturePlayer();
|
2006-01-18 00:39:07 +03:00
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
status_t Play(void **callBackTable, int32 tableEntries,
|
|
|
|
void *userData);
|
2006-01-18 00:39:07 +03:00
|
|
|
|
|
|
|
private:
|
2007-10-16 00:13:55 +04:00
|
|
|
const void* fData;
|
|
|
|
size_t fSize;
|
|
|
|
BList* fPictures;
|
2006-01-18 00:39:07 +03:00
|
|
|
};
|
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
} // namespace BPrivate
|
2007-08-16 18:40:03 +04:00
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
#endif // _PICTURE_PLAYER_H
|