Revert of Remove webrtc/tools (patchset #1 id:1 of https://codereview.webrtc.org/2970743003/ )

Reason for revert:
This should wait until https://chromium-review.googlesource.com/c/558980/ is submitted.

Original issue's description:
> Remove webrtc/tools
>
> BUG=webrtc:7855
> TBR=kwiberg@webrtc.org
>
> Review-Url: https://codereview.webrtc.org/2970743003
> Cr-Commit-Position: refs/heads/master@{#18883}
> Committed: ed56680adb

TBR=mbonadei@webrtc.org,kwiberg@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7855

Review-Url: https://codereview.webrtc.org/2973493002
Cr-Commit-Position: refs/heads/master@{#18885}
This commit is contained in:
ehmaldonado 2017-07-04 02:02:49 -07:00 committed by Commit Bot
parent d3588cfb31
commit 38fecafa48
2 changed files with 89 additions and 0 deletions

71
webrtc/tools/BUILD.gn Normal file
View File

@ -0,0 +1,71 @@
# Copyright (c) 2014 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.
# TODO(kjellander): Remove when bugs.webrtc.org/7855 is completed.
import("../webrtc.gni")
group("tools") {
# This target shall build all targets in tools/.
testonly = true
public_deps = [
"../rtc_tools",
]
}
group("command_line_parser") {
public_deps = [ "../rtc_tools:command_line_parser" ]
}
group("video_quality_analysis") {
public_deps = [ "../rtc_tools:video_quality_analysis" ]
}
group("frame_analyzer") {
public_deps = [ "../rtc_tools:frame_analyzer" ]
}
group("psnr_ssim_analyzer") {
public_deps = [ "../rtc_tools:psnr_ssim_analyzer" ]
}
group("reference_less_video_analysis_lib") {
public_deps = [ "../rtc_tools:reference_less_video_analysis_lib" ]
}
group("reference_less_video_analysis") {
public_deps = [ "../rtc_tools:reference_less_video_analysis" ]
}
group("rgba_to_i420_converter") {
public_deps = [ "../rtc_tools:rgba_to_i420_converter" ]
}
group("frame_editing_lib") {
public_deps = [ "../rtc_tools:frame_editing_lib" ]
}
group("frame_editor") {
public_deps = [ "../rtc_tools:frame_editor" ]
}
if (rtc_include_internal_audio_device) {
group("force_mic_volume_max") {
public_deps = [ "../rtc_tools:force_mic_volume_max" ]
}
}
if (rtc_enable_protobuf) {
group("chart_proto") {
public_deps = [ "../rtc_tools:chart_proto" ]
}
group("event_log_visualizer_utils") {
public_deps = [ "../rtc_tools:event_log_visualizer_utils" ]
}
}

18
webrtc/tools/compare_videos.py Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env python
# Copyright (c) 2013 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 os
# This is just a forwarding script during the transition of renaming tools to
# rtc_tools. To avoid breaking Chromium tests.
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
RTC_TOOLS_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir,
'rtc_tools'))
os.system(os.path.join(RTC_TOOLS_DIR, 'compare_videos.py'))