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

30 lines
680 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);
extern uint32_t convert_pixelformats[];
std::string convert_from_pixelformat (uint32_t fmt);
uint32_t convert_to_pixelformat(std::string s);
#endif