📄 playback.h
字号:
#define K_PLAYBACK_TYPE_THUMB (UCHAR)0x00
#define K_PLAYBACK_TYPE_JPG (UCHAR)0x01
#define K_PLAYBACK_TYPE_AVI (UCHAR)0x02
#define K_PLAYBACK_TYPE_WAV (UCHAR)0x03
#define K_PLAYBACK_TYPE_VIDONLY (UCHAR)0x04
#define K_PLAYBACK_TYPE_UNKNOWN (UCHAR)0xFF
#define K_PLAYBACK_MODE_ONE (UCHAR)0x00
#define K_PLAYBACK_MODE_NINE (UCHAR)0x01
#define K_PLAYBACK_MODE_FOUR (UCHAR)0x02
#define K_PLAYBACK_MODE_DEFAULT (UCHAR)0x03
//patch4.3@yichang@0612 for zoom/pan
//#define K_PLAYBACK_MODE_ZOOM (UCHAR)0x04
#define K_PLAYBACK_MODE_PAN (UCHAR)0x04
//version4.0@ada@0513 for Play Back
#define K_PageInitialize (UCHAR)0x00
#define K_PageKeepSame (UCHAR)0x01
#define K_PageRefresh (UCHAR)0x02
#define K_PageForward (UCHAR)0x03
#define K_PageBackward (UCHAR)0x04
#define K_PageDeleteBackward (UCHAR)0x05
#define K_DirectoryForward (UCHAR)0x06
#define K_DirectoryBackward (UCHAR)0x07
typedef struct playMedia
{
USHORT FileIDRank;
USHORT FileIndex;
UCHAR mediaType;
//USHORT width;
//USHORT height;
} PlaybackObj;
//Variables
//Playback 1/9
extern xdata PlaybackObj G_playObject;
extern xdata USHORT G_defaultPlayID;
extern xdata UCHAR G_SelCell;
extern xdata UCHAR G_PrevCell;
extern xdata UCHAR G_Playback_Mode;
//Thumbnail
extern xdata USHORT G_TmbWidth;
extern xdata USHORT G_TmbHeight;
extern xdata USHORT G_TmbHGap;
extern xdata USHORT G_TmbVGap;
//AVI width/height
extern xdata USHORT G_AVIWidth;
extern xdata USHORT G_AVIHeight;
//EXIF
extern xdata USHORT G_DPOF_Qty;
extern xdata USHORT G_Old_DPOF_Qty;
//version4.0@ada@0513 for Play Back
//extern xdata USHORT Play9_PreFileIndexBuf[9];
extern xdata USHORT Play9_NowFileIndexBuf[9];
//extern xdata USHORT Play9_NextFileIndexBuf[9];
extern xdata USHORT G_PlayBackPageCount;
extern xdata USHORT G_NowPlayFileIndex;
extern xdata UCHAR G_ChangePage;
//patch4.3@yichang@0612 for pan/zoom
extern xdata SHORT G_PanXoffset;
extern xdata SHORT G_PanYoffset;
//Functions
//version4.0@ada@0513 for Play Back
extern UCHAR Playback_GetMediaInfo(USHORT FileIndex);
extern UCHAR PlaybackOne(UCHAR pageChange);
extern UCHAR PlaybackNine(UCHAR pageChange);
extern void Playback_Initial(void);
extern UCHAR L1_AVIPreviewName(UCHAR *name, UCHAR scaling);
extern UCHAR L1_PBOneName(PUCHAR name, ULONG DramAddr);
//avi
extern void L1_InitAVIPreview(void);
extern UCHAR L1_VideoClip();
extern ULONG AVIReadDword(ULONG dramAddr);
extern UCHAR L1_PBVideoFrame(ULONG AVIIdxAddr, USHORT fHandle, USHORT frameNo, UCHAR VLCFlip);
//patch5.0@richie@sdram mapping
extern UCHAR L1_PBOneVideoFrame(ULONG AVIIdxAddr, USHORT fHandle, USHORT frameNo, UCHAR VLCFlip);
extern UCHAR L1_PBAudioChunck(ULONG AVIIdxAddr,ULONG audioBufferAddr, USHORT fHandle, USHORT AudioIdx);
extern UCHAR L1_ReadAVIIdx(ULONG AVIIdxRamAddr, ULONG AVIIdxAddr, USHORT fHandle,PULONG ChunkCnt, UCHAR onlyFirst);
extern USHORT SearchAVIIndex(ULONG AVIIdxRamAddr, USHORT defaultIdx, USHORT maxIdx, UCHAR type);
extern UCHAR L1_PBVideoEx(USHORT ID);
extern void CopyAudioIcon(UCHAR scaling);
extern UCHAR ChangeDispDevice(UCHAR type);
//version4.0@ada@0513 for Play Back
extern void Playback_InitialAfterDeleteAll(void);
extern void Playback_InitialAfterChangePage(void);
//zoom
extern UCHAR PlaybackZoom(UCHAR Factor);
extern UCHAR PlaybackPan(USHORT xoffset, USHORT yoffset);
//patch4.4@ada@DPOF skip AVI & WAV begin
extern void Playback_DpofInitial(void);
extern USHORT Playback_DpofGetNextJpgFileIndex(USHORT FileIndex);
extern USHORT Playback_DpofGetPreJpgFileIndex(USHORT FileIndex);
extern void Playback_DpofInitialAfterChangePage(void);
extern UCHAR Playback_DpofOne(UCHAR pageChange);
extern UCHAR Playback_DpofNine(UCHAR pageChange);
//patch4.4@ada@DPOF skip AVI & WAV end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -