diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 19:31:30 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 19:31:30 +0000 |
commit | e785780e0ac206abf27dff864be6aebdf91cbdda (patch) | |
tree | 2dd2e652b43f63014e582a780a1939a353dbe4c9 /media/base/bitstream_buffer.h | |
parent | f677a530fdaebae4104da112627874e4877348fe (diff) | |
download | chromium_src-e785780e0ac206abf27dff864be6aebdf91cbdda.zip chromium_src-e785780e0ac206abf27dff864be6aebdf91cbdda.tar.gz chromium_src-e785780e0ac206abf27dff864be6aebdf91cbdda.tar.bz2 |
Checking in media::BitstreamBuffer and media::VideoDecodeAccelerator interfaces.
Also includes stubbed out implementation VideoDecodeAcceleratorHost.
Part of a patch by vmr@chromium.org:
http://codereview.chromium.org/6541068/
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6675040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/bitstream_buffer.h')
-rw-r--r-- | media/base/bitstream_buffer.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media/base/bitstream_buffer.h b/media/base/bitstream_buffer.h new file mode 100644 index 0000000..9a68efb --- /dev/null +++ b/media/base/bitstream_buffer.h @@ -0,0 +1,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_ |