Home | History | Annotate | Download | only in vp8
      1 /*
      2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
      3  *
      4  *  Use of this source code is governed by a BSD-style license
      5  *  that can be found in the LICENSE file in the root of the source
      6  *  tree. An additional intellectual property rights grant can be found
      7  *  in the file PATENTS.  All contributing project authors may
      8  *  be found in the AUTHORS file in the root of the source tree.
      9  *
     10  */
     11 
     12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_FACTORY_H_
     13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_FACTORY_H_
     14 
     15 namespace webrtc {
     16 
     17 // VP8EncoderFactoryConfig is the interface to control the VP8Encoder::Create
     18 // to create VP8EncoderImpl or SimulcastEncoderAdapter+VP8EncoderImpl.
     19 // TODO(ronghuawu): Remove when SimulcastEncoderAdapter+VP8EncoderImpl is ready
     20 // to replace VP8EncoderImpl.
     21 class VP8EncoderFactoryConfig {
     22  public:
     23   static void set_use_simulcast_adapter(bool use_simulcast_adapter) {
     24     use_simulcast_adapter_ = use_simulcast_adapter;
     25   }
     26   static bool use_simulcast_adapter() { return use_simulcast_adapter_; }
     27 
     28  private:
     29   static bool use_simulcast_adapter_;
     30 };
     31 
     32 }  // namespace webrtc
     33 
     34 #endif  // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_FACTORY_H_
     35