feature: Extend VideoWriter to accept vector of parameters#16766
feature: Extend VideoWriter to accept vector of parameters#16766alalek merged 8 commits intoopencv:masterfrom
Conversation
ae035fd to
192620f
Compare
- Add additional constructor and `open` method for `VideoWriter` those accept a vector of parameters - Move actual implementation of the `VideoWriter::open` to general method which accepts vector of parameters - Propagate parsed parameters map up to actual video backend construction
192620f to
e9b918e
Compare
e9b918e to
ef3a44a
Compare
9abd2e2 to
7c2c8a8
Compare
| @param frameSize Size of the video frames. | ||
| @param isColor If it is not zero, the encoder will expect and encode color frames, otherwise it | ||
| will work with grayscale frames (the flag is currently supported on Windows only). | ||
| will work with grayscale frames (the flag is ignored on MSMF and Intel MFX backends). |
There was a problem hiding this comment.
the flag is ignored
It is better to keep here common information only.
Backend-specific information should be moved on dedicated pages (there is huge amount of implementation details)
There was a problem hiding this comment.
Does (the flag may be ignored by some backends. For more information refer to backend implementation) sound better?
There was a problem hiding this comment.
I would prefer to keep this info in a single place (to avoid manual maintenance in different places).
See here:
https://github.com/opencv/opencv/blame/4.3.0/modules/videoio/doc/videoio_overview.markdown#L27
I believe the header of properties enumeration should be enough.
There was a problem hiding this comment.
Thank you, got it!
|
Hi! |
|
Enum's documentation clearly states which values are accepted. |
|
Sorry, I didn't check the first doxygen-comment of the overloaded function. And from the API with |
|
@jomade The std::verctor can be easily wrapped to Python, Java and other supported language bindings. It's the main reson why, it's not vector of pair, map or other structures. |
…er_params_constructor * feature: Extend VideoWriter to accept vector of parameters - Add additional constructor and `open` method for `VideoWriter` those accept a vector of parameters - Move actual implementation of the `VideoWriter::open` to general method which accepts vector of parameters - Propagate parsed parameters map up to actual video backend construction * fix: Change VideoWriter constructor description to suppress doc warning * refactor: Rollback newlines changes * feature: Changed VideoWriter parameters workflow * feature: Log unused parameters in VideoWriter open * doc: Fix VideoWriter `isColor` parameter description * fix: int to bool VC++ conversion warning * doc: Remove information about `isColor` flag usage.
openmethod forVideoWriterthose accept a vector of parameters
VideoWriter::opento the general methodwhich accepts a vector of parameters
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.