Lines Matching refs:codec
28 #include "talk/session/phone/codec.h"
36 // Match the codec id/name based on the typical static/dynamic name rules.
40 bool AudioCodec::Matches(const AudioCodec& codec) const {
43 // unless the codec is VBR (-1), where we just force the supplied value.
47 return Matches(codec.id, codec.name) &&
48 ((codec.clockrate == 0 /*&& clockrate == 8000*/) ||
49 clockrate == codec.clockrate) &&
50 (codec.bitrate == 0 || bitrate == -1 || bitrate == codec.bitrate) &&
51 (codec.channels == 0 || channels == codec.channels);
62 // Match the codec id/name based on the typical static/dynamic name rules.
66 bool VideoCodec::Matches(const VideoCodec& codec) const {
68 return Matches(codec.id, codec.name);