mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 15:20:42 +01:00

Injection is made possible through VP8Encoder::Create. According to native-api.md, it is a defacto public API despite not being in the api/ folder. Bug: webrtc:10259, webrtc:10382 Change-Id: Ifc5d55aa99613cfee0fcb4f0c6690121c85b2e3e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128883 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27281}
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*
|
|
* WEBRTC VP8 wrapper interface
|
|
*/
|
|
|
|
#ifndef MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|
|
#define MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "api/video_codecs/vp8_frame_buffer_controller.h"
|
|
#include "modules/video_coding/include/video_codec_interface.h"
|
|
|
|
namespace webrtc {
|
|
|
|
class VP8Encoder {
|
|
public:
|
|
static std::unique_ptr<VideoEncoder> Create();
|
|
|
|
static std::unique_ptr<VideoEncoder> Create(
|
|
std::unique_ptr<Vp8FrameBufferControllerFactory>
|
|
frame_buffer_controller_factory);
|
|
}; // end of VP8Encoder class
|
|
|
|
class VP8Decoder {
|
|
public:
|
|
static std::unique_ptr<VideoDecoder> Create();
|
|
}; // end of VP8Decoder class
|
|
} // namespace webrtc
|
|
|
|
#endif // MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|