Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/bmp/avi_yuv_decoder.h
2024-09-24 14:54:57 +02:00

24 lines
696 B
C++

#pragma once
#include "../Plugins/Input/in_avi/ifc_avivideodecoder.h"
#include "../nsavi/avi_header.h"
class AVIYUV : public ifc_avivideodecoder
{
public:
AVIYUV(nsavi::video_format *stream_format);
~AVIYUV();
static AVIYUV *CreateDecoder(nsavi::video_format *stream_format);
int Initialize();
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);
private:
nsavi::video_format *stream_format;
void *video_frame;
size_t video_frame_size_bytes;
bool o;
protected:
RECVS_DISPATCH;
};