Logo Search packages:      
Sourcecode: wine-unstable version File versions  Download package

msvideo1.c File Reference

Detailed Description

Microsoft Video-1 Decoder by Mike Melanson (melanson@pcisys.net) For more information about the MS Video-1 format, visit: http://www.pcisys.net/~melanson/codecs/

This decoder outputs either PAL8 or RGB555 data, depending on the whether a RGB palette was passed through palctrl; if it's present, then the data is PAL8; RGB555 otherwise.

Definition in file msvideo1.c.

#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "commdlg.h"
#include "vfw.h"
#include "mmsystem.h"
#include "msvidc32_private.h"
#include "wine/debug.h"

Go to the source code of this file.


struct  Msvideo1Context


#define compare_fourcc(fcc1, fcc2)   (((fcc1)^(fcc2))&~0x20202020)
#define CRAM_MAGIC   mmioFOURCC('C', 'R', 'A', 'M')
#define LE_16(x)   ((((const uint8_t *)(x))[1] << 8) | ((const uint8_t *)(x))[0])
#define MSVC_MAGIC   mmioFOURCC('M', 'S', 'V', 'C')
#define PALETTE_COUNT   256
#define WHAM_MAGIC   mmioFOURCC('W', 'H', 'A', 'M')


typedef BYTE uint8_t


static LRESULT CRAM_Decompress (Msvideo1Context *info, ICDECOMPRESS *icd, DWORD size)
static LRESULT CRAM_DecompressBegin (Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out)
static LRESULT CRAM_DecompressEx (Msvideo1Context *info, ICDECOMPRESSEX *icd, DWORD size)
static LRESULT CRAM_DecompressGetFormat (Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out)
static LRESULT CRAM_DecompressQuery (Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out)
LRESULT WINAPI CRAM_DriverProc (DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, LPARAM lParam1, LPARAM lParam2)
static LRESULT CRAM_GetInfo (const Msvideo1Context *info, ICINFO *icinfo, DWORD dwSize)
BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
static void msvideo1_decode_16bit (int width, int height, const unsigned char *buf, int buf_size, unsigned short *pixels, int stride)
static void msvideo1_decode_8bit (int width, int height, const unsigned char *buf, int buf_size, unsigned char *pixels, int stride)


static HINSTANCE MSVIDC32_hModule

Generated by  Doxygen 1.6.0   Back to index