#include "global.h"
#include "memalloc.h"
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) |
Definition in file memalloc.c.
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().
void free_mem2D | ( | byte ** | array2D | ) |
free 2D memory array which was allocated with get_mem2D()
Definition at line 1051 of file memalloc.c.
References error().
Referenced by free_colocated(), free_global_buffers(), and free_mem3D().
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().
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().
void free_mem2Dint | ( | int ** | array2D | ) |
free 2D memory array which was allocated with get_mem2Dint()
Definition at line 1075 of file memalloc.c.
References error().
Referenced by free_global_buffers(), free_mem3Dint(), itrans_2(), and itrans_sp().
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().
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().
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().
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().
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().
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().
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().
void free_mem2Dpel | ( | imgpel ** | array2D | ) |
free 2D memory array which was allocated with get_mem2Dpel()
Definition at line 752 of file memalloc.c.
References error().
Referenced by buildPredblockRegionYUV(), buildPredRegionYUV(), free_global_buffers(), free_mem3Dpel(), free_storable_picture(), and interpret_spare_pic().
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().
void free_mem2Dshort | ( | short ** | array2D | ) |
free 2D short memory array which was allocated with get_mem2Dshort()
Definition at line 1539 of file memalloc.c.
References error().
Referenced by free_mem3Dshort(), and free_storable_picture().
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().
void free_mem3D | ( | byte *** | array3D | ) |
free 3D memory array which was allocated with get_mem3D()
Definition at line 1123 of file memalloc.c.
References error(), and free_mem2D().
Referenced by free_colocated(), free_mem4D(), and interpret_spare_pic().
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().
void free_mem3Dint | ( | int *** | array3D | ) |
free 3D memory array which was allocated with get_mem3Dint()
Definition at line 1163 of file memalloc.c.
References error(), and free_mem2Dint().
Referenced by free_mem4Dint(), free_slice(), and interpret_post_filter_hints_info().
void free_mem3Dint64 | ( | int64 *** | array3D | ) |
free 3D memory array which was allocated with get_mem3Dint64()
Definition at line 1184 of file memalloc.c.
References error(), and free_mem2Dint64().
Referenced by free_colocated().
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().
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().
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().
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().
void free_mem3Dpel | ( | imgpel *** | array3D | ) |
free 3D memory array which was allocated with get_mem3Dpel()
Definition at line 777 of file memalloc.c.
References error(), and free_mem2Dpel().
Referenced by free_global_buffers(), free_mem4Dpel(), free_slice(), free_storable_picture(), and write_out_picture().
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().
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().
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().
void free_mem4D | ( | byte **** | array4D | ) |
free 4D memory array which was allocated with get_mem3D()
Definition at line 1143 of file memalloc.c.
References error(), and free_mem3D().
Referenced by free_global_buffers().
void free_mem4Dint | ( | int **** | array4D | ) |
free 4D memory array which was allocated with get_mem4Dint()
Definition at line 1204 of file memalloc.c.
References error(), and free_mem3Dint().
Referenced by free_mem5Dint(), and free_slice().
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 free_mem5Dmv().
void free_mem4Dpel | ( | imgpel **** | array4D | ) |
free 4D memory array which was allocated with get_mem4Dpel()
Definition at line 796 of file memalloc.c.
References error(), and free_mem3Dpel().
Referenced by free_mem5Dpel().
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().
void free_mem4Dshort | ( | short **** | array4D | ) |
free 4D short memory array which was allocated with get_mem4Dshort()
Definition at line 1582 of file memalloc.c.
References error(), and free_mem3Dshort().
Referenced by free_colocated(), and free_mem5Dshort().
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().
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().
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().
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().
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().
void free_mem5Dshort | ( | short ***** | array5D | ) |
free 5D short memory array which was allocated with get_mem5Dshort()
Definition at line 1602 of file memalloc.c.
References error(), and free_mem4Dshort().
Referenced by free_mem6Dshort().
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().
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().
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().
void free_top_bot_planes | ( | imgpel ** | imgTopField, | |
imgpel ** | imgBotField | |||
) |
free 2-dimensional top and bottom fields without freeing target memory
Definition at line 57 of file memalloc.c.
int get_mem1Dpel | ( | imgpel ** | array1D, | |
int | dim0 | |||
) |
Allocate 1D memory array -> imgpel array1D[dim0.
Definition at line 622 of file memalloc.c.
References no_mem_exit().
int get_mem2D | ( | byte *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> unsigned char array2D[dim0][dim1].
Definition at line 836 of file memalloc.c.
References no_mem_exit().
Referenced by alloc_motion_params(), get_mem3D(), and init_global_buffers().
int get_mem2Ddist | ( | DistortionData *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> DistortionData array2D[dim0][dim1].
Definition at line 71 of file memalloc.c.
References no_mem_exit().
int get_mem2Ddouble | ( | double *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> double array2D[dim0][dim1].
Definition at line 1664 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Ddouble().
int get_mem2Dint | ( | int *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> int array2D[dim0][dim1].
Definition at line 860 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dint(), init_global_buffers(), itrans_2(), and itrans_sp().
int get_mem2Dint64 | ( | int64 *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> int64 array2D[dim0][dim1].
Definition at line 884 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dint64().
int get_mem2Dlm | ( | LambdaParams *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> LambdaParams array2D[dim0][dim1].
Definition at line 94 of file memalloc.c.
References no_mem_exit().
int get_mem2Dmp | ( | PicMotionParams2 *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> PicMotionParams2 array2D[dim0][dim1].
Definition at line 165 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dmp().
int get_mem2Dmv | ( | MotionVector *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> MotionVector array2D[dim0][dim1].
Definition at line 442 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dmv().
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.
Definition at line 1690 of file memalloc.c.
References no_mem_exit().
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.
Definition at line 1814 of file memalloc.c.
References no_mem_exit().
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.
Definition at line 2065 of file memalloc.c.
References no_mem_exit().
int get_mem2Dpel | ( | imgpel *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> imgpel array2D[dim0][dim1].
Definition at line 638 of file memalloc.c.
References no_mem_exit().
Referenced by alloc_storable_picture(), buildPredblockRegionYUV(), buildPredRegionYUV(), get_mem3Dpel(), init_global_buffers(), and interpret_spare_pic().
int get_mem2Dquant | ( | LevelQuantParams *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D memory array -> LevelQuantParams array2D[dim0][dim1].
Definition at line 259 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dquant().
int get_mem2Dshort | ( | short *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D short memory array -> short array2D[dim0][dim1].
Definition at line 1333 of file memalloc.c.
References no_mem_exit().
Referenced by alloc_storable_picture(), and get_mem3Dshort().
int get_mem2Duint16 | ( | uint16 *** | array2D, | |
int | dim0, | |||
int | dim1 | |||
) |
Allocate 2D uint16 memory array -> uint16 array2D[dim0][dim1].
Definition at line 1259 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Duint16().
int get_mem3D | ( | byte **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> unsigned char array3D[dim0][dim1][dim2].
Definition at line 908 of file memalloc.c.
References get_mem2D(), and no_mem_exit().
Referenced by alloc_motion_params(), get_mem4D(), and interpret_spare_pic().
int get_mem3Ddouble | ( | double **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> int array3D[dim0][dim1][dim2].
Definition at line 1842 of file memalloc.c.
References get_mem2Ddouble(), and no_mem_exit().
int get_mem3Dint | ( | int **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> int array3D[dim0][dim1][dim2].
Definition at line 956 of file memalloc.c.
References get_mem2Dint(), and no_mem_exit().
Referenced by get_mem4Dint(), interpret_post_filter_hints_info(), and malloc_slice().
int get_mem3Dint64 | ( | int64 **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> int64 array3D[dim0][dim1][dim2].
Definition at line 980 of file memalloc.c.
References get_mem2Dint64(), and no_mem_exit().
Referenced by alloc_motion_params().
int get_mem3Dmp | ( | PicMotionParams2 **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> PicMotionParams2 array3D[frames][dim0][dim1].
Definition at line 189 of file memalloc.c.
References get_mem2Dmp(), and no_mem_exit().
int get_mem3Dmv | ( | MotionVector **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> MotionVector array3D[dim0][dim1][dim2].
Definition at line 466 of file memalloc.c.
References get_mem2Dmv(), and no_mem_exit().
Referenced by get_mem4Dmv().
int get_mem3Dodouble | ( | double **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | offset | |||
) |
Allocate 3D memory double array -> double array3D[dim0][dim1][dim2].
Definition at line 1716 of file memalloc.c.
References no_mem_exit().
int get_mem3Doint | ( | int **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | offset | |||
) |
Allocate 3D memory int array -> int array3D[dim0][dim1][dim2].
Definition at line 1781 of file memalloc.c.
References no_mem_exit().
int get_mem3Dpel | ( | imgpel **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> imgpel array3D[dim0][dim1][dim2].
Definition at line 663 of file memalloc.c.
References get_mem2Dpel(), and no_mem_exit().
Referenced by alloc_storable_picture(), get_mem4Dpel(), init_global_buffers(), malloc_slice(), and write_out_picture().
int get_mem3Dquant | ( | LevelQuantParams **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory array -> LevelQuantParams array3D[dim0][dim1][dim2].
Definition at line 283 of file memalloc.c.
References get_mem2Dquant(), and no_mem_exit().
Referenced by get_mem4Dquant().
int get_mem3Dshort | ( | short **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory short array -> short array3D[dim0][dim1][dim2].
Definition at line 1357 of file memalloc.c.
References get_mem2Dshort(), and no_mem_exit().
Referenced by get_mem4Dshort().
int get_mem3Duint16 | ( | uint16 **** | array3D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2 | |||
) |
Allocate 3D memory uint16 array -> uint16 array3D[dim0][dim1][dim2].
Definition at line 1284 of file memalloc.c.
References get_mem2Duint16(), and no_mem_exit().
Referenced by get_mem4Duint16().
int get_mem4D | ( | byte ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory array -> unsigned char array4D[dim0][dim1][dim2][dim3].
Definition at line 932 of file memalloc.c.
References get_mem3D(), and no_mem_exit().
Referenced by init_global_buffers().
int get_mem4Dint | ( | int ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory array -> int array4D[dim0][dim1][dim2][dim3].
Definition at line 1004 of file memalloc.c.
References get_mem3Dint(), and no_mem_exit().
Referenced by get_mem5Dint(), and malloc_slice().
int get_mem4Dmv | ( | MotionVector ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory array -> MotionVector array3D[dim0][dim1][dim2][dim3].
Definition at line 490 of file memalloc.c.
References get_mem3Dmv(), and no_mem_exit().
Referenced by get_mem5Dmv().
int get_mem4Dpel | ( | imgpel ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory array -> imgpel array4D[dim0][dim1][dim2][dim3].
Definition at line 686 of file memalloc.c.
References get_mem3Dpel(), and no_mem_exit().
Referenced by get_mem5Dpel().
int get_mem4Dquant | ( | LevelQuantParams ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory array -> LevelQuantParams array3D[dim0][dim1][dim2][dim3].
Definition at line 307 of file memalloc.c.
References get_mem3Dquant(), and no_mem_exit().
Referenced by get_mem5Dquant().
int get_mem4Dshort | ( | short ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory short array -> short array3D[dim0][dim1][dim2][dim3].
Definition at line 1382 of file memalloc.c.
References get_mem3Dshort(), and no_mem_exit().
Referenced by alloc_motion_params(), and get_mem5Dshort().
int get_mem4Duint16 | ( | uint16 ***** | array4D, | |
int | dim0, | |||
int | dim1, | |||
int | dim2, | |||
int | dim3 | |||
) |
Allocate 4D memory uint16 array -> uint16 array3D[dim0][dim1][dim2][dim3].
Definition at line 1309 of file memalloc.c.
References get_mem3Duint16(), and no_mem_exit().
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].
Definition at line 1028 of file memalloc.c.
References get_mem4Dint(), and no_mem_exit().
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].
Definition at line 514 of file memalloc.c.
References get_mem4Dmv(), and no_mem_exit().
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].
Definition at line 710 of file memalloc.c.
References get_mem4Dpel(), and no_mem_exit().
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].
Definition at line 331 of file memalloc.c.
References get_mem4Dquant(), and no_mem_exit().
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].
Definition at line 1406 of file memalloc.c.
References get_mem4Dshort(), and no_mem_exit().
Referenced by get_mem6Dshort().
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].
Definition at line 1430 of file memalloc.c.
References get_mem5Dshort(), and no_mem_exit().
Referenced by get_mem7Dshort().
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].
Definition at line 1454 of file memalloc.c.
References get_mem6Dshort(), and no_mem_exit().
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.
Definition at line 1750 of file memalloc.c.
References no_mem_exit().
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.
Definition at line 30 of file memalloc.c.
References no_mem_exit().
void no_mem_exit | ( | char * | where | ) |
Exit program if memory allocation failed (using error()).
where | string indicating which memory allocation failed |
Definition at line 1243 of file memalloc.c.
References error(), errortext, and ET_SIZE.
Referenced by alloc_colocated(), alloc_decoder(), alloc_frame_store(), alloc_img(), alloc_params(), alloc_ref_pic_list_reordering_buffer(), alloc_storable_picture(), AllocateFrameMemory(), AllocNALU(), AllocPPS(), AllocSPS(), arideco_create_decoding_environment(), copy_dec_picture_JV(), create_contexts_MotionInfo(), create_contexts_TextureInfo(), ercConcealInterFrame(), ercInit(), ercOpen(), ercReset(), find_snr(), get_mem1Dpel(), get_mem2D(), get_mem2Ddist(), get_mem2Ddouble(), get_mem2Dint(), get_mem2Dint64(), get_mem2Dlm(), get_mem2Dmp(), get_mem2Dmv(), get_mem2Dodouble(), get_mem2Doint(), get_mem2Dolm(), get_mem2Dpel(), get_mem2Dquant(), get_mem2Dshort(), get_mem2Duint16(), get_mem3D(), get_mem3Ddouble(), get_mem3Dint(), get_mem3Dint64(), get_mem3Dmp(), get_mem3Dmv(), get_mem3Dodouble(), get_mem3Doint(), get_mem3Dpel(), get_mem3Dquant(), get_mem3Dshort(), get_mem3Duint16(), get_mem4D(), get_mem4Dint(), get_mem4Dmv(), get_mem4Dpel(), get_mem4Dquant(), get_mem4Dshort(), get_mem4Duint16(), get_mem5Dint(), get_mem5Dmv(), get_mem5Dpel(), get_mem5Dquant(), get_mem5Dshort(), get_mem6Dshort(), get_mem7Dshort(), get_offset_mem2Dshort(), GetAnnexbNALU(), GetRTPNALU(), init_dpb(), init_global_buffers(), init_lists(), init_out_buffer(), init_picture(), init_qp_process(), init_top_bot_planes(), initBitsFile(), InterpretPPS(), and write_out_picture().