Lines Matching full:hr
52 HRESULT hr = CoCreateInstance(CLSID_WICImagingFactory, nullptr, CLSCTX_INPROC_SERVER, in MakeFromEncodedWIC() local
54 if (FAILED(hr)) { in MakeFromEncodedWIC()
62 hr = SkIStream::CreateFromSkStream(new SkMemoryStream(data), true, &iStream); in MakeFromEncodedWIC()
63 if (FAILED(hr)) { in MakeFromEncodedWIC()
69 hr = imagingFactory->CreateDecoderFromStream(iStream.get(), nullptr, in MakeFromEncodedWIC()
71 if (FAILED(hr)) { in MakeFromEncodedWIC()
77 hr = decoder->GetFrame(0, &imageFrame); in MakeFromEncodedWIC()
78 if (FAILED(hr)) { in MakeFromEncodedWIC()
84 hr = imageFrame->QueryInterface(IID_PPV_ARGS(&imageSource)); in MakeFromEncodedWIC()
85 if (FAILED(hr)) { in MakeFromEncodedWIC()
92 hr = imageSource->GetSize(&width, &height); in MakeFromEncodedWIC()
93 if (FAILED(hr)) { in MakeFromEncodedWIC()
99 hr = imageSource->GetPixelFormat(&format); in MakeFromEncodedWIC()
100 if (FAILED(hr)) { in MakeFromEncodedWIC()
177 HRESULT hr = fImagingFactory->CreateFormatConverter(&formatConverter); in onGetPixels() local
178 if (FAILED(hr)) { in onGetPixels()
187 hr = formatConverter->Initialize(fImageSource.get(), format, WICBitmapDitherTypeNone, nullptr, in onGetPixels()
189 if (FAILED(hr)) { in onGetPixels()
195 hr = formatConverter->QueryInterface(IID_PPV_ARGS(&formatConverterSrc)); in onGetPixels()
196 if (FAILED(hr)) { in onGetPixels()
201 hr = formatConverterSrc->CopyPixels(nullptr, (UINT) rowBytes, (UINT) rowBytes * info.height(), in onGetPixels()
204 return SUCCEEDED(hr); in onGetPixels()