OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 */ | 10 */ |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool is_flexible_mode_; | 124 bool is_flexible_mode_; |
125 int64_t buffer_updated_at_frame_[kNumVp9Buffers]; | 125 int64_t buffer_updated_at_frame_[kNumVp9Buffers]; |
126 int64_t frames_encoded_; | 126 int64_t frames_encoded_; |
127 uint8_t num_ref_pics_[kMaxVp9NumberOfSpatialLayers]; | 127 uint8_t num_ref_pics_[kMaxVp9NumberOfSpatialLayers]; |
128 uint8_t p_diff_[kMaxVp9NumberOfSpatialLayers][kMaxVp9RefPics]; | 128 uint8_t p_diff_[kMaxVp9NumberOfSpatialLayers][kMaxVp9RefPics]; |
129 std::unique_ptr<ScreenshareLayersVP9> spatial_layer_; | 129 std::unique_ptr<ScreenshareLayersVP9> spatial_layer_; |
130 | 130 |
131 // RTP state. | 131 // RTP state. |
132 uint16_t picture_id_; | 132 uint16_t picture_id_; |
133 uint8_t tl0_pic_idx_; // Only used in non-flexible mode. | 133 uint8_t tl0_pic_idx_; // Only used in non-flexible mode. |
| 134 |
| 135 int64_t last_timing_frame_time_ms_; |
| 136 int64_t encode_time_start_ms_; |
134 }; | 137 }; |
135 | 138 |
136 class VP9DecoderImpl : public VP9Decoder { | 139 class VP9DecoderImpl : public VP9Decoder { |
137 public: | 140 public: |
138 VP9DecoderImpl(); | 141 VP9DecoderImpl(); |
139 | 142 |
140 virtual ~VP9DecoderImpl(); | 143 virtual ~VP9DecoderImpl(); |
141 | 144 |
142 int InitDecode(const VideoCodec* inst, int number_of_cores) override; | 145 int InitDecode(const VideoCodec* inst, int number_of_cores) override; |
143 | 146 |
(...skipping 19 matching lines...) Expand all Loading... |
163 Vp9FrameBufferPool frame_buffer_pool_; | 166 Vp9FrameBufferPool frame_buffer_pool_; |
164 DecodedImageCallback* decode_complete_callback_; | 167 DecodedImageCallback* decode_complete_callback_; |
165 bool inited_; | 168 bool inited_; |
166 vpx_codec_ctx_t* decoder_; | 169 vpx_codec_ctx_t* decoder_; |
167 VideoCodec codec_; | 170 VideoCodec codec_; |
168 bool key_frame_required_; | 171 bool key_frame_required_; |
169 }; | 172 }; |
170 } // namespace webrtc | 173 } // namespace webrtc |
171 | 174 |
172 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ | 175 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ |
OLD | NEW |