aboutsummaryrefslogtreecommitdiff
path: root/Src/bmp/avi_yuv_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/bmp/avi_yuv_decoder.h')
-rw-r--r--Src/bmp/avi_yuv_decoder.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Src/bmp/avi_yuv_decoder.h b/Src/bmp/avi_yuv_decoder.h
new file mode 100644
index 00000000..773c6582
--- /dev/null
+++ b/Src/bmp/avi_yuv_decoder.h
@@ -0,0 +1,24 @@
+#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;
+}; \ No newline at end of file