Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7a254fc4
Commit
7a254fc4
authored
Apr 27, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add a stub implementation of IWICBitmapFlipRotator.
parent
6c480cb1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
171 additions
and
2 deletions
+171
-2
Makefile.in
dlls/windowscodecs/Makefile.in
+1
-0
fliprotate.c
dlls/windowscodecs/fliprotate.c
+167
-0
imgfactory.c
dlls/windowscodecs/imgfactory.c
+2
-2
wincodecs_private.h
dlls/windowscodecs/wincodecs_private.h
+1
-0
No files found.
dlls/windowscodecs/Makefile.in
View file @
7a254fc4
...
...
@@ -12,6 +12,7 @@ C_SRCS = \
bmpencode.c
\
clsfactory.c
\
converter.c
\
fliprotate.c
\
gifformat.c
\
icoformat.c
\
imgfactory.c
\
...
...
dlls/windowscodecs/fliprotate.c
0 → 100644
View file @
7a254fc4
/*
* Copyright 2010 Vincent Povirk for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "wincodec.h"
#include "wincodecs_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wincodecs
);
typedef
struct
FlipRotator
{
const
IWICBitmapFlipRotatorVtbl
*
lpVtbl
;
LONG
ref
;
CRITICAL_SECTION
lock
;
/* must be held when initialized */
}
FlipRotator
;
static
HRESULT
WINAPI
FlipRotator_QueryInterface
(
IWICBitmapFlipRotator
*
iface
,
REFIID
iid
,
void
**
ppv
)
{
FlipRotator
*
This
=
(
FlipRotator
*
)
iface
;
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
iid
),
ppv
);
if
(
!
ppv
)
return
E_INVALIDARG
;
if
(
IsEqualIID
(
&
IID_IUnknown
,
iid
)
||
IsEqualIID
(
&
IID_IWICBitmapSource
,
iid
)
||
IsEqualIID
(
&
IID_IWICBitmapFlipRotator
,
iid
))
{
*
ppv
=
This
;
}
else
{
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
FlipRotator_AddRef
(
IWICBitmapFlipRotator
*
iface
)
{
FlipRotator
*
This
=
(
FlipRotator
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%u
\n
"
,
iface
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
FlipRotator_Release
(
IWICBitmapFlipRotator
*
iface
)
{
FlipRotator
*
This
=
(
FlipRotator
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%u
\n
"
,
iface
,
ref
);
if
(
ref
==
0
)
{
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
lock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
FlipRotator_GetSize
(
IWICBitmapFlipRotator
*
iface
,
UINT
*
puiWidth
,
UINT
*
puiHeight
)
{
FIXME
(
"(%p,%p,%p): stub
\n
"
,
iface
,
puiWidth
,
puiHeight
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FlipRotator_GetPixelFormat
(
IWICBitmapFlipRotator
*
iface
,
WICPixelFormatGUID
*
pPixelFormat
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pPixelFormat
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FlipRotator_GetResolution
(
IWICBitmapFlipRotator
*
iface
,
double
*
pDpiX
,
double
*
pDpiY
)
{
FIXME
(
"(%p,%p,%p): stub
\n
"
,
iface
,
pDpiX
,
pDpiY
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FlipRotator_CopyPalette
(
IWICBitmapFlipRotator
*
iface
,
IWICPalette
*
pIPalette
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIPalette
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FlipRotator_CopyPixels
(
IWICBitmapFlipRotator
*
iface
,
const
WICRect
*
prc
,
UINT
cbStride
,
UINT
cbBufferSize
,
BYTE
*
pbBuffer
)
{
FIXME
(
"(%p,%p,%u,%u,%p): stub
\n
"
,
iface
,
prc
,
cbStride
,
cbBufferSize
,
pbBuffer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
FlipRotator_Initialize
(
IWICBitmapFlipRotator
*
iface
,
IWICBitmapSource
*
pISource
,
WICBitmapTransformOptions
options
)
{
FIXME
(
"(%p,%p,%u): stub
\n
"
,
iface
,
pISource
,
options
);
return
E_NOTIMPL
;
}
static
const
IWICBitmapFlipRotatorVtbl
FlipRotator_Vtbl
=
{
FlipRotator_QueryInterface
,
FlipRotator_AddRef
,
FlipRotator_Release
,
FlipRotator_GetSize
,
FlipRotator_GetPixelFormat
,
FlipRotator_GetResolution
,
FlipRotator_CopyPalette
,
FlipRotator_CopyPixels
,
FlipRotator_Initialize
};
HRESULT
FlipRotator_Create
(
IWICBitmapFlipRotator
**
fliprotator
)
{
FlipRotator
*
This
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
FlipRotator
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
FlipRotator_Vtbl
;
This
->
ref
=
1
;
InitializeCriticalSection
(
&
This
->
lock
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": FlipRotator.lock"
);
*
fliprotator
=
(
IWICBitmapFlipRotator
*
)
This
;
return
S_OK
;
}
dlls/windowscodecs/imgfactory.c
View file @
7a254fc4
...
...
@@ -267,8 +267,8 @@ static HRESULT WINAPI ImagingFactory_CreateBitmapClipper(IWICImagingFactory *ifa
static
HRESULT
WINAPI
ImagingFactory_CreateBitmapFlipRotator
(
IWICImagingFactory
*
iface
,
IWICBitmapFlipRotator
**
ppIBitmapFlipRotator
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
ppIBitmapFlipRotator
);
return
E_NOTIMPL
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
ppIBitmapFlipRotator
);
return
FlipRotator_Create
(
ppIBitmapFlipRotator
)
;
}
static
HRESULT
WINAPI
ImagingFactory_CreateStream
(
IWICImagingFactory
*
iface
,
...
...
dlls/windowscodecs/wincodecs_private.h
View file @
7a254fc4
...
...
@@ -30,6 +30,7 @@ extern HRESULT IcoDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void**
extern
HRESULT
JpegDecoder_CreateInstance
(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
);
extern
HRESULT
TiffDecoder_CreateInstance
(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
);
extern
HRESULT
FlipRotator_Create
(
IWICBitmapFlipRotator
**
fliprotator
);
extern
HRESULT
PaletteImpl_Create
(
IWICPalette
**
palette
);
extern
HRESULT
StreamImpl_Create
(
IWICStream
**
stream
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment