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 "base/macros.h" |
11 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
12 #include "media/filters/vp8_bool_decoder.h" | 13 #include "media/filters/vp8_bool_decoder.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 | 16 |
16 // See spec for definitions of values/fields. | 17 // See spec for definitions of values/fields. |
17 const size_t kMaxMBSegments = 4; | 18 const size_t kMaxMBSegments = 4; |
18 const size_t kNumMBFeatureTreeProbs = 3; | 19 const size_t kNumMBFeatureTreeProbs = 3; |
19 | 20 |
20 // Member of Vp8FrameHeader and will be 0-initialized | 21 // Member of Vp8FrameHeader and will be 0-initialized |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const uint8_t* stream_; | 187 const uint8_t* stream_; |
187 size_t bytes_left_; | 188 size_t bytes_left_; |
188 Vp8BoolDecoder bd_; | 189 Vp8BoolDecoder bd_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(Vp8Parser); | 191 DISALLOW_COPY_AND_ASSIGN(Vp8Parser); |
191 }; | 192 }; |
192 | 193 |
193 } // namespace media | 194 } // namespace media |
194 | 195 |
195 #endif // MEDIA_FILTERS_VP8_PARSER_H_ | 196 #endif // MEDIA_FILTERS_VP8_PARSER_H_ |
OLD | NEW |