Remove VideoCodingModule::VCMPacketizationCallback
And move encoder name cb to VCMSendStatisticsCallback. BUG=webrtc:5687 Review-Url: https://codereview.webrtc.org/1900193004 Cr-Commit-Position: refs/heads/master@{#12596}
This commit is contained in:
@ -184,32 +184,6 @@ class VideoCodingModule : public Module {
|
||||
// < 0, on error.
|
||||
virtual int32_t SetReceiveChannelParameters(int64_t rtt) = 0;
|
||||
|
||||
// Register a transport callback which will be called to deliver the encoded
|
||||
// data and
|
||||
// side information.
|
||||
//
|
||||
// Input:
|
||||
// - transport : The callback object to register.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t RegisterTransportCallback(
|
||||
VCMPacketizationCallback* transport) = 0;
|
||||
|
||||
// Register video output information callback which will be called to deliver
|
||||
// information
|
||||
// about the video stream produced by the encoder, for instance the average
|
||||
// frame rate and
|
||||
// bit rate.
|
||||
//
|
||||
// Input:
|
||||
// - outputInformation : The callback object to register.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t RegisterSendStatisticsCallback(
|
||||
VCMSendStatisticsCallback* sendStats) = 0;
|
||||
|
||||
// Register a video protection callback which will be called to deliver
|
||||
// the requested FEC rate and NACK status (on/off).
|
||||
//
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_
|
||||
#define WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/include/module_common_types.h"
|
||||
@ -56,18 +57,6 @@ struct VCMFrameCount {
|
||||
uint32_t numDeltaFrames;
|
||||
};
|
||||
|
||||
// Callback class used for sending data ready to be packetized
|
||||
// Deprecated.
|
||||
// TODO(perkj): Remove once OnEncoderImplementationName is not used.
|
||||
class VCMPacketizationCallback {
|
||||
public:
|
||||
// TODO(perkj): Refactor this. It does not belong in VCMPacketizationCallback.
|
||||
virtual void OnEncoderImplementationName(const char* implementation_name) {}
|
||||
|
||||
protected:
|
||||
virtual ~VCMPacketizationCallback() {}
|
||||
};
|
||||
|
||||
// Callback class used for passing decoded frames which are ready to be
|
||||
// rendered.
|
||||
class VCMReceiveCallback {
|
||||
@ -84,13 +73,13 @@ class VCMReceiveCallback {
|
||||
virtual ~VCMReceiveCallback() {}
|
||||
};
|
||||
|
||||
// Callback class used for informing the user of the bit rate and frame rate
|
||||
// produced by the
|
||||
// encoder.
|
||||
// Callback class used for informing the user of the bit rate and frame rate,
|
||||
// and the name of the encoder.
|
||||
class VCMSendStatisticsCallback {
|
||||
public:
|
||||
virtual int32_t SendStatistics(const uint32_t bitRate,
|
||||
const uint32_t frameRate) = 0;
|
||||
virtual void SendStatistics(uint32_t bitRate,
|
||||
uint32_t frameRate,
|
||||
const std::string& encoder_name) = 0;
|
||||
|
||||
protected:
|
||||
virtual ~VCMSendStatisticsCallback() {}
|
||||
|
||||
Reference in New Issue
Block a user