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.

40 lines
1.1 KiB

  1. #ifndef _CTNGEN_H_
  2. #define _CTNGEN_H_
  3. EXTERN_C CRITICAL_SECTION g_csTNGEN;
  4. class CThumbnailFCNContainer
  5. {
  6. public:
  7. CThumbnailFCNContainer(void);
  8. ~CThumbnailFCNContainer(void);
  9. // public members (these go away soon)
  10. HRESULT EncodeThumbnail(void *pInputBitmapBits,
  11. ULONG ulWidth, ULONG ulHeight,
  12. void **ppJPEGBuffer, ULONG *pulBufferSize);
  13. HRESULT DecodeThumbnail(HBITMAP *phBitmap, ULONG *pulWidth,
  14. ULONG *pulHeight, void *pJPEGBuffer, ULONG ulBufferSize);
  15. private:
  16. //
  17. // The following globals should get their values from the registry
  18. // during TN_Initialize
  19. //
  20. // WARNING: for large Thumbnail_X and Thumbnail_Y values, we will also
  21. // need to increase INPUT_vBUF_SIZE and OUTPUT_BUF_SIZE in jdatasrc.cpp and
  22. // jdatadst.cpp (lovely jpeg decompression code...). Also need to modify our
  23. //
  24. ULONG Thumbnail_Quality;
  25. ULONG Thumbnail_X;
  26. ULONG Thumbnail_Y;
  27. //
  28. // JPEG globals
  29. //
  30. HANDLE m_hJpegC, m_hJpegD;
  31. BYTE * m_JPEGheader;
  32. ULONG m_JPEGheaderSize;
  33. };
  34. #endif