Commit c8372153 authored by Esme Povirk's avatar Esme Povirk Committed by Alexandre Julliard

windowscodecs: Move jpeg decoding to the unix lib.

parent 3f0c4d5c
......@@ -22,6 +22,7 @@ C_SRCS = \
imgfactory.c \
info.c \
jpegformat.c \
libjpeg.c \
libpng.c \
libtiff.c \
main.c \
......
......@@ -460,6 +460,13 @@ static HRESULT WINAPI CommonDecoderFrame_GetColorContexts(IWICBitmapFrameDecode
if (!pcActualCount) return E_INVALIDARG;
if (This->parent->file_info.flags & DECODER_FLAGS_UNSUPPORTED_COLOR_CONTEXT)
{
FIXME("not supported for %s\n", wine_dbgstr_guid(&This->parent->decoder_info.clsid));
*pcActualCount = 0;
return WINCODEC_ERR_UNSUPPORTEDOPERATION;
}
*pcActualCount = This->decoder_frame.num_color_contexts;
if (This->decoder_frame.num_color_contexts && cCount && ppIColorContexts)
......
......@@ -70,6 +70,9 @@ HRESULT CDECL decoder_create(const CLSID *decoder_clsid, struct decoder_info *in
if (IsEqualGUID(decoder_clsid, &CLSID_WICTiffDecoder))
return tiff_decoder_create(info, result);
if (IsEqualGUID(decoder_clsid, &CLSID_WICJpegDecoder))
return jpeg_decoder_create(info, result);
return E_NOTIMPL;
}
......
......@@ -262,6 +262,7 @@ struct decoder_info
};
#define DECODER_FLAGS_CAPABILITY_MASK 0x1f
#define DECODER_FLAGS_UNSUPPORTED_COLOR_CONTEXT 0x80000000
struct decoder_stat
{
......@@ -333,6 +334,7 @@ void CDECL decoder_destroy(struct decoder *This);
HRESULT CDECL png_decoder_create(struct decoder_info *info, struct decoder **result);
HRESULT CDECL tiff_decoder_create(struct decoder_info *info, struct decoder **result);
HRESULT CDECL jpeg_decoder_create(struct decoder_info *info, struct decoder **result);
struct unix_funcs
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment