Camera.hx 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package flash.media;
  2. extern final class Camera extends flash.events.EventDispatcher {
  3. @:flash.property var activityLevel(get,never) : Float;
  4. @:flash.property var bandwidth(get,never) : Int;
  5. @:flash.property var currentFPS(get,never) : Float;
  6. @:flash.property var fps(get,never) : Float;
  7. @:flash.property var height(get,never) : Int;
  8. @:flash.property var index(get,never) : Int;
  9. @:flash.property var keyFrameInterval(get,never) : Int;
  10. @:flash.property var loopback(get,never) : Bool;
  11. @:flash.property var motionLevel(get,never) : Int;
  12. @:flash.property var motionTimeout(get,never) : Int;
  13. @:flash.property var muted(get,never) : Bool;
  14. @:flash.property var name(get,never) : String;
  15. @:flash.property @:require(flash11_2) var position(get,never) : String;
  16. @:flash.property var quality(get,never) : Int;
  17. @:flash.property var width(get,never) : Int;
  18. function new() : Void;
  19. @:require(flash11_4) function copyToByteArray(rect : flash.geom.Rectangle, destination : flash.utils.ByteArray) : Void;
  20. @:require(flash11_4) function copyToVector(rect : flash.geom.Rectangle, destination : flash.Vector<UInt>) : Void;
  21. @:require(flash11_4) function drawToBitmapData(destination : flash.display.BitmapData) : Void;
  22. private function get_activityLevel() : Float;
  23. private function get_bandwidth() : Int;
  24. private function get_currentFPS() : Float;
  25. private function get_fps() : Float;
  26. private function get_height() : Int;
  27. private function get_index() : Int;
  28. private function get_keyFrameInterval() : Int;
  29. private function get_loopback() : Bool;
  30. private function get_motionLevel() : Int;
  31. private function get_motionTimeout() : Int;
  32. private function get_muted() : Bool;
  33. private function get_name() : String;
  34. private function get_position() : String;
  35. private function get_quality() : Int;
  36. private function get_width() : Int;
  37. function setCursor(value : Bool) : Void;
  38. function setKeyFrameInterval(keyFrameInterval : Int) : Void;
  39. function setLoopback(compress : Bool = false) : Void;
  40. function setMode(width : Int, height : Int, fps : Float, favorArea : Bool = true) : Void;
  41. function setMotionLevel(motionLevel : Int, timeout : Int = 2000) : Void;
  42. function setQuality(bandwidth : Int, quality : Int) : Void;
  43. @:flash.property @:require(flash10_1) static var isSupported(get,never) : Bool;
  44. @:flash.property static var names(get,never) : Array<Dynamic>;
  45. @:ns("flash.media",internal) @:require(flash10_1) static function _scanHardware() : Void;
  46. static function getCamera(?name : String) : Camera;
  47. private static function get_isSupported() : Bool;
  48. private static function get_names() : Array<Dynamic>;
  49. }