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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/vp8_impl.h

Issue 1541803002: Lint fix for webrtc/modules/video_coding PART 1! (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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 * WEBRTC VP8 wrapper interface 10 * WEBRTC VP8 wrapper interface
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 virtual int SetChannelParameters(uint32_t packet_loss, int64_t rtt); 55 virtual int SetChannelParameters(uint32_t packet_loss, int64_t rtt);
56 56
57 virtual int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate); 57 virtual int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate);
58 58
59 void OnDroppedFrame() override {} 59 void OnDroppedFrame() override {}
60 60
61 const char* ImplementationName() const override; 61 const char* ImplementationName() const override;
62 62
63 private: 63 private:
64 void SetupTemporalLayers(int num_streams, int num_temporal_layers, 64 void SetupTemporalLayers(int num_streams,
65 int num_temporal_layers,
65 const VideoCodec& codec); 66 const VideoCodec& codec);
66 67
67 // Set the cpu_speed setting for encoder based on resolution and/or platform. 68 // Set the cpu_speed setting for encoder based on resolution and/or platform.
68 int SetCpuSpeed(int width, int height); 69 int SetCpuSpeed(int width, int height);
69 70
70 // Determine number of encoder threads to use. 71 // Determine number of encoder threads to use.
71 int NumberOfThreads(int width, int height, int number_of_cores); 72 int NumberOfThreads(int width, int height, int number_of_cores);
72 73
73 // Call encoder initialize function and set control settings. 74 // Call encoder initialize function and set control settings.
74 int InitAndSetControlSettings(); 75 int InitAndSetControlSettings();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 class VP8DecoderImpl : public VP8Decoder { 123 class VP8DecoderImpl : public VP8Decoder {
123 public: 124 public:
124 VP8DecoderImpl(); 125 VP8DecoderImpl();
125 126
126 virtual ~VP8DecoderImpl(); 127 virtual ~VP8DecoderImpl();
127 128
128 int InitDecode(const VideoCodec* inst, int number_of_cores) override; 129 int InitDecode(const VideoCodec* inst, int number_of_cores) override;
129 130
130 int Decode(const EncodedImage& input_image, 131 int Decode(const EncodedImage& input_image,
131 bool missing_frames, 132 bool missing_frames,
132 const RTPFragmentationHeader* fragmentation, 133 const RTPFragmentationHeader* fragmentation,
133 const CodecSpecificInfo* codec_specific_info, 134 const CodecSpecificInfo* codec_specific_info,
134 int64_t /*render_time_ms*/) override; 135 int64_t /*render_time_ms*/) override;
135 136
136 int RegisterDecodeCompleteCallback(DecodedImageCallback* callback) override; 137 int RegisterDecodeCompleteCallback(DecodedImageCallback* callback) override;
137 int Release() override; 138 int Release() override;
138 int Reset() override; 139 int Reset() override;
139 140
140 const char* ImplementationName() const override; 141 const char* ImplementationName() const override;
141 142
142 private: 143 private:
143 // Copy reference image from this _decoder to the _decoder in copyTo. Set 144 // Copy reference image from this _decoder to the _decoder in copyTo. Set
144 // which frame type to copy in _refFrame->frame_type before the call to 145 // which frame type to copy in _refFrame->frame_type before the call to
(...skipping 17 matching lines...) Expand all
162 int image_format_; 163 int image_format_;
163 vpx_ref_frame_t* ref_frame_; 164 vpx_ref_frame_t* ref_frame_;
164 int propagation_cnt_; 165 int propagation_cnt_;
165 int last_frame_width_; 166 int last_frame_width_;
166 int last_frame_height_; 167 int last_frame_height_;
167 bool key_frame_required_; 168 bool key_frame_required_;
168 }; // end of VP8DecoderImpl class 169 }; // end of VP8DecoderImpl class
169 } // namespace webrtc 170 } // namespace webrtc
170 171
171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ 172 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_
172
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_factory.h ('k') | webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698