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

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

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

Referenced by free_global_buffers().

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

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

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

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

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

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

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_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_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_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.

Here is the call graph for this function:


Documentation generated with DoxyGen