Skip to content

Conversation

darrylhodgins
Copy link
Contributor

This is related to #8

Copy link
Contributor

@gregnr gregnr left a 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?

/**
* Analog Gain
*/
...(options.analoggain ? ['--analoggain', options.analoggain.toString()] : []),
Copy link
Contributor

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)

Suggested change
...(options.analoggain ? ['--analoggain', options.analoggain.toString()] : []),
...(options.analogGain ? ['--analoggain', options.analogGain.toString()] : []),
Copy link
Contributor Author

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.

/**
* Digital Gain
*/
...(options.digitalgain ? ['--digitalgain', options.digitalgain.toString()] : [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
...(options.digitalgain ? ['--digitalgain', options.digitalgain.toString()] : [])
...(options.digitalGain ? ['--digitalgain', options.digitalGain.toString()] : [])
Comment on lines 17 to 18
analoggain?: number;
digitalgain?: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
analoggain?: number;
digitalgain?: number;
analogGain?: number;
digitalGain?: number;
Comment on lines 38 to 39
analoggain?: number;
digitalgain?: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
analoggain?: number;
digitalgain?: number;
analogGain?: number;
digitalGain?: number;
README.md Outdated
Comment on lines 247 to 248
- `analoggain: number` - *Default: 0*
- `digitalgain: number` - *Default: 0*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `analoggain: number` - *Default: 0*
- `digitalgain: number` - *Default: 0*
- `analogGain: number` - *Default: 0*
- `digitalGain: number` - *Default: 0*
README.md Outdated
Comment on lines 286 to 287
- `analoggain: number` - *Default: 0*
- `digitalgain: number` - *Default: 0*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `analoggain: number` - *Default: 0*
- `digitalgain: number` - *Default: 0*
- `analogGain: number` - *Default: 0*
- `digitalGain: number` - *Default: 0*
README.md Outdated
Comment on lines 384 to 394
- `Off`
- `Auto`
- `Sun`
- `Cloud`
- `Shade`
- `Tungsten`
- `Fluorescent`
- `Incandescent`
- `Flash`
- `Horizon`
- `GreyWorld`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `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`
Copy link
Contributor

@gregnr gregnr left a 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>
@gregnr
Copy link
Contributor

gregnr commented Jul 15, 2020

Great work. Thanks again!

@gregnr gregnr merged commit d97f4fb into launchcodedev:master Jul 15, 2020
@gregnr gregnr mentioned this pull request Jul 15, 2020
@darrylhodgins
Copy link
Contributor Author

You're very welcome… I needed a few of these options for my project, so it helps me out too :)

@darrylhodgins darrylhodgins deleted the exposure-opts branch July 16, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants