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

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

F2D* fMallocHandle(int rows, int cols)
{
    int i, j;
    F2D* out;
   
    out = (F2D*)malloc(sizeof(F2D) + sizeof(float)*rows*cols);
    out->height = rows;
    out->width = cols;
    return out;
}