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

Go to the source code of this file.
Functions | |
| 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_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_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) |
Definition in file memalloc.c.
| void free_mem2D | ( | byte ** | array2D | ) |
free 2D memory array which was allocated with get_mem2D()
Definition at line 422 of file memalloc.c.
References error().
Referenced by free_colocated(), free_global_buffers(), and free_mem3D().

| void free_mem2Ddouble | ( | double ** | array2D | ) |
free 2D double memory array which was allocated with get_mem2Ddouble()
Definition at line 1102 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 446 of file memalloc.c.
References error().
Referenced by free_global_buffers(), and free_mem3Dint().

| void free_mem2Dint64 | ( | int64 ** | array2D | ) |
free 2D memory array which was allocated with get_mem2Dint64()
Definition at line 470 of file memalloc.c.
References error().
Referenced by free_mem3Dint64().

| void free_mem2Dodouble | ( | double ** | array2D, | |
| int | offset | |||
| ) |
free 2D double memory array (with offset) which was allocated with get_mem2Ddouble()
Definition at line 1128 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 1223 of file memalloc.c.
References error().

| void free_mem2Dpel | ( | imgpel ** | array2D | ) |
free 2D memory array which was allocated with get_mem2Dpel()
Definition at line 123 of file memalloc.c.
References error().
Referenced by buildPredblockRegionYUV(), buildPredRegionYUV(), free_global_buffers(), free_mem3Dpel(), free_storable_picture(), and interpret_spare_pic().

| void free_mem2Dshort | ( | short ** | array2D | ) |
free 2D short memory array which was allocated with get_mem2Dshort()
Definition at line 773 of file memalloc.c.
References error().
Referenced by free_mem3Dshort(), and free_storable_picture().

| void free_mem3D | ( | byte *** | array3D | ) |
free 3D memory array which was allocated with get_mem3D()
Definition at line 494 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 1275 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 534 of file memalloc.c.
References error(), and free_mem2Dint().
Referenced by free_global_buffers(), free_img(), free_mem4Dint(), and interpret_post_filter_hints_info().

| void free_mem3Dint64 | ( | int64 *** | array3D | ) |
free 3D memory array which was allocated with get_mem3Dint64()
Definition at line 555 of file memalloc.c.
References error(), and free_mem2Dint64().
Referenced by free_colocated().

| void free_mem3Dodouble | ( | double *** | array3D, | |
| int | dim0, | |||
| int | dim1, | |||
| int | offset | |||
| ) |
free 3D memory array with offset
Definition at line 1151 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 1186 of file memalloc.c.
References error().

| void free_mem3Dpel | ( | imgpel *** | array3D | ) |
free 3D memory array which was allocated with get_mem3Dpel()
Definition at line 148 of file memalloc.c.
References error(), and free_mem2Dpel().
Referenced by free_global_buffers(), free_img(), free_mem4Dpel(), free_storable_picture(), and write_out_picture().

| void free_mem3Dshort | ( | short *** | array3D | ) |
free 3D short memory array which was allocated with get_mem3Dshort()
Definition at line 796 of file memalloc.c.
References error(), and free_mem2Dshort().
Referenced by free_mem4Dshort().

| void free_mem4D | ( | byte **** | array4D | ) |
free 4D memory array which was allocated with get_mem3D()
Definition at line 514 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 575 of file memalloc.c.
References error(), and free_mem3Dint().
Referenced by free_global_buffers(), and free_mem5Dint().

| void free_mem4Dpel | ( | imgpel **** | array4D | ) |
free 4D memory array which was allocated with get_mem4Dpel()
Definition at line 167 of file memalloc.c.
References error(), and free_mem3Dpel().
Referenced by free_mem5Dpel().

| void free_mem4Dshort | ( | short **** | array4D | ) |
free 4D short memory array which was allocated with get_mem4Dshort()
Definition at line 816 of file memalloc.c.
References error(), and free_mem3Dshort().
Referenced by free_colocated(), and free_mem5Dshort().

| void free_mem5Dint | ( | int ***** | array5D | ) |
free 5D int memory array which was allocated with get_mem5Dint()
Definition at line 594 of file memalloc.c.
References error(), and free_mem4Dint().

| void free_mem5Dpel | ( | imgpel ***** | array5D | ) |
free 5D memory array which was allocated with get_mem5Dpel()
Definition at line 186 of file memalloc.c.
References error(), and free_mem4Dpel().

| void free_mem5Dshort | ( | short ***** | array5D | ) |
free 5D short memory array which was allocated with get_mem5Dshort()
Definition at line 836 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 856 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 876 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 1249 of file memalloc.c.
References error().

| int get_mem2D | ( | byte *** | array2D, | |
| int | dim0, | |||
| int | dim1 | |||
| ) |
Allocate 2D memory array -> unsigned char array2D[dim0][dim1].
Definition at line 207 of file memalloc.c.
References no_mem_exit().
Referenced by alloc_motion_params(), get_mem3D(), and init_global_buffers().

| int get_mem2Ddouble | ( | double *** | array2D, | |
| int | dim0, | |||
| int | dim1 | |||
| ) |
Allocate 2D memory array -> double array2D[dim0][dim1].
Definition at line 898 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 231 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dint(), and init_global_buffers().

| int get_mem2Dint64 | ( | int64 *** | array2D, | |
| int | dim0, | |||
| int | dim1 | |||
| ) |
Allocate 2D memory array -> int64 array2D[dim0][dim1].
Definition at line 255 of file memalloc.c.
References no_mem_exit().
Referenced by get_mem3Dint64().

| 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 924 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 1048 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 29 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_mem2Dshort | ( | short *** | array2D, | |
| int | dim0, | |||
| int | dim1 | |||
| ) |
Allocate 2D short memory array -> short array2D[rows][columns].
Definition at line 630 of file memalloc.c.
References no_mem_exit().
Referenced by alloc_storable_picture(), and get_mem3Dshort().

| int get_mem3D | ( | byte **** | array3D, | |
| int | dim0, | |||
| int | dim1, | |||
| int | dim2 | |||
| ) |
Allocate 3D memory array -> unsigned char array3D[dim0][dim1][dim2].
Definition at line 279 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 1076 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 327 of file memalloc.c.
References get_mem2Dint(), and no_mem_exit().
Referenced by alloc_img(), get_mem4Dint(), init_global_buffers(), and interpret_post_filter_hints_info().

| int get_mem3Dint64 | ( | int64 **** | array3D, | |
| int | dim0, | |||
| int | dim1, | |||
| int | dim2 | |||
| ) |
Allocate 3D memory array -> int64 array3D[dim0][dim1][dim2].
Definition at line 351 of file memalloc.c.
References get_mem2Dint64(), and no_mem_exit().
Referenced by alloc_motion_params().

| 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 950 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 1015 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 54 of file memalloc.c.
References get_mem2Dpel(), and no_mem_exit().
Referenced by alloc_img(), alloc_storable_picture(), get_mem4Dpel(), init_global_buffers(), and write_out_picture().

| int get_mem3Dshort | ( | short **** | array3D, | |
| int | dim0, | |||
| int | dim1, | |||
| int | dim2 | |||
| ) |
Allocate 3D memory short array -> short array3D[dim0][dim1][dim2].
Definition at line 654 of file memalloc.c.
References get_mem2Dshort(), and no_mem_exit().
Referenced by get_mem4Dshort().

| 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 303 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 375 of file memalloc.c.
References get_mem3Dint(), and no_mem_exit().
Referenced by get_mem5Dint(), and init_global_buffers().

| 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 77 of file memalloc.c.
References get_mem3Dpel(), and no_mem_exit().
Referenced by get_mem5Dpel().

| 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 679 of file memalloc.c.
References get_mem3Dshort(), and no_mem_exit().
Referenced by alloc_motion_params(), and get_mem5Dshort().

| 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 399 of file memalloc.c.
References get_mem4Dint(), 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 101 of file memalloc.c.
References get_mem4Dpel(), 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 703 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 727 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 751 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 984 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 614 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(), AllocNALU(), AllocPPS(), AllocSPS(), arideco_create_decoding_environment(), copy_dec_picture_JV(), create_contexts_MotionInfo(), create_contexts_TextureInfo(), ercConcealInterFrame(), ercInit(), ercOpen(), ercReset(), find_snr(), get_mem2D(), get_mem2Ddouble(), get_mem2Dint(), get_mem2Dint64(), get_mem2Dodouble(), get_mem2Doint(), get_mem2Dpel(), get_mem2Dshort(), get_mem3D(), get_mem3Ddouble(), get_mem3Dint(), get_mem3Dint64(), get_mem3Dodouble(), get_mem3Doint(), get_mem3Dpel(), get_mem3Dshort(), get_mem4D(), get_mem4Dint(), get_mem4Dpel(), get_mem4Dshort(), get_mem5Dint(), get_mem5Dpel(), get_mem5Dshort(), get_mem6Dshort(), get_mem7Dshort(), get_offset_mem2Dshort(), GetRTPNALU(), init_dpb(), init_global_buffers(), init_lists(), init_out_buffer(), init_picture(), init_qp_process(), InterpretPPS(), main(), and write_out_picture().
