haiku/docs/user/media/Buffer.dox
Adrien Destugues a33f8fbdec Merge work by John Scipione on the Haiku Book.
* Some new classes documented
 * Screenshots for the interface kit controls
 * A lot of typo fixes
 * Some css tweaks

This has some backporting to the current version of Doxygen, since 
there are experiments to get coloring similar to the one in the Be 
Book that will hopefully be upstreamed in Doxygen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-09 21:46:13 +00:00

114 lines
2.1 KiB
Plaintext

/*
* Copyright 2011, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* John Scipione, jscipione@gmail.com
*
* Corresponds to:
* /trunk/headers/os/media/Buffer.h rev 42274
* /trunk/src/kits/media/Buffer.cpp rev 42274
*/
/*!
\file Buffer.h
\brief Defines the buffer_clone_info struct and BBuffer class.
*/
/*!
\struct buffer_clone_info
\brief A struct that stores where in memory a BBuffer object is in memory
as well as the buffer flags.
*/
/*!
\class BBuffer
\ingroup media
\brief A reference to a chunk of memory useful for sharing media data
between applications and nodes.
*/
/*!
\fn void* BBuffer::Data()
\brief Returns a pointer to the data of the buffer.
*/
/*!
\fn size_t BBuffer::SizeAvailable()
\brief Returns the size of the buffer in bytes. Alias for Size().
*/
/*!
\fn size_t BBuffer::SizeUsed()
\brief Returns the size of the portion of the buffer that is currently in
use in bytes.
*/
/*!
\fn void BBuffer::SetSizeUsed(size_t size_used)
\brief Sets the size of the buffer that is used in bytes.
This method should be called after writing data to the buffer.
*/
/*!
\fn uint32 BBuffer::Flags()
\brief Returns the flags of the buffer.
*/
/*!
\fn void BBuffer::Recycle()
\brief Recycles the buffer so that it can be reused.
*/
/*!
\fn buffer_clone_info BBuffer::CloneInfo() const
\brief Returns the buffer_clone_info struct that describes the buffer.
*/
/*!
\fn media_buffer_id BBuffer::ID()
\brief Returns the app_server ID of the buffer.
*/
/*!
\fn media_type BBuffer::Type()
\brief Returns the media type of the data in the buffer.
*/
/*!
\fn media_header* BBuffer::Header()
\brief Returns a pointer to the header of the buffer.
*/
/*!
\fn media_audio_header* BBuffer::AudioHeader()
\brief Returns a pointer to a header of the audio buffer.
*/
/*!
\fn media_video_header* BBuffer::VideoHeader()
\brief Returns a pointer to a header of the video buffer.
*/
/*!
\fn size_t BBuffer::Size()
\brief Returns the size of the buffer in bytes. Alias for SizeAvailable().
*/