GmpVideoCodec.h (743B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef GMPVIDEOCODEC_H_ 6 #define GMPVIDEOCODEC_H_ 7 8 #include <string> 9 10 #include "PerformanceRecorder.h" 11 12 namespace webrtc { 13 struct SdpVideoFormat; 14 } 15 16 namespace mozilla { 17 18 class WebrtcVideoDecoder; 19 class WebrtcVideoEncoder; 20 21 class GmpVideoCodec { 22 public: 23 static WebrtcVideoEncoder* CreateEncoder( 24 const webrtc::SdpVideoFormat& aFormat, std::string aPCHandle); 25 static WebrtcVideoDecoder* CreateDecoder(std::string aPCHandle, 26 TrackingId aTrackingId); 27 }; 28 29 } // namespace mozilla 30 31 #endif