Remove CodecInst pt.3
Finally remove CodecInst from common_types.h, including remaining code referencing it. TBR=kwiberg Bug: webrtc:7626 Change-Id: I5e6b949ae9093641e33972af8438d1126fc48556 Reviewed-on: https://webrtc-review.googlesource.com/c/114546 Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26036}
This commit is contained in:

committed by
Commit Bot

parent
de133ce79e
commit
41f3a43c74
@ -14,12 +14,10 @@
|
||||
#include <stddef.h> // For size_t
|
||||
#include <cstdint>
|
||||
|
||||
#include "absl/strings/match.h"
|
||||
// TODO(sprang): Remove this include when all usage includes it directly.
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
// TODO(bugs.webrtc.org/7660): Delete include once downstream code is updated.
|
||||
#include "api/video/video_codec_type.h"
|
||||
#include "rtc_base/checks.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// Disable "new behavior: elements of array will be default initialized"
|
||||
@ -158,29 +156,6 @@ class OverheadObserver {
|
||||
virtual void OnOverheadChanged(size_t overhead_bytes_per_packet) = 0;
|
||||
};
|
||||
|
||||
// ==================================================================
|
||||
// Voice specific types
|
||||
// ==================================================================
|
||||
|
||||
// Each codec supported can be described by this structure.
|
||||
struct CodecInst {
|
||||
int pltype;
|
||||
char plname[RTP_PAYLOAD_NAME_SIZE];
|
||||
int plfreq;
|
||||
int pacsize;
|
||||
size_t channels;
|
||||
int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file!
|
||||
|
||||
bool operator==(const CodecInst& other) const {
|
||||
return pltype == other.pltype &&
|
||||
absl::EqualsIgnoreCase(plname, other.plname) &&
|
||||
plfreq == other.plfreq && pacsize == other.pacsize &&
|
||||
channels == other.channels && rate == other.rate;
|
||||
}
|
||||
|
||||
bool operator!=(const CodecInst& other) const { return !(*this == other); }
|
||||
};
|
||||
|
||||
// RTP
|
||||
enum { kRtpCsrcSize = 15 }; // RFC 3550 page 13
|
||||
|
||||
|
Reference in New Issue
Block a user