QT, convert raw image to jpg using Hardware acceleration (gpu) -
i need convert raw image buffer jpg image buffer.
at moment, operation in following way:
qimage tmpimage = qimage(rawimgbuffer, img_width, img_height, image.format ); //image.format=rgb888 qbuffer bufferjpeg(&ba); bufferjpeg.open(qiodevice::writeonly); tmpimage.save(&bufferjpeg, "jpg"); qbytearray finaljpgbuffer = bufferjpeg.data();
it works fine cpu load high (i have lot of threads operation lot of time each second). reading qt documentation found article: hardware acceleration & embedded platforms. if understood, can use qpainter class execute gpu operations... possible convertion (from raw jpg) using class? (or similar qt class use hardware acceleration (gpu))!!
my application need platform indipendent.
thanx @ all.
i don't think qimage uses gpu generate jpeg.
wouldn't (except on limited cpus) since transfer time of getting data out of gpu dominate. reason using hardware acceleration display result in gpu ready display.
Comments
Post a Comment