mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-29 15:56:06 +00:00
27 lines
777 B
C
27 lines
777 B
C
|
#pragma once
|
||
|
#include "../Plugins/Input/in_avi/ifc_avivideodecoder.h"
|
||
|
#include "../nsavi/avi_header.h"
|
||
|
|
||
|
class AVIRGB : public ifc_avivideodecoder
|
||
|
{
|
||
|
public:
|
||
|
AVIRGB(nsavi::video_format *stream_format);
|
||
|
~AVIRGB();
|
||
|
int Initialize();
|
||
|
static AVIRGB *CreateDecoder(nsavi::video_format *stream_format);
|
||
|
int GetOutputProperties(int *x, int *y, int *color_format, double *aspect_ratio, int *flip);
|
||
|
int DecodeChunk(uint16_t type, const void *inputBuffer, size_t inputBufferBytes);
|
||
|
void Flush();
|
||
|
void Close();
|
||
|
int GetPicture(void **data, void **decoder_data);
|
||
|
int GetPalette(RGB32 **palette);
|
||
|
private:
|
||
|
nsavi::video_format *stream_format;
|
||
|
void *video_frame;
|
||
|
size_t video_frame_size_bytes;
|
||
|
bool o;
|
||
|
RGBQUAD palette[256];
|
||
|
bool palette_retrieved;
|
||
|
protected:
|
||
|
RECVS_DISPATCH;
|
||
|
};
|