Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d4b1db71
Commit
d4b1db71
authored
Jan 29, 2013
by
Ludger Sprenker
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement ComponentFactory::CreateEncoderPropertyBag.
parent
d195bbeb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
11 deletions
+12
-11
bmpencode.c
dlls/windowscodecs/bmpencode.c
+1
-1
icnsformat.c
dlls/windowscodecs/icnsformat.c
+1
-1
imgfactory.c
dlls/windowscodecs/imgfactory.c
+2
-2
jpegformat.c
dlls/windowscodecs/jpegformat.c
+1
-1
pngformat.c
dlls/windowscodecs/pngformat.c
+1
-1
propertybag.c
dlls/windowscodecs/propertybag.c
+3
-1
propertybag.c
dlls/windowscodecs/tests/propertybag.c
+0
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+1
-1
wincodecs_private.h
dlls/windowscodecs/wincodecs_private.h
+2
-1
No files found.
dlls/windowscodecs/bmpencode.c
View file @
d4b1db71
...
...
@@ -538,7 +538,7 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
if
(
!
This
->
stream
)
return
WINCODEC_ERR_NOTINITIALIZED
;
hr
=
CreatePropertyBag2
(
ppIEncoderOptions
);
hr
=
CreatePropertyBag2
(
NULL
,
0
,
ppIEncoderOptions
);
if
(
FAILED
(
hr
))
return
hr
;
encode
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BmpFrameEncode
));
...
...
dlls/windowscodecs/icnsformat.c
View file @
d4b1db71
...
...
@@ -663,7 +663,7 @@ static HRESULT WINAPI IcnsEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
goto
end
;
}
hr
=
CreatePropertyBag2
(
ppIEncoderOptions
);
hr
=
CreatePropertyBag2
(
NULL
,
0
,
ppIEncoderOptions
);
if
(
FAILED
(
hr
))
goto
end
;
...
...
dlls/windowscodecs/imgfactory.c
View file @
d4b1db71
...
...
@@ -821,8 +821,8 @@ static HRESULT WINAPI ComponentFactory_CreateQueryWriterFromBlockWriter(IWICComp
static
HRESULT
WINAPI
ComponentFactory_CreateEncoderPropertyBag
(
IWICComponentFactory
*
iface
,
PROPBAG2
*
options
,
UINT
count
,
IPropertyBag2
**
property
)
{
FIXME
(
"%p,%p,%u,%p: stub
\n
"
,
iface
,
options
,
count
,
property
);
return
E_NOTIMPL
;
TRACE
(
"(%p,%p,%u,%p)
\n
"
,
iface
,
options
,
count
,
property
);
return
CreatePropertyBag2
(
options
,
count
,
property
)
;
}
static
const
IWICComponentFactoryVtbl
ComponentFactory_Vtbl
=
{
...
...
dlls/windowscodecs/jpegformat.c
View file @
d4b1db71
...
...
@@ -1389,7 +1389,7 @@ static HRESULT WINAPI JpegEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
return
WINCODEC_ERR_NOTINITIALIZED
;
}
hr
=
CreatePropertyBag2
(
ppIEncoderOptions
);
hr
=
CreatePropertyBag2
(
NULL
,
0
,
ppIEncoderOptions
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
This
->
lock
);
...
...
dlls/windowscodecs/pngformat.c
View file @
d4b1db71
...
...
@@ -1615,7 +1615,7 @@ static HRESULT WINAPI PngEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
return
WINCODEC_ERR_NOTINITIALIZED
;
}
hr
=
CreatePropertyBag2
(
ppIEncoderOptions
);
hr
=
CreatePropertyBag2
(
NULL
,
0
,
ppIEncoderOptions
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
This
->
lock
);
...
...
dlls/windowscodecs/propertybag.c
View file @
d4b1db71
/*
* Copyright 2009 Vincent Povirk for CodeWeavers
* Copyright 2013 Ludger Sprenker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -136,7 +137,8 @@ static const IPropertyBag2Vtbl PropertyBag_Vtbl = {
PropertyBag_LoadObject
};
HRESULT
CreatePropertyBag2
(
IPropertyBag2
**
ppPropertyBag2
)
HRESULT
CreatePropertyBag2
(
PROPBAG2
*
options
,
UINT
count
,
IPropertyBag2
**
ppPropertyBag2
)
{
PropertyBag
*
This
;
...
...
dlls/windowscodecs/tests/propertybag.c
View file @
d4b1db71
...
...
@@ -234,7 +234,6 @@ static void test_empty_propertybag(void)
hr
=
IWICComponentFactory_CreateEncoderPropertyBag
(
factory
,
NULL
,
0
,
&
property
);
todo_wine
ok
(
hr
==
S_OK
,
"Creating EncoderPropertyBag failed, hr=%x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
...
...
@@ -265,7 +264,6 @@ static void test_filled_propertybag(void)
hr
=
IWICComponentFactory_CreateEncoderPropertyBag
(
factory
,
opts
,
2
,
&
property
);
todo_wine
ok
(
hr
==
S_OK
,
"Creating EncoderPropertyBag failed, hr=%x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
...
...
dlls/windowscodecs/tiffformat.c
View file @
d4b1db71
...
...
@@ -1883,7 +1883,7 @@ static HRESULT WINAPI TiffEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
if
(
SUCCEEDED
(
hr
))
{
hr
=
CreatePropertyBag2
(
ppIEncoderOptions
);
hr
=
CreatePropertyBag2
(
NULL
,
0
,
ppIEncoderOptions
);
}
if
(
SUCCEEDED
(
hr
))
...
...
dlls/windowscodecs/wincodecs_private.h
View file @
d4b1db71
...
...
@@ -62,7 +62,8 @@ extern void reverse_bgr8(UINT bytesperpixel, LPBYTE bits, UINT width, UINT heigh
extern
HRESULT
get_pixelformat_bpp
(
const
GUID
*
pixelformat
,
UINT
*
bpp
)
DECLSPEC_HIDDEN
;
extern
HRESULT
CreatePropertyBag2
(
IPropertyBag2
**
ppPropertyBag2
)
DECLSPEC_HIDDEN
;
extern
HRESULT
CreatePropertyBag2
(
PROPBAG2
*
options
,
UINT
count
,
IPropertyBag2
**
property
)
DECLSPEC_HIDDEN
;
extern
HRESULT
CreateComponentInfo
(
REFCLSID
clsid
,
IWICComponentInfo
**
ppIInfo
)
DECLSPEC_HIDDEN
;
extern
HRESULT
CreateComponentEnumerator
(
DWORD
componentTypes
,
DWORD
options
,
IEnumUnknown
**
ppIEnumUnknown
)
DECLSPEC_HIDDEN
;
...
...
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