diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/h264/nsv_h264_decoder.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/h264/nsv_h264_decoder.h')
-rw-r--r-- | Src/h264/nsv_h264_decoder.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Src/h264/nsv_h264_decoder.h b/Src/h264/nsv_h264_decoder.h new file mode 100644 index 00000000..4a3375b1 --- /dev/null +++ b/Src/h264/nsv_h264_decoder.h @@ -0,0 +1,24 @@ +#pragma once +#include "../nsv/dec_if.h" +#include "annexb.h" +#include "MFTDecoder.h" +#include <vector> + +class H264_Decoder : public IVideoDecoder +{ +public: + H264_Decoder(); + ~H264_Decoder(); + int decode(int need_kf, + void *in, int in_len, + void **out, // out is set to a pointer to data + unsigned int *out_type, // 'Y','V','1','2' is currently defined + int *is_kf); + void flush(); + +private: + MFTDecoder decoder; + YV12_PLANES *vidbufdec; + void *last_pic; + std::vector<nullsoft_h264_frame_data> buffered_frames; +}; |