OLD | NEW |
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 int GetEncodedPartitions(const TemporalLayers::FrameConfig tl_configs[], | 88 int GetEncodedPartitions(const TemporalLayers::FrameConfig tl_configs[], |
89 const VideoFrame& input_image); | 89 const VideoFrame& input_image); |
90 | 90 |
91 // Set the stream state for stream |stream_idx|. | 91 // Set the stream state for stream |stream_idx|. |
92 void SetStreamState(bool send_stream, int stream_idx); | 92 void SetStreamState(bool send_stream, int stream_idx); |
93 | 93 |
94 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size); | 94 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size); |
95 | 95 |
96 const bool use_gf_boost_; | 96 const bool use_gf_boost_; |
| 97 const rtc::Optional<int> min_pixels_per_frame_; |
97 | 98 |
98 EncodedImageCallback* encoded_complete_callback_; | 99 EncodedImageCallback* encoded_complete_callback_; |
99 VideoCodec codec_; | 100 VideoCodec codec_; |
100 bool inited_; | 101 bool inited_; |
101 int64_t timestamp_; | 102 int64_t timestamp_; |
102 int qp_max_; | 103 int qp_max_; |
103 int cpu_speed_default_; | 104 int cpu_speed_default_; |
104 int number_of_cores_; | 105 int number_of_cores_; |
105 uint32_t rc_max_intra_target_; | 106 uint32_t rc_max_intra_target_; |
106 std::vector<std::unique_ptr<TemporalLayers>> temporal_layers_; | 107 std::vector<std::unique_ptr<TemporalLayers>> temporal_layers_; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 int propagation_cnt_; | 158 int propagation_cnt_; |
158 int last_frame_width_; | 159 int last_frame_width_; |
159 int last_frame_height_; | 160 int last_frame_height_; |
160 bool key_frame_required_; | 161 bool key_frame_required_; |
161 DeblockParams deblock_; | 162 DeblockParams deblock_; |
162 const std::unique_ptr<QpSmoother> qp_smoother_; | 163 const std::unique_ptr<QpSmoother> qp_smoother_; |
163 }; | 164 }; |
164 } // namespace webrtc | 165 } // namespace webrtc |
165 | 166 |
166 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ | 167 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ |
OLD | NEW |