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 // This file contains an implementation of an H264 Annex-B video stream parser. | 5 // This file contains an implementation of an H264 Annex-B video stream parser. |
6 | 6 |
7 #ifndef MEDIA_FILTERS_H264_BIT_READER_H_ | 7 #ifndef MEDIA_FILTERS_H264_BIT_READER_H_ |
8 #define MEDIA_FILTERS_H264_BIT_READER_H_ | 8 #define MEDIA_FILTERS_H264_BIT_READER_H_ |
9 | 9 |
| 10 #include <stddef.h> |
10 #include <stdint.h> | 11 #include <stdint.h> |
11 #include <sys/types.h> | 12 #include <sys/types.h> |
12 | 13 |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
18 // A class to provide bit-granularity reading of H.264 streams. | 19 // A class to provide bit-granularity reading of H.264 streams. |
19 // This is not a generic bit reader class, as it takes into account | 20 // This is not a generic bit reader class, as it takes into account |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 72 |
72 // Number of emulation preventation bytes (0x000003) we met. | 73 // Number of emulation preventation bytes (0x000003) we met. |
73 size_t emulation_prevention_bytes_; | 74 size_t emulation_prevention_bytes_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(H264BitReader); | 76 DISALLOW_COPY_AND_ASSIGN(H264BitReader); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace media | 79 } // namespace media |
79 | 80 |
80 #endif // MEDIA_FILTERS_H264_BIT_READER_H_ | 81 #endif // MEDIA_FILTERS_H264_BIT_READER_H_ |
OLD | NEW |