blob: 9a68efb85b50096594fca0c952fc163809cc47d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_
#define MEDIA_BASE_BITSTREAM_BUFFER_H_
#include "base/basictypes.h"
namespace media {
// Class for passing bitstream buffers around. Ownership of the bitstream
// pointer remains with whoever uses this class.
class BitstreamBuffer {
public:
BitstreamBuffer(uint8* bitstream, size_t bitstream_size, void* user_handle)
: bitstream_(bitstream),
bitstream_size_(bitstream_size),
user_handle_(user_handle) {
}
~BitstreamBuffer() {}
uint8* bitstream() { return bitstream_; }
size_t bitstream_size() { return bitstream_size_; }
void* user_handle() { return user_handle_; }
private:
uint8* bitstream_;
size_t bitstream_size_;
void* user_handle_;
DISALLOW_IMPLICIT_CONSTRUCTORS(BitstreamBuffer);
};
} // namespace media
#endif // MEDIA_BASE_BITSTREAM_BUFFER_H_
|