diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys/src/Windows/Media/Capture/mod.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Media/Capture/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Media/Capture/mod.rs | 739 |
1 files changed, 739 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Media/Capture/mod.rs b/vendor/windows-sys/src/Windows/Media/Capture/mod.rs new file mode 100644 index 000000000..28d9c161b --- /dev/null +++ b/vendor/windows-sys/src/Windows/Media/Capture/mod.rs @@ -0,0 +1,739 @@ +#[cfg(feature = "Media_Capture_Core")] +pub mod Core; +#[cfg(feature = "Media_Capture_Frames")] +pub mod Frames; +pub type AdvancedCapturedPhoto = *mut ::core::ffi::c_void; +pub type AdvancedPhotoCapture = *mut ::core::ffi::c_void; +pub type AppBroadcastBackgroundService = *mut ::core::ffi::c_void; +pub type AppBroadcastBackgroundServiceSignInInfo = *mut ::core::ffi::c_void; +pub type AppBroadcastBackgroundServiceStreamInfo = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastCameraCaptureState(pub i32); +impl AppBroadcastCameraCaptureState { + pub const Stopped: Self = Self(0i32); + pub const Started: Self = Self(1i32); + pub const Failed: Self = Self(2i32); +} +impl ::core::marker::Copy for AppBroadcastCameraCaptureState {} +impl ::core::clone::Clone for AppBroadcastCameraCaptureState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastCameraCaptureStateChangedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastCameraOverlayLocation(pub i32); +impl AppBroadcastCameraOverlayLocation { + pub const TopLeft: Self = Self(0i32); + pub const TopCenter: Self = Self(1i32); + pub const TopRight: Self = Self(2i32); + pub const MiddleLeft: Self = Self(3i32); + pub const MiddleCenter: Self = Self(4i32); + pub const MiddleRight: Self = Self(5i32); + pub const BottomLeft: Self = Self(6i32); + pub const BottomCenter: Self = Self(7i32); + pub const BottomRight: Self = Self(8i32); +} +impl ::core::marker::Copy for AppBroadcastCameraOverlayLocation {} +impl ::core::clone::Clone for AppBroadcastCameraOverlayLocation { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastCameraOverlaySize(pub i32); +impl AppBroadcastCameraOverlaySize { + pub const Small: Self = Self(0i32); + pub const Medium: Self = Self(1i32); + pub const Large: Self = Self(2i32); +} +impl ::core::marker::Copy for AppBroadcastCameraOverlaySize {} +impl ::core::clone::Clone for AppBroadcastCameraOverlaySize { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastCaptureTargetType(pub i32); +impl AppBroadcastCaptureTargetType { + pub const AppView: Self = Self(0i32); + pub const EntireDisplay: Self = Self(1i32); +} +impl ::core::marker::Copy for AppBroadcastCaptureTargetType {} +impl ::core::clone::Clone for AppBroadcastCaptureTargetType { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastExitBroadcastModeReason(pub i32); +impl AppBroadcastExitBroadcastModeReason { + pub const NormalExit: Self = Self(0i32); + pub const UserCanceled: Self = Self(1i32); + pub const AuthorizationFail: Self = Self(2i32); + pub const ForegroundAppActivated: Self = Self(3i32); +} +impl ::core::marker::Copy for AppBroadcastExitBroadcastModeReason {} +impl ::core::clone::Clone for AppBroadcastExitBroadcastModeReason { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastGlobalSettings = *mut ::core::ffi::c_void; +pub type AppBroadcastHeartbeatRequestedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastMicrophoneCaptureState(pub i32); +impl AppBroadcastMicrophoneCaptureState { + pub const Stopped: Self = Self(0i32); + pub const Started: Self = Self(1i32); + pub const Failed: Self = Self(2i32); +} +impl ::core::marker::Copy for AppBroadcastMicrophoneCaptureState {} +impl ::core::clone::Clone for AppBroadcastMicrophoneCaptureState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastMicrophoneCaptureStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppBroadcastPlugIn = *mut ::core::ffi::c_void; +pub type AppBroadcastPlugInManager = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastPlugInState(pub i32); +impl AppBroadcastPlugInState { + pub const Unknown: Self = Self(0i32); + pub const Initialized: Self = Self(1i32); + pub const MicrosoftSignInRequired: Self = Self(2i32); + pub const OAuthSignInRequired: Self = Self(3i32); + pub const ProviderSignInRequired: Self = Self(4i32); + pub const InBandwidthTest: Self = Self(5i32); + pub const ReadyToBroadcast: Self = Self(6i32); +} +impl ::core::marker::Copy for AppBroadcastPlugInState {} +impl ::core::clone::Clone for AppBroadcastPlugInState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastPlugInStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppBroadcastPreview = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastPreviewState(pub i32); +impl AppBroadcastPreviewState { + pub const Started: Self = Self(0i32); + pub const Stopped: Self = Self(1i32); + pub const Failed: Self = Self(2i32); +} +impl ::core::marker::Copy for AppBroadcastPreviewState {} +impl ::core::clone::Clone for AppBroadcastPreviewState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastPreviewStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppBroadcastPreviewStreamReader = *mut ::core::ffi::c_void; +pub type AppBroadcastPreviewStreamVideoFrame = *mut ::core::ffi::c_void; +pub type AppBroadcastPreviewStreamVideoHeader = *mut ::core::ffi::c_void; +pub type AppBroadcastProviderSettings = *mut ::core::ffi::c_void; +pub type AppBroadcastServices = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastSignInResult(pub i32); +impl AppBroadcastSignInResult { + pub const Success: Self = Self(0i32); + pub const AuthenticationFailed: Self = Self(1i32); + pub const Unauthorized: Self = Self(2i32); + pub const ServiceUnavailable: Self = Self(3i32); + pub const Unknown: Self = Self(4i32); +} +impl ::core::marker::Copy for AppBroadcastSignInResult {} +impl ::core::clone::Clone for AppBroadcastSignInResult { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastSignInState(pub i32); +impl AppBroadcastSignInState { + pub const NotSignedIn: Self = Self(0i32); + pub const MicrosoftSignInInProgress: Self = Self(1i32); + pub const MicrosoftSignInComplete: Self = Self(2i32); + pub const OAuthSignInInProgress: Self = Self(3i32); + pub const OAuthSignInComplete: Self = Self(4i32); +} +impl ::core::marker::Copy for AppBroadcastSignInState {} +impl ::core::clone::Clone for AppBroadcastSignInState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastSignInStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppBroadcastState = *mut ::core::ffi::c_void; +pub type AppBroadcastStreamAudioFrame = *mut ::core::ffi::c_void; +pub type AppBroadcastStreamAudioHeader = *mut ::core::ffi::c_void; +pub type AppBroadcastStreamReader = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastStreamState(pub i32); +impl AppBroadcastStreamState { + pub const Initializing: Self = Self(0i32); + pub const StreamReady: Self = Self(1i32); + pub const Started: Self = Self(2i32); + pub const Paused: Self = Self(3i32); + pub const Terminated: Self = Self(4i32); +} +impl ::core::marker::Copy for AppBroadcastStreamState {} +impl ::core::clone::Clone for AppBroadcastStreamState { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastStreamStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppBroadcastStreamVideoFrame = *mut ::core::ffi::c_void; +pub type AppBroadcastStreamVideoHeader = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastTerminationReason(pub i32); +impl AppBroadcastTerminationReason { + pub const NormalTermination: Self = Self(0i32); + pub const LostConnectionToService: Self = Self(1i32); + pub const NoNetworkConnectivity: Self = Self(2i32); + pub const ServiceAbort: Self = Self(3i32); + pub const ServiceError: Self = Self(4i32); + pub const ServiceUnavailable: Self = Self(5i32); + pub const InternalError: Self = Self(6i32); + pub const UnsupportedFormat: Self = Self(7i32); + pub const BackgroundTaskTerminated: Self = Self(8i32); + pub const BackgroundTaskUnresponsive: Self = Self(9i32); +} +impl ::core::marker::Copy for AppBroadcastTerminationReason {} +impl ::core::clone::Clone for AppBroadcastTerminationReason { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastTriggerDetails = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastVideoEncodingBitrateMode(pub i32); +impl AppBroadcastVideoEncodingBitrateMode { + pub const Custom: Self = Self(0i32); + pub const Auto: Self = Self(1i32); +} +impl ::core::marker::Copy for AppBroadcastVideoEncodingBitrateMode {} +impl ::core::clone::Clone for AppBroadcastVideoEncodingBitrateMode { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppBroadcastVideoEncodingResolutionMode(pub i32); +impl AppBroadcastVideoEncodingResolutionMode { + pub const Custom: Self = Self(0i32); + pub const Auto: Self = Self(1i32); +} +impl ::core::marker::Copy for AppBroadcastVideoEncodingResolutionMode {} +impl ::core::clone::Clone for AppBroadcastVideoEncodingResolutionMode { + fn clone(&self) -> Self { + *self + } +} +pub type AppBroadcastViewerCountChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppCapture = *mut ::core::ffi::c_void; +pub type AppCaptureAlternateShortcutKeys = *mut ::core::ffi::c_void; +pub type AppCaptureDurationGeneratedEventArgs = *mut ::core::ffi::c_void; +pub type AppCaptureFileGeneratedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureHistoricalBufferLengthUnit(pub i32); +impl AppCaptureHistoricalBufferLengthUnit { + pub const Megabytes: Self = Self(0i32); + pub const Seconds: Self = Self(1i32); +} +impl ::core::marker::Copy for AppCaptureHistoricalBufferLengthUnit {} +impl ::core::clone::Clone for AppCaptureHistoricalBufferLengthUnit { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureMetadataPriority(pub i32); +impl AppCaptureMetadataPriority { + pub const Informational: Self = Self(0i32); + pub const Important: Self = Self(1i32); +} +impl ::core::marker::Copy for AppCaptureMetadataPriority {} +impl ::core::clone::Clone for AppCaptureMetadataPriority { + fn clone(&self) -> Self { + *self + } +} +pub type AppCaptureMetadataWriter = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureMicrophoneCaptureState(pub i32); +impl AppCaptureMicrophoneCaptureState { + pub const Stopped: Self = Self(0i32); + pub const Started: Self = Self(1i32); + pub const Failed: Self = Self(2i32); +} +impl ::core::marker::Copy for AppCaptureMicrophoneCaptureState {} +impl ::core::clone::Clone for AppCaptureMicrophoneCaptureState { + fn clone(&self) -> Self { + *self + } +} +pub type AppCaptureMicrophoneCaptureStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppCaptureRecordOperation = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureRecordingState(pub i32); +impl AppCaptureRecordingState { + pub const InProgress: Self = Self(0i32); + pub const Completed: Self = Self(1i32); + pub const Failed: Self = Self(2i32); +} +impl ::core::marker::Copy for AppCaptureRecordingState {} +impl ::core::clone::Clone for AppCaptureRecordingState { + fn clone(&self) -> Self { + *self + } +} +pub type AppCaptureRecordingStateChangedEventArgs = *mut ::core::ffi::c_void; +pub type AppCaptureServices = *mut ::core::ffi::c_void; +pub type AppCaptureSettings = *mut ::core::ffi::c_void; +pub type AppCaptureState = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureVideoEncodingBitrateMode(pub i32); +impl AppCaptureVideoEncodingBitrateMode { + pub const Custom: Self = Self(0i32); + pub const High: Self = Self(1i32); + pub const Standard: Self = Self(2i32); +} +impl ::core::marker::Copy for AppCaptureVideoEncodingBitrateMode {} +impl ::core::clone::Clone for AppCaptureVideoEncodingBitrateMode { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureVideoEncodingFrameRateMode(pub i32); +impl AppCaptureVideoEncodingFrameRateMode { + pub const Standard: Self = Self(0i32); + pub const High: Self = Self(1i32); +} +impl ::core::marker::Copy for AppCaptureVideoEncodingFrameRateMode {} +impl ::core::clone::Clone for AppCaptureVideoEncodingFrameRateMode { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct AppCaptureVideoEncodingResolutionMode(pub i32); +impl AppCaptureVideoEncodingResolutionMode { + pub const Custom: Self = Self(0i32); + pub const High: Self = Self(1i32); + pub const Standard: Self = Self(2i32); +} +impl ::core::marker::Copy for AppCaptureVideoEncodingResolutionMode {} +impl ::core::clone::Clone for AppCaptureVideoEncodingResolutionMode { + fn clone(&self) -> Self { + *self + } +} +pub type CameraCaptureUI = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct CameraCaptureUIMaxPhotoResolution(pub i32); +impl CameraCaptureUIMaxPhotoResolution { + pub const HighestAvailable: Self = Self(0i32); + pub const VerySmallQvga: Self = Self(1i32); + pub const SmallVga: Self = Self(2i32); + pub const MediumXga: Self = Self(3i32); + pub const Large3M: Self = Self(4i32); + pub const VeryLarge5M: Self = Self(5i32); +} +impl ::core::marker::Copy for CameraCaptureUIMaxPhotoResolution {} +impl ::core::clone::Clone for CameraCaptureUIMaxPhotoResolution { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct CameraCaptureUIMaxVideoResolution(pub i32); +impl CameraCaptureUIMaxVideoResolution { + pub const HighestAvailable: Self = Self(0i32); + pub const LowDefinition: Self = Self(1i32); + pub const StandardDefinition: Self = Self(2i32); + pub const HighDefinition: Self = Self(3i32); +} +impl ::core::marker::Copy for CameraCaptureUIMaxVideoResolution {} +impl ::core::clone::Clone for CameraCaptureUIMaxVideoResolution { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct CameraCaptureUIMode(pub i32); +impl CameraCaptureUIMode { + pub const PhotoOrVideo: Self = Self(0i32); + pub const Photo: Self = Self(1i32); + pub const Video: Self = Self(2i32); +} +impl ::core::marker::Copy for CameraCaptureUIMode {} +impl ::core::clone::Clone for CameraCaptureUIMode { + fn clone(&self) -> Self { + *self + } +} +pub type CameraCaptureUIPhotoCaptureSettings = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct CameraCaptureUIPhotoFormat(pub i32); +impl CameraCaptureUIPhotoFormat { + pub const Jpeg: Self = Self(0i32); + pub const Png: Self = Self(1i32); + pub const JpegXR: Self = Self(2i32); +} +impl ::core::marker::Copy for CameraCaptureUIPhotoFormat {} +impl ::core::clone::Clone for CameraCaptureUIPhotoFormat { + fn clone(&self) -> Self { + *self + } +} +pub type CameraCaptureUIVideoCaptureSettings = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct CameraCaptureUIVideoFormat(pub i32); +impl CameraCaptureUIVideoFormat { + pub const Mp4: Self = Self(0i32); + pub const Wmv: Self = Self(1i32); +} +impl ::core::marker::Copy for CameraCaptureUIVideoFormat {} +impl ::core::clone::Clone for CameraCaptureUIVideoFormat { + fn clone(&self) -> Self { + *self + } +} +pub type CapturedFrame = *mut ::core::ffi::c_void; +pub type CapturedFrameControlValues = *mut ::core::ffi::c_void; +pub type CapturedPhoto = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct ForegroundActivationArgument(pub i32); +impl ForegroundActivationArgument { + pub const SignInRequired: Self = Self(0i32); + pub const MoreSettings: Self = Self(1i32); +} +impl ::core::marker::Copy for ForegroundActivationArgument {} +impl ::core::clone::Clone for ForegroundActivationArgument { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct GameBarCommand(pub i32); +impl GameBarCommand { + pub const OpenGameBar: Self = Self(0i32); + pub const RecordHistoricalBuffer: Self = Self(1i32); + pub const ToggleStartStopRecord: Self = Self(2i32); + pub const StartRecord: Self = Self(3i32); + pub const StopRecord: Self = Self(4i32); + pub const TakeScreenshot: Self = Self(5i32); + pub const StartBroadcast: Self = Self(6i32); + pub const StopBroadcast: Self = Self(7i32); + pub const PauseBroadcast: Self = Self(8i32); + pub const ResumeBroadcast: Self = Self(9i32); + pub const ToggleStartStopBroadcast: Self = Self(10i32); + pub const ToggleMicrophoneCapture: Self = Self(11i32); + pub const ToggleCameraCapture: Self = Self(12i32); + pub const ToggleRecordingIndicator: Self = Self(13i32); +} +impl ::core::marker::Copy for GameBarCommand {} +impl ::core::clone::Clone for GameBarCommand { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct GameBarCommandOrigin(pub i32); +impl GameBarCommandOrigin { + pub const ShortcutKey: Self = Self(0i32); + pub const Cortana: Self = Self(1i32); + pub const AppCommand: Self = Self(2i32); +} +impl ::core::marker::Copy for GameBarCommandOrigin {} +impl ::core::clone::Clone for GameBarCommandOrigin { + fn clone(&self) -> Self { + *self + } +} +pub type GameBarServices = *mut ::core::ffi::c_void; +pub type GameBarServicesCommandEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct GameBarServicesDisplayMode(pub i32); +impl GameBarServicesDisplayMode { + pub const Windowed: Self = Self(0i32); + pub const FullScreenExclusive: Self = Self(1i32); +} +impl ::core::marker::Copy for GameBarServicesDisplayMode {} +impl ::core::clone::Clone for GameBarServicesDisplayMode { + fn clone(&self) -> Self { + *self + } +} +pub type GameBarServicesManager = *mut ::core::ffi::c_void; +pub type GameBarServicesManagerGameBarServicesCreatedEventArgs = *mut ::core::ffi::c_void; +pub type GameBarServicesTargetInfo = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct GameBarTargetCapturePolicy(pub i32); +impl GameBarTargetCapturePolicy { + pub const EnabledBySystem: Self = Self(0i32); + pub const EnabledByUser: Self = Self(1i32); + pub const NotEnabled: Self = Self(2i32); + pub const ProhibitedBySystem: Self = Self(3i32); + pub const ProhibitedByPublisher: Self = Self(4i32); +} +impl ::core::marker::Copy for GameBarTargetCapturePolicy {} +impl ::core::clone::Clone for GameBarTargetCapturePolicy { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct KnownVideoProfile(pub i32); +impl KnownVideoProfile { + pub const VideoRecording: Self = Self(0i32); + pub const HighQualityPhoto: Self = Self(1i32); + pub const BalancedVideoAndPhoto: Self = Self(2i32); + pub const VideoConferencing: Self = Self(3i32); + pub const PhotoSequence: Self = Self(4i32); + pub const HighFrameRate: Self = Self(5i32); + pub const VariablePhotoSequence: Self = Self(6i32); + pub const HdrWithWcgVideo: Self = Self(7i32); + pub const HdrWithWcgPhoto: Self = Self(8i32); + pub const VideoHdr8: Self = Self(9i32); + pub const CompressedCamera: Self = Self(10i32); +} +impl ::core::marker::Copy for KnownVideoProfile {} +impl ::core::clone::Clone for KnownVideoProfile { + fn clone(&self) -> Self { + *self + } +} +pub type LowLagMediaRecording = *mut ::core::ffi::c_void; +pub type LowLagPhotoCapture = *mut ::core::ffi::c_void; +pub type LowLagPhotoSequenceCapture = *mut ::core::ffi::c_void; +pub type MediaCapture = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaCaptureDeviceExclusiveControlStatus(pub i32); +impl MediaCaptureDeviceExclusiveControlStatus { + pub const ExclusiveControlAvailable: Self = Self(0i32); + pub const SharedReadOnlyAvailable: Self = Self(1i32); +} +impl ::core::marker::Copy for MediaCaptureDeviceExclusiveControlStatus {} +impl ::core::clone::Clone for MediaCaptureDeviceExclusiveControlStatus { + fn clone(&self) -> Self { + *self + } +} +pub type MediaCaptureDeviceExclusiveControlStatusChangedEventArgs = *mut ::core::ffi::c_void; +pub type MediaCaptureFailedEventArgs = *mut ::core::ffi::c_void; +pub type MediaCaptureFailedEventHandler = *mut ::core::ffi::c_void; +pub type MediaCaptureFocusChangedEventArgs = *mut ::core::ffi::c_void; +pub type MediaCaptureInitializationSettings = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaCaptureMemoryPreference(pub i32); +impl MediaCaptureMemoryPreference { + pub const Auto: Self = Self(0i32); + pub const Cpu: Self = Self(1i32); +} +impl ::core::marker::Copy for MediaCaptureMemoryPreference {} +impl ::core::clone::Clone for MediaCaptureMemoryPreference { + fn clone(&self) -> Self { + *self + } +} +pub type MediaCapturePauseResult = *mut ::core::ffi::c_void; +pub type MediaCaptureRelativePanelWatcher = *mut ::core::ffi::c_void; +pub type MediaCaptureSettings = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaCaptureSharingMode(pub i32); +impl MediaCaptureSharingMode { + pub const ExclusiveControl: Self = Self(0i32); + pub const SharedReadOnly: Self = Self(1i32); +} +impl ::core::marker::Copy for MediaCaptureSharingMode {} +impl ::core::clone::Clone for MediaCaptureSharingMode { + fn clone(&self) -> Self { + *self + } +} +pub type MediaCaptureStopResult = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaCaptureThermalStatus(pub i32); +impl MediaCaptureThermalStatus { + pub const Normal: Self = Self(0i32); + pub const Overheated: Self = Self(1i32); +} +impl ::core::marker::Copy for MediaCaptureThermalStatus {} +impl ::core::clone::Clone for MediaCaptureThermalStatus { + fn clone(&self) -> Self { + *self + } +} +pub type MediaCaptureVideoProfile = *mut ::core::ffi::c_void; +pub type MediaCaptureVideoProfileMediaDescription = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaCategory(pub i32); +impl MediaCategory { + pub const Other: Self = Self(0i32); + pub const Communications: Self = Self(1i32); + pub const Media: Self = Self(2i32); + pub const GameChat: Self = Self(3i32); + pub const Speech: Self = Self(4i32); + pub const FarFieldSpeech: Self = Self(5i32); + pub const UniformSpeech: Self = Self(6i32); + pub const VoiceTyping: Self = Self(7i32); +} +impl ::core::marker::Copy for MediaCategory {} +impl ::core::clone::Clone for MediaCategory { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct MediaStreamType(pub i32); +impl MediaStreamType { + pub const VideoPreview: Self = Self(0i32); + pub const VideoRecord: Self = Self(1i32); + pub const Audio: Self = Self(2i32); + pub const Photo: Self = Self(3i32); + pub const Metadata: Self = Self(4i32); +} +impl ::core::marker::Copy for MediaStreamType {} +impl ::core::clone::Clone for MediaStreamType { + fn clone(&self) -> Self { + *self + } +} +pub type OptionalReferencePhotoCapturedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct PhotoCaptureSource(pub i32); +impl PhotoCaptureSource { + pub const Auto: Self = Self(0i32); + pub const VideoPreview: Self = Self(1i32); + pub const Photo: Self = Self(2i32); +} +impl ::core::marker::Copy for PhotoCaptureSource {} +impl ::core::clone::Clone for PhotoCaptureSource { + fn clone(&self) -> Self { + *self + } +} +pub type PhotoCapturedEventArgs = *mut ::core::ffi::c_void; +pub type PhotoConfirmationCapturedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct PowerlineFrequency(pub i32); +impl PowerlineFrequency { + pub const Disabled: Self = Self(0i32); + pub const FiftyHertz: Self = Self(1i32); + pub const SixtyHertz: Self = Self(2i32); + pub const Auto: Self = Self(3i32); +} +impl ::core::marker::Copy for PowerlineFrequency {} +impl ::core::clone::Clone for PowerlineFrequency { + fn clone(&self) -> Self { + *self + } +} +pub type RecordLimitationExceededEventHandler = *mut ::core::ffi::c_void; +pub type ScreenCapture = *mut ::core::ffi::c_void; +pub type SourceSuspensionChangedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct StreamingCaptureMode(pub i32); +impl StreamingCaptureMode { + pub const AudioAndVideo: Self = Self(0i32); + pub const Audio: Self = Self(1i32); + pub const Video: Self = Self(2i32); +} +impl ::core::marker::Copy for StreamingCaptureMode {} +impl ::core::clone::Clone for StreamingCaptureMode { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct VideoDeviceCharacteristic(pub i32); +impl VideoDeviceCharacteristic { + pub const AllStreamsIndependent: Self = Self(0i32); + pub const PreviewRecordStreamsIdentical: Self = Self(1i32); + pub const PreviewPhotoStreamsIdentical: Self = Self(2i32); + pub const RecordPhotoStreamsIdentical: Self = Self(3i32); + pub const AllStreamsIdentical: Self = Self(4i32); +} +impl ::core::marker::Copy for VideoDeviceCharacteristic {} +impl ::core::clone::Clone for VideoDeviceCharacteristic { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Media_Capture\"`*"] +#[repr(transparent)] +pub struct VideoRotation(pub i32); +impl VideoRotation { + pub const None: Self = Self(0i32); + pub const Clockwise90Degrees: Self = Self(1i32); + pub const Clockwise180Degrees: Self = Self(2i32); + pub const Clockwise270Degrees: Self = Self(3i32); +} +impl ::core::marker::Copy for VideoRotation {} +impl ::core::clone::Clone for VideoRotation { + fn clone(&self) -> Self { + *self + } +} +pub type VideoStreamConfiguration = *mut ::core::ffi::c_void; +#[repr(C)] +#[doc = "*Required features: `\"Media_Capture\"`*"] +pub struct WhiteBalanceGain { + pub R: f64, + pub G: f64, + pub B: f64, +} +impl ::core::marker::Copy for WhiteBalanceGain {} +impl ::core::clone::Clone for WhiteBalanceGain { + fn clone(&self) -> Self { + *self + } +} |