Encoder  4.4
VC-5 Sample Encoder
allocator.h File Reference

Go to the source code of this file.

Typedefs

typedef void * ALLOCATOR
 Opaque data type for the default memory allocator. More...
 

Functions

void * Alloc (ALLOCATOR *allocator, size_t size)
 Allocate a block with the specified size.
 
void Free (ALLOCATOR *allocator, void *block)
 Free a block that was allocated by the specified allocator. More...
 

Detailed Description

The allocator hides the actual routines and data structures that are used for memory allocation so that the decoder can be easily adapted to use different memory allocation schemes.

(c) 2013 Society of Motion Picture & Television Engineers LLC and Woodman Labs, Inc. All rights reserved–use subject to compliance with end user license agreement.

Typedef Documentation

◆ ALLOCATOR

typedef void* ALLOCATOR

Opaque data type for the default memory allocator.

It is expected that actual decoder implementations will define more sophisticated memory allocators.

Function Documentation

◆ Free()

void Free ( ALLOCATOR allocator,
void *  block 
)

Free a block that was allocated by the specified allocator.

It is an error to free a block allocated by one allocator using a different allocator.

Here is the caller graph for this function: