Home | History | Annotate | Download | only in ports

Lines Matching defs:hr

24     HRESULT hr = CoCreateInstance(CLSID_WICImagingFactory, nullptr, CLSCTX_INPROC_SERVER,
26 if (FAILED(hr)) {
34 hr = SkIStream::CreateFromSkStream(new SkMemoryStream(sk_ref_sp(data)), true, &iStream);
35 if (FAILED(hr)) {
41 hr = imagingFactory->CreateDecoderFromStream(iStream.get(), nullptr,
43 if (FAILED(hr)) {
49 hr = decoder->GetFrame(0, &imageFrame);
50 if (FAILED(hr)) {
56 hr = imageFrame->QueryInterface(IID_PPV_ARGS(&imageSource));
57 if (FAILED(hr)) {
64 hr = imageSource->GetSize(&width, &height);
65 if (FAILED(hr)) {
71 hr = imageSource->GetPixelFormat(&format);
72 if (FAILED(hr)) {
147 HRESULT hr = fImagingFactory->CreateFormatConverter(&formatConverter);
148 if (FAILED(hr)) {
157 hr = formatConverter->Initialize(fImageSource.get(), format, WICBitmapDitherTypeNone, nullptr,
159 if (FAILED(hr)) {
165 hr = formatConverter->QueryInterface(IID_PPV_ARGS(&formatConverterSrc));
166 if (FAILED(hr)) {
171 hr = formatConverterSrc->CopyPixels(nullptr, (UINT) rowBytes, (UINT) rowBytes * info.height(),
174 return SUCCEEDED(hr);