Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: media/filters/h264_parser.h

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: tidying up prior to review Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698