From 38fecafa48ff6abfdf0279ce3c04df7e26401e08 Mon Sep 17 00:00:00 2001 From: ehmaldonado Date: Tue, 4 Jul 2017 02:02:49 -0700 Subject: [PATCH] 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: https://chromium.googlesource.com/external/webrtc/+/ed56680adbfe3cbdd0744260f2e4c300439bf361 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} --- webrtc/tools/BUILD.gn | 71 ++++++++++++++++++++++++++++++++++ webrtc/tools/compare_videos.py | 18 +++++++++ 2 files changed, 89 insertions(+) create mode 100644 webrtc/tools/BUILD.gn create mode 100755 webrtc/tools/compare_videos.py diff --git a/webrtc/tools/BUILD.gn b/webrtc/tools/BUILD.gn new file mode 100644 index 0000000000..35e4669166 --- /dev/null +++ b/webrtc/tools/BUILD.gn @@ -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" ] + } +} diff --git a/webrtc/tools/compare_videos.py b/webrtc/tools/compare_videos.py new file mode 100755 index 0000000000..fcfbc38240 --- /dev/null +++ b/webrtc/tools/compare_videos.py @@ -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'))