OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ | 5 #ifndef MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ |
6 #define MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ | 6 #define MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 #include "media/video/video_encode_types.h" | 13 #include "media/video/video_encode_types.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 // General encoded video bitstream buffer. | 17 // General encoded video bitstream buffer. |
18 class MEDIA_EXPORT EncodedBitstreamBuffer : | 18 class MEDIA_EXPORT EncodedBitstreamBuffer : |
19 public base::RefCountedThreadSafe<EncodedBitstreamBuffer> { | 19 public base::RefCountedThreadSafe<EncodedBitstreamBuffer> { |
20 public: | 20 public: |
(...skipping 22 matching lines...) Expand all Loading... |
43 const base::SharedMemoryHandle shared_memory_handle_; | 43 const base::SharedMemoryHandle shared_memory_handle_; |
44 media::BufferEncodingMetadata metadata_; | 44 media::BufferEncodingMetadata metadata_; |
45 const base::Closure destroy_cb_; | 45 const base::Closure destroy_cb_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(EncodedBitstreamBuffer); | 47 DISALLOW_COPY_AND_ASSIGN(EncodedBitstreamBuffer); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace media | 50 } // namespace media |
51 | 51 |
52 #endif // MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ | 52 #endif // MEDIA_BASE_ENCODED_BITSTREAM_BUFFER_H_ |
OLD | NEW |