| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ | 5 #ifndef MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ |
| 6 #define MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ | 6 #define MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Used by GetNextBufferToUpdate() to track how many consecutive times the | 107 // Used by GetNextBufferToUpdate() to track how many consecutive times the |
| 108 // newest buffer had to be overwritten. | 108 // newest buffer had to be overwritten. |
| 109 int undroppable_frames_; | 109 int undroppable_frames_; |
| 110 | 110 |
| 111 // Tracks the lifecycle and dependency state of each of the three buffers. | 111 // Tracks the lifecycle and dependency state of each of the three buffers. |
| 112 BufferState buffer_state_[kNumberOfVp8VideoBuffers]; | 112 BufferState buffer_state_[kNumberOfVp8VideoBuffers]; |
| 113 | 113 |
| 114 // This is bound to the thread where Initialize() is called. | 114 // This is bound to the thread where Initialize() is called. |
| 115 base::ThreadChecker thread_checker_; | 115 base::ThreadChecker thread_checker_; |
| 116 | 116 |
| 117 // Set to true once a frame with zero-length encoded data has been |
| 118 // encountered. |
| 119 // TODO(miu): Remove after discovering cause. http://crbug.com/519022 |
| 120 bool has_seen_zero_length_encoded_frame_; |
| 121 |
| 117 DISALLOW_COPY_AND_ASSIGN(Vp8Encoder); | 122 DISALLOW_COPY_AND_ASSIGN(Vp8Encoder); |
| 118 }; | 123 }; |
| 119 | 124 |
| 120 } // namespace cast | 125 } // namespace cast |
| 121 } // namespace media | 126 } // namespace media |
| 122 | 127 |
| 123 #endif // MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ | 128 #endif // MEDIA_CAST_SENDER_CODECS_VP8_VP8_ENCODER_H_ |
| OLD | NEW |