forked from jnohlgard/python-v4l2capture
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pixfmt.h
47 lines (37 loc) · 1.14 KB
/
pixfmt.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _PIXFMT_H_
#define _PIXFMT_H_
#include <string>
int DecodeFrame(const unsigned char *data, unsigned dataLen,
const char *inPxFmt,
int &width, int &height,
const char *targetPxFmt,
unsigned char **buffOut,
unsigned *buffOutLen);
int DecodeAndResizeFrame(const unsigned char *data,
unsigned dataLen,
const char *inPxFmt,
int srcWidth, int srcHeight,
const char *targetPxFmt,
unsigned char **buffOut,
unsigned *buffOutLen,
int &dstWidth,
int &dstHeight);
int ResizeFrame(const unsigned char *data,
unsigned dataLen,
const char *pxFmt,
int srcWidth, int srcHeight,
unsigned char **buffOut,
unsigned *buffOutLen,
int dstWidth,
int dstHeight);
int ResizeRgb24ImageNN(const unsigned char *data, unsigned dataLen,
int widthIn, int heightIn,
unsigned char *buffOut,
unsigned buffOutLen,
int widthOut, int heightOut, int invertVertical = 0, int tupleLen = 3);
int VerticalFlipRgb24(const unsigned char *im, unsigned dataLen,
int width, int height,
unsigned char **buffOut,
unsigned *buffOutLen);
int InsertHuffmanTableCTypes(const unsigned char* inBufferPtr, unsigned inBufferLen, std::string &outBuffer);
#endif //_PIXFMT_H_