commit | bf01875d528280b4788ad78d251603df4660bbf3 | [log] [tgz] |
---|---|---|
author | Joonas Kerttula <joonas.kerttula@codemate.com> | Thu Feb 03 18:27:03 2022 +0200 |
committer | GitHub <noreply@github.com> | Thu Feb 03 08:27:03 2022 -0800 |
tree | 17f58466cdb209e68ca9218c17b0278b61a4e591 | |
parent | dbbd21fcd6b10d85513d6a78f8b70ed84a3a0ae2 [diff] |
[camera_windows] Support camera on windows desktop platform (#4641) This PR adds a Windows Desktop implementation of [camera plugin](https://pub.dev/packages/camera) using Media Foundation and CaptureEngine interface. The implementation supports multiple cameras, video preview, and capturing photos and videos. Works with camera plugin and [camera example](https://pub.dev/packages/camera/example). The current implementation uses FlutterDesktopPixelBuffer, but could be switched to use shared textures or Platform views after those are supported. Unit tests are partially done; for the CaptureControllerImpl class all falilure code paths are not yet covered. Still missing some features, like exposure and focus controls. These can be done later with interfaces IAMCameraControl and IAMVideoProcAmp, Resolves flutter/flutter#41709: [camera] Add Windows support
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter first-party plugins (i.e., plugins developed by the core Flutter team). Check the packages
directory for all plugins.
Flutter plugins enable access to platform-specific APIs. For more information about plugins, and how to use them, see https://flutter.dev/platform-plugins/.
These plugins are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo.
Issues pertaining to this repository are labeled “plugin”.
If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core Flutter team). Once your plugin is ready, you can publish it to the pub repository.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.
These are the available plugins in this repository.