Webrtc_Word32 => int32_t in video_coding/main/
BUG= Review URL: https://webrtc-codereview.appspot.com/1279004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3753 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -45,12 +45,12 @@ struct VCMEncodedFrameSample {
|
||||
class VCMMediaOptimization
|
||||
{
|
||||
public:
|
||||
VCMMediaOptimization(WebRtc_Word32 id, Clock* clock);
|
||||
VCMMediaOptimization(int32_t id, Clock* clock);
|
||||
~VCMMediaOptimization(void);
|
||||
/*
|
||||
* Reset the Media Optimization module
|
||||
*/
|
||||
WebRtc_Word32 Reset();
|
||||
int32_t Reset();
|
||||
/**
|
||||
* Set target Rates for the encoder given the channel parameters
|
||||
* Inputs: target bitrate - the encoder target bitrate in bits/s.
|
||||
@ -59,19 +59,19 @@ public:
|
||||
* minBitRate - the bit rate of the end-point with lowest rate
|
||||
* maxBitRate - the bit rate of the end-point with highest rate
|
||||
*/
|
||||
WebRtc_UWord32 SetTargetRates(WebRtc_UWord32 target_bitrate,
|
||||
WebRtc_UWord8 &fractionLost,
|
||||
WebRtc_UWord32 roundTripTimeMs);
|
||||
uint32_t SetTargetRates(uint32_t target_bitrate,
|
||||
uint8_t &fractionLost,
|
||||
uint32_t roundTripTimeMs);
|
||||
|
||||
/**
|
||||
* Inform media optimization of initial encoding state
|
||||
*/
|
||||
WebRtc_Word32 SetEncodingData(VideoCodecType sendCodecType,
|
||||
WebRtc_Word32 maxBitRate,
|
||||
WebRtc_UWord32 frameRate,
|
||||
WebRtc_UWord32 bitRate,
|
||||
WebRtc_UWord16 width,
|
||||
WebRtc_UWord16 height,
|
||||
int32_t SetEncodingData(VideoCodecType sendCodecType,
|
||||
int32_t maxBitRate,
|
||||
uint32_t frameRate,
|
||||
uint32_t bitRate,
|
||||
uint16_t width,
|
||||
uint16_t height,
|
||||
int numTemporalLayers);
|
||||
/**
|
||||
* Enable protection method
|
||||
@ -84,11 +84,11 @@ public:
|
||||
/**
|
||||
* Updates the max pay load size
|
||||
*/
|
||||
void SetMtu(WebRtc_Word32 mtu);
|
||||
void SetMtu(int32_t mtu);
|
||||
/*
|
||||
* Get actual input frame rate
|
||||
*/
|
||||
WebRtc_UWord32 InputFrameRate();
|
||||
uint32_t InputFrameRate();
|
||||
|
||||
/*
|
||||
* Get actual sent frame rate
|
||||
@ -101,23 +101,23 @@ public:
|
||||
/*
|
||||
* Get maximum allowed bit rate
|
||||
*/
|
||||
WebRtc_Word32 MaxBitRate();
|
||||
int32_t MaxBitRate();
|
||||
/*
|
||||
* Inform Media Optimization of encoding output: Length and frame type
|
||||
*/
|
||||
WebRtc_Word32 UpdateWithEncodedData(int encodedLength,
|
||||
int32_t UpdateWithEncodedData(int encodedLength,
|
||||
uint32_t timestamp,
|
||||
FrameType encodedFrameType);
|
||||
/*
|
||||
* Register a protection callback to be used to inform the user about the
|
||||
* protection methods used
|
||||
*/
|
||||
WebRtc_Word32 RegisterProtectionCallback(VCMProtectionCallback*
|
||||
int32_t RegisterProtectionCallback(VCMProtectionCallback*
|
||||
protectionCallback);
|
||||
/*
|
||||
* Register a quality settings callback to be used to inform VPM/user about
|
||||
*/
|
||||
WebRtc_Word32 RegisterVideoQMCallback(VCMQMSettingsCallback* videoQMSettings);
|
||||
int32_t RegisterVideoQMCallback(VCMQMSettingsCallback* videoQMSettings);
|
||||
void EnableFrameDropper(bool enable);
|
||||
|
||||
bool DropFrame();
|
||||
@ -125,7 +125,7 @@ public:
|
||||
/*
|
||||
* Get number of key/delta frames encoded
|
||||
*/
|
||||
WebRtc_Word32 SentFrameCount(VCMFrameCount &frameCount) const;
|
||||
int32_t SentFrameCount(VCMFrameCount &frameCount) const;
|
||||
|
||||
/*
|
||||
* update incoming frame rate value
|
||||
@ -140,7 +140,7 @@ public:
|
||||
/**
|
||||
* Compute new Quality Mode
|
||||
*/
|
||||
WebRtc_Word32 SelectQuality();
|
||||
int32_t SelectQuality();
|
||||
|
||||
private:
|
||||
typedef std::list<VCMEncodedFrameSample> FrameSampleList;
|
||||
@ -168,31 +168,31 @@ private:
|
||||
*/
|
||||
bool CheckStatusForQMchange();
|
||||
|
||||
void ProcessIncomingFrameRate(WebRtc_Word64 now);
|
||||
void ProcessIncomingFrameRate(int64_t now);
|
||||
|
||||
enum { kFrameCountHistorySize = 90};
|
||||
enum { kFrameHistoryWinMs = 2000};
|
||||
|
||||
WebRtc_Word32 _id;
|
||||
int32_t _id;
|
||||
Clock* _clock;
|
||||
WebRtc_Word32 _maxBitRate;
|
||||
int32_t _maxBitRate;
|
||||
VideoCodecType _sendCodecType;
|
||||
WebRtc_UWord16 _codecWidth;
|
||||
WebRtc_UWord16 _codecHeight;
|
||||
uint16_t _codecWidth;
|
||||
uint16_t _codecHeight;
|
||||
float _userFrameRate;
|
||||
|
||||
FrameDropper* _frameDropper;
|
||||
VCMLossProtectionLogic* _lossProtLogic;
|
||||
WebRtc_UWord8 _fractionLost;
|
||||
uint8_t _fractionLost;
|
||||
|
||||
|
||||
WebRtc_UWord32 _sendStatistics[4];
|
||||
WebRtc_UWord32 _sendStatisticsZeroEncode;
|
||||
WebRtc_Word32 _maxPayloadSize;
|
||||
WebRtc_UWord32 _targetBitRate;
|
||||
uint32_t _sendStatistics[4];
|
||||
uint32_t _sendStatisticsZeroEncode;
|
||||
int32_t _maxPayloadSize;
|
||||
uint32_t _targetBitRate;
|
||||
|
||||
float _incomingFrameRate;
|
||||
WebRtc_Word64 _incomingFrameTimes[kFrameCountHistorySize];
|
||||
int64_t _incomingFrameTimes[kFrameCountHistorySize];
|
||||
|
||||
bool _enableQm;
|
||||
|
||||
@ -203,14 +203,14 @@ private:
|
||||
uint32_t _avgSentBitRateBps;
|
||||
uint32_t _avgSentFramerate;
|
||||
|
||||
WebRtc_UWord32 _keyFrameCnt;
|
||||
WebRtc_UWord32 _deltaFrameCnt;
|
||||
uint32_t _keyFrameCnt;
|
||||
uint32_t _deltaFrameCnt;
|
||||
|
||||
VCMContentMetricsProcessing* _content;
|
||||
VCMQmResolution* _qmResolution;
|
||||
|
||||
WebRtc_Word64 _lastQMUpdateTime;
|
||||
WebRtc_Word64 _lastChangeTime; // content/user triggered
|
||||
int64_t _lastQMUpdateTime;
|
||||
int64_t _lastChangeTime; // content/user triggered
|
||||
int _numLayers;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user