| 1 |
/* |
| 2 |
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>. |
| 3 |
* It is copyright by its individual contributors, as recorded in the |
| 4 |
* project's Git history. See COPYING.txt at the top level for license |
| 5 |
* terms and a link to the Git history. |
| 6 |
*/ |
| 7 |
#ifndef _LIBMVE_H |
| 8 |
#define _LIBMVE_H |
| 9 |
|
| 10 |
#include <memory> |
| 11 |
#include <SDL.h> |
| 12 |
|
| 13 |
namespace d2x { |
| 14 |
|
| 15 |
enum class MVE_StepStatus : bool |
| 16 |
{ |
| 17 |
Continue = 0, |
| 18 |
EndOfFile = 1, |
| 19 |
}; |
| 20 |
|
| 21 |
enum class MVE_play_sounds : bool |
| 22 |
{ |
| 23 |
silent, |
| 24 |
enabled, |
| 25 |
}; |
| 26 |
|
| 27 |
struct MVESTREAM; |
| 28 |
|
| 29 |
MVE_StepStatus MVE_rmStepMovie(MVESTREAM &mve); |
| 30 |
void MVE_rmHoldMovie(); |
| 31 |
void MVE_rmEndMovie(std::unique_ptr<MVESTREAM> mve); |
| 32 |
|
| 33 |
void MovieShowFrame(const uint8_t *buf, int dstx, int dsty, int bufw, int bufh, int sw, int sh); |
| 34 |
void MovieSetPalette(const unsigned char *p, unsigned start, unsigned count); |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
#endif /* _LIBMVE_H */ |