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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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
« no previous file with comments | « media/filters/h264_bit_reader.h ('k') | media/filters/h264_bitstream_buffer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a H264BitstreamBuffer class for 5 // This file contains an implementation of a H264BitstreamBuffer class for
6 // constructing raw bitstream buffers containing NAL units in 6 // constructing raw bitstream buffers containing NAL units in
7 // H.264 Annex-B stream format. 7 // H.264 Annex-B stream format.
8 // See H.264 spec Annex B and chapter 7for more details. 8 // See H.264 spec Annex B and chapter 7for more details.
9 9
10 #ifndef MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_ 10 #ifndef MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_
11 #define MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_ 11 #define MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_
12 12
13 #include <stddef.h>
14 #include <stdint.h>
15
13 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
14 #include "base/numerics/safe_conversions.h" 17 #include "base/numerics/safe_conversions.h"
15 #include "media/base/media_export.h" 18 #include "media/base/media_export.h"
16 #include "media/base/video_frame.h" 19 #include "media/base/video_frame.h"
17 #include "media/filters/h264_parser.h" 20 #include "media/filters/h264_parser.h"
18 21
19 namespace media { 22 namespace media {
20 23
21 // Holds one or more NALUs as a raw bitstream buffer in H.264 Annex-B format. 24 // Holds one or more NALUs as a raw bitstream buffer in H.264 Annex-B format.
22 // Note that this class currently does NOT insert emulation prevention 25 // Note that this class currently does NOT insert emulation prevention
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Current byte offset in data_ (points to the start of unwritten bits). 114 // Current byte offset in data_ (points to the start of unwritten bits).
112 size_t pos_; 115 size_t pos_;
113 116
114 // Buffer for stream data. 117 // Buffer for stream data.
115 uint8_t* data_; 118 uint8_t* data_;
116 }; 119 };
117 120
118 } // namespace media 121 } // namespace media
119 122
120 #endif // MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_ 123 #endif // MEDIA_FILTERS_H264_BITSTREAM_BUFFER_H_
OLDNEW
« no previous file with comments | « media/filters/h264_bit_reader.h ('k') | media/filters/h264_bitstream_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698