Extract third party part of g711 codec into separate target
Bug: webrtc:8366 Change-Id: I34c7ea707213e0c1a50826896da01f70c072eae5 Reviewed-on: https://webrtc-review.googlesource.com/84741 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23724}
This commit is contained in:
@ -239,17 +239,24 @@ rtc_static_library("g711") {
|
|||||||
rtc_source_set("g711_c") {
|
rtc_source_set("g711_c") {
|
||||||
poisonous = [ "audio_codecs" ]
|
poisonous = [ "audio_codecs" ]
|
||||||
sources = [
|
sources = [
|
||||||
"codecs/g711/g711.c",
|
|
||||||
"codecs/g711/g711.h",
|
|
||||||
"codecs/g711/g711_interface.c",
|
"codecs/g711/g711_interface.c",
|
||||||
"codecs/g711/g711_interface.h",
|
"codecs/g711/g711_interface.h",
|
||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
|
":g711_3p",
|
||||||
"../..:typedefs",
|
"../..:typedefs",
|
||||||
"../..:webrtc_common",
|
"../..:webrtc_common",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rtc_source_set("g711_3p") {
|
||||||
|
poisonous = [ "audio_codecs" ]
|
||||||
|
sources = [
|
||||||
|
"codecs/g711/g711.c",
|
||||||
|
"codecs/g711/g711.h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
config("g722_config") {
|
config("g722_config") {
|
||||||
include_dirs = [ "codecs/g722/include" ]
|
include_dirs = [ "codecs/g722/include" ]
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "modules/audio_coding/codecs/g711/g711.h"
|
#include "modules/audio_coding/codecs/g711/g711.h"
|
||||||
#include "typedefs.h" // NOLINT(build/include)
|
|
||||||
|
|
||||||
/* Copied from the CCITT G.711 specification */
|
/* Copied from the CCITT G.711 specification */
|
||||||
static const uint8_t ulaw_to_alaw_table[256] = {
|
static const uint8_t ulaw_to_alaw_table[256] = {
|
||||||
|
@ -50,7 +50,7 @@ specification by other means.
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "typedefs.h" // NOLINT(build/include)
|
#include <stdint.h>
|
||||||
|
|
||||||
#if defined(__i386__)
|
#if defined(__i386__)
|
||||||
/*! \brief Find the bit position of the highest set bit in a word
|
/*! \brief Find the bit position of the highest set bit in a word
|
||||||
|
Reference in New Issue
Block a user