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

Side by Side Diff: webrtc/modules/video_processing/deflickering.h

Issue 1508793002: Clang format of video_processing folder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 20 matching lines...) Expand all
31 const VideoProcessing::FrameStats& stats); 31 const VideoProcessing::FrameStats& stats);
32 32
33 int32_t DetectFlicker(); 33 int32_t DetectFlicker();
34 34
35 enum { kMeanBufferLength = 32 }; 35 enum { kMeanBufferLength = 32 };
36 enum { kFrameHistory_size = 15 }; 36 enum { kFrameHistory_size = 15 };
37 enum { kNumProbs = 12 }; 37 enum { kNumProbs = 12 };
38 enum { kNumQuants = kNumProbs + 2 }; 38 enum { kNumQuants = kNumProbs + 2 };
39 enum { kMaxOnlyLength = 5 }; 39 enum { kMaxOnlyLength = 5 };
40 40
41 uint32_t mean_buffer_length_; 41 uint32_t mean_buffer_length_;
42 uint8_t detection_state_; // 0: No flickering 42 uint8_t detection_state_; // 0: No flickering
43 // 1: Flickering detected 43 // 1: Flickering detected
44 // 2: In flickering 44 // 2: In flickering
45 int32_t mean_buffer_[kMeanBufferLength]; 45 int32_t mean_buffer_[kMeanBufferLength];
46 uint32_t timestamp_buffer_[kMeanBufferLength]; 46 uint32_t timestamp_buffer_[kMeanBufferLength];
47 uint32_t frame_rate_; 47 uint32_t frame_rate_;
48 static const uint16_t prob_uw16_[kNumProbs]; 48 static const uint16_t prob_uw16_[kNumProbs];
49 static const uint16_t weight_uw16_[kNumQuants - kMaxOnlyLength]; 49 static const uint16_t weight_uw16_[kNumQuants - kMaxOnlyLength];
50 uint8_t quant_hist_uw8_[kFrameHistory_size][kNumQuants]; 50 uint8_t quant_hist_uw8_[kFrameHistory_size][kNumQuants];
51 }; 51 };
52 52
53 } // namespace webrtc 53 } // namespace webrtc
54 54
55 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_DEFLICKERING_H_ 55 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_DEFLICKERING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698