Commit Graph

13 Commits

Author SHA1 Message Date
abrahambotros a2a6d028a4 Add 1080p, 720p, and 480p capture qualities. (#469)
* Add 1080p, 720p, and 480p capture qualities.

* Minor improvements for picture/video sizing.

- Minor refactoring for getting supported sizes (DRY).
- Add explicit pictureSize setting for 480p/720p/1080p in still/picture mode.

* Use util.Size objects for 480p/720p/1080p sizing.

- Note using Camera.Size objects would require a camera instance prior to creating the
  size objects, which would be manageable but not too clean.

* Remove 480p for iOS; 16:9/HD aspect ratio for Android 480p

- iOS only has a 640x480 480p-like AVCaptureSessionPreset, which is not the typical 16:9/HD aspect ratio
  desired. Removing this option as a result of this.
- Android 480p updated to use 16:9/HD aspect ratio.

* Add notes for (in)exact sizing for 1080p/720p/480p

* Re-add 480p on iOS, more notes on resolutions.

- Add notes on non-HD-aspect-ratio for iOS 480p.
- Add more explanation of variable resolution/sizes, especially for 480p on Android.

* Use custom Resolution class to hold 480p/720p/1080p resolution sizes

- Mistakenly used util.Size class before, which was not added until Android API level 21 (current
  min is 16).
2016-11-18 17:38:23 -05:00
Tuomas Peippo 355a6daea3 Move setCaptureQuality outside of capture function (#322) 2016-08-02 16:22:15 -04:00
Kyle Corbitt 1fdb3e73a8
remove undefined methods 2016-04-26 10:41:10 -07:00
Jannik Sommerfeld 9c99108025
Update RCTCameraManager.h 2016-04-23 12:44:40 -07:00
Kyle Corbitt d3ec8388d9 set the right preview orientation before startup 2016-04-01 20:48:08 -07:00
Dan Horrigan 1406e0630f Add the `mirrorImage` prop will will mirror the resulting image when true. 2016-03-28 14:40:07 -04:00
Radu Popovici eab5ef197b fix memory leak on iOS 2016-03-23 21:13:35 +02:00
Lochlan Wansbrough c45e210102 ES6 and general API alignment 2016-01-31 19:27:46 -08:00
Kyle Corbitt 45c26869a4 switch from callbacks to promises 2016-01-28 12:13:01 +00:00
Christopher Dro b14ed42731 Add option to store captures in temp directory 2016-01-12 12:02:10 -08:00
Lochlan Wansbrough 8cc61edef2 Fixes #80 2015-10-10 15:23:27 -07:00
Lochlan Wansbrough 1c97947d23 Merge branch 'feature/tap-to-focus' of git://github.com/unknownexception/react-native-camera into unknownexception-feature/tap-to-focus
# Conflicts:
#	README.md
#	index.ios.js
2015-09-22 19:41:06 -07:00
Lochlan Wansbrough 9fe38ebb86 Removed all dependencies! Removed podspec. Bumped npm version. 💃 2015-09-21 20:10:43 -07:00