Use VideoDecoder::Configure interface when setting up decoder
Bug: webrtc:13045 Change-Id: I322ff91d96bab8bb7c40f4dea1c9c2b5c7631635 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228420 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34756}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
b6bbdeb24d
commit
355b8d237c
@ -13,6 +13,7 @@
|
||||
|
||||
#include "api/video/video_frame.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "api/video_codecs/video_decoder.h"
|
||||
#include "modules/include/module.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_video_header.h"
|
||||
#include "modules/video_coding/include/video_coding_defines.h"
|
||||
@ -43,12 +44,13 @@ class VideoCodingModule : public Module {
|
||||
//
|
||||
// Input:
|
||||
// - payload_type : RTP payload type
|
||||
// - receiveCodec : Settings for the codec to be registered.
|
||||
// - numberOfCores : Number of CPU cores that the decoder is allowed
|
||||
// to use.
|
||||
// - settings : Settings for the decoder to be registered.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
// Return value : true, on success.
|
||||
// false, on error.
|
||||
virtual bool RegisterReceiveCodec(uint8_t payload_type,
|
||||
const VideoDecoder::Settings& settings) = 0;
|
||||
ABSL_DEPRECATED("Use RegisterReceiveCodec above")
|
||||
virtual int32_t RegisterReceiveCodec(uint8_t payload_type,
|
||||
const VideoCodec* receiveCodec,
|
||||
int32_t numberOfCores) = 0;
|
||||
|
||||
Reference in New Issue
Block a user