- Notifications
You must be signed in to change notification settings - Fork 30
feat: add support for a number of exposure-related options #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work @darrylhodgins! I'm happy to see the shared-args abstraction to eliminate duplication between raspistill & raspivid. Thank you for also following existing conventions.
There are some minor changes I would like to see (noted in this review). In addition to these, can you please link to the new ExposureMode and AwbMode options at the beginning of the API documentation in the readme?
src/lib/shared-args.ts Outdated
| /** | ||
| * Analog Gain | ||
| */ | ||
| ...(options.analoggain ? ['--analoggain', options.analoggain.toString()] : []), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stay consistent with this lib's camel case convention (even though the underlying arg isn't camel cased)
| ...(options.analoggain ? ['--analoggain', options.analoggain.toString()] : []), | |
| ...(options.analogGain ? ['--analoggain', options.analogGain.toString()] : []), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, that was a copy-paste/multi-line edit thing. I'll fix that.
src/lib/shared-args.ts Outdated
| /** | ||
| * Digital Gain | ||
| */ | ||
| ...(options.digitalgain ? ['--digitalgain', options.digitalgain.toString()] : []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ...(options.digitalgain ? ['--digitalgain', options.digitalgain.toString()] : []) | |
| ...(options.digitalGain ? ['--digitalgain', options.digitalGain.toString()] : []) |
src/lib/still-camera.ts Outdated
| analoggain?: number; | ||
| digitalgain?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| analoggain?: number; | |
| digitalgain?: number; | |
| analogGain?: number; | |
| digitalGain?: number; |
src/lib/stream-camera.ts Outdated
| analoggain?: number; | ||
| digitalgain?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| analoggain?: number; | |
| digitalgain?: number; | |
| analogGain?: number; | |
| digitalGain?: number; |
README.md Outdated
| - `analoggain: number` - *Default: 0* | ||
| - `digitalgain: number` - *Default: 0* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `analoggain: number` - *Default: 0* | |
| - `digitalgain: number` - *Default: 0* | |
| - `analogGain: number` - *Default: 0* | |
| - `digitalGain: number` - *Default: 0* |
README.md Outdated
| - `analoggain: number` - *Default: 0* | ||
| - `digitalgain: number` - *Default: 0* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `analoggain: number` - *Default: 0* | |
| - `digitalgain: number` - *Default: 0* | |
| - `analogGain: number` - *Default: 0* | |
| - `digitalGain: number` - *Default: 0* |
README.md Outdated
| - `Off` | ||
| - `Auto` | ||
| - `Sun` | ||
| - `Cloud` | ||
| - `Shade` | ||
| - `Tungsten` | ||
| - `Fluorescent` | ||
| - `Incandescent` | ||
| - `Flash` | ||
| - `Horizon` | ||
| - `GreyWorld` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `Off` | |
| - `Auto` | |
| - `Sun` | |
| - `Cloud` | |
| - `Shade` | |
| - `Tungsten` | |
| - `Fluorescent` | |
| - `Incandescent` | |
| - `Flash` | |
| - `Horizon` | |
| - `GreyWorld` | |
| - `AwbMode.Off` | |
| - `AwbMode.Auto` | |
| - `AwbMode.Sun` | |
| - `AwbMode.Cloud` | |
| - `AwbMode.Shade` | |
| - `AwbMode.Tungsten` | |
| - `AwbMode.Fluorescent` | |
| - `AwbMode.Incandescent` | |
| - `AwbMode.Flash` | |
| - `AwbMode.Horizon` | |
| - `AwbMode.GreyWorld` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates. The below change should be all we need now before merging.
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
| Great work. Thanks again! |
| You're very welcome… I needed a few of these options for my project, so it helps me out too :) |
This is related to #8