Hi,
Can anyone see a problem with this code... I get the
dreaded "Segmentation Fault" when it hits the
decompress line.
// Get a file containing a single image
String filename = File.separator+"*.out";
JFileChooser fc = new JFileChooser(new
File(filename));
fc.showOpenDialog(this);
File imageFile = fc.getSelectedFile();
int filesize = (int)imageFile.length();
// Load image into a bytearray
byte[] ba_image = new byte[filesize];
FileInputStream fis = new FileInputStream(imageFile);
int read = fis.read(ba_image, 0, filesize);
System.out.println("loaded " + read + " bytes into
image array");
// Decompress the frame
ByteEncodedImage bei =
ByteEncodedImage.fromByteArray(ba_image);
QDRect in_rect = new QDRect(i_track_video_width,
i_track_video_height);
QDRect out_rect = in_rect;
QDGraphics qdgDest = new
QDGraphics(quicktime.qd.QDConstants.k32ARGBPixelFormat,
in_rect);
PixMap pxmap = qdgDest.getPixMap();
ImageDescription id = new ImageDescription(pxmap);
QTImage.decompress(bei, id, qdgDest, out_rect, 0);
Please tell me I'm doing something stupid, I'm sooo
fed up with this...
Thanks,
Mimi
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
This email sent to email@hidden