#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "wincodecs_private.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (wincodecs) |
|
static ColorTransform * | impl_from_IWICColorTransform (IWICColorTransform *iface) |
|
static HRESULT WINAPI | ColorTransform_QueryInterface (IWICColorTransform *iface, REFIID iid, void **ppv) |
|
static ULONG WINAPI | ColorTransform_AddRef (IWICColorTransform *iface) |
|
static ULONG WINAPI | ColorTransform_Release (IWICColorTransform *iface) |
|
static HRESULT WINAPI | ColorTransform_GetSize (IWICColorTransform *iface, UINT *puiWidth, UINT *puiHeight) |
|
static HRESULT WINAPI | ColorTransform_GetPixelFormat (IWICColorTransform *iface, WICPixelFormatGUID *pPixelFormat) |
|
static HRESULT WINAPI | ColorTransform_GetResolution (IWICColorTransform *iface, double *pDpiX, double *pDpiY) |
|
static HRESULT WINAPI | ColorTransform_CopyPalette (IWICColorTransform *iface, IWICPalette *pIPalette) |
|
static HRESULT WINAPI | ColorTransform_CopyPixels (IWICColorTransform *iface, const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) |
|
static HRESULT WINAPI | ColorTransform_Initialize (IWICColorTransform *iface, IWICBitmapSource *pIBitmapSource, IWICColorContext *pIContextSource, IWICColorContext *pIContextDest, REFWICPixelFormatGUID pixelFmtDest) |
|
HRESULT | ColorTransform_Create (IWICColorTransform **colortransform) |
|
◆ COBJMACROS
◆ ColorTransform
◆ ColorTransform_AddRef()
Definition at line 68 of file colortransform.c.
69{
72
73 TRACE(
"(%p) refcount=%lu\n", iface,
ref);
74
76}
#define InterlockedIncrement
◆ ColorTransform_CopyPalette()
Definition at line 121 of file colortransform.c.
123{
125 TRACE(
"(%p,%p)\n", iface, pIPalette);
126
127 return IWICBitmapSource_CopyPalette(
This->dst, pIPalette);
128}
◆ ColorTransform_CopyPixels()
Definition at line 130 of file colortransform.c.
132{
135
136 return IWICBitmapSource_CopyPixels(
This->dst,
prc, cbStride, cbBufferSize, pbBuffer);
137}
static const char * debug_wic_rect(const WICRect *rect)
◆ ColorTransform_Create()
◆ ColorTransform_GetPixelFormat()
Definition at line 103 of file colortransform.c.
105{
107 TRACE(
"(%p,%p)\n", iface, pPixelFormat);
108
109 return IWICBitmapSource_GetPixelFormat(
This->dst, pPixelFormat);
110}
◆ ColorTransform_GetResolution()
Definition at line 112 of file colortransform.c.
114{
116 TRACE(
"(%p,%p,%p)\n", iface, pDpiX, pDpiY);
117
118 return IWICBitmapSource_GetResolution(
This->dst, pDpiX, pDpiY);
119}
◆ ColorTransform_GetSize()
Definition at line 94 of file colortransform.c.
96{
98 TRACE(
"(%p,%p,%p)\n", iface, puiWidth, puiHeight);
99
100 return IWICBitmapSource_GetSize(
This->dst, puiWidth, puiHeight);
101}
◆ ColorTransform_Initialize()
Definition at line 139 of file colortransform.c.
142{
146
147 TRACE(
"(%p,%p,%p,%p,%s)\n", iface, pIBitmapSource, pIContextSource,
149
150 FIXME(
"ignoring color contexts\n");
151
154
155 if (
This->dst) IWICBitmapSource_Release(
This->dst);
158}
HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst)
◆ ColorTransform_QueryInterface()
Definition at line 44 of file colortransform.c.
46{
49
51
55 {
56 *
ppv = &
This->IWICColorTransform_iface;
57 }
58 else
59 {
62 }
63
66}
#define IsEqualIID(riid1, riid2)
◆ ColorTransform_Release()
Definition at line 78 of file colortransform.c.
79{
82
83 TRACE(
"(%p) refcount=%lu\n", iface,
ref);
84
86 {
87 if (
This->dst) IWICBitmapSource_Release(
This->dst);
89 }
90
92}
#define InterlockedDecrement
◆ impl_from_IWICColorTransform()
Definition at line 39 of file colortransform.c.
40{
42}
#define CONTAINING_RECORD(address, type, field)
Referenced by ColorTransform_AddRef(), ColorTransform_CopyPalette(), ColorTransform_CopyPixels(), ColorTransform_GetPixelFormat(), ColorTransform_GetResolution(), ColorTransform_GetSize(), ColorTransform_Initialize(), ColorTransform_QueryInterface(), and ColorTransform_Release().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wincodecs |
| ) |
|
◆ ColorTransform_Vtbl
const IWICColorTransformVtbl ColorTransform_Vtbl |
|
static |