tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GmpVideoCodec.cpp (808B)


      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 #include "GmpVideoCodec.h"
      6 
      7 #include "WebrtcGmpVideoCodec.h"
      8 
      9 namespace mozilla {
     10 
     11 WebrtcVideoEncoder* GmpVideoCodec::CreateEncoder(
     12    const webrtc::SdpVideoFormat& aFormat, std::string aPCHandle) {
     13  return new WebrtcVideoEncoderProxy(
     14      new WebrtcGmpVideoEncoder(aFormat, std::move(aPCHandle)));
     15 }
     16 
     17 WebrtcVideoDecoder* GmpVideoCodec::CreateDecoder(std::string aPCHandle,
     18                                                 TrackingId aTrackingId) {
     19  return new WebrtcVideoDecoderProxy(std::move(aPCHandle),
     20                                     std::move(aTrackingId));
     21 }
     22 
     23 }  // namespace mozilla