memalloc.h File Reference

Memory allocation and free helper funtions. More...

#include "global.h"
#include "distortion.h"
#include "lagrangian.h"
#include "quant_params.h"

Include dependency graph for memalloc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int get_mem2Ddist (DistortionData ***array2D, int dim0, int dim1)
int get_mem2Dlm (LambdaParams ***array2D, int dim0, int dim1)
int get_mem2Dolm (LambdaParams ***array2D, int dim0, int dim1, int offset)
int get_mem2Dmp (PicMotionParams2 ***array2D, int dim0, int dim1)
int get_mem3Dmp (PicMotionParams2 ****array3D, int dim0, int dim1, int dim2)
int get_mem2Dquant (LevelQuantParams ***array2D, int dim0, int dim1)
int get_mem3Dquant (LevelQuantParams ****array3D, int dim0, int dim1, int dim2)
int get_mem4Dquant (LevelQuantParams *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem5Dquant (LevelQuantParams ******array5D, int dim0, int dim1, int dim2, int dim3, int dim4)
int get_mem2Dmv (MotionVector ***array2D, int dim0, int dim1)
int get_mem3Dmv (MotionVector ****array3D, int dim0, int dim1, int dim2)
int get_mem4Dmv (MotionVector *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem5Dmv (MotionVector ******array5D, int dim0, int dim1, int dim2, int dim3, int dim4)
int get_mem2D (byte ***array2D, int dim0, int dim1)
int get_mem3D (byte ****array3D, int dim0, int dim1, int dim2)
int get_mem4D (byte *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem2Dint (int ***array2D, int rows, int columns)
int get_mem3Dint (int ****array3D, int frames, int rows, int columns)
int get_mem4Dint (int *****array4D, int idx, int frames, int rows, int columns)
int get_mem5Dint (int ******array5D, int refs, int blocktype, int rows, int columns, int component)
int get_mem3Duint16 (uint16 ****array3D, int dim0, int dim1, int dim2)
int get_mem2Dint64 (int64 ***array2D, int rows, int columns)
int get_mem3Dint64 (int64 ****array3D, int frames, int rows, int columns)
int get_mem2Dshort (short ***array2D, int dim0, int dim1)
int get_mem3Dshort (short ****array3D, int dim0, int dim1, int dim2)
int get_mem4Dshort (short *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem5Dshort (short ******array5D, int dim0, int dim1, int dim2, int dim3, int dim4)
int get_mem6Dshort (short *******array6D, int dim0, int dim1, int dim2, int dim3, int dim4, int dim5)
int get_mem7Dshort (short ********array7D, int dim0, int dim1, int dim2, int dim3, int dim4, int dim5, int dim6)
int get_mem1Dpel (imgpel **array2D, int rows)
int get_mem2Dpel (imgpel ***array2D, int rows, int columns)
int get_mem3Dpel (imgpel ****array3D, int frames, int rows, int columns)
int get_mem4Dpel (imgpel *****array4D, int sub_x, int sub_y, int rows, int columns)
int get_mem5Dpel (imgpel ******array5D, int dims, int sub_x, int sub_y, int rows, int columns)
int get_mem2Ddouble (double ***array2D, int rows, int columns)
int get_mem2Dodouble (double ***array2D, int rows, int columns, int offset)
int get_mem3Dodouble (double ****array2D, int rows, int columns, int pels, int offset)
int get_mem2Doint (int ***array2D, int rows, int columns, int offset)
int get_mem3Doint (int ****array3D, int rows, int columns, int pels, int offset)
int get_offset_mem2Dshort (short ***array2D, int rows, int columns, int offset_y, int offset_x)
void free_offset_mem2Dshort (short **array2D, int columns, int offset_x, int offset_y)
void free_mem2Ddist (DistortionData **array2D)
void free_mem2Dlm (LambdaParams **array2D)
void free_mem2Dolm (LambdaParams **array2D, int offset)
void free_mem2Dmp (PicMotionParams2 **array2D)
void free_mem3Dmp (PicMotionParams2 ***array2D)
void free_mem2Dquant (LevelQuantParams **array2D)
void free_mem3Dquant (LevelQuantParams ***array2D)
void free_mem4Dquant (LevelQuantParams ****array2D)
void free_mem5Dquant (LevelQuantParams *****array2D)
void free_mem2Dmv (MotionVector **array2D)
void free_mem3Dmv (MotionVector ***array2D)
void free_mem4Dmv (MotionVector ****array2D)
void free_mem5Dmv (MotionVector *****array2D)
void free_mem2D (byte **array2D)
void free_mem3D (byte ***array3D)
void free_mem4D (byte ****array4D)
void free_mem2Dint (int **array2D)
void free_mem3Dint (int ***array3D)
void free_mem4Dint (int ****array4D)
void free_mem5Dint (int *****array5D)
void free_mem2Dint64 (int64 **array2D)
void free_mem3Dint64 (int64 ***array3D)
void free_mem2Dshort (short **array2D)
void free_mem3Dshort (short ***array3D)
void free_mem4Dshort (short ****array4D)
void free_mem5Dshort (short *****array5D)
void free_mem6Dshort (short ******array6D)
void free_mem7Dshort (short *******array7D)
void free_mem1Dpel (imgpel *array1D)
void free_mem2Dpel (imgpel **array2D)
void free_mem3Dpel (imgpel ***array3D)
void free_mem4Dpel (imgpel ****array4D)
void free_mem5Dpel (imgpel *****array5D)
void free_mem2Ddouble (double **array2D)
void free_mem2Dodouble (double **array2D, int offset)
void free_mem3Dodouble (double ***array3D, int rows, int columns, int offset)
void free_mem2Doint (int **array2D, int offset)
void free_mem3Doint (int ***array3D, int rows, int columns, int offset)
int init_top_bot_planes (imgpel **imgFrame, int height, imgpel ***imgTopField, imgpel ***imgBotField)
void free_top_bot_planes (imgpel **imgTopField, imgpel **imgBotField)
void no_mem_exit (char *where)


Detailed Description

Memory allocation and free helper funtions.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file memalloc.h.


Function Documentation

void free_mem1Dpel ( imgpel *  array1D  ) 

free 1D memory array which was allocated with get_mem1Dpel()

Definition at line 733 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2D ( byte **  array2D  ) 

free 2D memory array which was allocated with get_mem2D()

Definition at line 1051 of file memalloc.c.

References error().

Referenced by free_colocated(), free_global_buffers(), and free_mem3D().

Here is the call graph for this function:

void free_mem2Ddist ( DistortionData **  array2D  ) 

free 2D memory array which was allocated with get_mem2Ddist()

Definition at line 116 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2Ddouble ( double **  array2D  ) 

free 2D double memory array which was allocated with get_mem2Ddouble()

Definition at line 1868 of file memalloc.c.

References error().

Referenced by free_mem3Ddouble().

Here is the call graph for this function:

void free_mem2Dint ( int **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dint()

Definition at line 1075 of file memalloc.c.

References error().

Referenced by free_global_buffers(), free_mem3Dint(), itrans_2(), and itrans_sp().

Here is the call graph for this function:

void free_mem2Dint64 ( int64 **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dint64()

Definition at line 1099 of file memalloc.c.

References error().

Referenced by free_mem3Dint64().

Here is the call graph for this function:

void free_mem2Dlm ( LambdaParams **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dlm()

Definition at line 140 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2Dmp ( PicMotionParams2 **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dmp()

Definition at line 211 of file memalloc.c.

References error().

Referenced by free_mem3Dmp().

Here is the call graph for this function:

void free_mem2Dmv ( MotionVector **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dmv()

Definition at line 536 of file memalloc.c.

References error().

Referenced by free_mem3Dmv().

Here is the call graph for this function:

void free_mem2Dodouble ( double **  array2D,
int  offset 
)

free 2D double memory array (with offset) which was allocated with get_mem2Ddouble()

Definition at line 1894 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2Doint ( int **  array2D,
int  offset 
)

free 2D double memory array (with offset) which was allocated with get_mem2Ddouble()

Definition at line 1989 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2Dolm ( LambdaParams **  array2D,
int  offset 
)

free 2D LambdaParams memory array (with offset) which was allocated with get_mem2Dlm()

Definition at line 2090 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem2Dpel ( imgpel **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dpel()

Definition at line 752 of file memalloc.c.

References error().

Referenced by buildPredblockRegionYUV(), buildPredRegionYUV(), free_global_buffers(), free_mem3Dpel(), free_storable_picture(), and interpret_spare_pic().

Here is the call graph for this function:

void free_mem2Dquant ( LevelQuantParams **  array2D  ) 

free 2D memory array which was allocated with get_mem2Dquant()

Definition at line 353 of file memalloc.c.

References error().

Referenced by free_mem3Dquant().

Here is the call graph for this function:

void free_mem2Dshort ( short **  array2D  ) 

free 2D short memory array which was allocated with get_mem2Dshort()

Definition at line 1539 of file memalloc.c.

References error().

Referenced by free_mem3Dshort(), and free_storable_picture().

Here is the call graph for this function:

void free_mem3D ( byte ***  array3D  ) 

free 3D memory array which was allocated with get_mem3D()

Definition at line 1123 of file memalloc.c.

References error(), and free_mem2D().

Referenced by free_colocated(), free_mem4D(), and interpret_spare_pic().

Here is the call graph for this function:

void free_mem3Dint ( int ***  array3D  ) 

free 3D memory array which was allocated with get_mem3Dint()

Definition at line 1163 of file memalloc.c.

References error(), and free_mem2Dint().

Referenced by free_mem4Dint(), free_slice(), and interpret_post_filter_hints_info().

Here is the call graph for this function:

void free_mem3Dint64 ( int64 ***  array3D  ) 

free 3D memory array which was allocated with get_mem3Dint64()

Definition at line 1184 of file memalloc.c.

References error(), and free_mem2Dint64().

Referenced by free_colocated().

Here is the call graph for this function:

void free_mem3Dmp ( PicMotionParams2 ***  array2D  ) 

free 3D memory array which was allocated with get_mem3Dmp()

Definition at line 236 of file memalloc.c.

References error(), and free_mem2Dmp().

Here is the call graph for this function:

void free_mem3Dmv ( MotionVector ***  array2D  ) 

free 3D memory array which was allocated with get_mem3Dmv()

Definition at line 561 of file memalloc.c.

References error(), and free_mem2Dmv().

Referenced by free_mem4Dmv().

Here is the call graph for this function:

void free_mem3Dodouble ( double ***  array3D,
int  rows,
int  columns,
int  offset 
)

free 3D memory array with offset

Definition at line 1917 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem3Doint ( int ***  array3D,
int  rows,
int  columns,
int  offset 
)

free 3D memory array with offset

Definition at line 1952 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_mem3Dpel ( imgpel ***  array3D  ) 

free 3D memory array which was allocated with get_mem3Dpel()

Definition at line 777 of file memalloc.c.

References error(), and free_mem2Dpel().

Referenced by free_global_buffers(), free_mem4Dpel(), free_slice(), free_storable_picture(), and write_out_picture().

Here is the call graph for this function:

void free_mem3Dquant ( LevelQuantParams ***  array2D  ) 

free 3D memory array which was allocated with get_mem3Dquant()

Definition at line 378 of file memalloc.c.

References error(), and free_mem2Dquant().

Referenced by free_mem4Dquant().

Here is the call graph for this function:

void free_mem3Dshort ( short ***  array3D  ) 

free 3D short memory array which was allocated with get_mem3Dshort()

Definition at line 1562 of file memalloc.c.

References error(), and free_mem2Dshort().

Referenced by free_mem4Dshort().

Here is the call graph for this function:

void free_mem4D ( byte ****  array4D  ) 

free 4D memory array which was allocated with get_mem3D()

Definition at line 1143 of file memalloc.c.

References error(), and free_mem3D().

Referenced by free_global_buffers().

Here is the call graph for this function:

void free_mem4Dint ( int ****  array4D  ) 

free 4D memory array which was allocated with get_mem4Dint()

Definition at line 1204 of file memalloc.c.

References error(), and free_mem3Dint().

Referenced by free_mem5Dint(), and free_slice().

Here is the call graph for this function:

void free_mem4Dmv ( MotionVector ****  array2D  ) 

free 4D memory array which was allocated with get_mem4Dmv()

Definition at line 581 of file memalloc.c.

References error(), and free_mem3Dmv().

Referenced by free_mem5Dmv().

Here is the call graph for this function:

void free_mem4Dpel ( imgpel ****  array4D  ) 

free 4D memory array which was allocated with get_mem4Dpel()

Definition at line 796 of file memalloc.c.

References error(), and free_mem3Dpel().

Referenced by free_mem5Dpel().

Here is the call graph for this function:

void free_mem4Dquant ( LevelQuantParams ****  array2D  ) 

free 4D memory array which was allocated with get_mem4Dquant()

Definition at line 398 of file memalloc.c.

References error(), and free_mem3Dquant().

Referenced by free_mem5Dquant().

Here is the call graph for this function:

void free_mem4Dshort ( short ****  array4D  ) 

free 4D short memory array which was allocated with get_mem4Dshort()

Definition at line 1582 of file memalloc.c.

References error(), and free_mem3Dshort().

Referenced by free_colocated(), and free_mem5Dshort().

Here is the call graph for this function:

void free_mem5Dint ( int *****  array5D  ) 

free 5D int memory array which was allocated with get_mem5Dint()

Definition at line 1223 of file memalloc.c.

References error(), and free_mem4Dint().

Here is the call graph for this function:

void free_mem5Dmv ( MotionVector *****  array2D  ) 

free 5D memory array which was allocated with get_mem5Dmv()

Definition at line 601 of file memalloc.c.

References error(), and free_mem4Dmv().

Here is the call graph for this function:

void free_mem5Dpel ( imgpel *****  array5D  ) 

free 5D memory array which was allocated with get_mem5Dpel()

Definition at line 815 of file memalloc.c.

References error(), and free_mem4Dpel().

Here is the call graph for this function:

void free_mem5Dquant ( LevelQuantParams *****  array2D  ) 

free 5D memory array which was allocated with get_mem5Dquant()

Definition at line 418 of file memalloc.c.

References error(), and free_mem4Dquant().

Here is the call graph for this function:

void free_mem5Dshort ( short *****  array5D  ) 

free 5D short memory array which was allocated with get_mem5Dshort()

Definition at line 1602 of file memalloc.c.

References error(), and free_mem4Dshort().

Referenced by free_mem6Dshort().

Here is the call graph for this function:

void free_mem6Dshort ( short ******  array6D  ) 

free 6D short memory array which was allocated with get_mem6Dshort()

Definition at line 1622 of file memalloc.c.

References error(), and free_mem5Dshort().

Referenced by free_mem7Dshort().

Here is the call graph for this function:

void free_mem7Dshort ( short *******  array7D  ) 

free 7D short memory array which was allocated with get_mem7Dshort()

Definition at line 1642 of file memalloc.c.

References error(), and free_mem6Dshort().

Here is the call graph for this function:

void free_offset_mem2Dshort ( short **  array2D,
int  columns,
int  offset_x,
int  offset_y 
)

free 2D double memory array (with offset) which was allocated with get_mem2Ddouble()

Definition at line 2015 of file memalloc.c.

References error().

Here is the call graph for this function:

void free_top_bot_planes ( imgpel **  imgTopField,
imgpel **  imgBotField 
)

free 2-dimensional top and bottom fields without freeing target memory

Output:
memory size in bytes

Definition at line 57 of file memalloc.c.

int get_mem1Dpel ( imgpel **  array1D,
int  dim0 
)

Allocate 1D memory array -> imgpel array1D[dim0.

Output:
memory size in bytes

Definition at line 622 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2D ( byte ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> unsigned char array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 836 of file memalloc.c.

References no_mem_exit().

Referenced by alloc_motion_params(), get_mem3D(), and init_global_buffers().

Here is the call graph for this function:

int get_mem2Ddist ( DistortionData ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> DistortionData array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 71 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2Ddouble ( double ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> double array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 1664 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Ddouble().

Here is the call graph for this function:

int get_mem2Dint ( int ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> int array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 860 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Dint(), init_global_buffers(), itrans_2(), and itrans_sp().

Here is the call graph for this function:

int get_mem2Dint64 ( int64 ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> int64 array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 884 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Dint64().

Here is the call graph for this function:

int get_mem2Dlm ( LambdaParams ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> LambdaParams array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 94 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2Dmp ( PicMotionParams2 ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> PicMotionParams2 array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 165 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Dmp().

Here is the call graph for this function:

int get_mem2Dmv ( MotionVector ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> MotionVector array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 442 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Dmv().

Here is the call graph for this function:

int get_mem2Dodouble ( double ***  array2D,
int  dim0,
int  dim1,
int  offset 
)

Allocate 2D memory array -> double array2D[dim0][dim1] Note that array is shifted towards offset allowing negative values.

Output:
memory size in bytes

Definition at line 1690 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2Doint ( int ***  array2D,
int  dim0,
int  dim1,
int  offset 
)

Allocate 2D memory array -> int array2D[dim0][dim1] Note that array is shifted towards offset allowing negative values.

Output:
memory size in bytes

Definition at line 1814 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2Dolm ( LambdaParams ***  array2D,
int  dim0,
int  dim1,
int  offset 
)

Allocate 2D memory array -> LambdaParams array2D[dim0][dim1] Note that array is shifted towards offset allowing negative values.

Output:
memory size in bytes

Definition at line 2065 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem2Dpel ( imgpel ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> imgpel array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 638 of file memalloc.c.

References no_mem_exit().

Referenced by alloc_storable_picture(), buildPredblockRegionYUV(), buildPredRegionYUV(), get_mem3Dpel(), init_global_buffers(), and interpret_spare_pic().

Here is the call graph for this function:

int get_mem2Dquant ( LevelQuantParams ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D memory array -> LevelQuantParams array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 259 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Dquant().

Here is the call graph for this function:

int get_mem2Dshort ( short ***  array2D,
int  dim0,
int  dim1 
)

Allocate 2D short memory array -> short array2D[dim0][dim1].

Output:
memory size in bytes

Definition at line 1333 of file memalloc.c.

References no_mem_exit().

Referenced by alloc_storable_picture(), and get_mem3Dshort().

Here is the call graph for this function:

int get_mem3D ( byte ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> unsigned char array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 908 of file memalloc.c.

References get_mem2D(), and no_mem_exit().

Referenced by alloc_motion_params(), get_mem4D(), and interpret_spare_pic().

Here is the call graph for this function:

int get_mem3Dint ( int ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> int array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 956 of file memalloc.c.

References get_mem2Dint(), and no_mem_exit().

Referenced by get_mem4Dint(), interpret_post_filter_hints_info(), and malloc_slice().

Here is the call graph for this function:

int get_mem3Dint64 ( int64 ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> int64 array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 980 of file memalloc.c.

References get_mem2Dint64(), and no_mem_exit().

Referenced by alloc_motion_params().

Here is the call graph for this function:

int get_mem3Dmp ( PicMotionParams2 ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> PicMotionParams2 array3D[frames][dim0][dim1].

Output:
memory size in bytes

Definition at line 189 of file memalloc.c.

References get_mem2Dmp(), and no_mem_exit().

Here is the call graph for this function:

int get_mem3Dmv ( MotionVector ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> MotionVector array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 466 of file memalloc.c.

References get_mem2Dmv(), and no_mem_exit().

Referenced by get_mem4Dmv().

Here is the call graph for this function:

int get_mem3Dodouble ( double ****  array3D,
int  dim0,
int  dim1,
int  dim2,
int  offset 
)

Allocate 3D memory double array -> double array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 1716 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem3Doint ( int ****  array3D,
int  dim0,
int  dim1,
int  dim2,
int  offset 
)

Allocate 3D memory int array -> int array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 1781 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int get_mem3Dpel ( imgpel ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> imgpel array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 663 of file memalloc.c.

References get_mem2Dpel(), and no_mem_exit().

Referenced by alloc_storable_picture(), get_mem4Dpel(), init_global_buffers(), malloc_slice(), and write_out_picture().

Here is the call graph for this function:

int get_mem3Dquant ( LevelQuantParams ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory array -> LevelQuantParams array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 283 of file memalloc.c.

References get_mem2Dquant(), and no_mem_exit().

Referenced by get_mem4Dquant().

Here is the call graph for this function:

int get_mem3Dshort ( short ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory short array -> short array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 1357 of file memalloc.c.

References get_mem2Dshort(), and no_mem_exit().

Referenced by get_mem4Dshort().

Here is the call graph for this function:

int get_mem3Duint16 ( uint16 ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

Allocate 3D memory uint16 array -> uint16 array3D[dim0][dim1][dim2].

Output:
memory size in bytes

Definition at line 1284 of file memalloc.c.

References get_mem2Duint16(), and no_mem_exit().

Referenced by get_mem4Duint16().

Here is the call graph for this function:

int get_mem4D ( byte *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory array -> unsigned char array4D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 932 of file memalloc.c.

References get_mem3D(), and no_mem_exit().

Referenced by init_global_buffers().

Here is the call graph for this function:

int get_mem4Dint ( int *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory array -> int array4D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 1004 of file memalloc.c.

References get_mem3Dint(), and no_mem_exit().

Referenced by get_mem5Dint(), and malloc_slice().

Here is the call graph for this function:

int get_mem4Dmv ( MotionVector *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory array -> MotionVector array3D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 490 of file memalloc.c.

References get_mem3Dmv(), and no_mem_exit().

Referenced by get_mem5Dmv().

Here is the call graph for this function:

int get_mem4Dpel ( imgpel *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory array -> imgpel array4D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 686 of file memalloc.c.

References get_mem3Dpel(), and no_mem_exit().

Referenced by get_mem5Dpel().

Here is the call graph for this function:

int get_mem4Dquant ( LevelQuantParams *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory array -> LevelQuantParams array3D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 307 of file memalloc.c.

References get_mem3Dquant(), and no_mem_exit().

Referenced by get_mem5Dquant().

Here is the call graph for this function:

int get_mem4Dshort ( short *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

Allocate 4D memory short array -> short array3D[dim0][dim1][dim2][dim3].

Output:
memory size in bytes

Definition at line 1382 of file memalloc.c.

References get_mem3Dshort(), and no_mem_exit().

Referenced by alloc_motion_params(), and get_mem5Dshort().

Here is the call graph for this function:

int get_mem5Dint ( int ******  array5D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4 
)

Allocate 5D memory array -> int array5D[dim0][dim1][dim2][dim3][dim4].

Output:
memory size in bytes

Definition at line 1028 of file memalloc.c.

References get_mem4Dint(), and no_mem_exit().

Here is the call graph for this function:

int get_mem5Dmv ( MotionVector ******  array5D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4 
)

Allocate 5D memory array -> MotionVector array3D[dim0][dim1][dim2][dim3][dim4].

Output:
memory size in bytes

Definition at line 514 of file memalloc.c.

References get_mem4Dmv(), and no_mem_exit().

Here is the call graph for this function:

int get_mem5Dpel ( imgpel ******  array5D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4 
)

Allocate 5D memory array -> imgpel array5D[dim0][dim1][dim2][dim3][dim4].

Output:
memory size in bytes

Definition at line 710 of file memalloc.c.

References get_mem4Dpel(), and no_mem_exit().

Here is the call graph for this function:

int get_mem5Dquant ( LevelQuantParams ******  array5D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4 
)

Allocate 5D memory array -> LevelQuantParams array3D[dim0][dim1][dim2][dim3][dim4].

Output:
memory size in bytes

Definition at line 331 of file memalloc.c.

References get_mem4Dquant(), and no_mem_exit().

Here is the call graph for this function:

int get_mem5Dshort ( short ******  array5D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4 
)

Allocate 5D memory array -> short array5D[dim0][dim1][dim2][dim3][dim4].

Output:
memory size in bytes

Definition at line 1406 of file memalloc.c.

References get_mem4Dshort(), and no_mem_exit().

Referenced by get_mem6Dshort().

Here is the call graph for this function:

int get_mem6Dshort ( short *******  array6D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4,
int  dim5 
)

Allocate 6D memory array -> short array6D[dim0][dim1][dim2][dim3][dim4][dim5].

Output:
memory size in bytes

Definition at line 1430 of file memalloc.c.

References get_mem5Dshort(), and no_mem_exit().

Referenced by get_mem7Dshort().

Here is the call graph for this function:

int get_mem7Dshort ( short ********  array7D,
int  dim0,
int  dim1,
int  dim2,
int  dim3,
int  dim4,
int  dim5,
int  dim6 
)

Allocate 7D memory array -> short array7D[dim0][dim1][dim2][dim3][dim4][dim5][dim6].

Output:
memory size in bytes

Definition at line 1454 of file memalloc.c.

References get_mem6Dshort(), and no_mem_exit().

Here is the call graph for this function:

int get_offset_mem2Dshort ( short ***  array2D,
int  dim0,
int  dim1,
int  offset_y,
int  offset_x 
)

Allocate 2D memory array -> int array2D[dim0][dim1] Note that array is shifted towards offset allowing negative values.

Output:
memory size in bytes

Definition at line 1750 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

int init_top_bot_planes ( imgpel **  imgFrame,
int  dim0,
imgpel ***  imgTopField,
imgpel ***  imgBotField 
)

Initialize 2-dimensional top and bottom field to point to the proper lines in frame.

Output:
memory size in bytes

Definition at line 30 of file memalloc.c.

References no_mem_exit().

Here is the call graph for this function:

void no_mem_exit ( char *  where  ) 

Exit program if memory allocation failed (using error()).

Parameters:
where string indicating which memory allocation failed

Definition at line 1243 of file memalloc.c.

References error(), errortext, and ET_SIZE.

Referenced by alloc_colocated(), alloc_decoder(), alloc_frame_store(), alloc_img(), alloc_params(), alloc_ref_pic_list_reordering_buffer(), alloc_storable_picture(), AllocateFrameMemory(), AllocNALU(), AllocPPS(), AllocSPS(), arideco_create_decoding_environment(), copy_dec_picture_JV(), create_contexts_MotionInfo(), create_contexts_TextureInfo(), ercConcealInterFrame(), ercInit(), ercOpen(), ercReset(), find_snr(), get_mem1Dpel(), get_mem2D(), get_mem2Ddist(), get_mem2Ddouble(), get_mem2Dint(), get_mem2Dint64(), get_mem2Dlm(), get_mem2Dmp(), get_mem2Dmv(), get_mem2Dodouble(), get_mem2Doint(), get_mem2Dolm(), get_mem2Dpel(), get_mem2Dquant(), get_mem2Dshort(), get_mem2Duint16(), get_mem3D(), get_mem3Ddouble(), get_mem3Dint(), get_mem3Dint64(), get_mem3Dmp(), get_mem3Dmv(), get_mem3Dodouble(), get_mem3Doint(), get_mem3Dpel(), get_mem3Dquant(), get_mem3Dshort(), get_mem3Duint16(), get_mem4D(), get_mem4Dint(), get_mem4Dmv(), get_mem4Dpel(), get_mem4Dquant(), get_mem4Dshort(), get_mem4Duint16(), get_mem5Dint(), get_mem5Dmv(), get_mem5Dpel(), get_mem5Dquant(), get_mem5Dshort(), get_mem6Dshort(), get_mem7Dshort(), get_offset_mem2Dshort(), GetAnnexbNALU(), GetRTPNALU(), init_dpb(), init_global_buffers(), init_lists(), init_out_buffer(), init_picture(), init_qp_process(), init_top_bot_planes(), initBitsFile(), InterpretPPS(), and write_out_picture().

Here is the call graph for this function:


Documentation generated with DoxyGen