Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 1482913003: Initial VideoProcessing refactoring. (Closed)

Created:
5 years ago by mflodman
Modified:
5 years ago
Reviewers:
pbos-webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, andresp, the sun, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Initial VideoProcessing refactoring. This CL is the first in a series of CLs to refactor VideoProcessing(Module) to follow Google C++ style guide and make the code more readable. This CL removed inheritance from Module, renames variables and makes VideoProcessingImpl::PreprocessFrame return a frame pointer if there is a frame to send, nullptr otherwise. The affected CLs also passes git cl lint. BUG=webrtc:5259 Committed: https://crrev.com/a8565425bc6b1d3d7b5a0b0e0a49bc4e57c64f21 Cr-Commit-Position: refs/heads/master@{#10907}

Patch Set 1 #

Patch Set 2 : More lint. #

Total comments: 28

Patch Set 3 : Based on pbos review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -641 lines) Patch
M webrtc/modules/video_processing/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D webrtc/modules/video_processing/brighten.h View 1 chunk +0 lines, -25 lines 0 comments Download
D webrtc/modules/video_processing/brighten.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M webrtc/modules/video_processing/brightness_detection.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_processing/brightness_detection.cc View 4 chunks +9 lines, -8 lines 0 comments Download
M webrtc/modules/video_processing/deflickering.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M webrtc/modules/video_processing/deflickering.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/video_processing/frame_preprocessor.h View 1 2 3 chunks +14 lines, -15 lines 0 comments Download
M webrtc/modules/video_processing/frame_preprocessor.cc View 1 2 3 chunks +30 lines, -44 lines 0 comments Download
M webrtc/modules/video_processing/include/video_processing.h View 1 2 1 chunk +51 lines, -208 lines 0 comments Download
M webrtc/modules/video_processing/test/brightness_detection_test.cc View 1 2 4 chunks +26 lines, -32 lines 0 comments Download
M webrtc/modules/video_processing/test/content_metrics_test.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/modules/video_processing/test/deflickering_test.cc View 1 2 5 chunks +9 lines, -13 lines 0 comments Download
M webrtc/modules/video_processing/test/video_processing_unittest.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/video_processing/test/video_processing_unittest.cc View 1 2 10 chunks +89 lines, -86 lines 0 comments Download
M webrtc/modules/video_processing/video_decimator.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_processing/video_decimator.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_processing/video_processing.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_processing/video_processing_impl.h View 3 chunks +11 lines, -31 lines 0 comments Download
M webrtc/modules/video_processing/video_processing_impl.cc View 1 2 3 chunks +73 lines, -71 lines 2 comments Download
M webrtc/video_engine/vie_encoder.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video_engine/vie_encoder.cc View 1 2 12 chunks +23 lines, -35 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
mflodman
Peter, The video processing changes we discussed Friday. It grew a bit large when removing ...
5 years ago (2015-11-30 10:31:20 UTC) #2
pbos-webrtc
I understand if you want to do some of these in a follow-up but I ...
5 years ago (2015-11-30 11:51:58 UTC) #3
mflodman
https://codereview.webrtc.org/1482913003/diff/20001/webrtc/modules/video_processing/frame_preprocessor.cc File webrtc/modules/video_processing/frame_preprocessor.cc (right): https://codereview.webrtc.org/1482913003/diff/20001/webrtc/modules/video_processing/frame_preprocessor.cc#newcode58 webrtc/modules/video_processing/frame_preprocessor.cc:58: if ((width == 0) || (height == 0) || ...
5 years ago (2015-12-04 15:01:08 UTC) #4
pbos-webrtc
lgtm with one question https://codereview.webrtc.org/1482913003/diff/40001/webrtc/modules/video_processing/video_processing_impl.cc File webrtc/modules/video_processing/video_processing_impl.cc (right): https://codereview.webrtc.org/1482913003/diff/40001/webrtc/modules/video_processing/video_processing_impl.cc#newcode46 webrtc/modules/video_processing/video_processing_impl.cc:46: ClearFrameStats(stats); // The histogram needs ...
5 years ago (2015-12-04 15:04:59 UTC) #5
mflodman
https://codereview.webrtc.org/1482913003/diff/40001/webrtc/modules/video_processing/video_processing_impl.cc File webrtc/modules/video_processing/video_processing_impl.cc (right): https://codereview.webrtc.org/1482913003/diff/40001/webrtc/modules/video_processing/video_processing_impl.cc#newcode46 webrtc/modules/video_processing/video_processing_impl.cc:46: ClearFrameStats(stats); // The histogram needs to be zeroed out. ...
5 years ago (2015-12-04 15:06:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482913003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482913003/40001
5 years ago (2015-12-07 08:06:10 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-07 09:09:56 UTC) #9
commit-bot: I haz the power
5 years ago (2015-12-07 09:10:10 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a8565425bc6b1d3d7b5a0b0e0a49bc4e57c64f21
Cr-Commit-Position: refs/heads/master@{#10907}

Powered by Google App Engine
This is Rietveld 408576698