/** * libdatachannel streamer example * Copyright (c) 2020 Filip Klembara (in2core) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #ifndef h264fileparser_hpp #define h264fileparser_hpp #include "fileparser.hpp" #include class H264FileParser: public FileParser { std::optional> previousUnitType5 = std::nullopt; std::optional> previousUnitType7 = std::nullopt; std::optional> previousUnitType8 = std::nullopt; public: H264FileParser(std::string directory, uint32_t fps, bool loop); void loadNextSample() override; std::vector initialNALUS(); }; #endif /* h264fileparser_hpp */