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

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

Issue 2924993002: Move temporal-layer properties to FrameConfig. (Closed)
Patch Set: improve unittests Created 3 years, 5 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
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 38
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 const TemporalLayers::FrameConfig& tl_config, 42 const TemporalLayers::FrameConfig& tl_config,
43 CodecSpecificInfoVP8* vp8_info, 43 CodecSpecificInfoVP8* vp8_info,
44 uint32_t timestamp) override; 44 uint32_t timestamp) override;
45 45
46 void FrameEncoded(unsigned int size, int qp) override {} 46 void FrameEncoded(unsigned int size, int qp) override {}
47 47
48 int GetTemporalLayerId(
49 const TemporalLayers::FrameConfig& references) const override;
50
51 uint8_t Tl0PicIdx() const override; 48 uint8_t Tl0PicIdx() const override;
52 49
53 private: 50 private:
54 const size_t num_layers_; 51 const size_t num_layers_;
55 const std::vector<unsigned int> temporal_ids_; 52 const std::vector<unsigned int> temporal_ids_;
56 const std::vector<bool> temporal_layer_sync_; 53 const std::vector<bool> temporal_layer_sync_;
57 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_; 54 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_;
58 55
59 uint8_t tl0_pic_idx_; 56 uint8_t tl0_pic_idx_;
60 uint8_t pattern_idx_; 57 uint8_t pattern_idx_;
61 uint32_t timestamp_;
62 bool last_base_layer_sync_; 58 bool last_base_layer_sync_;
63 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; 59 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_;
64 }; 60 };
65 61
66 } // namespace webrtc 62 } // namespace webrtc
67 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ 63 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698