Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

  1. #include <wtypes.h>
  2. //
  3. // JPEG erro code
  4. //
  5. #define JPEGERR_NO_ERROR 0
  6. #define JPEGERR_INTERNAL_ERROR -1
  7. #define JPEGERR_CALLBACK_ERROR -2
  8. //
  9. // Prototype for JPEG callback
  10. //
  11. typedef BOOL (__stdcall *JPEGCallbackProc)(
  12. ULONG, // Total byte to download
  13. ULONG, // Bytes downloaded so far
  14. ULONG, // Bytes newly downloaded
  15. PBYTE, // Buffer containing the image data
  16. PVOID); // User supplied context
  17. //
  18. // Prototype for JPEG utility functions
  19. //
  20. int GetJPEGDimensions(LPBYTE pJPEGBlob, DWORD dwSize,
  21. LONG *pWidth, LONG *pHeight, WORD *pChannel);
  22. SHORT __stdcall
  23. DecompProgressJPEG(
  24. PBYTE, // Buffer containing the JPEG data
  25. ULONG, // Size of the JPEG buffer
  26. PBYTE, // Buffer to receive DIB data
  27. ULONG, // Scanline picth
  28. JPEGCallbackProc, // Progress callback
  29. PVOID); // User supplied callback context
  30. SHORT __stdcall
  31. DecompTransferJPEG(
  32. PBYTE, // Buffer containing the JPEG data
  33. ULONG, // Size of the JPEG buffer
  34. PBYTE *, // POINTER to the buffer to receive DIB data
  35. DWORD, // Size of the DIB buffer
  36. ULONG, // Scanline picth
  37. JPEGCallbackProc, // Progress callback
  38. PVOID); // User supplied callback context
  39. SHORT __stdcall
  40. DecompJPEG(
  41. LPBYTE, // Buffer containing the JPEG data
  42. DWORD, // Size of the JPEG buffer
  43. LPBYTE, // Buffer to receive DIB data
  44. DWORD); // Scanline picth