From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/h264/nsv_h264_decoder.cpp | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Src/h264/nsv_h264_decoder.cpp (limited to 'Src/h264/nsv_h264_decoder.cpp') diff --git a/Src/h264/nsv_h264_decoder.cpp b/Src/h264/nsv_h264_decoder.cpp new file mode 100644 index 00000000..3fa781ff --- /dev/null +++ b/Src/h264/nsv_h264_decoder.cpp @@ -0,0 +1,77 @@ +#include "nsv_h264_decoder.h" +#include "../nsv/nsvlib.h" +#include "../nsv/dec_if.h" +#include +#include + +H264_Decoder::H264_Decoder() +{ + vidbufdec=0; + last_pic = 0; + decoder.Open(); +} + +H264_Decoder::~H264_Decoder() +{ + for (size_t i=0;i