Home | History | Annotate | Download | only in acm2

Lines Matching refs:codec_inst

389 int ACMCodecDB::Codec(int codec_id, CodecInst* codec_inst) {
396 memcpy(codec_inst, &database_[codec_id], sizeof(CodecInst));
412 int ACMCodecDB::CodecNumber(const CodecInst& codec_inst, int* mirror_id) {
414 int codec_id = CodecId(codec_inst);
422 if (!ValidPayloadType(codec_inst.pltype)) {
446 if (codec_inst.pacsize == packet_size_samples) {
457 if (codec_inst.pacsize < 1) {
464 if (STR_CASE_CMP("isac", codec_inst.plname) == 0) {
465 if (IsISACRateValid(codec_inst.rate)) {
473 } else if (STR_CASE_CMP("ilbc", codec_inst.plname) == 0) {
474 return IsILBCRateValid(codec_inst.rate, codec_inst.pacsize)
476 } else if (STR_CASE_CMP("amr", codec_inst.plname) == 0) {
477 return IsAMRRateValid(codec_inst.rate)
479 } else if (STR_CASE_CMP("amr-wb", codec_inst.plname) == 0) {
480 return IsAMRwbRateValid(codec_inst.rate)
482 } else if (STR_CASE_CMP("g7291", codec_inst.plname) == 0) {
483 return IsG7291RateValid(codec_inst.rate)
485 } else if (STR_CASE_CMP("opus", codec_inst.plname) == 0) {
486 return IsOpusRateValid(codec_inst.rate)
488 } else if (STR_CASE_CMP("speex", codec_inst.plname) == 0) {
489 return IsSpeexRateValid(codec_inst.rate)
491 } else if (STR_CASE_CMP("celt", codec_inst.plname) == 0) {
492 return IsCeltRateValid(codec_inst.rate)
496 return IsRateValid(codec_id, codec_inst.rate) ?
505 int ACMCodecDB::CodecId(const CodecInst& codec_inst) {
506 return (CodecId(codec_inst.plname, codec_inst.plfreq,
507 codec_inst.channels));
539 int ACMCodecDB::ReceiverCodecNumber(const CodecInst& codec_inst,
542 int codec_id = CodecId(codec_inst);
547 if (STR_CASE_CMP(codec_inst.plname, "ISAC") != 0) {
593 ACMGenericCodec* ACMCodecDB::CreateCodecInstance(const CodecInst& codec_inst) {
595 if (!STR_CASE_CMP(codec_inst.plname, "ISAC")) {
599 } else if (!STR_CASE_CMP(codec_inst.plname, "PCMU")) {
600 if (codec_inst.channels == 1) {
605 } else if (!STR_CASE_CMP(codec_inst.plname, "PCMA")) {
606 if (codec_inst.channels == 1) {
611 } else if (!STR_CASE_CMP(codec_inst.plname, "ILBC")) {
615 } else if (!STR_CASE_CMP(codec_inst.plname, "AMR")) {
619 } else if (!STR_CASE_CMP(codec_inst.plname, "AMR-WB")) {
623 } else if (!STR_CASE_CMP(codec_inst.plname, "CELT")) {
625 if (codec_inst.channels == 1) {
631 } else if (!STR_CASE_CMP(codec_inst.plname, "G722")) {
633 if (codec_inst.channels == 1) {
639 } else if (!STR_CASE_CMP(codec_inst.plname, "G7221")) {
640 switch (codec_inst.plfreq) {
644 switch (codec_inst->rate) {
667 switch (codec_inst->rate) {
688 } else if (!STR_CASE_CMP(codec_inst.plname, "CN")) {
691 switch (codec_inst.plfreq) {
715 } else if (!STR_CASE_CMP(codec_inst.plname, "G729")) {
719 } else if (!STR_CASE_CMP(codec_inst.plname, "G7291")) {
723 } else if (!STR_CASE_CMP(codec_inst.plname, "opus")) {
727 } else if (!STR_CASE_CMP(codec_inst.plname, "speex")) {
730 switch (codec_inst->plfreq) {
745 } else if (!STR_CASE_CMP(codec_inst.plname, "CN")) {
748 switch (codec_inst.plfreq) {
772 } else if (!STR_CASE_CMP(codec_inst.plname, "L16")) {
776 if (codec_inst.channels == 1) {
777 switch (codec_inst.plfreq) {
795 switch (codec_inst.plfreq) {
815 } else if (!STR_CASE_CMP(codec_inst.plname, "telephone-event")) {
819 } else if (!STR_CASE_CMP(codec_inst.plname, "red")) {