Hi, I'm sorry, I think posted this in the wrong forum 'Qt labs forum -general diskussions' before.
I'm experimenting with a tool to visualize raw image data (i.e 14bit grey
values)
using a QImage with 'Format_RGB32', following I convert the raw data to a
byty[]
array with 4 byte rgb data.
To support playback I instanziate the images with
'image = new QImage(imgRgbBuf, 128, 128,
QImage.Format.Format_RGB32);'
in a loop and display the new image with 'painter.drawImage(0, 0, image);'
in the 'paintEvent()' slot (see 'ImgTest.java').
This crashes the Java-VM after a while.
Performace is no issue (..actually;-).
Using the 'image.loadFromData(imgRgbBuf, "Format_RGB32")' on the same
buffer as
above always returns 'false' and doesn't work.
How can I visualize raw rgb-data out of a buffer in mem. (in a loop) ?
Is it possible to work directly with int[] data ?
I strapped down a short example application in 'ImgTest.java'. (see
attachment)
Sorry, I'm neither a Java nor a Qt expert. Many thanks for your help in
advance,
it would be much appreciated.
Ralf
(See attached file: ImgTest.java)(See attached file: hs_err_pid4516.log)
_________________________________________________________________________________
autocreated E-Mail Appendix / automatisch erzeugter E-Mail Anhang
Ralf Weber
Diehl BGT Defence GmbH & Co. KG
Alte Nussdorfer Strasse 13
88662 Ueberlingen
http://www.diehl-bgt-defence.de
Telefon: +49 7551 89 2371
Telefax: +49 7551 89 6520
mailto:[EMAIL PROTECTED]
_________________________________________________________________________________
Diehl BGT Defence GmbH & Co. KG
Sitz der Gesellschaft: Ueberlingen - Amtsgericht Freiburg i. Br. HRA 581075
Persoenlich haftende Gesellschafterin: Diehl BGT Defence Verwaltungs-GmbH
Sitz der Gesellschaft: Ueberlingen - Amtsgericht Freiburg i. Br. HRB 581694
Geschaeftsfuehrer:
Dipl.-Ing. (FH) Peter Ibbeken (Sprecher),
Dipl.-Betrw. (BA) Thomas Bodenmueller
_________________________________________________________________________________
ImgTest.java
Description: Binary data
hs_err_pid4516.log
Description: Binary data
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
