Copy link to clipboard
Copied
Hello everyone,
I'm wondering if it is possible to use Actionscript to adjust things like brightness and contrast on an image from my Galaxy Note 4's camera. I already have a basic app that allows a stream to the phone screen directly from the camera, but I must do more! Any direction would help. (I'm not that great with Actionscript 3.0 yet.)
Thanks.
You can apply such transformations on any display object with this handy class: http://chargedweb.com/labs/2010/04/30/fast_brightness_contrast_saturation/
Are you only displaying a snapshot of the camera view or are you really streaming the camera feed to the app? Such calculations are very CPU intensive so I would be careful with it.
Copy link to clipboard
Copied
You can apply such transformations on any display object with this handy class: http://chargedweb.com/labs/2010/04/30/fast_brightness_contrast_saturation/
Are you only displaying a snapshot of the camera view or are you really streaming the camera feed to the app? Such calculations are very CPU intensive so I would be careful with it.
Copy link to clipboard
Copied
Thanks for the reply! The goal is to do it real-time with a video stream. Is there a potential of damaging anything by doing this, or will my app simply not work?
Copy link to clipboard
Copied
hehe no you can't damage anything by doing it.. your app might crash or react sluggish. But as long as you don't use any crazy image manipulations you should be fine.
Copy link to clipboard
Copied
Funkysoul, you da man!
It functioned well (with choppy video), but it only worked from the CPU as you mentioned before. I tried switching the debug mode to GPU and it just gave me the direct camera feed with no processing. You can probably guess my next question.
Is it possible to utilize the GPU to do the processing?
Copy link to clipboard
Copied
hehe..
You might want to have a look at Starling Framework, but to be honests I'm not sure if this is going to be a helper, performance wise yes, but it might bring other complications with it.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now