1 #ifndef _VKTVIDEOSESSIONFFMPEGUTILS_HPP 2 #define _VKTVIDEOSESSIONFFMPEGUTILS_HPP 3 /*------------------------------------------------------------------------- 4 * Vulkan Conformance Tests 5 * ------------------------ 6 * 7 * Copyright (c) 2021 The Khronos Group Inc. 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * 21 *//*! 22 * \file 23 * \brief Video Session Ffmpeg Utils 24 *//*--------------------------------------------------------------------*/ 25 26 #include "deUniquePtr.hpp" 27 #include "deDefs.hpp" 28 #include "vkPlatform.hpp" 29 #include <vector> 30 31 namespace vkt 32 { 33 namespace video 34 { 35 36 class IfcFfmpegDemuxer 37 { 38 public: 39 virtual bool demux (deUint8** pData, deInt64* pSize) = 0; ~IfcFfmpegDemuxer()40 virtual ~IfcFfmpegDemuxer () { } 41 }; 42 43 44 class IfcFfmpegFunctions 45 { 46 public: 47 virtual IfcFfmpegDemuxer* createIfcFfmpegDemuxer (de::MovePtr<std::vector<deUint8>>& data) = 0; ~IfcFfmpegFunctions()48 virtual ~IfcFfmpegFunctions () {}; 49 }; 50 51 de::MovePtr<IfcFfmpegFunctions> createIfcFfmpegFunctions (); 52 53 } // video 54 } // vkt 55 56 #endif // _VKTVIDEOSESSIONFFMPEGUTILS_HPP 57