⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dpof.h

📁 dz3000_51.0.0.4.rar
💻 H
字号:
/*++

Copyright (c) 2001 Sunplus Technology Co., Ltd.

Module Name:

        dpof.h

Abstract:

        Header file related to file layer message definition

Environment:

        Keil C51 Compiler

Revision History:

        02/28/2002      Leeada    created                 

--*/

//------------------------------------------------------------------------------
//Function prototype
//------------------------------------------------------------------------------
void DPOF_SetDpofDir0Name(UCHAR* name);
void DPOF_SetDpofFileName(UCHAR* name);
void DPOF_GetDpofDir1Name(void);

//version4.0@ada@0513 for DPOF
void DPOF_ClearDramDpofArea(void);

UCHAR DPOF_DirInitialize(void);

//patch4.4@ada@DPOF begin
void DPOF_CheckJpgFileExist(void);
//patch4.4@ada@DPOF end

UCHAR DPOF_FileInitialize(void);
UCHAR DPOF_CheckDpofFileExist(void);
UCHAR DPOF_OpenDpofFile(UCHAR* name,USHORT *fHandle,USHORT startCluster);
void DPOF_WriteDpofFileHeaderSection(void);
UCHAR DPOF_RecordDpofJobSection(void);
void DPOF_WriteSunplusImageField(void);
UCHAR DPOF_BuildDpofFile(void);
UCHAR DPOF_DeleteFile(UCHAR *name);
void DPOF_EraseDpofJobParameter(USHORT ImgSrcIdx,UCHAR File_Still_Exist);
UCHAR DPOF_CheckDpofJobFieldExist(USHORT ImgSrcIdx);
UCHAR DPOF_CheckDpofJobFileExist(USHORT ImgSrcIdx);
void DPOF_RecordDpofJobParameter(USHORT ImgSrcIdx,/*USHORT PrtPid,*/UCHAR PrtTyp,USHORT PrtQty,UCHAR ImgFmt);
void DPOF_EraseDpofJobParameter(USHORT ImgSrcIdx,UCHAR File_Still_Exist);
UCHAR DPOF_ReadDpofJobParameter(USHORT ImgSrcIdx,/*USHORT *PrtPid,*/UCHAR *PrtTyp,USHORT *PrtQty,UCHAR *ImgFmt);

//version4.0@ada@0513 for DPOF
UCHAR DPOF_SelectSunplusImage(USHORT ImgSrcIdx,/*USHORT PrtPid,*/UCHAR PrtTyp,USHORT PrtQty/*,UCHAR ImgFmt*/);

UCHAR DPOF_DeselectSunplusImage(USHORT ImgSrcIdx,UCHAR File_Still_Exist);
UCHAR DPOF_ModifySunplusImagePRTQTY(USHORT ImgSrcIdx,USHORT PrtQty);
void DPOF_CopyJobSection(ULONG JobSection_StartDramAddr,ULONG JobSection_Length,ULONG ByteCount);
UCHAR DPOF_FindDpofJobSection(ULONG *NewDramAddr,ULONG *ByteCount,ULONG *JobSection_StartDramAddr,ULONG *JobSection_StartByteCount);
UCHAR DPOF_FindDpofIMGSRC(ULONG *NewDramAddr,ULONG *ByteCount,USHORT *ImgSrcIdx);
UCHAR DPOF_FindDpofPRTPID(ULONG *NewDramAddr,ULONG *ByteCount,USHORT *PrtPid);
UCHAR DPOF_ModifyDpofPRTPID(ULONG NewDramAddr,ULONG ByteCount);
UCHAR DPOF_FindDpofPRTTYP(ULONG *NewDramAddr,ULONG *ByteCount,UCHAR *PrtTyp);
UCHAR DPOF_FindDpofPRTQTY(ULONG *NewDramAddr,ULONG *ByteCount,USHORT *PrtQty);
UCHAR DPOF_FindDpofIMGFMT(ULONG *NewDramAddr,ULONG *ByteCount,UCHAR *ImgFmt);
void DPOF_BuildOneDpofFileJobSection(USHORT ImgSrcIdx,UCHAR PrtTyp,USHORT PrtQty,UCHAR ImgFmt);
void DPOF_WriteDpofFileJobParameter(UCHAR *ParameterTable,USHORT TableLength);
void DPOF_WriteDpofFileJobSectionTitle(void);
void DPOF_WriteDpofFileParameter_PRTPID(void);
void DPOF_WriteDpofFileParameter_PRTTYP(UCHAR PrintType);   
void DPOF_WriteDpofFileParameter_PRTQTY(USHORT PrintQuantity);   
void DPOF_WriteDpofFileParameter_IMGFMT(UCHAR ImageFormat);  
void DPOF_WriteDpofFileParameter_IMGSRC(UCHAR PrintType,USHORT FileIndex);  

//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------
//version4.0@ada@0513 for DPOF
#define K_DPOF_STD            (UCHAR)1
#define K_DPOF_IDX            (UCHAR)2

#define K_DPOF_CIFF1_IMAGE    (UCHAR)1
#define K_DPOF_EXIF1_J_IMAGE  (UCHAR)2
#define K_DPOF_EXIF1_T_IMAGE  (UCHAR)3
#define K_DPOF_EXIF2_J_IMAGE  (UCHAR)4
#define K_DPOF_EXIF2_T_IMAGE  (UCHAR)5
#define K_DPOF_JFIF_IMAGE     (UCHAR)6
#define K_DPOF_FPX1_IMAGE     (UCHAR)7
#define K_DPOF_UNDEF_IMAGE    (UCHAR)8     

//------------------------------------------------------------------------------
//External variable
//------------------------------------------------------------------------------
extern USHORT G_DPOF_Dir0Cluster;
extern ULONG NewDpofFileDramAddr;
extern ULONG NewDpofFileByteCount;
extern USHORT NewDpofJobSectionPRTPID;
extern USHORT TotalSunplusDpofFileNumber;
extern UCHAR Dpof_File_Modify;
extern UCHAR Other_DpofJobSection_Exist;

//version4.0@ada@0513 for DPOF
extern UCHAR DpofDir1Name[];
extern UCHAR TTName[];//wendy


extern code UCHAR DPOF_Dir0Name[];  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -