image.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // image.h :
  2. //
  3. #if !defined(AGD_IMAGE_H__25CFBDD3_F43A_4E40_B20D_6605E1211D4E__INCLUDED_)
  4. #define AGD_IMAGE_H__25CFBDD3_F43A_4E40_B20D_6605E1211D4E__INCLUDED_
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif // __cplusplus
  10. /////////////////////////////////////////////////////////////////////////////
  11. // image.h - Declarations:
  12. typedef void *HIMGFILE;
  13. /////////////////////////////////////////////////////////////////////////////
  14. HIMGFILE GfaTfuImageFileOpen(const char *pszFilename, uint32_t nStartAddr, bool bReadOnly);
  15. void GfaTfuImageFileClose(HIMGFILE hIf);
  16. size_t GfaTfuImageFileGetSize(HIMGFILE hIf);
  17. void* GfaTfuImageFileGetData(HIMGFILE hIf);
  18. bool GfaTfuImageFileGetInfo(HIMGFILE hIf, LPGFA_IMG_INFO pii);
  19. LPCGFA_APP_IMG_HEADER GfaTfuImageFileLookupImgInfo(HIMGFILE hIf, LPGFA_IMG_INFO pii);
  20. bool GfaTfuImageFileMatchMaterialNum(HIMGFILE hIf, const char *pszImgMaterialNum);
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifdef __cplusplus
  23. }
  24. #endif // __cplusplus
  25. #endif // !defined(AGD_IMAGE_H__25CFBDD3_F43A_4E40_B20D_6605E1211D4E__INCLUDED_)