Chromium Code Reviews| 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> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 kReserved16 = 16, | 46 kReserved16 = 16, |
| 47 kReserved17 = 17, | 47 kReserved17 = 17, |
| 48 kReserved18 = 18, | 48 kReserved18 = 18, |
| 49 kCodedSliceAux = 19, | 49 kCodedSliceAux = 19, |
| 50 kCodedSliceExtension = 20, | 50 kCodedSliceExtension = 20, |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // After (without) start code; we don't own the underlying memory | 53 // After (without) start code; we don't own the underlying memory |
| 54 // and a shallow copy should be made when copying this struct. | 54 // and a shallow copy should be made when copying this struct. |
| 55 const uint8* data; | 55 const uint8* data; |
| 56 int64 offset; | |
|
ddorwin
2015/12/10 20:10:58
Is this needed/used?
dougsteed
2015/12/14 22:51:46
Looks like not. Holdover.
| |
| 56 off_t size; // From after start code to start code of next NALU (or EOS). | 57 off_t size; // From after start code to start code of next NALU (or EOS). |
| 57 | 58 |
| 58 int nal_ref_idc; | 59 int nal_ref_idc; |
| 59 int nal_unit_type; | 60 int nal_unit_type; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 enum { | 63 enum { |
| 63 kH264ScalingList4x4Length = 16, | 64 kH264ScalingList4x4Length = 16, |
| 64 kH264ScalingList8x8Length = 64, | 65 kH264ScalingList8x8Length = 64, |
| 65 }; | 66 }; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 464 // Ranges of encrypted bytes in the buffer passed to | 465 // Ranges of encrypted bytes in the buffer passed to |
| 465 // SetEncryptedStream(). | 466 // SetEncryptedStream(). |
| 466 Ranges<const uint8*> encrypted_ranges_; | 467 Ranges<const uint8*> encrypted_ranges_; |
| 467 | 468 |
| 468 DISALLOW_COPY_AND_ASSIGN(H264Parser); | 469 DISALLOW_COPY_AND_ASSIGN(H264Parser); |
| 469 }; | 470 }; |
| 470 | 471 |
| 471 } // namespace media | 472 } // namespace media |
| 472 | 473 |
| 473 #endif // MEDIA_FILTERS_H264_PARSER_H_ | 474 #endif // MEDIA_FILTERS_H264_PARSER_H_ |
| OLD | NEW |