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

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

Issue 2833493003: Don't re-randomize picture_id/tl0_pic_idx when re-initializing internal encoders. (Closed)
Patch Set: Change back TimeMills() -> TimeMicros(). Created 3 years, 7 months 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 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2 * 2 *
3 * Use of this source code is governed by a BSD-style license 3 * Use of this source code is governed by a BSD-style license
4 * that can be found in the LICENSE file in the root of the source 4 * that can be found in the LICENSE file in the root of the source
5 * tree. An additional intellectual property rights grant can be found 5 * tree. An additional intellectual property rights grant can be found
6 * in the file PATENTS. All contributing project authors may 6 * in the file PATENTS. All contributing project authors may
7 * be found in the AUTHORS file in the root of the source tree. 7 * be found in the AUTHORS file in the root of the source tree.
8 */ 8 */
9 /* 9 /*
10 * This file defines classes for doing temporal layers with VP8. 10 * This file defines classes for doing temporal layers with VP8.
(...skipping 28 matching lines...) Expand all
39 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override; 39 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override;
40 40
41 void PopulateCodecSpecific(bool frame_is_keyframe, 41 void PopulateCodecSpecific(bool frame_is_keyframe,
42 CodecSpecificInfoVP8* vp8_info, 42 CodecSpecificInfoVP8* vp8_info,
43 uint32_t timestamp) override; 43 uint32_t timestamp) override;
44 44
45 void FrameEncoded(unsigned int size, int qp) override {} 45 void FrameEncoded(unsigned int size, int qp) override {}
46 46
47 int CurrentLayerId() const override; 47 int CurrentLayerId() const override;
48 48
49 uint8_t Tl0PicIdx() const override;
50
49 private: 51 private:
50 const size_t num_layers_; 52 const size_t num_layers_;
51 const std::vector<unsigned int> temporal_ids_; 53 const std::vector<unsigned int> temporal_ids_;
52 const std::vector<TemporalReferences> temporal_pattern_; 54 const std::vector<TemporalReferences> temporal_pattern_;
53 55
54 uint8_t tl0_pic_idx_; 56 uint8_t tl0_pic_idx_;
55 uint8_t pattern_idx_; 57 uint8_t pattern_idx_;
56 uint32_t timestamp_; 58 uint32_t timestamp_;
57 bool last_base_layer_sync_; 59 bool last_base_layer_sync_;
58 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; 60 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_;
59 }; 61 };
60 62
61 } // namespace webrtc 63 } // namespace webrtc
62 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ 64 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698