memalloc.c File Reference

Memory allocation and free helper functions. More...

#include "global.h"
#include "memalloc.h"

Include dependency graph for memalloc.c:

Go to the source code of this file.

Functions

int init_top_bot_planes (imgpel **imgFrame, int dim0, imgpel ***imgTopField, imgpel ***imgBotField)
void free_top_bot_planes (imgpel **imgTopField, imgpel **imgBotField)
int get_mem2Ddist (DistortionData ***array2D, int dim0, int dim1)
int get_mem2Dlm (LambdaParams ***array2D, int dim0, int dim1)
void free_mem2Ddist (DistortionData **array2D)
void free_mem2Dlm (LambdaParams **array2D)
int get_mem2Dmp (PicMotionParams2 ***array2D, int dim0, int dim1)
int get_mem3Dmp (PicMotionParams2 ****array3D, int dim0, int dim1, int dim2)
void free_mem2Dmp (PicMotionParams2 **array2D)
void free_mem3Dmp (PicMotionParams2 ***array3D)
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)
void free_mem2Dquant (LevelQuantParams **array2D)
void free_mem3Dquant (LevelQuantParams ***array3D)
void free_mem4Dquant (LevelQuantParams ****array4D)
void free_mem5Dquant (LevelQuantParams *****array5D)
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)
void free_mem2Dmv (MotionVector **array2D)
void free_mem3Dmv (MotionVector ***array3D)
void free_mem4Dmv (MotionVector ****array4D)
void free_mem5Dmv (MotionVector *****array5D)
int get_mem1Dpel (imgpel **array1D, int dim0)
int get_mem2Dpel (imgpel ***array2D, int dim0, int dim1)
int get_mem3Dpel (imgpel ****array3D, int dim0, int dim1, int dim2)
int get_mem4Dpel (imgpel *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem5Dpel (imgpel ******array5D, int dim0, int dim1, int dim2, int dim3, int dim4)
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)
int get_mem2D (byte ***array2D, int dim0, int dim1)
int get_mem2Dint (int ***array2D, int dim0, int dim1)
int get_mem2Dint64 (int64 ***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_mem3Dint (int ****array3D, int dim0, int dim1, int dim2)
int get_mem3Dint64 (int64 ****array3D, int dim0, int dim1, int dim2)
int get_mem4Dint (int *****array4D, int dim0, int dim1, int dim2, int dim3)
int get_mem5Dint (int ******array5D, int dim0, int dim1, int dim2, int dim3, int dim4)
void free_mem2D (byte **array2D)
void free_mem2Dint (int **array2D)
void free_mem2Dint64 (int64 **array2D)
void free_mem3D (byte ***array3D)
void free_mem4D (byte ****array4D)
void free_mem3Dint (int ***array3D)
void free_mem3Dint64 (int64 ***array3D)
void free_mem4Dint (int ****array4D)
void free_mem5Dint (int *****array5D)
void no_mem_exit (char *where)
int get_mem2Duint16 (uint16 ***array2D, int dim0, int dim1)
int get_mem3Duint16 (uint16 ****array3D, int dim0, int dim1, int dim2)
int get_mem4Duint16 (uint16 *****array4D, int dim0, int dim1, int dim2, int dim3)
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)
void free_mem2Duint16 (uint16 **array2D)
void free_mem3Duint16 (uint16 ***array3D)
void free_mem4Duint16 (uint16 ****array4D)
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)
int get_mem2Ddouble (double ***array2D, int dim0, int dim1)
int get_mem2Dodouble (double ***array2D, int dim0, int dim1, int offset)
int get_mem3Dodouble (double ****array3D, int dim0, int dim1, int dim2, int offset)
int get_offset_mem2Dshort (short ***array2D, int dim0, int dim1, int offset_y, int offset_x)
int get_mem3Doint (int ****array3D, int dim0, int dim1, int dim2, int offset)
int get_mem2Doint (int ***array2D, int dim0, int dim1, int offset)
int get_mem3Ddouble (double ****array3D, int dim0, int dim1, int dim2)
void free_mem2Ddouble (double **array2D)
void free_mem2Dodouble (double **array2D, int offset)
void free_mem3Dodouble (double ***array3D, int dim0, int dim1, int offset)
void free_mem3Doint (int ***array3D, int dim0, int dim1, int offset)
void free_mem2Doint (int **array2D, int offset)
void free_offset_mem2Dshort (short **array2D, int dim1, int offset_y, int offset_x)
void free_mem3Ddouble (double ***array3D)
int get_mem2Dolm (LambdaParams ***array2D, int dim0, int dim1, int offset)
void free_mem2Dolm (LambdaParams **array2D, int offset)


Detailed Description

Memory allocation and free helper functions.

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

Definition in file memalloc.c.


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().

Referenced by free_mv_block().

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 clear_rdopt(), free_global_buffers(), free_mem3D(), free_motion_params(), free_slice(), smpUMHEX_free_mem(), and UMHEX_free_mem().

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 clear_rdopt(), free_global_buffers(), free_mem3Dint(), and UMHEX_free_mem().

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().

Referenced by free_global_buffers().

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().

Referenced by free_global_buffers().

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 clear_rdopt(), free_global_buffers(), free_mem3Dpel(), free_orig_planes(), and free_storable_picture().

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 EPZSStructDelete(), free_global_buffers(), free_mem3Dshort(), and free_QOffsets().

Here is the call graph for this function:

void free_mem2Duint16 ( uint16 **  array2D  ) 

free 2D uint16 memory array which was allocated with get_mem2Duint16()

Definition at line 1476 of file memalloc.c.

References error().

Referenced by free_mem3Duint16().

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_mem4D(), free_motion_params(), free_slice(), and free_storable_picture().

Here is the call graph for this function:

void free_mem3Ddouble ( double ***  array3D  ) 

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

Definition at line 2041 of file memalloc.c.

References error(), and free_mem2Ddouble().

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 clear_rdopt(), EPZSStructDelete(), free_errdo_mem(), free_global_buffers(), free_mem4Dint(), free_mem_DCcoeff(), free_slice(), smpUMHEX_free_mem(), and UMHEX_free_mem().

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_motion_params().

Here is the call graph for this function:

void free_mem3Dmp ( PicMotionParams2 ***  array3D  ) 

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 ***  array3D  ) 

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(), and freeEPZScolocated().

Here is the call graph for this function:

void free_mem3Dodouble ( double ***  array3D,
int  dim0,
int  dim1,
int  offset 
)

free 3D memory array with offset

Definition at line 1917 of file memalloc.c.

References error().

Referenced by free_global_buffers().

Here is the call graph for this function:

void free_mem3Doint ( int ***  array3D,
int  dim0,
int  dim1,
int  offset 
)

free 3D memory array with offset

Definition at line 1952 of file memalloc.c.

References error().

Referenced by free_global_buffers().

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 clear_rdopt(), encode_one_macroblock_low(), free_errdo_mem(), free_global_buffers(), free_mem4Dpel(), free_slice(), and free_storable_picture().

Here is the call graph for this function:

void free_mem3Dquant ( LevelQuantParams ***  array3D  ) 

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(), free_QOffsets(), and free_slice().

Here is the call graph for this function:

void free_mem3Duint16 ( uint16 ***  array3D  ) 

free 3D uint16 memory array which was allocated with get_mem3Duint16()

Definition at line 1499 of file memalloc.c.

References error(), and free_mem2Duint16().

Referenced by free_mem4Duint16().

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().

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 Clear_Motion_Search_Module(), free_img(), free_mem5Dint(), free_mem_ACcoeff(), and UMHEX_free_mem().

Here is the call graph for this function:

void free_mem4Dmv ( MotionVector ****  array4D  ) 

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 EPZSStructDelete(), free_mem5Dmv(), and free_slice().

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_errdo_mem(), free_mem5Dpel(), free_slice(), free_storable_picture(), and unmark_for_reference().

Here is the call graph for this function:

void free_mem4Dquant ( LevelQuantParams ****  array4D  ) 

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_mem5Dshort(), free_motion_params(), and free_slice().

Here is the call graph for this function:

void free_mem4Duint16 ( uint16 ****  array4D  ) 

free 4D uint16 memory array which was allocated with get_mem4Duint16()

Definition at line 1519 of file memalloc.c.

References error(), and free_mem3Duint16().

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().

Referenced by free_mem_ACcoeff_new().

Here is the call graph for this function:

void free_mem5Dmv ( MotionVector *****  array5D  ) 

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

Definition at line 601 of file memalloc.c.

References error(), and free_mem4Dmv().

Referenced by EPZSStructDelete().

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().

Referenced by free_storable_picture(), and unmark_for_reference().

Here is the call graph for this function:

void free_mem5Dquant ( LevelQuantParams *****  array5D  ) 

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

Definition at line 418 of file memalloc.c.

References error(), and free_mem4Dquant().

Referenced by free_QMatrix().

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 clear_rdopt(), and 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(), and free_mem_mv().

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().

Referenced by free_mem_bipred_mv().

Here is the call graph for this function:

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

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.

Referenced by free_orig_planes().

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().

Referenced by init_mv_block().

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(), init_global_buffers(), init_img(), init_rdopt(), init_slice(), smpUMHEX_get_mem(), and UMHEX_get_mem().

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 allocate_block_mem(), get_mem3Dint(), init_global_buffers(), init_rdopt(), and UMHEX_get_mem().

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().

Referenced by init_img().

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().

Referenced by init_img().

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(), get_mem3Dpel(), init_global_buffers(), init_orig_buffers(), and init_rdopt().

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 allocate_QOffsets(), EPZSStructInit(), get_mem3Dshort(), and init_global_buffers().

Here is the call graph for this function:

int get_mem2Duint16 ( uint16 ***  array2D,
int  dim0,
int  dim1 
)

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

Output:
memory size in bytes

Definition at line 1259 of file memalloc.c.

References no_mem_exit().

Referenced by get_mem3Duint16().

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(), alloc_storable_picture(), get_mem4D(), and init_slice().

Here is the call graph for this function:

int get_mem3Ddouble ( double ****  array3D,
int  dim0,
int  dim1,
int  dim2 
)

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

Output:
memory size in bytes

Definition at line 1842 of file memalloc.c.

References get_mem2Ddouble(), and no_mem_exit().

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 allocate_errdo_mem(), EPZSStructInit(), get_mem4Dint(), get_mem_DCcoeff(), init_global_buffers(), init_img(), init_rdopt(), init_slice(), smpUMHEX_get_mem(), and UMHEX_get_mem().

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 allocEPZScolocated(), and 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().

Referenced by init_img().

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().

Referenced by init_img().

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(), allocate_errdo_mem(), encode_one_macroblock_low(), get_mem4Dpel(), init_global_buffers(), init_rdopt(), and init_slice().

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 allocate_QOffsets(), get_mem4Dshort(), and malloc_slice().

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().

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 allocate_block_mem(), get_mem5Dint(), get_mem_ACcoeff(), init_img(), Init_Motion_Search_Module(), and UMHEX_get_mem().

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 EPZSStructInit(), get_mem5Dmv(), and init_slice().

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 alloc_storable_picture(), allocate_errdo_mem(), get_mem5Dpel(), init_slice(), UnifiedOneForthPix(), and UnifiedOneForthPix_JV().

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(), get_mem5Dshort(), and malloc_slice().

Here is the call graph for this function:

int get_mem4Duint16 ( uint16 *****  array4D,
int  dim0,
int  dim1,
int  dim2,
int  dim3 
)

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

Output:
memory size in bytes

Definition at line 1309 of file memalloc.c.

References get_mem3Duint16(), and no_mem_exit().

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().

Referenced by get_mem_ACcoeff_new().

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().

Referenced by EPZSStructInit().

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().

Referenced by UnifiedOneForthPix(), and UnifiedOneForthPix_JV().

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().

Referenced by allocate_QMatrix().

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(), and init_rdopt().

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(), and get_mem_mv().

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().

Referenced by get_mem_bipred_mv().

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().

Referenced by init_orig_buffers().

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_encoder(), alloc_frame_store(), alloc_img(), alloc_params(), alloc_ref_pic_list_reordering_buffer(), alloc_storable_picture(), allocate_QMatrix(), AllocateFrameMemory(), allocEPZScolocated(), allocEPZSpattern(), AllocNALU(), AllocPPS(), AllocSPS(), arienco_create_encoding_environment(), Configure(), create_coding_state(), create_contexts_MotionInfo(), create_contexts_TextureInfo(), create_hierarchy(), FinalizeSpareMBMap(), GeneratePic_parameter_set_rbsp(), GeneratePictureParameterSet(), GenerateSEImessage_rbsp(), GenerateSeq_parameter_set_rbsp(), 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(), GetConfigFileContent(), init_dpb(), init_global_buffers(), init_gop_structure(), init_img(), init_lists(), Init_Motion_Search_Module(), init_mv_block(), init_rdopt(), init_slice(), init_top_bot_planes(), InitializeFastFullIntegerSearch(), InitSparePicture(), InitSubseqInfo(), malloc_picture(), malloc_slice(), poc_based_ref_management_field_pic(), poc_based_ref_management_frame_pic(), RandomIntraInit(), rc_alloc_generic(), rc_alloc_quadratic(), read_slice_group_info(), smpUMHEX_get_mem(), UMHEX_get_mem(), UnifiedOneForthPix(), UnifiedOneForthPix_JV(), wpxInitWPXObject(), write_out_picture(), and WriteRTPNALU().

Here is the call graph for this function:


Documentation generated with DoxyGen