Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
}
}
+static HRESULT d3dx_image_wic_frame_decode(struct d3dx_image *image,
IWICImagingFactory *wic_factory, IWICBitmapFrameDecode *bitmap_frame)
+{
- const struct pixel_format_desc *fmt_desc;
- uint32_t row_pitch, slice_pitch;
- IWICPalette *wic_palette = NULL;
- PALETTEENTRY *palette = NULL;
- WICColor *colors = NULL;
- BYTE *buffer = NULL;
- HRESULT hr;
- fmt_desc = get_format_info(image->format);
- hr = calculate_dds_surface_size(image->format, image->width, image->height, &row_pitch, &slice_pitch);
Worth considering whether to rename this function, now that it's used outside of DDS loading / saving (the function has nothing DDS-specific anyway).