📄 videomaninputformat.h
字号:
#pragma once
#ifdef VideoMan_EXPORTS
#define VIDEOMAN_API __declspec(dllexport)
#else
#define VIDEOMAN_API __declspec(dllimport)
#endif
#include <string>
struct inputIdentification
{
std::string fileName;
std::string friendlyName;
std::string devicePath;
unsigned long serialNumber;
std::string identifier;
};
typedef enum PIXEL_FORMAT { RGB24, RGB32, BGR24, BGR32, YUV422, YUV411, IYUV, GREY8, GREY16, RAW8, UNKNOWN};
typedef enum TIME_FORMAT { FRAMES, SECONDS };
struct PIXEL_FORMATS
{
PIXEL_FORMAT formatOut;
PIXEL_FORMAT formatIn;
};
class VIDEOMAN_API VideoManInputFormat
{
public:
VideoManInputFormat(void);
VideoManInputFormat(VideoManInputFormat const &format);
virtual ~VideoManInputFormat(void);
VideoManInputFormat &operator=( VideoManInputFormat const &format );
bool SetFormat( int awidth, int aheight, double afps, PIXEL_FORMAT apixelFormatIn, PIXEL_FORMAT apixelFormatOut );
bool setPixelFormat( PIXEL_FORMAT apixelFormatIn, PIXEL_FORMAT apixelFormatOut );
PIXEL_FORMAT getPixelFormatIn();
PIXEL_FORMAT getPixelFormatOut();
bool validFormat();
int nChannels; //Number of channels
int depth; //bits per channel
int width; //resolution width
int height; //resolution height
double fps; //frames per second
bool showDlg; //(capture device) Show init dialog to select format
bool dropFrames; //drop frames while playing or not
bool clock; //(video file) Use clock to reproduce the video with its corresponding framerate or not
bool renderAudio; //(video file) Render the audio channel
TIME_FORMAT timeFormat; //(video file) SECONDS or FRAMES
private:
PIXEL_FORMATS pixelFormats;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -