| 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_PARSER_H_ | 7 #ifndef MEDIA_FILTERS_H264_PARSER_H_ |
| 8 #define MEDIA_FILTERS_H264_PARSER_H_ | 8 #define MEDIA_FILTERS_H264_PARSER_H_ |
| 9 | 9 |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" |
| 15 #include "media/base/media_export.h" | 16 #include "media/base/media_export.h" |
| 16 #include "media/base/ranges.h" | 17 #include "media/base/ranges.h" |
| 17 #include "media/filters/h264_bit_reader.h" | 18 #include "media/filters/h264_bit_reader.h" |
| 18 | 19 |
| 19 namespace media { | 20 namespace media { |
| 20 | 21 |
| 21 struct SubsampleEntry; | 22 struct SubsampleEntry; |
| 22 | 23 |
| 23 // For explanations of each struct and its members, see H.264 specification | 24 // For explanations of each struct and its members, see H.264 specification |
| 24 // at http://www.itu.int/rec/T-REC-H.264. | 25 // at http://www.itu.int/rec/T-REC-H.264. |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // Ranges of encrypted bytes in the buffer passed to | 469 // Ranges of encrypted bytes in the buffer passed to |
| 469 // SetEncryptedStream(). | 470 // SetEncryptedStream(). |
| 470 Ranges<const uint8_t*> encrypted_ranges_; | 471 Ranges<const uint8_t*> encrypted_ranges_; |
| 471 | 472 |
| 472 DISALLOW_COPY_AND_ASSIGN(H264Parser); | 473 DISALLOW_COPY_AND_ASSIGN(H264Parser); |
| 473 }; | 474 }; |
| 474 | 475 |
| 475 } // namespace media | 476 } // namespace media |
| 476 | 477 |
| 477 #endif // MEDIA_FILTERS_H264_PARSER_H_ | 478 #endif // MEDIA_FILTERS_H264_PARSER_H_ |
| OLD | NEW |