QtAV
QtAV copied to clipboard
How can I change brightness of QImage
I am newbie of QtAV. I want to change brightness, contrast, saturation of QImage using by QtAV API.
QImage frameImage; freameImage.load("a.jpg");
QtAV::VideoFrame f(frameImage); QtAV::VideoFormat fmt(f.format()); QtAV::VideoFrameConverter conv; conv.setEq(brightness, contrast, saturation); QtAV::VideoFrame f2 = conv.convert(f, fmt);
QImage newImage = f2.toImage();
But, frameImage and newImage is same. How can I change?
Thanks.
No such api. QtAV does not change the original image