- Replaces raw IWICBitmapFlipRotator pointer with Image_ComPtr smart pointer wrapper
- Updates pointer access patterns to use smart pointer methods (.ChangePtr() and .get())
- Maintains existing functionality while improving resource management
aWicSrc = aWicConvertedFrame.get();
}
- IWICBitmapFlipRotator* aRotator;
- bool isTopDown = true;
- if (aWicImgFactory->CreateBitmapFlipRotator(&aRotator) == S_OK
+ Image_ComPtr<IWICBitmapFlipRotator> aRotator;
+ bool isTopDown = true;
+ if (aWicImgFactory->CreateBitmapFlipRotator(&aRotator.ChangePtr()) == S_OK
&& aRotator->Initialize(aWicSrc, WICBitmapTransformFlipVertical) == S_OK)
{
isTopDown = false;
- aWicSrc = aRotator;
+ aWicSrc = aRotator.get();
}
if (aWicSrc->CopyPixels(NULL, (UINT)SizeRowBytes(), (UINT)SizeBytes(), ChangeData()) != S_OK)