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, int dim1, imgpel ***imgTopField, imgpel ***imgBotField)
void free_top_bot_planes (imgpel **imgTopField, imgpel **imgBotField)
int get_mem2Dlm (LambdaParams ***array2D, int dim0, int dim1)
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_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_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_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_mem2D ( byte **  array2D  ) 

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

Definition at line 784 of file memalloc.c.

References error().

Referenced by clear_rdopt(), free_global_buffers(), free_mem3D(), free_motion_params(), smpUMHEX_free_mem(), and UMHEX_free_mem().

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 1601 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 808 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 832 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 92 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 163 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 305 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 1627 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 1722 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 1823 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 485 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_mem2Dshort ( short **  array2D  ) 

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

Definition at line 1272 of file memalloc.c.

References error().

Referenced by EPZSDelete(), 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 1209 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 856 of file memalloc.c.

References error(), and free_mem2D().

Referenced by free_global_buffers(), free_mem4D(), free_motion_params(), 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 1774 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 896 of file memalloc.c.

References error(), and free_mem2Dint().

Referenced by clear_rdopt(), EPZSDelete(), free_errdo_mem(), free_global_buffers(), free_img(), free_mem4Dint(), free_mem_DCcoeff(), 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 917 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 188 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 330 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 1650 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 1685 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 510 of file memalloc.c.

References error(), and free_mem2Dpel().

Referenced by clear_rdopt(), free_errdo_mem(), free_global_buffers(), free_img(), free_mem4Dpel(), and free_storable_picture().

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 1295 of file memalloc.c.

References error(), and free_mem2Dshort().

Referenced by free_mem4Dshort(), and free_QOffsets().

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 1232 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 876 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 937 of file memalloc.c.

References error(), and free_mem3Dint().

Referenced by Clear_Motion_Search_Module(), free_global_buffers(), 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 350 of file memalloc.c.

References error(), and free_mem3Dmv().

Referenced by EPZSDelete(), and 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 529 of file memalloc.c.

References error(), and free_mem3Dpel().

Referenced by free_errdo_mem(), free_img(), free_mem5Dpel(), free_storable_picture(), and unmark_for_reference().

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 1315 of file memalloc.c.

References error(), and free_mem3Dshort().

Referenced by free_mem5Dshort(), and free_motion_params().

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 1252 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 956 of file memalloc.c.

References error(), and free_mem4Dint().

Referenced by free_mem_ACcoeff_new(), free_QMatrix(), and free_QOffsets().

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 370 of file memalloc.c.

References error(), and free_mem4Dmv().

Referenced by EPZSDelete().

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 548 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_mem5Dshort ( short *****  array5D  ) 

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

Definition at line 1335 of file memalloc.c.

References error(), and free_mem4Dshort().

Referenced by clear_rdopt(), free_img(), 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 1355 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 1375 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 1748 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 56 of file memalloc.c.

Referenced by free_orig_planes().

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 569 of file memalloc.c.

References no_mem_exit().

Referenced by alloc_motion_params(), get_mem3D(), init_global_buffers(), init_img(), init_rdopt(), smpUMHEX_get_mem(), and UMHEX_get_mem().

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 1397 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 593 of file memalloc.c.

References no_mem_exit().

Referenced by 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 617 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 70 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 117 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 211 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 1423 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 1547 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 1798 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 391 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_mem2Dshort ( short ***  array2D,
int  dim0,
int  dim1 
)

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

Output:
memory size in bytes

Definition at line 1066 of file memalloc.c.

References no_mem_exit().

Referenced by allocate_QOffsets(), EPZSInit(), and get_mem3Dshort().

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 992 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 641 of file memalloc.c.

References get_mem2D(), and no_mem_exit().

Referenced by alloc_motion_params(), alloc_storable_picture(), get_mem4D(), and init_global_buffers().

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 1575 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 689 of file memalloc.c.

References get_mem2Dint(), and no_mem_exit().

Referenced by alloc_img(), allocate_errdo_mem(), EPZSInit(), get_mem4Dint(), get_mem_DCcoeff(), init_global_buffers(), init_img(), init_rdopt(), 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 713 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 141 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 235 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 1449 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 1514 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 416 of file memalloc.c.

References get_mem2Dpel(), and no_mem_exit().

Referenced by alloc_img(), alloc_storable_picture(), allocate_errdo_mem(), get_mem4Dpel(), init_global_buffers(), and init_rdopt().

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 1090 of file memalloc.c.

References get_mem2Dshort(), and no_mem_exit().

Referenced by allocate_QOffsets(), and 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 1017 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 665 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 737 of file memalloc.c.

References get_mem3Dint(), and no_mem_exit().

Referenced by get_mem5Dint(), get_mem_ACcoeff(), init_global_buffers(), 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 259 of file memalloc.c.

References get_mem3Dmv(), and no_mem_exit().

Referenced by EPZSInit(), and 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 439 of file memalloc.c.

References get_mem3Dpel(), and no_mem_exit().

Referenced by alloc_img(), alloc_storable_picture(), allocate_errdo_mem(), get_mem5Dpel(), UnifiedOneForthPix(), and UnifiedOneForthPix_JV().

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 1115 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_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 1042 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 761 of file memalloc.c.

References get_mem4Dint(), and no_mem_exit().

Referenced by allocate_QMatrix(), allocate_QOffsets(), and 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 283 of file memalloc.c.

References get_mem4Dmv(), and no_mem_exit().

Referenced by EPZSInit().

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 463 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_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 1139 of file memalloc.c.

References get_mem4Dshort(), and no_mem_exit().

Referenced by get_mem6Dshort(), init_img(), 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 1163 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 1187 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 1483 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,
int  dim1,
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 29 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 976 of file memalloc.c.

References error(), errortext, and ET_SIZE.

Referenced by alloc_colocated(), alloc_frame_store(), alloc_img(), 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_mem2D(), get_mem2Ddouble(), get_mem2Dint(), get_mem2Dint64(), get_mem2Dlm(), get_mem2Dmp(), get_mem2Dmv(), get_mem2Dodouble(), get_mem2Doint(), get_mem2Dolm(), get_mem2Dpel(), get_mem2Dshort(), get_mem2Duint16(), get_mem3D(), get_mem3Ddouble(), get_mem3Dint(), get_mem3Dint64(), get_mem3Dmp(), get_mem3Dmv(), get_mem3Dodouble(), get_mem3Doint(), get_mem3Dpel(), get_mem3Dshort(), get_mem3Duint16(), get_mem4D(), get_mem4Dint(), get_mem4Dmv(), get_mem4Dpel(), get_mem4Dshort(), get_mem4Duint16(), get_mem5Dint(), get_mem5Dmv(), get_mem5Dpel(), 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_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