Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image Capture Questions



Hi, Java Quicktime List,

I'm working on some image processing using quicktime and have run into
a few problems. I'm using the SGDataProcDemo on the java-quicktime
site as a starting place. As some background, I'm using Windows 2000
and a firewire webcam. If anyone has any suggestions to the following
questions/issue, I would really appreciate it:

1) In the demo there are the following lines of code in the callback
method named execute:

DSequence myDSequence =
new DSequence(
sgImageDescription,
encodedImage,
targetGraphics,
sourceRect,
transformationMatrix,
null,
0,
StdQTConstants.codecNormalQuality,
CodecComponent.anyCodec);

For some reason, the program seems to get stuck in this constructor.
Does anyone know why?

2) As a work around, I commented out all the DSequence stuff in the
demo and tried to use the RawEncodedImage that is one of the arguments
when execute is called. I hope that this is the frame that was
captured by the camera. My problem is turning the RawEncodedImage into
a Java Image. I tried a variety of ways of instantiating an
ImagePresenter from the image, which seems to work, but when I try to
create an QTImageProducer, the program stops progressing past that
point. Instead, it seems to restart as if execute were being called
again. My hope is to do the follwing eventually:

Image image = Toolkit.getDefaultToolkit().createImage
(myQTImageProducer);

When I can do this, I hope to use the PixelGrabber to get the pixel
data. If there's another way to do this, I'm more than open to trying
it.

Thanks,
Dennis
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.