mirror of
https://github.com/staxrip/staxrip.git
synced 2026-10-18 22:50:34 +08:00
30 lines
646 B
C
30 lines
646 B
C
|
|
#pragma once
|
|
|
|
#include <unknwn.h>
|
|
|
|
|
|
// {A933B077-7EC2-42CC-8110-91DE21116C1A}
|
|
static const GUID IID_IFrameServer = {0xa933b077,0x7ec2,0x42cc,{0x81,0x10,0x91,0xde,0x21,0x11,0x6c,0x1a}};
|
|
|
|
|
|
struct ServerInfo
|
|
{
|
|
int Width;
|
|
int Height;
|
|
int FrameRateNum;
|
|
int FrameRateDen;
|
|
int FrameCount;
|
|
int ColorSpace;
|
|
int BitsPerPixel;
|
|
};
|
|
|
|
|
|
struct IFrameServer : IUnknown
|
|
{
|
|
virtual HRESULT __stdcall OpenFile(WCHAR* file) = NULL;
|
|
virtual HRESULT __stdcall GetFrame(int position, void** frame, int& pitch) = NULL;
|
|
virtual ServerInfo* __stdcall GetInfo() = NULL;
|
|
virtual WCHAR* __stdcall GetError() = NULL;
|
|
};
|