Logo Search packages:      
Sourcecode: wine version File versions

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 "wine/debug.h"

Go to the source code of this file.

Classes

struct  Msvideo1Context

Defines

#define CHECK_STREAM_PTR(n)
#define CRAM_MAGIC   mmioFOURCC('C', 'R', 'A', 'M')
#define LE_16(x)   ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0])
#define MSVC_MAGIC   mmioFOURCC('M', 'S', 'V', 'C')
#define PALETTE_COUNT   256
#define WHAM_MAGIC   mmioFOURCC('W', 'H', 'A', 'M')

Typedefs

typedef BYTE uint8_t

Functions

LRESULT CRAM_Decompress (Msvideo1Context *info, ICDECOMPRESS *icd, DWORD size)
LRESULT CRAM_DecompressBegin (Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out)
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 dwDriverId, HDRVR hdrvr, UINT msg, LONG lParam1, LONG lParam2)
static void msvideo1_decode_16bit (int width, int height, unsigned char *buf, int buf_size, unsigned short *pixels, int stride)
static void msvideo1_decode_8bit (int width, int height, unsigned char *buf, int buf_size, unsigned char *pixels, int stride)
 WINE_DEFAULT_DEBUG_CHANNEL (msvidc32)


Generated by  Doxygen 1.6.0   Back to index