-
Notifications
You must be signed in to change notification settings - Fork 0
/
dct.h
31 lines (27 loc) · 817 Bytes
/
dct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdio.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <ctype.h>
#include <strings.h>
#include <errno.h>
#include <math.h>
#define ISH264 1
#ifndef FRAMES_NO
#define FRAMES_NO 8
#endif
#ifndef MAXWIDTH
#define MAXWIDTH 1920
#endif
#ifndef MAXHEIGHT
#define MAXHEIGHT 1080
#endif
#define ARRAYS (int)(MAXWIDTH*MAXHEIGHT)/16
typedef unsigned char uchar;
double A[4][4], AT[4][4], C[4][4], CT[4][4];
FILE *fp;
extern void clearMatr16(double m[4][4]);
extern void matr_mult(double a[4][4], double b[4][4], double c[4][4]);
extern void initCoefs(double Amatr[4][4], short);
extern void transposeMatr(double a[4][4], double aT[4][4]);
extern void readFrame(FILE *rawv, uchar theframe[MAXHEIGHT][MAXWIDTH], int h, int w);
extern void performDCT(uchar theframe[MAXHEIGHT][MAXWIDTH], int h, int w);