Vincent Povirk : include: Add IWICPixelFormatInfo definition.
Alexandre Julliard
julliard at winehq.org
Thu Jun 14 15:31:31 CDT 2012
Module: wine
Branch: master
Commit: 2c5ef84544e4b6baabef292b39f4d445a5830f54
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c5ef84544e4b6baabef292b39f4d445a5830f54
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Sat Mar 24 12:30:02 2012 -0500
include: Add IWICPixelFormatInfo definition.
---
include/wincodec.idl | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
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
More information about the wine-cvs
mailing list