-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimageconvert.h
More file actions
executable file
·31 lines (26 loc) · 1.07 KB
/
imageconvert.h
File metadata and controls
executable file
·31 lines (26 loc) · 1.07 KB
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
31
/*
* imaeConvert.h -- Kapture
*
* Copyright (C) 2006-2007
* Detlev Casanova (detlev.casanova@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*/
#ifndef IMAGECONVERT_H
#define IMAGECONVERT_H
#include <vector>
#include "grayscaleimage.h"
#include "colorimage.h"
using namespace std;
typedef unsigned char uchar;
int mjpegToJpeg(unsigned char *inFrame, unsigned char *outFrame, unsigned int bufSize);
//int yuvToJpeg(unsigned char *inFrame, unsigned char *outFrame, int width, int height);
int yuvToJpeg(unsigned char *inFrame, QImage *outFrame, int width, int height);
//int yuvToBW(unsigned char *inFrame, unsigned char *image, int width, int height);
GrayScaleImage::ImageBuffer yuvToBW(unsigned char *inFrame, int width, int height);
ColorImage::ImageBuffer yuvToRGB(unsigned char *inFrame, int width, int height);
#endif