Unconditionally build VP9 support.
Broken for PeerConnection either way (since VP9 support is announced) and would fail on a CHECK apart from generating incorrect offers/answers. This isn't a flag that we want to support, so it's better to remove the foot-shooting gun. BUG= R=asapersson@webrtc.org, kjellander@webrtc.org, phoglund@webrtc.org, stefan@webrtc.org Review URL: https://codereview.webrtc.org/1451663002 . Cr-Commit-Position: refs/heads/master@{#10676}
This commit is contained in:
@ -96,7 +96,6 @@
|
||||
'build_openmax_dl%': 1,
|
||||
'build_opus%': 1,
|
||||
'build_ssl%': 1,
|
||||
'build_vp9%': 1,
|
||||
|
||||
# Disable by default
|
||||
'have_dbus_glib%': 0,
|
||||
|
@ -43,7 +43,6 @@ declare_args() {
|
||||
rtc_build_openmax_dl = true
|
||||
rtc_build_opus = true
|
||||
rtc_build_ssl = true
|
||||
rtc_build_vp9 = true
|
||||
|
||||
# Disable by default.
|
||||
rtc_have_dbus_glib = false
|
||||
|
@ -209,21 +209,15 @@ source_set("webrtc_vp8") {
|
||||
}
|
||||
|
||||
source_set("webrtc_vp9") {
|
||||
if (rtc_build_vp9) {
|
||||
sources = [
|
||||
"codecs/vp9/include/vp9.h",
|
||||
"codecs/vp9/screenshare_layers.cc",
|
||||
"codecs/vp9/screenshare_layers.h",
|
||||
"codecs/vp9/vp9_frame_buffer_pool.cc",
|
||||
"codecs/vp9/vp9_frame_buffer_pool.h",
|
||||
"codecs/vp9/vp9_impl.cc",
|
||||
"codecs/vp9/vp9_impl.h",
|
||||
]
|
||||
} else {
|
||||
sources = [
|
||||
"codecs/vp9/vp9_dummy_impl.cc",
|
||||
]
|
||||
}
|
||||
sources = [
|
||||
"codecs/vp9/include/vp9.h",
|
||||
"codecs/vp9/screenshare_layers.cc",
|
||||
"codecs/vp9/screenshare_layers.h",
|
||||
"codecs/vp9/vp9_frame_buffer_pool.cc",
|
||||
"codecs/vp9/vp9_frame_buffer_pool.h",
|
||||
"codecs/vp9/vp9_impl.cc",
|
||||
"codecs/vp9/vp9_impl.h",
|
||||
]
|
||||
|
||||
configs += [ "../..:common_config" ]
|
||||
public_configs = [ "../..:common_inherited_config" ]
|
||||
|
@ -14,32 +14,26 @@
|
||||
{
|
||||
'target_name': 'webrtc_vp9',
|
||||
'type': 'static_library',
|
||||
'dependencies': [
|
||||
'<(webrtc_root)/common_video/common_video.gyp:common_video',
|
||||
'<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
|
||||
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
||||
],
|
||||
'conditions': [
|
||||
['build_libvpx==1', {
|
||||
'dependencies': [
|
||||
'<(libvpx_dir)/libvpx.gyp:libvpx_new',
|
||||
],
|
||||
}],
|
||||
['build_vp9==1', {
|
||||
'sources': [
|
||||
'include/vp9.h',
|
||||
'screenshare_layers.cc',
|
||||
'screenshare_layers.h',
|
||||
'vp9_frame_buffer_pool.cc',
|
||||
'vp9_frame_buffer_pool.h',
|
||||
'vp9_impl.cc',
|
||||
'vp9_impl.h',
|
||||
],
|
||||
}, {
|
||||
'sources': [
|
||||
'vp9_dummy_impl.cc',
|
||||
],
|
||||
}],
|
||||
],
|
||||
'dependencies': [
|
||||
'<(webrtc_root)/common_video/common_video.gyp:common_video',
|
||||
'<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
|
||||
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
||||
],
|
||||
'sources': [
|
||||
'include/vp9.h',
|
||||
'screenshare_layers.cc',
|
||||
'screenshare_layers.h',
|
||||
'vp9_frame_buffer_pool.cc',
|
||||
'vp9_frame_buffer_pool.h',
|
||||
'vp9_impl.cc',
|
||||
'vp9_impl.h',
|
||||
],
|
||||
},
|
||||
],
|
||||
|
@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2015 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.
|
||||
*
|
||||
*/
|
||||
|
||||
// This file contains an implementation of empty webrtc VP9 encoder/decoder
|
||||
// factories so it is possible to build webrtc without linking with vp9.
|
||||
#include "webrtc/modules/video_coding/codecs/vp9/vp9_impl.h"
|
||||
|
||||
namespace webrtc {
|
||||
VP9Encoder* VP9Encoder::Create() { return nullptr; }
|
||||
VP9Decoder* VP9Decoder::Create() { return nullptr; }
|
||||
}
|
Reference in New Issue
Block a user