AVBlocks for C++  3.0
Audio and Video Software Development Kit
Loading...
Searching...
No Matches
MediaBufferParameter Class Referenceabstract

The parameter represents a MediaBuffer object. More...

#include <avb.h>

Inheritance diagram for MediaBufferParameter:
Parameter Reference

Public Member Functions

virtual primo::codecs::MediaBufferbuffer () const =0
 Returns the buffer instance.
 
virtual bool_t setBuffer (primo::codecs::MediaBuffer *buffer)=0
 Sets the buffer.
 
- Public Member Functions inherited from Parameter
virtual Parameterclone () const =0
 Creates a deep copy of the underlying StringParameter, IntParameter, FloatParameter, or MediaBufferParameter object.
 
virtual const char * name () const =0
 Returns the parameter name.
 
virtual bool_t setName (const char *name)=0
 Sets the parameter name.
 
virtual ParamType::Enum type () const =0
 Returns the parameter type.
 
- Public Member Functions inherited from Reference
virtual int32_t release () const =0
 Releases the instance.
 
virtual int32_t retain () const =0
 Retains the instance.
 
virtual int32_t retainCount () const =0
 Returns the current reference count.
 

Additional Inherited Members

- Protected Member Functions inherited from Parameter
 ~Parameter ()
 This object can be destroyed only by the AVBlocks library.
 

Detailed Description

The parameter represents a MediaBuffer object.

Member Function Documentation

◆ buffer()

virtual primo::codecs::MediaBuffer * buffer ( ) const
pure virtual

Returns the buffer instance.

Returns
A pointer to MediaBuffer object. The returned pointer can be NULL.

◆ setBuffer()

virtual bool_t setBuffer ( primo::codecs::MediaBuffer buffer)
pure virtual

Sets the buffer.

Parameters
buffer[in] A pointer to MediaBuffer that will be stored in the parameter. It is allowed to set a NULL object. Internally the MediaBuffer specified by buffer is retained (if not NULL), so it is safe to release it after this method returns. The previous MediaBuffer is released (if not NULL).