diff options
Diffstat (limited to 'core/fxcodec/codec/fx_codec_jpeg.cpp')
-rw-r--r-- | core/fxcodec/codec/fx_codec_jpeg.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/fxcodec/codec/fx_codec_jpeg.cpp b/core/fxcodec/codec/fx_codec_jpeg.cpp index 7a73f4e55e..f0b8d66d3a 100644 --- a/core/fxcodec/codec/fx_codec_jpeg.cpp +++ b/core/fxcodec/codec/fx_codec_jpeg.cpp @@ -451,12 +451,6 @@ int CCodec_JpegModule::ReadHeader(Context* pContext, int* height, int* nComps, CFX_DIBAttribute* pAttribute) { -#else // PDF_ENABLE_XFA -int CCodec_JpegModule::ReadHeader(Context* pContext, - int* width, - int* height, - int* nComps) { -#endif // PDF_ENABLE_XFA auto* ctx = static_cast<CJpegContext*>(pContext); int ret = jpeg_read_header(&ctx->m_Info, true); if (ret == JPEG_SUSPENDED) @@ -467,11 +461,10 @@ int CCodec_JpegModule::ReadHeader(Context* pContext, *width = ctx->m_Info.image_width; *height = ctx->m_Info.image_height; *nComps = ctx->m_Info.num_components; -#ifdef PDF_ENABLE_XFA JpegLoadAttribute(&ctx->m_Info, pAttribute); -#endif return 0; } +#endif // PDF_ENABLE_XFA bool CCodec_JpegModule::StartScanline(Context* pContext, int down_scale) { auto* ctx = static_cast<CJpegContext*>(pContext); |