| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file contains an implementation of a VP8 raw stream parser, | 5 // This file contains an implementation of a VP8 raw stream parser, |
| 6 // as defined in RFC 6386. | 6 // as defined in RFC 6386. |
| 7 | 7 |
| 8 #ifndef MEDIA_FILTERS_VP8_PARSER_H_ | 8 #ifndef MEDIA_FILTERS_VP8_PARSER_H_ |
| 9 #define MEDIA_FILTERS_VP8_PARSER_H_ | 9 #define MEDIA_FILTERS_VP8_PARSER_H_ |
| 10 | 10 |
| 11 #include <stddef.h> |
| 12 #include <stdint.h> |
| 13 |
| 11 #include "base/macros.h" | 14 #include "base/macros.h" |
| 12 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
| 13 #include "media/filters/vp8_bool_decoder.h" | 16 #include "media/filters/vp8_bool_decoder.h" |
| 14 | 17 |
| 15 namespace media { | 18 namespace media { |
| 16 | 19 |
| 17 // See spec for definitions of values/fields. | 20 // See spec for definitions of values/fields. |
| 18 const size_t kMaxMBSegments = 4; | 21 const size_t kMaxMBSegments = 4; |
| 19 const size_t kNumMBFeatureTreeProbs = 3; | 22 const size_t kNumMBFeatureTreeProbs = 3; |
| 20 | 23 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 const uint8_t* stream_; | 190 const uint8_t* stream_; |
| 188 size_t bytes_left_; | 191 size_t bytes_left_; |
| 189 Vp8BoolDecoder bd_; | 192 Vp8BoolDecoder bd_; |
| 190 | 193 |
| 191 DISALLOW_COPY_AND_ASSIGN(Vp8Parser); | 194 DISALLOW_COPY_AND_ASSIGN(Vp8Parser); |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 } // namespace media | 197 } // namespace media |
| 195 | 198 |
| 196 #endif // MEDIA_FILTERS_VP8_PARSER_H_ | 199 #endif // MEDIA_FILTERS_VP8_PARSER_H_ |
| OLD | NEW |