You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SimpleSkyCam/convert.h

25 lines
537 B

#ifndef _CONVERT_H_
#define _CONVERT_H_
#include <list>
#include <string>
#include <setjmp.h>
#include "video.h"
#include "videoframe.h"
#ifndef CLEAR
#define CLEAR(x) memset (&(x), 0, sizeof (x))
#endif
struct {
struct jpeg_decompress_struct cinfo;
} typedef ConvertData;
int Convert (ConvertData *cdata, VideoFrame *dest, unsigned char *ptrsrc, int srcsize, uint32_t pixelformat, int srcw, int srch);
int ConvertStart(ConvertData *cdata, uint32_t pixelformat);
int ConvertStop(ConvertData *cdata, uint32_t pixelformat);
#endif