summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/c/iMallocHandle.c
blob: afebf865e1d01a796672b173077b75a9550721c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/********************************
Author: Sravanthi Kota Venkata
********************************/

#include <stdio.h>
#include <stdlib.h>
#include "sdvbs_common.h"

I2D* iMallocHandle(int rows, int cols)
{
    int i, j;
    I2D* out;
   
    out = (I2D*)malloc(sizeof(I2D) + sizeof(int)*rows*cols);
    out->height = rows;
    out->width = cols;
    //printf("imalloc happened\n");
    return out;
}