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