modules/video_processing: refactor interface->include + more.

Moved/renamed:
webrtc/modules/video_processing/main/interface -> webrtc/modules/video_processing/include
webrtc/modules/video_processing/main/source/* -> webrtc/modules/video_processing
webrtc/modules/video_processing/main/test/unit_test -> webrtc/modules/video_processing/test

No downstream code seems to use this module.

BUG=webrtc:5095
TESTED=git cl try -c --bot=android_compile_rel --bot=linux_compile_rel --bot=win_compile_rel --bot=mac_compile_rel --bot=ios_rel --bot=linux_gn_rel --bot=win_x64_gn_rel --bot=mac_x64_gn_rel --bot=android_gn_rel -m tryserver.webrtc
R=pbos@webrtc.org, stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1410663004 .

Cr-Commit-Position: refs/heads/master@{#10697}
This commit is contained in:
Henrik Kjellander
2015-11-18 22:31:24 +01:00
parent ed7d6ec63e
commit 0f59a88b32
35 changed files with 125 additions and 133 deletions

View File

@ -298,11 +298,11 @@
'video_coding/test/stream_generator.cc', 'video_coding/test/stream_generator.cc',
'video_coding/test/stream_generator.h', 'video_coding/test/stream_generator.h',
'video_coding/utility/quality_scaler_unittest.cc', 'video_coding/utility/quality_scaler_unittest.cc',
'video_processing/main/test/unit_test/brightness_detection_test.cc', 'video_processing/test/brightness_detection_test.cc',
'video_processing/main/test/unit_test/content_metrics_test.cc', 'video_processing/test/content_metrics_test.cc',
'video_processing/main/test/unit_test/deflickering_test.cc', 'video_processing/test/deflickering_test.cc',
'video_processing/main/test/unit_test/video_processing_unittest.cc', 'video_processing/test/video_processing_unittest.cc',
'video_processing/main/test/unit_test/video_processing_unittest.h', 'video_processing/test/video_processing_unittest.h',
], ],
'conditions': [ 'conditions': [
['enable_bwe_test_logging==1', { ['enable_bwe_test_logging==1', {

View File

@ -12,24 +12,24 @@ build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
source_set("video_processing") { source_set("video_processing") {
sources = [ sources = [
"main/interface/video_processing.h", "brighten.cc",
"main/interface/video_processing_defines.h", "brighten.h",
"main/source/brighten.cc", "brightness_detection.cc",
"main/source/brighten.h", "brightness_detection.h",
"main/source/brightness_detection.cc", "content_analysis.cc",
"main/source/brightness_detection.h", "content_analysis.h",
"main/source/content_analysis.cc", "deflickering.cc",
"main/source/content_analysis.h", "deflickering.h",
"main/source/deflickering.cc", "frame_preprocessor.cc",
"main/source/deflickering.h", "frame_preprocessor.h",
"main/source/frame_preprocessor.cc", "include/video_processing.h",
"main/source/frame_preprocessor.h", "include/video_processing_defines.h",
"main/source/spatial_resampler.cc", "spatial_resampler.cc",
"main/source/spatial_resampler.h", "spatial_resampler.h",
"main/source/video_decimator.cc", "video_decimator.cc",
"main/source/video_decimator.h", "video_decimator.h",
"main/source/video_processing_impl.cc", "video_processing_impl.cc",
"main/source/video_processing_impl.h", "video_processing_impl.h",
] ]
deps = [ deps = [
@ -55,7 +55,7 @@ source_set("video_processing") {
if (build_video_processing_sse2) { if (build_video_processing_sse2) {
source_set("video_processing_sse2") { source_set("video_processing_sse2") {
sources = [ sources = [
"main/source/content_analysis_sse2.cc", "content_analysis_sse2.cc",
] ]
configs += [ "../..:common_config" ] configs += [ "../..:common_config" ]

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/brighten.h" #include "webrtc/modules/video_processing/brighten.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -8,10 +8,10 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTEN_H_ #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTEN_H_
#define MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTEN_H_ #define WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTEN_H_
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
namespace webrtc { namespace webrtc {
@ -22,4 +22,4 @@ int32_t Brighten(VideoFrame* frame, int delta);
} // namespace VideoProcessing } // namespace VideoProcessing
} // namespace webrtc } // namespace webrtc
#endif // MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTEN_H_ #endif // WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTEN_H_

View File

@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/source/brightness_detection.h" #include "webrtc/modules/video_processing/brightness_detection.h"
#include <math.h> #include <math.h>

View File

@ -8,12 +8,10 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
/* #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_
* brightness_detection.h #define WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_
*/
#ifndef MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTNESS_DETECTION_H #include "webrtc/modules/video_processing/include/video_processing.h"
#define MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTNESS_DETECTION_H
#include "webrtc/modules/video_processing/main/interface/video_processing.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
namespace webrtc { namespace webrtc {
@ -34,4 +32,4 @@ class VPMBrightnessDetection {
} // namespace webrtc } // namespace webrtc
#endif // MODULES_VIDEO_PROCESSING_MAIN_SOURCE_BRIGHTNESS_DETECTION_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_

View File

@ -7,7 +7,7 @@
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/content_analysis.h" #include "webrtc/modules/video_processing/content_analysis.h"
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -8,11 +8,11 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_CONTENT_ANALYSIS_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_CONTENT_ANALYSIS_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_CONTENT_ANALYSIS_H #define WEBRTC_MODULES_VIDEO_PROCESSING_CONTENT_ANALYSIS_H_
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"
#include "webrtc/modules/video_processing/main/interface/video_processing_defines.h" #include "webrtc/modules/video_processing/include/video_processing_defines.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
#include "webrtc/video_frame.h" #include "webrtc/video_frame.h"
@ -84,4 +84,4 @@ class VPMContentAnalysis {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_CONTENT_ANALYSIS_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_CONTENT_ANALYSIS_H_

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/content_analysis.h" #include "webrtc/modules/video_processing/content_analysis.h"
#include <emmintrin.h> #include <emmintrin.h>
#include <math.h> #include <math.h>

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/deflickering.h" #include "webrtc/modules/video_processing/deflickering.h"
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -8,12 +8,12 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCEdeflickering__H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_DEFLICKERING_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCEdeflickering__H #define WEBRTC_MODULES_VIDEO_PROCESSING_DEFLICKERING_H_
#include <string.h> // NULL #include <string.h> // NULL
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
namespace webrtc { namespace webrtc {
@ -53,4 +53,4 @@ class VPMDeflickering {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCEdeflickering__H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_DEFLICKERING_H_

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/frame_preprocessor.h" #include "webrtc/modules/video_processing/frame_preprocessor.h"
namespace webrtc { namespace webrtc {

View File

@ -11,13 +11,13 @@
/* /*
* frame_preprocessor.h * frame_preprocessor.h
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_FRAME_PREPROCESSOR_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_FRAME_PREPROCESSOR_H #define WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/source/content_analysis.h" #include "webrtc/modules/video_processing/content_analysis.h"
#include "webrtc/modules/video_processing/main/source/spatial_resampler.h" #include "webrtc/modules/video_processing/spatial_resampler.h"
#include "webrtc/modules/video_processing/main/source/video_decimator.h" #include "webrtc/modules/video_processing/video_decimator.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
namespace webrtc { namespace webrtc {
@ -76,4 +76,4 @@ class VPMFramePreprocessor {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_FRAME_PREPROCESSOR_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_

View File

@ -15,12 +15,12 @@
*/ */
#ifndef WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_H_
#define WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_H #define WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_H_
#include "webrtc/modules/include/module.h" #include "webrtc/modules/include/module.h"
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"
#include "webrtc/modules/video_processing/main/interface/video_processing_defines.h" #include "webrtc/modules/video_processing/include/video_processing_defines.h"
#include "webrtc/video_frame.h" #include "webrtc/video_frame.h"
/** /**
@ -267,4 +267,4 @@ class VideoProcessingModule : public Module {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_H_

View File

@ -13,8 +13,8 @@
* This header file includes the definitions used in the video processor module * This header file includes the definitions used in the video processor module
*/ */
#ifndef WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_
#define WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H #define WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
@ -38,4 +38,4 @@ enum VideoFrameResampling {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_INTERFACE_VIDEO_PROCESSING_DEFINES_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_INCLUDE_VIDEO_PROCESSING_DEFINES_H_

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/spatial_resampler.h" #include "webrtc/modules/video_processing/spatial_resampler.h"
namespace webrtc { namespace webrtc {

View File

@ -8,13 +8,13 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_SPATIAL_RESAMPLER_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_SPATIAL_RESAMPLER_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_SPATIAL_RESAMPLER_H #define WEBRTC_MODULES_VIDEO_PROCESSING_SPATIAL_RESAMPLER_H_
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"
#include "webrtc/modules/video_processing/main/interface/video_processing_defines.h" #include "webrtc/modules/video_processing/include/video_processing_defines.h"
#include "webrtc/common_video/libyuv/include/scaler.h" #include "webrtc/common_video/libyuv/include/scaler.h"
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
@ -58,4 +58,4 @@ class VPMSimpleSpatialResampler : public VPMSpatialResampler {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_SPATIAL_RESAMPLER_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_SPATIAL_RESAMPLER_H_

View File

@ -9,8 +9,8 @@
*/ */
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/test/unit_test/video_processing_unittest.h" #include "webrtc/modules/video_processing/test/video_processing_unittest.h"
#include "webrtc/test/testsupport/gtest_disable.h" #include "webrtc/test/testsupport/gtest_disable.h"
using namespace webrtc; using namespace webrtc;

View File

@ -9,9 +9,9 @@
*/ */
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/source/content_analysis.h" #include "webrtc/modules/video_processing/content_analysis.h"
#include "webrtc/modules/video_processing/main/test/unit_test/video_processing_unittest.h" #include "webrtc/modules/video_processing/test/video_processing_unittest.h"
#include "webrtc/test/testsupport/gtest_disable.h" #include "webrtc/test/testsupport/gtest_disable.h"
namespace webrtc { namespace webrtc {

View File

@ -31,7 +31,7 @@ A=(1-B)/r0;
f0=A*x0.^2+B*x0; % compander function in zone 1 f0=A*x0.^2+B*x0; % compander function in zone 1
% equation system for finding second zone parameters % equation system for finding second zone parameters
M=[r0^3 r0^2 r0 1; M=[r0^3 r0^2 r0 1;
3*r0^2 2*r0 1 0; 3*r0^2 2*r0 1 0;
3*r1^2 2*r1 1 0; 3*r1^2 2*r1 1 0;
r1^3 r1^2 r1 1]; r1^3 r1^2 r1 1];
@ -173,7 +173,7 @@ for k=1:size(y,3)
end end
end end
end end
fprintf('\nWriting modified test file...') fprintf('\nWriting modified test file...')
writeYUV420file('../out/Debug/foremanColorEnhanced.yuv',y,unew,vnew); writeYUV420file('../out/Debug/foremanColorEnhanced.yuv',y,unew,vnew);
fprintf(' done\n'); fprintf(' done\n');

View File

@ -12,8 +12,8 @@
#include <stdlib.h> #include <stdlib.h>
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/test/unit_test/video_processing_unittest.h" #include "webrtc/modules/video_processing/test/video_processing_unittest.h"
#include "webrtc/system_wrappers/include/tick_util.h" #include "webrtc/system_wrappers/include/tick_util.h"
#include "webrtc/test/testsupport/fileutils.h" #include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/test/testsupport/gtest_disable.h" #include "webrtc/test/testsupport/gtest_disable.h"

View File

@ -10,7 +10,7 @@ end
nPx=width*height; nPx=width*height;
% nPx bytes luminance, nPx/4 bytes U, nPx/4 bytes V % nPx bytes luminance, nPx/4 bytes U, nPx/4 bytes V
frameSizeBytes = nPx*1.5; frameSizeBytes = nPx*1.5;
% calculate number of frames % calculate number of frames
fseek(fid,0,'eof'); % move to end of file fseek(fid,0,'eof'); % move to end of file
@ -27,19 +27,19 @@ V=uint8(zeros(height/2,width/2,numFrames));
[X,nBytes]=fread(fid, frameSizeBytes, 'uchar'); [X,nBytes]=fread(fid, frameSizeBytes, 'uchar');
for k=1:numFrames for k=1:numFrames
% Store luminance % Store luminance
Y(:,:,k)=uint8(reshape(X(1:nPx), width, height).'); Y(:,:,k)=uint8(reshape(X(1:nPx), width, height).');
% Store U channel % Store U channel
U(:,:,k)=uint8(reshape(X(nPx + (1:nPx/4)), width/2, height/2).'); U(:,:,k)=uint8(reshape(X(nPx + (1:nPx/4)), width/2, height/2).');
% Store V channel % Store V channel
V(:,:,k)=uint8(reshape(X(nPx + nPx/4 + (1:nPx/4)), width/2, height/2).'); V(:,:,k)=uint8(reshape(X(nPx + nPx/4 + (1:nPx/4)), width/2, height/2).');
% Read next frame % Read next frame
[X,nBytes]=fread(fid, frameSizeBytes, 'uchar'); [X,nBytes]=fread(fid, frameSizeBytes, 'uchar');
end end
fclose(fid); fclose(fid);

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/test/unit_test/video_processing_unittest.h" #include "webrtc/modules/video_processing/test/video_processing_unittest.h"
#include <string> #include <string>

View File

@ -8,11 +8,11 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_TEST_VIDEO_PROCESSING_UNITTEST_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H #define WEBRTC_MODULES_VIDEO_PROCESSING_TEST_VIDEO_PROCESSING_UNITTEST_H_
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/system_wrappers/include/trace.h" #include "webrtc/system_wrappers/include/trace.h"
#include "webrtc/test/testsupport/fileutils.h" #include "webrtc/test/testsupport/fileutils.h"
@ -44,4 +44,4 @@ class VideoProcessingModuleTest : public ::testing::Test {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_TEST_VIDEO_PROCESSING_UNITTEST_H_

View File

@ -11,10 +11,10 @@ numFrames=size(Y,3);
for k=1:numFrames for k=1:numFrames
% Write luminance % Write luminance
fwrite(fid,uint8(Y(:,:,k).'), 'uchar'); fwrite(fid,uint8(Y(:,:,k).'), 'uchar');
% Write U channel % Write U channel
fwrite(fid,uint8(U(:,:,k).'), 'uchar'); fwrite(fid,uint8(U(:,:,k).'), 'uchar');
% Write V channel % Write V channel
fwrite(fid,uint8(V(:,:,k).'), 'uchar'); fwrite(fid,uint8(V(:,:,k).'), 'uchar');
end end

View File

@ -9,8 +9,8 @@
*/ */
#include "webrtc/base/checks.h" #include "webrtc/base/checks.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/source/video_decimator.h" #include "webrtc/modules/video_processing/video_decimator.h"
#include "webrtc/system_wrappers/include/tick_util.h" #include "webrtc/system_wrappers/include/tick_util.h"
#define VD_MIN(a, b) ((a) < (b)) ? (a) : (b) #define VD_MIN(a, b) ((a) < (b)) ? (a) : (b)

View File

@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_VIDEO_DECIMATOR_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DECIMATOR_H_
#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_VIDEO_DECIMATOR_H #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DECIMATOR_H_
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
@ -55,4 +55,4 @@ class VPMVideoDecimator {
} // namespace webrtc } // namespace webrtc
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_SOURCE_VIDEO_DECIMATOR_H #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DECIMATOR_H_

View File

@ -18,24 +18,24 @@
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'main/interface/video_processing.h', 'include/video_processing.h',
'main/interface/video_processing_defines.h', 'include/video_processing_defines.h',
'main/source/brighten.cc', 'brighten.cc',
'main/source/brighten.h', 'brighten.h',
'main/source/brightness_detection.cc', 'brightness_detection.cc',
'main/source/brightness_detection.h', 'brightness_detection.h',
'main/source/content_analysis.cc', 'content_analysis.cc',
'main/source/content_analysis.h', 'content_analysis.h',
'main/source/deflickering.cc', 'deflickering.cc',
'main/source/deflickering.h', 'deflickering.h',
'main/source/frame_preprocessor.cc', 'frame_preprocessor.cc',
'main/source/frame_preprocessor.h', 'frame_preprocessor.h',
'main/source/spatial_resampler.cc', 'spatial_resampler.cc',
'main/source/spatial_resampler.h', 'spatial_resampler.h',
'main/source/video_decimator.cc', 'video_decimator.cc',
'main/source/video_decimator.h', 'video_decimator.h',
'main/source/video_processing_impl.cc', 'video_processing_impl.cc',
'main/source/video_processing_impl.h', 'video_processing_impl.h',
], ],
'conditions': [ 'conditions': [
['target_arch=="ia32" or target_arch=="x64"', { ['target_arch=="ia32" or target_arch=="x64"', {
@ -51,7 +51,7 @@
'target_name': 'video_processing_sse2', 'target_name': 'video_processing_sse2',
'type': 'static_library', 'type': 'static_library',
'sources': [ 'sources': [
'main/source/content_analysis_sse2.cc', 'content_analysis_sse2.cc',
], ],
'conditions': [ 'conditions': [
['os_posix==1 and OS!="mac"', { ['os_posix==1 and OS!="mac"', {

View File

@ -7,9 +7,8 @@
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include "webrtc/modules/video_processing/main/source/video_processing_impl.h"
#include "webrtc/base/logging.h" #include "webrtc/base/logging.h"
#include "webrtc/modules/video_processing/video_processing_impl.h"
#include "webrtc/system_wrappers/include/critical_section_wrapper.h" #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
#include <assert.h> #include <assert.h>

View File

@ -8,15 +8,15 @@
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef WEBRTC_MODULE_VIDEO_PROCESSING_IMPL_H #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
#define WEBRTC_MODULE_VIDEO_PROCESSING_IMPL_H #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
#include "webrtc/base/criticalsection.h" #include "webrtc/base/criticalsection.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_processing/main/source/brighten.h" #include "webrtc/modules/video_processing/brighten.h"
#include "webrtc/modules/video_processing/main/source/brightness_detection.h" #include "webrtc/modules/video_processing/brightness_detection.h"
#include "webrtc/modules/video_processing/main/source/deflickering.h" #include "webrtc/modules/video_processing/deflickering.h"
#include "webrtc/modules/video_processing/main/source/frame_preprocessor.h" #include "webrtc/modules/video_processing/frame_preprocessor.h"
namespace webrtc { namespace webrtc {
class CriticalSectionWrapper; class CriticalSectionWrapper;
@ -72,4 +72,4 @@ class VideoProcessingModuleImpl : public VideoProcessingModule {
} // namespace } // namespace
#endif #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_

View File

@ -16,7 +16,7 @@
#include "webrtc/modules/include/module_common_types.h" #include "webrtc/modules/include/module_common_types.h"
#include "webrtc/modules/utility/include/process_thread.h" #include "webrtc/modules/utility/include/process_thread.h"
#include "webrtc/modules/video_capture/video_capture_factory.h" #include "webrtc/modules/video_capture/video_capture_factory.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_render/video_render_defines.h" #include "webrtc/modules/video_render/video_render_defines.h"
#include "webrtc/system_wrappers/include/clock.h" #include "webrtc/system_wrappers/include/clock.h"
#include "webrtc/system_wrappers/include/critical_section_wrapper.h" #include "webrtc/system_wrappers/include/critical_section_wrapper.h"

View File

@ -21,7 +21,7 @@
#include "webrtc/modules/video_capture/video_capture.h" #include "webrtc/modules/video_capture/video_capture.h"
#include "webrtc/modules/video_coding/include/video_codec_interface.h" #include "webrtc/modules/video_coding/include/video_codec_interface.h"
#include "webrtc/modules/video_coding/include/video_coding.h" #include "webrtc/modules/video_coding/include/video_coding.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/system_wrappers/include/critical_section_wrapper.h" #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
#include "webrtc/system_wrappers/include/thread_wrapper.h" #include "webrtc/system_wrappers/include/thread_wrapper.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"

View File

@ -25,7 +25,7 @@
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
#include "webrtc/modules/utility/include/process_thread.h" #include "webrtc/modules/utility/include/process_thread.h"
#include "webrtc/modules/video_coding/include/video_coding.h" #include "webrtc/modules/video_coding/include/video_coding.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/modules/video_render/video_render_defines.h" #include "webrtc/modules/video_render/video_render_defines.h"
#include "webrtc/system_wrappers/include/critical_section_wrapper.h" #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
#include "webrtc/system_wrappers/include/metrics.h" #include "webrtc/system_wrappers/include/metrics.h"

View File

@ -22,7 +22,7 @@
#include "webrtc/frame_callback.h" #include "webrtc/frame_callback.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "webrtc/modules/video_coding/include/video_coding_defines.h" #include "webrtc/modules/video_coding/include/video_coding_defines.h"
#include "webrtc/modules/video_processing/main/interface/video_processing.h" #include "webrtc/modules/video_processing/include/video_processing.h"
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
#include "webrtc/video/video_capture_input.h" #include "webrtc/video/video_capture_input.h"