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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 std::vector<int> last_key_frame_picture_id_; | 107 std::vector<int> last_key_frame_picture_id_; |
108 std::vector<bool> key_frame_request_; | 108 std::vector<bool> key_frame_request_; |
109 std::vector<bool> send_stream_; | 109 std::vector<bool> send_stream_; |
110 std::vector<int> cpu_speed_; | 110 std::vector<int> cpu_speed_; |
111 std::vector<vpx_image_t> raw_images_; | 111 std::vector<vpx_image_t> raw_images_; |
112 std::vector<EncodedImage> encoded_images_; | 112 std::vector<EncodedImage> encoded_images_; |
113 std::vector<vpx_codec_ctx_t> encoders_; | 113 std::vector<vpx_codec_ctx_t> encoders_; |
114 std::vector<vpx_codec_enc_cfg_t> configurations_; | 114 std::vector<vpx_codec_enc_cfg_t> configurations_; |
115 std::vector<vpx_rational_t> downsampling_factors_; | 115 std::vector<vpx_rational_t> downsampling_factors_; |
116 QualityScaler quality_scaler_; | 116 QualityScaler quality_scaler_; |
| 117 bool quality_scaler_enabled_; |
117 }; // end of VP8EncoderImpl class | 118 }; // end of VP8EncoderImpl class |
118 | 119 |
119 class VP8DecoderImpl : public VP8Decoder { | 120 class VP8DecoderImpl : public VP8Decoder { |
120 public: | 121 public: |
121 VP8DecoderImpl(); | 122 VP8DecoderImpl(); |
122 | 123 |
123 virtual ~VP8DecoderImpl(); | 124 virtual ~VP8DecoderImpl(); |
124 | 125 |
125 int InitDecode(const VideoCodec* inst, int number_of_cores) override; | 126 int InitDecode(const VideoCodec* inst, int number_of_cores) override; |
126 | 127 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 vpx_ref_frame_t* ref_frame_; | 159 vpx_ref_frame_t* ref_frame_; |
159 int propagation_cnt_; | 160 int propagation_cnt_; |
160 int last_frame_width_; | 161 int last_frame_width_; |
161 int last_frame_height_; | 162 int last_frame_height_; |
162 bool key_frame_required_; | 163 bool key_frame_required_; |
163 }; // end of VP8DecoderImpl class | 164 }; // end of VP8DecoderImpl class |
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_ |
167 | 168 |
OLD | NEW |