diff --git a/LICENSE_THIRD_PARTY b/LICENSE_THIRD_PARTY index 080a6bf814..334447184f 100644 --- a/LICENSE_THIRD_PARTY +++ b/LICENSE_THIRD_PARTY @@ -63,26 +63,6 @@ License: */ ------------------------------------------------------------------------------- Files: -modules/audio_coding/codecs/g711/main/source/g711.c -modules/audio_coding/codecs/g711/main/source/g711.h - -License: -/* - * SpanDSP - a series of DSP components for telephony - * - * g711.h - In line A-law and u-law conversion routines - * - * Written by Steve Underwood - * - * Copyright (C) 2001 Steve Underwood - * - * Despite my general liking of the GPL, I place this code in the - * public domain for the benefit of all mankind - even the slimy - * ones who might try to proprietize my work and use it to my - * detriment. - */ -------------------------------------------------------------------------------- -Files: modules/audio_coding/codecs/g722/main/source/g722_decode.c modules/audio_coding/codecs/g722/main/source/g722_enc_dec.h modules/audio_coding/codecs/g722/main/source/g722_encode.c diff --git a/modules/audio_coding/BUILD.gn b/modules/audio_coding/BUILD.gn index c7ed147c1f..ca2842949d 100644 --- a/modules/audio_coding/BUILD.gn +++ b/modules/audio_coding/BUILD.gn @@ -215,17 +215,9 @@ rtc_source_set("g711_c") { "codecs/g711/g711_interface.h", ] deps = [ - ":g711_3p", "../..:typedefs", "../..:webrtc_common", - ] -} - -rtc_source_set("g711_3p") { - poisonous = [ "audio_codecs" ] - sources = [ - "codecs/g711/g711.c", - "codecs/g711/g711.h", + "../third_party/g711:g711_3p", ] } diff --git a/modules/audio_coding/codecs/g711/g711_interface.c b/modules/audio_coding/codecs/g711/g711_interface.c index 9c31cbc9f5..361350796f 100644 --- a/modules/audio_coding/codecs/g711/g711_interface.c +++ b/modules/audio_coding/codecs/g711/g711_interface.c @@ -10,7 +10,7 @@ #include -#include "modules/audio_coding/codecs/g711/g711.h" +#include "modules/third_party/g711/g711.h" #include "modules/audio_coding/codecs/g711/g711_interface.h" #include "typedefs.h" // NOLINT(build/include) diff --git a/modules/third_party/g711/BUILD.gn b/modules/third_party/g711/BUILD.gn new file mode 100644 index 0000000000..d89ecdfed9 --- /dev/null +++ b/modules/third_party/g711/BUILD.gn @@ -0,0 +1,17 @@ +# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. +# +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file in the root of the source +# tree. An additional intellectual property rights grant can be found +# in the file PATENTS. All contributing project authors may +# be found in the AUTHORS file in the root of the source tree. + +import("../../../webrtc.gni") + +rtc_source_set("g711_3p") { + poisonous = [ "audio_codecs" ] + sources = [ + "g711.c", + "g711.h", + ] +} diff --git a/modules/third_party/g711/LICENSE b/modules/third_party/g711/LICENSE new file mode 100644 index 0000000000..3cdf910304 --- /dev/null +++ b/modules/third_party/g711/LICENSE @@ -0,0 +1,14 @@ +/* + * SpanDSP - a series of DSP components for telephony + * + * g711.h - In line A-law and u-law conversion routines + * + * Written by Steve Underwood + * + * Copyright (C) 2001 Steve Underwood + * + * Despite my general liking of the GPL, I place this code in the + * public domain for the benefit of all mankind - even the slimy + * ones who might try to proprietize my work and use it to my + * detriment. + */ diff --git a/modules/third_party/g711/README.chromium b/modules/third_party/g711/README.chromium new file mode 100644 index 0000000000..1baa2637a9 --- /dev/null +++ b/modules/third_party/g711/README.chromium @@ -0,0 +1,11 @@ +Name: In line A-law and u-law conversion routines +Short Name: g711 +URL: +Version: 0 +Date: 2018-06-25 +License: Custom license +License File: LICENSE +Security Critical: yes + +Description: +In line A-law and u-law conversion routines diff --git a/modules/audio_coding/codecs/g711/g711.c b/modules/third_party/g711/g711.c similarity index 98% rename from modules/audio_coding/codecs/g711/g711.c rename to modules/third_party/g711/g711.c index 46a21f4a52..b7ae6bb109 100644 --- a/modules/audio_coding/codecs/g711/g711.c +++ b/modules/third_party/g711/g711.c @@ -20,7 +20,7 @@ * -Added option to run encoder bitexact with ITU-T reference implementation */ -#include "modules/audio_coding/codecs/g711/g711.h" +#include "modules/third_party/g711/g711.h" /* Copied from the CCITT G.711 specification */ static const uint8_t ulaw_to_alaw_table[256] = { diff --git a/modules/audio_coding/codecs/g711/g711.h b/modules/third_party/g711/g711.h similarity index 100% rename from modules/audio_coding/codecs/g711/g711.h rename to modules/third_party/g711/g711.h diff --git a/tools_webrtc/libs/generate_licenses.py b/tools_webrtc/libs/generate_licenses.py index 0281c40547..3b429fd5af 100755 --- a/tools_webrtc/libs/generate_licenses.py +++ b/tools_webrtc/libs/generate_licenses.py @@ -50,6 +50,7 @@ LIB_TO_LICENSES_DICT = { 'base64': ['rtc_base/third_party/base64/LICENSE'], 'portaudio': ['modules/third_party/portaudio/LICENSE'], 'fft': ['modules/third_party/fft/LICENSE'], + 'g711': ['modules/third_party/g711/LICENSE'], # Compile time dependencies, no license needed: 'yasm': [],