dxx-rebirth/d2x-rebirth/main/libmve.h

48 lines
1.1 KiB
C
Raw Normal View History

2014-06-01 17:55:23 +00:00
/*
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
2014-06-01 17:55:23 +00:00
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
2006-03-20 17:12:09 +00:00
#ifndef _LIBMVE_H
#define _LIBMVE_H
#define MVE_ERR_EOF 1
#ifdef __cplusplus
2014-10-29 02:59:08 +00:00
#include <memory>
enum class MVE_StepStatus
{
Continue = 0,
EndOfFile = 1,
};
2014-10-29 02:57:52 +00:00
struct MVESTREAM;
struct MVE_videoSpec {
2006-03-20 17:12:09 +00:00
int screenWidth;
int screenHeight;
int width;
int height;
int truecolor;
};
2006-03-20 17:12:09 +00:00
MVE_StepStatus MVE_rmStepMovie(MVESTREAM &mve);
2006-03-20 17:12:09 +00:00
void MVE_rmHoldMovie();
2014-11-01 15:00:48 +00:00
void MVE_rmEndMovie(std::unique_ptr<MVESTREAM> mve);
2006-03-20 17:12:09 +00:00
void MVE_getVideoSpec(MVE_videoSpec *vSpec);
void MVE_sndInit(int x);
unsigned int MovieFileRead(void *handle, void *buf, unsigned int count);
void MovieShowFrame(const uint8_t *buf, int dstx, int dsty, int bufw, int bufh, int sw, int sh);
void *MovieMemoryAllocate(std::size_t size);
void MovieMemoryFree(void *p);
void MovieSetPalette(const unsigned char *p, unsigned start, unsigned count);
2006-03-20 17:12:09 +00:00
#endif
2006-03-20 17:12:09 +00:00
#endif /* _LIBMVE_H */