Commit cac5f507 authored by Val Doroshchuk's avatar Val Doroshchuk Committed by VaL Doroshchuk
Browse files

DirectShow: Implement image capture settings


Added camera image encoder control that
1. applies image encoder settings (resolution and codec) used to capture images
2. returns supported image codecs from
QImageWriter::supportedImageFormats
3. returns supported resolutions

Since DirectShow camera session uses QImage based on QVideoFrame
image encoder control returns viewfinder supported resolutions.
Not available if camera is not loaded.

Setting resolution via encoder control causes viewfinder resolution to be ignored.

Task-number: QTBUG-32743
Change-Id: I1de3ca9c6543937cb62f73cb64a81d23b0d5c4c9
Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
Reviewed-by: default avatarAndy Shaw <andy.shaw@qt.io>
Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
parent ae48330c
Showing with 213 additions and 5 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment