Allow injecting a Vp8FrameBufferControllerFactory
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}
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "api/video_codecs/vp8_frame_buffer_controller.h"
|
||||
#include "modules/video_coding/include/video_codec_interface.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -22,6 +23,10 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user