[1/5] include: Add IWICPixelFormatInfo definition.

Vincent Povirk madewokherd at gmail.com
Wed Jun 13 13:20:52 CDT 2012


-------------- next part --------------
From 34dd6002331fa30f1095b7c586591968af67960e Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Sat, 24 Mar 2012 12:30:02 -0500
Subject: [PATCH 01/27] include: Add IWICPixelFormatInfo definition.

---
 include/wincodec.idl |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/include/wincodec.idl b/include/wincodec.idl
index 9284499..afb0207 100644
--- a/include/wincodec.idl
+++ b/include/wincodec.idl
@@ -140,6 +140,16 @@ typedef enum WICComponentEnumerateOptions {
     WICComponentEnumerateDisabled = 0x80000000
 } WICComponentEnumerateOptions;
 
+typedef enum WICPixelFormatNumericRepresentation {
+    WICPixelFormatNumericRepresentationUnspecified = 0x00000000,
+    WICPixelFormatNumericRepresentationIndexed = 0x00000001,
+    WICPixelFormatNumericRepresentationUnsignedInteger = 0x00000002,
+    WICPixelFormatNumericRepresentationSignedInteger = 0x00000003,
+    WICPixelFormatNumericRepresentationFixed = 0x00000004,
+    WICPixelFormatNumericRepresentationFloat = 0x00000005,
+    WICPIXELFORMATNUMERICREPRESENTATION_FORCE_DWORD = CODEC_FORCE_DWORD
+} WICPixelFormatNumericRepresentation;
+
 typedef GUID WICPixelFormatGUID;
 typedef REFGUID REFWICPixelFormatGUID;
 
@@ -446,6 +456,44 @@ interface IWICBitmapFrameDecode : IWICBitmapSource
 
 [
     object,
+    uuid(e8eda601-3d48-431a-ab44-69059be88bbe)
+]
+interface IWICPixelFormatInfo : IWICComponentInfo
+{
+    HRESULT GetFormatGUID(
+        [out] GUID* pFormat);
+
+    HRESULT GetColorContext(
+        [out] IWICColorContext **ppIColorContext);
+
+    HRESULT GetBitsPerPixel(
+        [out] UINT *puiBitsPerPixel);
+
+    HRESULT GetChannelCount(
+        [out] UINT *puiChannelCount);
+
+    HRESULT GetChannelMask(
+        [in] UINT uiChannelIndex,
+        [in] UINT cbMaskBuffer,
+        [in, out, unique, size_is(cbMaskBuffer)] BYTE *pbMaskBuffer,
+        [out] UINT *pcbActual);
+}
+
+[
+    object,
+    uuid(a9db33a2-af5f-43c7-b679-74f5984b5aa4)
+]
+interface IWICPixelFormatInfo2 : IWICPixelFormatInfo
+{
+    HRESULT SupportsTransparency(
+        [out] BOOL *pfSupportsTransparency);
+
+    HRESULT GetNumericRepresentation(
+        [out] WICPixelFormatNumericRepresentation *pNumericRepresentation);
+}
+
+[
+    object,
     uuid(e87a44c4-b76e-4c47-8b09-298eb12a2714)
 ]
 interface IWICBitmapCodecInfo : IWICComponentInfo
-- 
1.7.9.5


More information about the wine-patches mailing list