📄 ogmreader.h
字号:
/***************************************************************************************
*This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* The GPL can be found at: http://www.gnu.org/copyleft/gpl.html *
* *
* *
****************************************************************************************
* Authors: *
* Marc Dukette *
**************************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef AVI_DECAPS_H
#define AVI_DECAPS_H
/*
* includes
*/
#include <windows.h>
#include <windowsx.h>
#include <malloc.h>
#include <stdlib.h>
#include "../avinterface.h"
/*
* SOME USEFUL MACROS
*/
//#define AVI_MAX_LEN 2000000000
//#define HEADERBYTES 2048
#define PAD_EVEN(x) ( ((x)+1) & ~1 )
#define AVIIF_KEYFRAME 0x00000010L
/*
* INDEX TYPES
*/
typedef struct
{
long pos;
long len;
BYTE flags;
} video_index_entry;
typedef struct
{
long pos;
long len;
long tot;
} audio_index_entry;
/*
* Main Class
*/
typedef struct _ogminfo
{
HANDLE hIOMutex;
} ogminfo;
int AVIDecaps_IsAVI();
int AVIDecaps_FillHeader(int getIndex);
int AVIDecaps_AddIndexEntry(char *tag,
long flags,
long pos,
long len);
BOOL AVIDecaps_isKeyframe(long frame);
int AVIDecaps_ReadAudio(char *audbuf, int bytes);
int AVIDecaps_Open(LPTSTR lpFilename, int Cache, int CacheSize,videoinfo** vidinfo);
double AVIDecaps_FrameRate();
int AVIDecaps_NextVideoFrame(char *buffer, int drop);
int AVIDecaps_VideoSeek(long frame);
int AVIDecaps_AudioSeek(long bytes);
int AVIDecaps_NextKeyFrame();
int AVIDecaps_PreviousKeyFrame();
int AVIDecaps_Seek(int percent, int isFrame);
int AVIDecaps_ReSeekAudio();
// int AVIDecaps_SampleSize();
int AVIDecaps_Rewind();
double AVIDecaps_GetProgress();
int AVIDecaps_Close();
void InitializeReader(reader* rd);
#endif
#ifdef __cplusplus
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -