diff options
Diffstat (limited to 'core/fxcodec/codec/ccodec_jpegmodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_jpegmodule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxcodec/codec/ccodec_jpegmodule.h b/core/fxcodec/codec/ccodec_jpegmodule.h index b2ae731bb4..bad6fa6a94 100644 --- a/core/fxcodec/codec/ccodec_jpegmodule.h +++ b/core/fxcodec/codec/ccodec_jpegmodule.h @@ -58,6 +58,12 @@ class CCodec_JpegModule { bool StartScanline(FXJPEG_Context* pContext, int down_scale); bool ReadScanline(FXJPEG_Context* pContext, uint8_t* dest_buf); uint32_t GetAvailInput(FXJPEG_Context* pContext, uint8_t** avail_buf_ptr); + +#if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ + static bool JpegEncode(const CFX_DIBSource* pSource, + uint8_t** dest_buf, + FX_STRSIZE* dest_size); +#endif }; #endif // CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_ |