Exemplo n.º 1
0
// same change as in get_mem2Dint
int get_mem3Dint64(int64 ****array3D, int frames, int rows, int columns)
{
  int  j;

  if(((*array3D) = (int64***)calloc(frames,sizeof(int64**))) == NULL)
    no_mem_exit("get_mem3Dint64: array3D");

  for(j=0;j<frames;j++)
    get_mem2Dint64( (*array3D)+j, rows, columns ) ;

  return frames*rows*columns*sizeof(int64);
}
Exemplo n.º 2
0
// same change as in get_mem2Dint
int get_mem3Dint64(int64 ****array3D, int frames, int rows, int columns)
{
  int  j;

  if(((*array3D) = (int64***)h264_malloc(frames*sizeof(int64**))) == NULL)
  {
    printf("get_mem3Dint64: array3D");
	exit(0);
  }
  for(j=0;j<frames;j++)
  {
    get_mem2Dint64( (*array3D)+j, rows, columns) ;
  }
  return frames*rows*columns*sizeof(int64);
}