#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 BitmapClipper * | impl_from_IWICBitmapClipper (IWICBitmapClipper *iface) |
|
static HRESULT WINAPI | BitmapClipper_QueryInterface (IWICBitmapClipper *iface, REFIID iid, void **ppv) |
|
static ULONG WINAPI | BitmapClipper_AddRef (IWICBitmapClipper *iface) |
|
static ULONG WINAPI | BitmapClipper_Release (IWICBitmapClipper *iface) |
|
static HRESULT WINAPI | BitmapClipper_GetSize (IWICBitmapClipper *iface, UINT *width, UINT *height) |
|
static HRESULT WINAPI | BitmapClipper_GetPixelFormat (IWICBitmapClipper *iface, WICPixelFormatGUID *format) |
|
static HRESULT WINAPI | BitmapClipper_GetResolution (IWICBitmapClipper *iface, double *dpiX, double *dpiY) |
|
static HRESULT WINAPI | BitmapClipper_CopyPalette (IWICBitmapClipper *iface, IWICPalette *palette) |
|
static HRESULT WINAPI | BitmapClipper_CopyPixels (IWICBitmapClipper *iface, const WICRect *rc, UINT stride, UINT buffer_size, BYTE *buffer) |
|
static HRESULT WINAPI | BitmapClipper_Initialize (IWICBitmapClipper *iface, IWICBitmapSource *source, const WICRect *rc) |
|
HRESULT | BitmapClipper_Create (IWICBitmapClipper **clipper) |
|
◆ COBJMACROS
◆ BitmapClipper
◆ BitmapClipper_AddRef()
Definition at line 70 of file clipper.c.
71{
74
75 TRACE(
"(%p) refcount=%u\n", iface,
ref);
76
78}
#define InterlockedIncrement
static BitmapClipper * impl_from_IWICBitmapClipper(IWICBitmapClipper *iface)
◆ BitmapClipper_CopyPalette()
Definition at line 148 of file clipper.c.
150{
152
154
157
160
161 return IWICBitmapSource_CopyPalette(
This->source,
palette);
162}
#define WINCODEC_ERR_WRONGSTATE
◆ BitmapClipper_CopyPixels()
Definition at line 164 of file clipper.c.
166{
169
171
174
175 if (rc)
176 {
178
179
182
186
188 }
189 else
191
193}
static void buffer_size(GLcontext *ctx, GLuint *width, GLuint *height)
static const char * debug_wic_rect(const WICRect *rect)
◆ BitmapClipper_Create()
Definition at line 243 of file clipper.c.
244{
246
249
254 This->lock.DebugInfo->Spare[0] = (
DWORD_PTR)(__FILE__
": BitmapClipper.lock");
255
256 *clipper = &
This->IWICBitmapClipper_iface;
257
259}
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
static const IWICBitmapClipperVtbl BitmapClipper_Vtbl
Referenced by ImagingFactory_CreateBitmapClipper().
◆ BitmapClipper_GetPixelFormat()
Definition at line 117 of file clipper.c.
119{
122
125
128
129 return IWICBitmapSource_GetPixelFormat(
This->source,
format);
130}
◆ BitmapClipper_GetResolution()
Definition at line 132 of file clipper.c.
134{
136
137 TRACE(
"(%p,%p,%p)\n", iface, dpiX, dpiY);
138
139 if (!dpiX || !dpiY)
141
144
145 return IWICBitmapSource_GetResolution(
This->source, dpiX, dpiY);
146}
◆ BitmapClipper_GetSize()
Definition at line 98 of file clipper.c.
100{
102
104
107
110
113
115}
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
◆ BitmapClipper_Initialize()
Definition at line 195 of file clipper.c.
197{
201
203
205
207 {
210 }
211
214
216 {
219 }
220
223 IWICBitmapSource_AddRef(
This->source);
224
227
229}
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
◆ BitmapClipper_QueryInterface()
Definition at line 46 of file clipper.c.
48{
51
53
57 {
58 *
ppv = &
This->IWICBitmapClipper_iface;
59 }
60 else
61 {
64 }
65
68}
#define IsEqualIID(riid1, riid2)
◆ BitmapClipper_Release()
Definition at line 80 of file clipper.c.
81{
84
85 TRACE(
"(%p) refcount=%u\n", iface,
ref);
86
88 {
89 This->lock.DebugInfo->Spare[0] = 0;
91 if (
This->source) IWICBitmapSource_Release(
This->source);
93 }
94
96}
#define InterlockedDecrement
#define HeapFree(x, y, z)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
◆ impl_from_IWICBitmapClipper()
Definition at line 41 of file clipper.c.
42{
44}
#define CONTAINING_RECORD(address, type, field)
Referenced by BitmapClipper_AddRef(), BitmapClipper_CopyPalette(), BitmapClipper_CopyPixels(), BitmapClipper_GetPixelFormat(), BitmapClipper_GetResolution(), BitmapClipper_GetSize(), BitmapClipper_Initialize(), BitmapClipper_QueryInterface(), and BitmapClipper_Release().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wincodecs |
| ) |
|
◆ BitmapClipper_Vtbl
const IWICBitmapClipperVtbl BitmapClipper_Vtbl |
|
static |
Initial value:= {
}
static ULONG WINAPI BitmapClipper_Release(IWICBitmapClipper *iface)
static HRESULT WINAPI BitmapClipper_GetResolution(IWICBitmapClipper *iface, double *dpiX, double *dpiY)
static HRESULT WINAPI BitmapClipper_CopyPalette(IWICBitmapClipper *iface, IWICPalette *palette)
static ULONG WINAPI BitmapClipper_AddRef(IWICBitmapClipper *iface)
static HRESULT WINAPI BitmapClipper_Initialize(IWICBitmapClipper *iface, IWICBitmapSource *source, const WICRect *rc)
static HRESULT WINAPI BitmapClipper_GetSize(IWICBitmapClipper *iface, UINT *width, UINT *height)
static HRESULT WINAPI BitmapClipper_GetPixelFormat(IWICBitmapClipper *iface, WICPixelFormatGUID *format)
static HRESULT WINAPI BitmapClipper_QueryInterface(IWICBitmapClipper *iface, REFIID iid, void **ppv)
static HRESULT WINAPI BitmapClipper_CopyPixels(IWICBitmapClipper *iface, const WICRect *rc, UINT stride, UINT buffer_size, BYTE *buffer)
Definition at line 231 of file clipper.c.
Referenced by BitmapClipper_Create().