28#include "wincodecsdk.h"
44 "GetPropertyInfo handled iProperty out of bounce wrong, hr=%x\n",
hr);
49 "GetPropertyInfo handled cProperty out of bounce wrong, hr=%x\n",
hr);
56 ok(
hr ==
S_OK,
"GetPropertyInfo failed, hr=%x\n",
hr);
61 "GetPropertyInfo returned unexpected property count, %i != %i)\n",
67 ok(pb[0].
vt ==
VT_UI1,
"Invalid variant type, pb[0].vt=%x\n", pb[0].
vt);
68 ok(pb[0].dwType == PROPBAG2_TYPE_DATA,
"Invalid variant type, pb[0].dwType=%x\n", pb[0].dwType);
72 ok(pb[1].
vt ==
VT_R4,
"Invalid variant type, pb[1].vt=%x\n", pb[1].
vt);
73 ok(pb[1].dwType == PROPBAG2_TYPE_DATA,
"Invalid variant type, pb[1].dwType=%x\n", pb[1].dwType);
87 ok(
hr ==
S_OK,
"CountProperties failed, hr=%x\n",
hr);
106 "Read for an unknown property did not fail with expected code, hr=%x\n",
hr);
116 "Read failed, itm_hr[0]=%x\n", itm_hr[0]);
118 "Read failed, V_VT(&values[0])=%x\n",
V_VT(&
values[0]));
134 ok(itm_hr[0] ==
S_OK,
"Read failed, itm_hr[0]=%x\n", itm_hr[0]);
138 ok(itm_hr[1] ==
S_OK,
"Read failed, itm_hr[1]=%x\n", itm_hr[1]);
150 itm_hr[0] = -1; itm_hr[1] = -1; itm_hr[2] = -1;
166 ok(itm_hr[0] ==
S_OK,
"Read error code has unexpected value, itm_hr[0]=%x\n", itm_hr[0]);
167 ok(itm_hr[1] == -1,
"Read error code has unexpected value, itm_hr[1]=%x\n", itm_hr[1]);
168 ok(itm_hr[2] == -1,
"Read error code has unexpected value, itm_hr[2]=%x\n", itm_hr[2]);
192 ok(
hr ==
E_FAIL,
"Write for an unknown property did not fail with expected code, hr=%x\n",
hr);
199 ok(
hr ==
S_OK,
"Write for one property failed, hr=%x\n",
hr);
207 "Write with mismatching type did not fail with expected code hr=%x\n",
hr);
214 "Write to reset to empty value does not fail with expected code, hr=%x\n",
hr);
224 ok(
hr ==
S_OK,
"Write for two properties failed, hr=%x\n",
hr);
234 &IID_IWICComponentFactory, (
void**)&
factory);
235 ok(
hr ==
S_OK,
"CoCreateInstance failed, hr=%x\n",
hr);
239 ok(
hr ==
S_OK,
"Creating EncoderPropertyBag failed, hr=%x\n",
hr);
248 IWICComponentFactory_Release(
factory);
262 &IID_IWICComponentFactory, (
void**)&
factory);
263 ok(
hr ==
S_OK,
"CoCreateInstance failed, hr=%x\n",
hr);
267 ok(
hr ==
S_OK,
"Creating EncoderPropertyBag failed, hr=%x\n",
hr);
280 IWICComponentFactory_Release(
factory);
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
GLuint GLuint GLsizei count
GLboolean GLenum GLenum GLvoid * values
VOID WINAPI CoTaskMemFree(LPVOID ptr)
static float(__cdecl *square_half_float)(float x
static UINT UINT * out_count
static void test_propertybag_read(IPropertyBag2 *property)
static void test_propertybag_countproperties(IPropertyBag2 *property, ULONG expected_count)
static const WCHAR wszTestProperty1[]
static void test_propertybag_getpropertyinfo(IPropertyBag2 *property, ULONG expected_count)
static const WCHAR wszTestInvalidProperty[]
static void test_propertybag_write(IPropertyBag2 *property)
static void test_empty_propertybag(void)
static const WCHAR wszTestProperty2[]
static void test_filled_propertybag(void)
@ COINIT_APARTMENTTHREADED
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)
#define WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE
#define WINCODEC_ERR_VALUEOUTOFRANGE