#include "config.h"
#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 70 of file colortransform.c.
71{
74
75 TRACE(
"(%p) refcount=%u\n", iface,
ref);
76
78}
#define InterlockedIncrement
◆ ColorTransform_CopyPalette()
Definition at line 123 of file colortransform.c.
125{
127 TRACE(
"(%p,%p)\n", iface, pIPalette);
128
129 return IWICBitmapSource_CopyPalette(
This->dst, pIPalette);
130}
◆ ColorTransform_CopyPixels()
Definition at line 132 of file colortransform.c.
134{
137
138 return IWICBitmapSource_CopyPixels(
This->dst,
prc, cbStride, cbBufferSize, pbBuffer);
139}
static const char * debug_wic_rect(const WICRect *rect)
◆ ColorTransform_Create()
◆ ColorTransform_GetPixelFormat()
Definition at line 105 of file colortransform.c.
107{
109 TRACE(
"(%p,%p)\n", iface, pPixelFormat);
110
111 return IWICBitmapSource_GetPixelFormat(
This->dst, pPixelFormat);
112}
◆ ColorTransform_GetResolution()
Definition at line 114 of file colortransform.c.
116{
118 TRACE(
"(%p,%p,%p)\n", iface, pDpiX, pDpiY);
119
120 return IWICBitmapSource_GetResolution(
This->dst, pDpiX, pDpiY);
121}
◆ ColorTransform_GetSize()
Definition at line 96 of file colortransform.c.
98{
100 TRACE(
"(%p,%p,%p)\n", iface, puiWidth, puiHeight);
101
102 return IWICBitmapSource_GetSize(
This->dst, puiWidth, puiHeight);
103}
◆ ColorTransform_Initialize()
Definition at line 141 of file colortransform.c.
144{
148
149 TRACE(
"(%p,%p,%p,%p,%s)\n", iface, pIBitmapSource, pIContextSource,
151
152 FIXME(
"ignoring color contexts\n");
153
156
157 if (
This->dst) IWICBitmapSource_Release(
This->dst);
160}
HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst)
◆ ColorTransform_QueryInterface()
Definition at line 46 of file colortransform.c.
48{
51
53
57 {
58 *
ppv = &
This->IWICColorTransform_iface;
59 }
60 else
61 {
64 }
65
68}
#define IsEqualIID(riid1, riid2)
◆ ColorTransform_Release()
Definition at line 80 of file colortransform.c.
81{
84
85 TRACE(
"(%p) refcount=%u\n", iface,
ref);
86
88 {
89 if (
This->dst) IWICBitmapSource_Release(
This->dst);
91 }
92
94}
#define InterlockedDecrement
#define HeapFree(x, y, z)
◆ impl_from_IWICColorTransform()
Definition at line 41 of file colortransform.c.
42{
44}
#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 |