![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | DPVSIMPLEDECODEERROR_COLORMASKSEXCEEDBPP 8 |
#define | DPVSIMPLEDECODEERROR_COLORMASKSOVERLAP 7 |
#define | DPVSIMPLEDECODEERROR_EOF 1 |
#define | DPVSIMPLEDECODEERROR_INVALIDBMASK 6 |
#define | DPVSIMPLEDECODEERROR_INVALIDGMASK 5 |
#define | DPVSIMPLEDECODEERROR_INVALIDRMASK 4 |
#define | DPVSIMPLEDECODEERROR_NONE 0 |
#define | DPVSIMPLEDECODEERROR_READERROR 2 |
#define | DPVSIMPLEDECODEERROR_SOUNDBUFFERTOOSMALL 3 |
#define | DPVSIMPLEDECODEERROR_UNSUPPORTEDBPP 9 |
Functions | |
void | dpvsimpledecode_close (void *stream) |
int | dpvsimpledecode_error (void *stream, const char **errorstring) |
double | dpvsimpledecode_getaspectratio (void *stream) |
double | dpvsimpledecode_getframerate (void *stream) |
unsigned int | dpvsimpledecode_getheight (void *stream) |
unsigned int | dpvsimpledecode_getwidth (void *stream) |
void * | dpvsimpledecode_open (clvideo_t *video, char *filename, const char **errorstring) |
int | dpvsimpledecode_video (void *stream, void *imagedata, unsigned int Rmask, unsigned int Gmask, unsigned int Bmask, unsigned int bytesperpixel, int imagebytesperrow) |
#define DPVSIMPLEDECODEERROR_COLORMASKSEXCEEDBPP 8 |
Definition at line 38 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
#define DPVSIMPLEDECODEERROR_COLORMASKSOVERLAP 7 |
Definition at line 37 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
#define DPVSIMPLEDECODEERROR_EOF 1 |
Definition at line 31 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_video().
#define DPVSIMPLEDECODEERROR_INVALIDBMASK 6 |
Definition at line 36 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
#define DPVSIMPLEDECODEERROR_INVALIDGMASK 5 |
Definition at line 35 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
#define DPVSIMPLEDECODEERROR_INVALIDRMASK 4 |
Definition at line 34 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
#define DPVSIMPLEDECODEERROR_NONE 0 |
Definition at line 30 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_video().
#define DPVSIMPLEDECODEERROR_READERROR 2 |
Definition at line 32 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_video().
#define DPVSIMPLEDECODEERROR_SOUNDBUFFERTOOSMALL 3 |
Definition at line 33 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error().
#define DPVSIMPLEDECODEERROR_UNSUPPORTEDBPP 9 |
Definition at line 39 of file dpvsimpledecode.h.
Referenced by dpvsimpledecode_error(), and dpvsimpledecode_setpixelformat().
Definition at line 447 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::bitstream, dpvsimpledecodestream_t::framedatablocks, hz_bitstream_read_blocks_free(), hz_bitstream_read_close(), NULL, S_StopChannel(), dpvsimpledecodestream_t::sndchan, dpvsimpledecodestream_t::videopixels, and Z_Free.
Referenced by dpvsimpledecode_open().
Definition at line 469 of file dpvsimpledecode.c.
References DPVSIMPLEDECODEERROR_COLORMASKSEXCEEDBPP, DPVSIMPLEDECODEERROR_COLORMASKSOVERLAP, DPVSIMPLEDECODEERROR_EOF, DPVSIMPLEDECODEERROR_INVALIDBMASK, DPVSIMPLEDECODEERROR_INVALIDGMASK, DPVSIMPLEDECODEERROR_INVALIDRMASK, DPVSIMPLEDECODEERROR_NONE, DPVSIMPLEDECODEERROR_READERROR, DPVSIMPLEDECODEERROR_SOUNDBUFFERTOOSMALL, DPVSIMPLEDECODEERROR_UNSUPPORTEDBPP, and dpvsimpledecodestream_t::error.
double dpvsimpledecode_getaspectratio | ( | void * | stream | ) |
Definition at line 539 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::info_aspectratio.
Referenced by dpvsimpledecode_open().
double dpvsimpledecode_getframerate | ( | void * | stream | ) |
Definition at line 532 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::info_framerate.
Referenced by dpvsimpledecode_open().
Definition at line 525 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::info_imageheight.
Referenced by dpvsimpledecode_open().
Definition at line 518 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::info_imagewidth.
Referenced by dpvsimpledecode_open().
Definition at line 356 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::bitstream, clvideo_t::close, clvideo_t::decodeframe, dp_strlcat, dpvsimpledecode_close(), dpvsimpledecode_getaspectratio(), dpvsimpledecode_getframerate(), dpvsimpledecode_getheight(), dpvsimpledecode_getwidth(), dpvsimpledecode_video(), dpvsimpledecodestream_t::framedatablocks, FS_StripExtension(), clvideo_t::getaspectratio, clvideo_t::getframerate, clvideo_t::getheight, clvideo_t::getwidth, hz_bitstream_read_blocks_free(), hz_bitstream_read_blocks_new(), hz_bitstream_read_blocks_read(), hz_bitstream_read_bytes(), hz_bitstream_read_close(), hz_bitstream_read_int(), hz_bitstream_read_open(), hz_bitstream_read_short(), dpvsimpledecodestream_t::info_aspectratio, dpvsimpledecodestream_t::info_framerate, dpvsimpledecodestream_t::info_imageheight, dpvsimpledecodestream_t::info_imagewidth, NULL, S_PrecacheSound(), S_StartSound(), dpvsimpledecodestream_t::sndchan, strlen(), vec3_origin, dpvsimpledecodestream_t::videoframenum, dpvsimpledecodestream_t::videopixels, Z_Free, and Z_Malloc.
Referenced by OpenStream().
int dpvsimpledecode_video | ( | void * | stream, |
void * | imagedata, | ||
unsigned int | Rmask, | ||
unsigned int | Gmask, | ||
unsigned int | Bmask, | ||
unsigned int | bytesperpixel, | ||
int | imagebytesperrow ) |
Definition at line 651 of file dpvsimpledecode.c.
References dpvsimpledecodestream_t::bitstream, dpvsimpledecode_convertpixels(), dpvsimpledecode_decompressimage(), dpvsimpledecode_setpixelformat(), DPVSIMPLEDECODEERROR_EOF, DPVSIMPLEDECODEERROR_NONE, DPVSIMPLEDECODEERROR_READERROR, dpvsimpledecodestream_t::error, dpvsimpledecodestream_t::framedatablocks, hz_bitstream_read_blocks_read(), hz_bitstream_read_bytes(), and hz_bitstream_read_int().
Referenced by dpvsimpledecode_open().