Getting acces to IAMVideoProcAmp(WMF) from UWP(Universal Windows Platform)

2021-11-26T16:55:26.587+00:00

I want to get/set "Gain" setting for a camera using UWP in code.

I know it is possible to do using WMF(Windows Media Foundation) because in this page
https://learn.microsoft.com/en-us/windows/win32/directshow/configure-the-video-quality#procamp-settings
explains how to do it .

My code:

String ID = "{C6E13360-30AC-11d0-A18C-00A0C9118956} 9";
var property = _mediaCapture.VideoDeviceController.GetDeviceProperty(ID);

Result: $exception {"The data area passed to a system call is too small. (Excep_FromHResult 0x8007007A)"} System.Exception

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,308 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,551 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,831 Reputation points
    2021-11-26T17:24:05.257+00:00

    From this MS source, the Gain is calculated/set from VideoDeviceController.IsoSpeedControl

    (public float Gain in the source)

    0 comments No comments