| 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 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  Loading... | 
|  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_ | 
| OLD | NEW |