diff --git a/Cargo.toml b/Cargo.toml index da11b311..d2556746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "crabgrab" description = "A cross-platform screen/window capture crate" -version = "0.3.2" +version = "0.3.3" edition = "2021" authors = ["Augmend, Inc. ", "Liam Taylor ", "Tim Misiak "] documentation = "https://docs.rs/crabgrab" diff --git a/docs/macos_docs/crabgrab/all.html b/docs/macos_docs/crabgrab/all.html index fcae78c3..71aaf225 100644 --- a/docs/macos_docs/crabgrab/all.html +++ b/docs/macos_docs/crabgrab/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

\ No newline at end of file diff --git a/docs/macos_docs/crabgrab/capturable_content/enum.CapturableContentError.html b/docs/macos_docs/crabgrab/capturable_content/enum.CapturableContentError.html index 42079534..fde6a5ec 100644 --- a/docs/macos_docs/crabgrab/capturable_content/enum.CapturableContentError.html +++ b/docs/macos_docs/crabgrab/capturable_content/enum.CapturableContentError.html @@ -1,8 +1,8 @@ -CapturableContentError in crabgrab::capturable_content - Rust +CapturableContentError in crabgrab::capturable_content - Rust
pub enum CapturableContentError {
     Other(String),
 }
Expand description

Represents an error that occurred when enumerating capturable content

-

Variants§

§

Other(String)

Trait Implementations§

source§

impl Clone for CapturableContentError

source§

fn clone(&self) -> CapturableContentError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CapturableContentError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CapturableContentError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CapturableContentError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Variants§

§

Other(String)

Trait Implementations§

source§

impl Clone for CapturableContentError

source§

fn clone(&self) -> CapturableContentError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CapturableContentError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CapturableContentError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CapturableContentError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/macos_docs/crabgrab/capturable_content/index.html b/docs/macos_docs/crabgrab/capturable_content/index.html index 8c91a8b2..6466b229 100644 --- a/docs/macos_docs/crabgrab/capturable_content/index.html +++ b/docs/macos_docs/crabgrab/capturable_content/index.html @@ -1,3 +1,3 @@ -crabgrab::capturable_content - Rust +crabgrab::capturable_content - Rust
Expand description

Enumeration of capturable items

Structs§

Enums§

\ No newline at end of file diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableApplication.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableApplication.html index 3c2fd7d7..45ca75d9 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableApplication.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableApplication.html @@ -1,4 +1,4 @@ -CapturableApplication in crabgrab::capturable_content - Rust +CapturableApplication in crabgrab::capturable_content - Rust
pub struct CapturableApplication { /* private fields */ }
Expand description

Represents an application with capturable windows

Implementations§

source§

impl CapturableApplication

source

pub fn identifier(&self) -> String

Gets the “identifier” of the application

On MacOS, this is the application bundle, and on windows, this is the application file name

diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContent.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContent.html index c163e8dc..8c327b99 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContent.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContent.html @@ -1,4 +1,4 @@ -CapturableContent in crabgrab::capturable_content - Rust +CapturableContent in crabgrab::capturable_content - Rust
pub struct CapturableContent { /* private fields */ }
Expand description

A collection of capturable content (windows, screens)

Implementations§

source§

impl CapturableContent

source

pub async fn new( filter: CapturableContentFilter diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html index 020043f3..6d0aebdc 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html @@ -1,4 +1,4 @@ -CapturableContentFilter in crabgrab::capturable_content - Rust +CapturableContentFilter in crabgrab::capturable_content - Rust
pub struct CapturableContentFilter { /* private fields */ }
Expand description

Selects the kind of capturable content to enumerate

Implementations§

source§

impl CapturableContentFilter

source

pub fn new(displays: bool, windows: Option<CapturableWindowFilter>) -> Self

Create a new content filter with the given filtering options

source

pub fn is_empty(&self) -> bool

Whether this filter allows any capturable content

diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplay.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplay.html index 13b01d30..90764be9 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplay.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplay.html @@ -1,4 +1,4 @@ -CapturableDisplay in crabgrab::capturable_content - Rust +CapturableDisplay in crabgrab::capturable_content - Rust
pub struct CapturableDisplay { /* private fields */ }
Expand description

Represents a capturable display

Implementations§

source§

impl CapturableDisplay

source

pub fn rect(&self) -> Rect

Gets the virtual screen rectangle of this display

Note: Currently on windows, this is only evaluated at the time of display enumeration

diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html index c16991ec..6b0e3dcc 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html @@ -1,4 +1,4 @@ -CapturableDisplayIterator in crabgrab::capturable_content - Rust +CapturableDisplayIterator in crabgrab::capturable_content - Rust
pub struct CapturableDisplayIterator<'content> { /* private fields */ }
Expand description

An iterator over capturable displays

Trait Implementations§

source§

impl ExactSizeIterator for CapturableDisplayIterator<'_>

source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
source§

impl Iterator for CapturableDisplayIterator<'_>

§

type Item = CapturableDisplay

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindow.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindow.html index b255fa34..cecc8381 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindow.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindow.html @@ -1,4 +1,4 @@ -CapturableWindow in crabgrab::capturable_content - Rust +CapturableWindow in crabgrab::capturable_content - Rust
pub struct CapturableWindow { /* private fields */ }
Expand description

Represents a capturable application window

Implementations§

source§

impl CapturableWindow

source

pub fn title(&self) -> String

Gets the title of the window

source

pub fn rect(&self) -> Rect

Gets the virtual screen rectangle of the window

diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html index e0222b4e..824d64be 100644 --- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html +++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html @@ -1,4 +1,4 @@ -CapturableWindowFilter in crabgrab::capturable_content - Rust +CapturableWindowFilter in crabgrab::capturable_content - Rust
pub struct CapturableWindowFilter {
     pub desktop_windows: bool,
     pub onscreen_only: bool,
diff --git a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
index 68620972..ca4cf440 100644
--- a/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
+++ b/docs/macos_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
@@ -1,4 +1,4 @@
-CapturableWindowIterator in crabgrab::capturable_content - Rust
+CapturableWindowIterator in crabgrab::capturable_content - Rust
     
pub struct CapturableWindowIterator<'content> { /* private fields */ }
Expand description

An iterator over capturable windows

Trait Implementations§

source§

impl ExactSizeIterator for CapturableWindowIterator<'_>

1.0.0 · source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
source§

impl Iterator for CapturableWindowIterator<'_>

§

type Item = CapturableWindow

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.CaptureConfigError.html b/docs/macos_docs/crabgrab/capture_stream/enum.CaptureConfigError.html index f3b1f153..668f25f8 100644 --- a/docs/macos_docs/crabgrab/capture_stream/enum.CaptureConfigError.html +++ b/docs/macos_docs/crabgrab/capture_stream/enum.CaptureConfigError.html @@ -1,11 +1,11 @@ -CaptureConfigError in crabgrab::capture_stream - Rust +CaptureConfigError in crabgrab::capture_stream - Rust
pub enum CaptureConfigError {
     UnsupportedPixelFormat,
     InvalidBufferCount,
 }
Expand description

Represents an error creating the capture config

Variants§

§

UnsupportedPixelFormat

The pixel format is unsupported by the implementation

§

InvalidBufferCount

The buffer count is out of the valid range for the implementation

-

Trait Implementations§

source§

impl Clone for CaptureConfigError

source§

fn clone(&self) -> CaptureConfigError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CaptureConfigError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CaptureConfigError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CaptureConfigError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Send for CaptureConfigError

source§

impl Sync for CaptureConfigError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Clone for CaptureConfigError

source§

fn clone(&self) -> CaptureConfigError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CaptureConfigError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CaptureConfigError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CaptureConfigError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Send for CaptureConfigError

source§

impl Sync for CaptureConfigError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html b/docs/macos_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html index b73586fb..dbdba761 100644 --- a/docs/macos_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html +++ b/docs/macos_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html @@ -1,4 +1,4 @@ -CapturePixelFormat in crabgrab::capture_stream - Rust +CapturePixelFormat in crabgrab::capture_stream - Rust
#[non_exhaustive]
pub enum CapturePixelFormat { Bgra8888, Argb2101010, diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.StreamCreateError.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamCreateError.html index fcde879e..3ba9e892 100644 --- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamCreateError.html +++ b/docs/macos_docs/crabgrab/capture_stream/enum.StreamCreateError.html @@ -1,4 +1,4 @@ -StreamCreateError in crabgrab::capture_stream - Rust +StreamCreateError in crabgrab::capture_stream - Rust
pub enum StreamCreateError {
     Other(String),
     UnsupportedPixelFormat,
diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html
index 22c2ae1c..058228c0 100644
--- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html
+++ b/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html
@@ -1,4 +1,4 @@
-StreamError in crabgrab::capture_stream - Rust
+StreamError in crabgrab::capture_stream - Rust
     
pub enum StreamError {
     Other(String),
 }
Expand description

This represents an error during a stream, for example a failure to retrieve a video or audio frame

diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html index 9bbdc6cf..8ddb32bc 100644 --- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html +++ b/docs/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html @@ -1,4 +1,4 @@ -StreamEvent in crabgrab::capture_stream - Rust +StreamEvent in crabgrab::capture_stream - Rust
pub enum StreamEvent {
     Audio(AudioFrame),
     Video(VideoFrame),
diff --git a/docs/macos_docs/crabgrab/capture_stream/enum.StreamStopError.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamStopError.html
index b0956ec6..412d640a 100644
--- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamStopError.html
+++ b/docs/macos_docs/crabgrab/capture_stream/enum.StreamStopError.html
@@ -1,10 +1,10 @@
-StreamStopError in crabgrab::capture_stream - Rust
+StreamStopError in crabgrab::capture_stream - Rust
     
pub enum StreamStopError {
     Other(String),
     AlreadyStopped,
 }
Expand description

This represents an error while stopping a stream

Variants§

§

Other(String)

§

AlreadyStopped

The stream was already stopped

-

Trait Implementations§

source§

impl Debug for StreamStopError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StreamStopError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StreamStopError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Send for StreamStopError

source§

impl Sync for StreamStopError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for StreamStopError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StreamStopError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StreamStopError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Send for StreamStopError

source§

impl Sync for StreamStopError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/macos_docs/crabgrab/capture_stream/index.html b/docs/macos_docs/crabgrab/capture_stream/index.html index 223a10a1..9e91d242 100644 --- a/docs/macos_docs/crabgrab/capture_stream/index.html +++ b/docs/macos_docs/crabgrab/capture_stream/index.html @@ -1,3 +1,3 @@ -crabgrab::capture_stream - Rust +crabgrab::capture_stream - Rust
Expand description

The actual capture stream and related constructs

Structs§

Enums§

\ No newline at end of file diff --git a/docs/macos_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html b/docs/macos_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html index cc36980d..29b3e87b 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html @@ -1,4 +1,4 @@ -AudioCaptureConfig in crabgrab::capture_stream - Rust +AudioCaptureConfig in crabgrab::capture_stream - Rust
pub struct AudioCaptureConfig { /* private fields */ }
Expand description

Configuration settings for audio streams

Implementations§

source§

impl AudioCaptureConfig

source

pub fn new() -> Self

Creates a new audio capture config with default settings:

    diff --git a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html index 41152bfb..611094b7 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html @@ -1,4 +1,4 @@ -CaptureAccessToken in crabgrab::capture_stream - Rust +CaptureAccessToken in crabgrab::capture_stream - Rust
    pub struct CaptureAccessToken { /* private fields */ }
    Expand description

    Represents programmatic capture access

    Implementations§

    Trait Implementations§

    source§

    impl Clone for CaptureAccessToken

    source§

    fn clone(&self) -> CaptureAccessToken

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CaptureAccessToken

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for CaptureAccessToken

    source§

    impl Send for CaptureAccessToken

    source§

    impl Sync for CaptureAccessToken

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where diff --git a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html index a92127ed..566e6aac 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html @@ -1,4 +1,4 @@ -CaptureConfig in crabgrab::capture_stream - Rust +CaptureConfig in crabgrab::capture_stream - Rust
    pub struct CaptureConfig { /* private fields */ }
    Expand description

    Configuration settings for a capture stream

    Implementations§

    source§

    impl CaptureConfig

    source

    pub fn with_window( window: CapturableWindow, diff --git a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html index fc6f7c40..c508a711 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html @@ -1,4 +1,4 @@ -CaptureStream in crabgrab::capture_stream - Rust +CaptureStream in crabgrab::capture_stream - Rust
    pub struct CaptureStream { /* private fields */ }
    Expand description

    Represents an active capture stream

    Implementations§

    source§

    impl CaptureStream

    source

    pub fn test_access(borderless: bool) -> Option<CaptureAccessToken>

    Test whether the calling application has permission to capture content

    source

    pub async fn request_access(borderless: bool) -> Option<CaptureAccessToken>

    Prompt the user for permission to capture content

    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html b/docs/macos_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html index 7afa2b9c..730fdeea 100644 --- a/docs/macos_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html +++ b/docs/macos_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html @@ -1,4 +1,4 @@ -FrameBitmap in crabgrab::feature::bitmap - Rust +FrameBitmap in crabgrab::feature::bitmap - Rust
    pub enum FrameBitmap {
         BgraUnorm8x4(FrameBitmapBgraUnorm8x4),
         RgbaUnormPacked1010102(FrameBitmapRgbaUnormPacked1010102),
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
    index dc42e25b..4b6c9d0e 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
    @@ -1,8 +1,8 @@
    -VideoFrameBitmapError in crabgrab::feature::bitmap - Rust
    +VideoFrameBitmapError in crabgrab::feature::bitmap - Rust
         
    pub enum VideoFrameBitmapError {
         Other(String),
     }
    Expand description

    Represents an error while generating a frame bitmap

    -

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for VideoFrameBitmapError

    source§

    fn clone(&self) -> VideoFrameBitmapError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for VideoFrameBitmapError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for VideoFrameBitmapError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for VideoFrameBitmapError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for VideoFrameBitmapError

    source§

    fn clone(&self) -> VideoFrameBitmapError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for VideoFrameBitmapError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for VideoFrameBitmapError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for VideoFrameBitmapError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html index 7917bdf7..d7aa1e7c 100644 --- a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html +++ b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html @@ -1,4 +1,4 @@ -VideoRange in crabgrab::feature::bitmap - Rust +VideoRange in crabgrab::feature::bitmap - Rust
    pub enum VideoRange {
         Video,
         Full,
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/index.html b/docs/macos_docs/crabgrab/feature/bitmap/index.html
    index 63f70895..f0be77b6 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/index.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/index.html
    @@ -1,4 +1,4 @@
    -crabgrab::feature::bitmap - Rust
    +crabgrab::feature::bitmap - Rust
         

    Module crabgrab::feature::bitmap

    source ·
    Expand description

    Frame to Bitmap conversion (requires bitmap feature)

    Structs§

    Enums§

    Traits§

    \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html index e1839282..86208890 100644 --- a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html +++ b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html @@ -1,4 +1,4 @@ -FrameBitmapBgraUnorm8x4 in crabgrab::feature::bitmap - Rust +FrameBitmapBgraUnorm8x4 in crabgrab::feature::bitmap - Rust
    pub struct FrameBitmapBgraUnorm8x4 {
         pub data: Box<[[u8; 4]]>,
         pub width: usize,
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
    index 1472f67f..53723f69 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
    @@ -1,4 +1,4 @@
    -FrameBitmapRgbaF16x4 in crabgrab::feature::bitmap - Rust
    +FrameBitmapRgbaF16x4 in crabgrab::feature::bitmap - Rust
         
    pub struct FrameBitmapRgbaF16x4 {
         pub data: Box<[[f16; 4]]>,
         pub width: usize,
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
    index ed33b823..8eb551d7 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
    @@ -1,4 +1,4 @@
    -FrameBitmapRgbaUnormPacked1010102 in crabgrab::feature::bitmap - Rust
    +FrameBitmapRgbaUnormPacked1010102 in crabgrab::feature::bitmap - Rust
         
    pub struct FrameBitmapRgbaUnormPacked1010102 {
         pub data: Box<[u32]>,
         pub width: usize,
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
    index fa0a220d..9190a0ce 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
    @@ -1,4 +1,4 @@
    -FrameBitmapYCbCr in crabgrab::feature::bitmap - Rust
    +FrameBitmapYCbCr in crabgrab::feature::bitmap - Rust
         
    pub struct FrameBitmapYCbCr {
         pub luma_data: Box<[u8]>,
         pub luma_width: usize,
    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html b/docs/macos_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
    index 66b42aed..f5aa1fc8 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
    @@ -1,4 +1,4 @@
    -VideoFrameBitmap in crabgrab::feature::bitmap - Rust
    +VideoFrameBitmap in crabgrab::feature::bitmap - Rust
         
    pub trait VideoFrameBitmap {
         // Required method
         fn get_bitmap(&self) -> Result<FrameBitmap, VideoFrameBitmapError>;
    diff --git a/docs/macos_docs/crabgrab/feature/index.html b/docs/macos_docs/crabgrab/feature/index.html
    index c71ab976..768107b7 100644
    --- a/docs/macos_docs/crabgrab/feature/index.html
    +++ b/docs/macos_docs/crabgrab/feature/index.html
    @@ -1,4 +1,4 @@
    -crabgrab::feature - Rust
    +crabgrab::feature - Rust
         

    Module crabgrab::feature

    source ·
    Expand description

    Extension features

    Modules§

    • Frame to Bitmap conversion (requires bitmap feature)
    • Frame -> IOSurface conversion diff --git a/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html b/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html index ed0a71a2..c1bf72cc 100644 --- a/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html +++ b/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html @@ -1,11 +1,11 @@ -GetIoSurfaceError in crabgrab::feature::iosurface - Rust +GetIoSurfaceError in crabgrab::feature::iosurface - Rust
      pub enum GetIoSurfaceError {
           NoImageBuffer,
           NoIoSurface,
       }
      Expand description

      Represents an error when getting the IOSurface behind this video frame

      Variants§

      §

      NoImageBuffer

      There was no image buffer in this frame

      §

      NoIoSurface

      There was no IOSurface in the frame’s image buffer

      -

      Trait Implementations§

      source§

      impl Debug for GetIoSurfaceError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for GetIoSurfaceError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for GetIoSurfaceError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where +

      Trait Implementations§

      source§

      impl Debug for GetIoSurfaceError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for GetIoSurfaceError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for GetIoSurfaceError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where T: 'static + ?Sized,

      source§

      fn type_id(&self) -> TypeId

      Gets the TypeId of self. Read more
      source§

      impl<T> Borrow<T> for T
      where T: ?Sized,

      source§

      fn borrow(&self) -> &T

      Immutably borrows from an owned value. Read more
      source§

      impl<T> BorrowMut<T> for T
      where T: ?Sized,

      source§

      fn borrow_mut(&mut self) -> &mut T

      Mutably borrows from an owned value. Read more
      source§

      impl<T> From<T> for T

      source§

      fn from(t: T) -> T

      Returns the argument unchanged.

      diff --git a/docs/macos_docs/crabgrab/feature/iosurface/index.html b/docs/macos_docs/crabgrab/feature/iosurface/index.html index 6c3f422f..10be3010 100644 --- a/docs/macos_docs/crabgrab/feature/iosurface/index.html +++ b/docs/macos_docs/crabgrab/feature/iosurface/index.html @@ -1,4 +1,4 @@ -crabgrab::feature::iosurface - Rust +crabgrab::feature::iosurface - Rust

      Module crabgrab::feature::iosurface

      source ·
      Expand description

      Frame -> IOSurface conversion (requires iosurface feature)

      Structs§

      Enums§

      • Represents an error when getting the IOSurface behind this video frame

      Traits§

      \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/feature/iosurface/struct.IoSurface.html b/docs/macos_docs/crabgrab/feature/iosurface/struct.IoSurface.html index 1872935a..74917baf 100644 --- a/docs/macos_docs/crabgrab/feature/iosurface/struct.IoSurface.html +++ b/docs/macos_docs/crabgrab/feature/iosurface/struct.IoSurface.html @@ -1,4 +1,4 @@ -IoSurface in crabgrab::feature::iosurface - Rust +IoSurface in crabgrab::feature::iosurface - Rust
      pub struct IoSurface(/* private fields */);
      Expand description

      A MacOS IOSurface instance

      Implementations§

      source§

      impl IoSurface

      source

      pub fn get_raw(&self) -> *const c_void

      Gets the raw IOSurfaceRef

      Trait Implementations§

      source§

      impl Clone for IoSurface

      source§

      fn clone(&self) -> Self

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Drop for IoSurface

      source§

      fn drop(&mut self)

      Executes the destructor for this type. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/docs/macos_docs/crabgrab/feature/iosurface/trait.MacosIoSurfaceVideoFrameExt.html b/docs/macos_docs/crabgrab/feature/iosurface/trait.MacosIoSurfaceVideoFrameExt.html index 02a7ca71..37f2f993 100644 --- a/docs/macos_docs/crabgrab/feature/iosurface/trait.MacosIoSurfaceVideoFrameExt.html +++ b/docs/macos_docs/crabgrab/feature/iosurface/trait.MacosIoSurfaceVideoFrameExt.html @@ -1,4 +1,4 @@ -MacosIoSurfaceVideoFrameExt in crabgrab::feature::iosurface - Rust +MacosIoSurfaceVideoFrameExt in crabgrab::feature::iosurface - Rust
      pub trait MacosIoSurfaceVideoFrameExt {
           // Required method
           fn get_iosurface(&self) -> Result<IoSurface, GetIoSurfaceError>;
      diff --git a/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html b/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html
      index 56e372c9..cb744616 100644
      --- a/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html
      +++ b/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html
      @@ -1,4 +1,4 @@
      -MacosVideoFrameError in crabgrab::feature::metal - Rust
      +MacosVideoFrameError in crabgrab::feature::metal - Rust
           
      pub enum MacosVideoFrameError {
           NoIoSurface,
           NoImageBuffer,
      diff --git a/docs/macos_docs/crabgrab/feature/metal/enum.MetalVideoFramePlaneTexture.html b/docs/macos_docs/crabgrab/feature/metal/enum.MetalVideoFramePlaneTexture.html
      index 8f1e7eac..935a932c 100644
      --- a/docs/macos_docs/crabgrab/feature/metal/enum.MetalVideoFramePlaneTexture.html
      +++ b/docs/macos_docs/crabgrab/feature/metal/enum.MetalVideoFramePlaneTexture.html
      @@ -1,4 +1,4 @@
      -MetalVideoFramePlaneTexture in crabgrab::feature::metal - Rust
      +MetalVideoFramePlaneTexture in crabgrab::feature::metal - Rust
           
      pub enum MetalVideoFramePlaneTexture {
           Rgba,
           Luminance,
      diff --git a/docs/macos_docs/crabgrab/feature/metal/index.html b/docs/macos_docs/crabgrab/feature/metal/index.html
      index f698e3f9..c4bf70d6 100644
      --- a/docs/macos_docs/crabgrab/feature/metal/index.html
      +++ b/docs/macos_docs/crabgrab/feature/metal/index.html
      @@ -1,4 +1,4 @@
      -crabgrab::feature::metal - Rust
      +crabgrab::feature::metal - Rust
           

      Module crabgrab::feature::metal

      source ·
      Expand description

      Frame -> Metal Texture conversion (requires metal feature)

      Enums§

      Traits§

      \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/feature/metal/trait.MetalCaptureStreamExt.html b/docs/macos_docs/crabgrab/feature/metal/trait.MetalCaptureStreamExt.html index 4cbb9494..13649d5d 100644 --- a/docs/macos_docs/crabgrab/feature/metal/trait.MetalCaptureStreamExt.html +++ b/docs/macos_docs/crabgrab/feature/metal/trait.MetalCaptureStreamExt.html @@ -1,4 +1,4 @@ -MetalCaptureStreamExt in crabgrab::feature::metal - Rust +MetalCaptureStreamExt in crabgrab::feature::metal - Rust
      pub trait MetalCaptureStreamExt {
           // Required method
           fn get_metal_device(&self) -> Device;
      diff --git a/docs/macos_docs/crabgrab/feature/metal/trait.MetalVideoFrameExt.html b/docs/macos_docs/crabgrab/feature/metal/trait.MetalVideoFrameExt.html
      index e083df39..74bc3c97 100644
      --- a/docs/macos_docs/crabgrab/feature/metal/trait.MetalVideoFrameExt.html
      +++ b/docs/macos_docs/crabgrab/feature/metal/trait.MetalVideoFrameExt.html
      @@ -1,4 +1,4 @@
      -MetalVideoFrameExt in crabgrab::feature::metal - Rust
      +MetalVideoFrameExt in crabgrab::feature::metal - Rust
           
      pub trait MetalVideoFrameExt {
           // Required method
           fn get_metal_texture(
      diff --git a/docs/macos_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html b/docs/macos_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html
      index 7349cc65..f3c3dbe0 100644
      --- a/docs/macos_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html
      +++ b/docs/macos_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html
      @@ -1,4 +1,4 @@
      -ScreenshotError in crabgrab::feature::screenshot - Rust
      +ScreenshotError in crabgrab::feature::screenshot - Rust
           
      pub enum ScreenshotError {
           Other(String),
       }
      Expand description

      Represents an error while taking a screenshot

      diff --git a/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html b/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html index c11f68eb..c39ae56d 100644 --- a/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html +++ b/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html @@ -1,4 +1,4 @@ -take_screenshot in crabgrab::feature::screenshot - Rust +take_screenshot in crabgrab::feature::screenshot - Rust
      pub async fn take_screenshot(
           token: CaptureAccessToken,
           config: CaptureConfig
      diff --git a/docs/macos_docs/crabgrab/feature/screenshot/index.html b/docs/macos_docs/crabgrab/feature/screenshot/index.html
      index 7b09b4db..b8519a62 100644
      --- a/docs/macos_docs/crabgrab/feature/screenshot/index.html
      +++ b/docs/macos_docs/crabgrab/feature/screenshot/index.html
      @@ -1,4 +1,4 @@
      -crabgrab::feature::screenshot - Rust
      +crabgrab::feature::screenshot - Rust
           
      Expand description

      Screenshot utility function (requires screenshot feature)

      Enums§

      Functions§

      • Take a screenshot of the capturable content given a configuration
      \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html b/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html index 878a4484..316eaf11 100644 --- a/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html +++ b/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html @@ -1,4 +1,4 @@ -WgpuVideoFrameError in crabgrab::feature::wgpu - Rust +WgpuVideoFrameError in crabgrab::feature::wgpu - Rust
      pub enum WgpuVideoFrameError {
           NoBackendTexture,
           InvalidVideoPlaneTexture,
      diff --git a/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html b/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html
      index 4f94a00a..2903b36b 100644
      --- a/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html
      +++ b/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html
      @@ -1,4 +1,4 @@
      -WgpuVideoFramePlaneTexture in crabgrab::feature::wgpu - Rust
      +WgpuVideoFramePlaneTexture in crabgrab::feature::wgpu - Rust
           
      pub enum WgpuVideoFramePlaneTexture {
           Rgba,
           Luminance,
      diff --git a/docs/macos_docs/crabgrab/feature/wgpu/index.html b/docs/macos_docs/crabgrab/feature/wgpu/index.html
      index 88ead6b1..a00fbf70 100644
      --- a/docs/macos_docs/crabgrab/feature/wgpu/index.html
      +++ b/docs/macos_docs/crabgrab/feature/wgpu/index.html
      @@ -1,4 +1,4 @@
      -crabgrab::feature::wgpu - Rust
      +crabgrab::feature::wgpu - Rust
           

      Module crabgrab::feature::wgpu

      source ·
      Expand description

      Frame -> Wgpu Texture conversion (requires wgpu feature)

      Enums§

      Traits§

      \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html index b983df95..0b2c4aa4 100644 --- a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html +++ b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html @@ -1,4 +1,4 @@ -WgpuCaptureConfigExt in crabgrab::feature::wgpu - Rust +WgpuCaptureConfigExt in crabgrab::feature::wgpu - Rust
      pub trait WgpuCaptureConfigExt: Sized {
           // Required method
           fn with_wgpu_device(
      diff --git a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
      index 0e320d48..59449ad2 100644
      --- a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
      +++ b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
      @@ -1,4 +1,4 @@
      -WgpuCaptureStreamExt in crabgrab::feature::wgpu - Rust
      +WgpuCaptureStreamExt in crabgrab::feature::wgpu - Rust
           
      pub trait WgpuCaptureStreamExt {
           // Required methods
           fn get_wgpu_device_wrapper(
      diff --git a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
      index 907ef8c7..72543288 100644
      --- a/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
      +++ b/docs/macos_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
      @@ -1,4 +1,4 @@
      -WgpuVideoFrameExt in crabgrab::feature::wgpu - Rust
      +WgpuVideoFrameExt in crabgrab::feature::wgpu - Rust
           
      pub trait WgpuVideoFrameExt {
           // Required method
           fn get_wgpu_texture(
      diff --git a/docs/macos_docs/crabgrab/frame/enum.AudioBufferError.html b/docs/macos_docs/crabgrab/frame/enum.AudioBufferError.html
      index 020392b8..1a17604d 100644
      --- a/docs/macos_docs/crabgrab/frame/enum.AudioBufferError.html
      +++ b/docs/macos_docs/crabgrab/frame/enum.AudioBufferError.html
      @@ -1,4 +1,4 @@
      -AudioBufferError in crabgrab::frame - Rust
      +AudioBufferError in crabgrab::frame - Rust
           
      pub enum AudioBufferError {
           UnsupportedFormat,
           InvalidChannel,
      diff --git a/docs/macos_docs/crabgrab/frame/enum.AudioChannelCount.html b/docs/macos_docs/crabgrab/frame/enum.AudioChannelCount.html
      index f7e03a1c..66d6c0fa 100644
      --- a/docs/macos_docs/crabgrab/frame/enum.AudioChannelCount.html
      +++ b/docs/macos_docs/crabgrab/frame/enum.AudioChannelCount.html
      @@ -1,4 +1,4 @@
      -AudioChannelCount in crabgrab::frame - Rust
      +AudioChannelCount in crabgrab::frame - Rust
           
      pub enum AudioChannelCount {
           Mono,
           Stereo,
      diff --git a/docs/macos_docs/crabgrab/frame/enum.AudioChannelData.html b/docs/macos_docs/crabgrab/frame/enum.AudioChannelData.html
      index cf35abdb..2ce31792 100644
      --- a/docs/macos_docs/crabgrab/frame/enum.AudioChannelData.html
      +++ b/docs/macos_docs/crabgrab/frame/enum.AudioChannelData.html
      @@ -1,4 +1,4 @@
      -AudioChannelData in crabgrab::frame - Rust
      +AudioChannelData in crabgrab::frame - Rust
           
      pub enum AudioChannelData<'data> {
           F32(AudioChannelDataSamples<'data, f32>),
           I32(AudioChannelDataSamples<'data, i32>),
      diff --git a/docs/macos_docs/crabgrab/frame/enum.AudioSampleRate.html b/docs/macos_docs/crabgrab/frame/enum.AudioSampleRate.html
      index b55ab8f8..6a083dde 100644
      --- a/docs/macos_docs/crabgrab/frame/enum.AudioSampleRate.html
      +++ b/docs/macos_docs/crabgrab/frame/enum.AudioSampleRate.html
      @@ -1,4 +1,4 @@
      -AudioSampleRate in crabgrab::frame - Rust
      +AudioSampleRate in crabgrab::frame - Rust
           
      pub enum AudioSampleRate {
           Hz8000,
           Hz16000,
      diff --git a/docs/macos_docs/crabgrab/frame/index.html b/docs/macos_docs/crabgrab/frame/index.html
      index d2bf3cda..5ee057ca 100644
      --- a/docs/macos_docs/crabgrab/frame/index.html
      +++ b/docs/macos_docs/crabgrab/frame/index.html
      @@ -1,3 +1,3 @@
      -crabgrab::frame - Rust
      -    

      Module crabgrab::frame

      source ·
      Expand description

      Audio and video frames

      +crabgrab::frame - Rust +

      Module crabgrab::frame

      source ·
      Expand description

      Audio and video frames

      Structs§

      Enums§

      \ No newline at end of file diff --git a/docs/macos_docs/crabgrab/frame/struct.AudioChannelDataSamples.html b/docs/macos_docs/crabgrab/frame/struct.AudioChannelDataSamples.html index 8cdc055d..cda4a755 100644 --- a/docs/macos_docs/crabgrab/frame/struct.AudioChannelDataSamples.html +++ b/docs/macos_docs/crabgrab/frame/struct.AudioChannelDataSamples.html @@ -1,4 +1,4 @@ -AudioChannelDataSamples in crabgrab::frame - Rust +AudioChannelDataSamples in crabgrab::frame - Rust
      pub struct AudioChannelDataSamples<'data, T> { /* private fields */ }
      Expand description

      Wraps a “slice” of audio data for one channel, handling data stride

      Implementations§

      source§

      impl<T: Copy> AudioChannelDataSamples<'_, T>

      source

      pub fn get(&self, n: usize) -> T

      Get the nth sample for this channel data

      source

      pub fn length(&self) -> usize

      Get the length of this sample buffer

      diff --git a/docs/macos_docs/crabgrab/frame/struct.AudioFrame.html b/docs/macos_docs/crabgrab/frame/struct.AudioFrame.html index a0c0d0d7..a2340ee8 100644 --- a/docs/macos_docs/crabgrab/frame/struct.AudioFrame.html +++ b/docs/macos_docs/crabgrab/frame/struct.AudioFrame.html @@ -1,4 +1,4 @@ -AudioFrame in crabgrab::frame - Rust +AudioFrame in crabgrab::frame - Rust

      Struct crabgrab::frame::AudioFrame

      source ·
      pub struct AudioFrame { /* private fields */ }
      Expand description

      A frame of captured audio

      Implementations§

      source§

      impl AudioFrame

      source

      pub fn sample_rate(&self) -> AudioSampleRate

      Get the sample rate of the captured audio

      source

      pub fn channel_count(&self) -> AudioChannelCount

      Get the channel count of the captured audio

      diff --git a/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html b/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html index d43636f9..95143acd 100644 --- a/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html +++ b/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html @@ -1,13 +1,14 @@ -VideoFrame in crabgrab::frame - Rust -

      Struct crabgrab::frame::VideoFrame

      source ·
      pub struct VideoFrame { /* private fields */ }
      Expand description

      A frame of captured video

      -

      Implementations§

      source§

      impl VideoFrame

      source

      pub fn frame_id(&self) -> u64

      Get the sequence id of this video frame (monotonically increasing)

      +VideoFrame in crabgrab::frame - Rust +

      Struct crabgrab::frame::VideoFrame

      source ·
      pub struct VideoFrame { /* private fields */ }
      Expand description

      A frame of captured video

      +

      Implementations§

      source§

      impl VideoFrame

      source

      pub fn frame_id(&self) -> u64

      Get the sequence id of this video frame (monotonically increasing)

      Note: This is separate from audio frame ids

      -
      source

      pub fn capture_time(&self) -> Instant

      Get the Instant that this frame was delivered to the application

      -
      source

      pub fn origin_time(&self) -> Duration

      Get the time since the start of the stream that this frame was generated

      -
      source

      pub fn size(&self) -> Size

      Get the raw size of the frame

      +
      source

      pub fn capture_time(&self) -> Instant

      Get the Instant that this frame was delivered to the application

      +
      source

      pub fn origin_time(&self) -> Duration

      Get the time since the start of the stream that this frame was generated

      +
      source

      pub fn size(&self) -> Size

      Get the raw size of the frame

      For planar image formats, this is the size of the largest plane

      -
      source

      pub fn dpi(&self) -> f64

      Get the dpi of the contents of the frame (accounting for capture scaling)

      -

      Trait Implementations§

      source§

      impl Debug for VideoFrame

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl MacosIoSurfaceVideoFrameExt for VideoFrame

      source§

      fn get_iosurface(&self) -> Result<IoSurface, GetIoSurfaceError>

      Get the IOSurface representing the video frame’s texture
      source§

      impl MetalVideoFrameExt for VideoFrame

      source

      pub fn dpi(&self) -> f64

      Get the dpi of the contents of the frame (accounting for capture scaling)

      +
      source

      pub fn content_rect(&self) -> Rect

      Get the rectangle of the frame representing containing the captured contents

      +

      Trait Implementations§

      source§

      impl Debug for VideoFrame

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl MacosIoSurfaceVideoFrameExt for VideoFrame

      source§

      fn get_iosurface(&self) -> Result<IoSurface, GetIoSurfaceError>

      Get the IOSurface representing the video frame’s texture
      source§

      impl MetalVideoFrameExt for VideoFrame

      source§

      fn get_metal_texture( &self, plane: MetalVideoFramePlaneTexture ) -> Result<Texture, MacosVideoFrameError>

      Get the texture for the given plane of the video frame
      source§

      impl VideoFrameBitmap for VideoFrame

      source§

      fn get_bitmap(&self) -> Result<FrameBitmap, VideoFrameBitmapError>

      Create a bitmap image from this frame. This usually involves a memory transfer from VRAM to system RAM, @@ -15,7 +16,7 @@ &self, plane: WgpuVideoFramePlaneTexture, label: Option<&'static str> -) -> Result<Texture, WgpuVideoFrameError>

      Get the texture for the given plane of the video frame
      source§

      impl Send for VideoFrame

      source§

      impl Sync for VideoFrame

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where +) -> Result<Texture, WgpuVideoFrameError>

      Get the texture for the given plane of the video frame
      source§

      impl Send for VideoFrame

      source§

      impl Sync for VideoFrame

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where T: 'static + ?Sized,

      source§

      fn type_id(&self) -> TypeId

      Gets the TypeId of self. Read more
      source§

      impl<T> Borrow<T> for T
      where T: ?Sized,

      source§

      fn borrow(&self) -> &T

      Immutably borrows from an owned value. Read more
      source§

      impl<T> BorrowMut<T> for T
      where T: ?Sized,

      source§

      fn borrow_mut(&mut self) -> &mut T

      Mutably borrows from an owned value. Read more
      source§

      impl<T> From<T> for T

      source§

      fn from(t: T) -> T

      Returns the argument unchanged.

      diff --git a/docs/macos_docs/crabgrab/index.html b/docs/macos_docs/crabgrab/index.html index 8fa8bab9..aa922b56 100644 --- a/docs/macos_docs/crabgrab/index.html +++ b/docs/macos_docs/crabgrab/index.html @@ -1,4 +1,4 @@ -crabgrab - Rust 166 167 168 +169 +170 +171 +172 +173 +174
    #![allow(unused)]
     use std::{marker::PhantomData, time::{Duration, Instant}, fmt::Debug};
     
    @@ -290,6 +296,7 @@ 

    Files

    fn origin_time(&self) -> Duration; fn capture_time(&self) -> Instant; fn frame_id(&self) -> u64; + fn content_rect(&self) -> Rect; } /// A frame of captured video @@ -329,6 +336,11 @@

    Files

    pub fn dpi(&self) -> f64 { self.impl_video_frame.dpi() } + + /// Get the rectangle of the frame representing containing the captured contents + pub fn content_rect(&self) -> Rect { + self.impl_video_frame.content_rect() + } } impl Debug for VideoFrame { diff --git a/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html b/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html index eebf38a9..e72f4bad 100644 --- a/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html +++ b/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html @@ -198,13 +198,37 @@

    Files

    196 197 198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222
    use std::{cell::{Ref, RefCell}, marker::PhantomData, sync::Arc, time::{Duration, Instant}};
     
     use objc2::runtime::AnyObject;
     
    -use crate::{frame::{AudioCaptureFrame, VideoCaptureFrame}, prelude::{AudioBufferError, AudioChannelCount, AudioChannelData, AudioChannelDataSamples, AudioSampleRate}, util::{Rect, Size}};
    +use crate::{frame::{AudioCaptureFrame, VideoCaptureFrame}, prelude::{AudioBufferError, AudioChannelCount, AudioChannelData, AudioChannelDataSamples, AudioSampleRate, Point}, util::{Rect, Size}};
     
    -use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect};
    +use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect};
     
     pub(crate) struct MacosSCStreamVideoFrame {
         pub(crate) sample_buffer: CMSampleBuffer,
    @@ -312,6 +336,30 @@ 

    Files

    MacosVideoFrame::CGDisplayStream(cgd_frame) => cgd_frame.frame_id } } + + fn content_rect(&self) -> Rect { + match self { + MacosVideoFrame::SCStream(sc_frame) => { + let info_dict = sc_frame.get_info_dict(); + let content_rect_ptr = unsafe { info_dict.get_value(SCStreamFrameInfoContentRect) }; + let content_rect_dict = unsafe { NSDictionary::from_id_unretained(content_rect_ptr as *mut AnyObject) }; + let frame_content_rect = unsafe { CGRect::create_from_dictionary_representation(&content_rect_dict) }; + Rect { + origin: Point { + x: frame_content_rect.origin.x, + y: frame_content_rect.origin.y, + }, + size: Size { + width: frame_content_rect.size.x, + height: frame_content_rect.size.y + } + } + }, + MacosVideoFrame::CGDisplayStream(sc_fame) => { + todo!() + } + } + } } pub struct MacosAudioFrame { diff --git a/docs/windows_docs/crabgrab/all.html b/docs/windows_docs/crabgrab/all.html index 697d3fd5..35f50b6a 100644 --- a/docs/windows_docs/crabgrab/all.html +++ b/docs/windows_docs/crabgrab/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Functions

    \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/capturable_content/enum.CapturableContentError.html b/docs/windows_docs/crabgrab/capturable_content/enum.CapturableContentError.html index a624d62b..522118a4 100644 --- a/docs/windows_docs/crabgrab/capturable_content/enum.CapturableContentError.html +++ b/docs/windows_docs/crabgrab/capturable_content/enum.CapturableContentError.html @@ -1,8 +1,8 @@ -CapturableContentError in crabgrab::capturable_content - Rust +CapturableContentError in crabgrab::capturable_content - Rust
    pub enum CapturableContentError {
         Other(String),
     }
    Expand description

    Represents an error that occurred when enumerating capturable content

    -

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for CapturableContentError

    source§

    fn clone(&self) -> CapturableContentError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CapturableContentError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for CapturableContentError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for CapturableContentError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for CapturableContentError

    source§

    fn clone(&self) -> CapturableContentError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CapturableContentError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for CapturableContentError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for CapturableContentError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/windows_docs/crabgrab/capturable_content/index.html b/docs/windows_docs/crabgrab/capturable_content/index.html index 8a4960a5..c8268bf9 100644 --- a/docs/windows_docs/crabgrab/capturable_content/index.html +++ b/docs/windows_docs/crabgrab/capturable_content/index.html @@ -1,3 +1,3 @@ -crabgrab::capturable_content - Rust +crabgrab::capturable_content - Rust
    Expand description

    Enumeration of capturable items

    Structs§

    Enums§

    \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableApplication.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableApplication.html index c8689625..fe2f9472 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableApplication.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableApplication.html @@ -1,4 +1,4 @@ -CapturableApplication in crabgrab::capturable_content - Rust +CapturableApplication in crabgrab::capturable_content - Rust
    pub struct CapturableApplication { /* private fields */ }
    Expand description

    Represents an application with capturable windows

    Implementations§

    source§

    impl CapturableApplication

    source

    pub fn identifier(&self) -> String

    Gets the “identifier” of the application

    On MacOS, this is the application bundle, and on windows, this is the application file name

    diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContent.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContent.html index 18f9c4ff..5f6b2066 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContent.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContent.html @@ -1,4 +1,4 @@ -CapturableContent in crabgrab::capturable_content - Rust +CapturableContent in crabgrab::capturable_content - Rust
    pub struct CapturableContent { /* private fields */ }
    Expand description

    A collection of capturable content (windows, screens)

    Implementations§

    source§

    impl CapturableContent

    source

    pub async fn new( filter: CapturableContentFilter diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html index 06186895..7db6b474 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableContentFilter.html @@ -1,4 +1,4 @@ -CapturableContentFilter in crabgrab::capturable_content - Rust +CapturableContentFilter in crabgrab::capturable_content - Rust
    pub struct CapturableContentFilter { /* private fields */ }
    Expand description

    Selects the kind of capturable content to enumerate

    Implementations§

    source§

    impl CapturableContentFilter

    source

    pub fn new(displays: bool, windows: Option<CapturableWindowFilter>) -> Self

    Create a new content filter with the given filtering options

    source

    pub fn is_empty(&self) -> bool

    Whether this filter allows any capturable content

    diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplay.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplay.html index e120c72a..e2a0189c 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplay.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplay.html @@ -1,4 +1,4 @@ -CapturableDisplay in crabgrab::capturable_content - Rust +CapturableDisplay in crabgrab::capturable_content - Rust
    pub struct CapturableDisplay { /* private fields */ }
    Expand description

    Represents a capturable display

    Implementations§

    source§

    impl CapturableDisplay

    source

    pub fn rect(&self) -> Rect

    Gets the virtual screen rectangle of this display

    Note: Currently on windows, this is only evaluated at the time of display enumeration

    diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html index 78027c39..6be86474 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableDisplayIterator.html @@ -1,4 +1,4 @@ -CapturableDisplayIterator in crabgrab::capturable_content - Rust +CapturableDisplayIterator in crabgrab::capturable_content - Rust
    pub struct CapturableDisplayIterator<'content> { /* private fields */ }
    Expand description

    An iterator over capturable displays

    Trait Implementations§

    source§

    impl ExactSizeIterator for CapturableDisplayIterator<'_>

    source§

    fn len(&self) -> usize

    Returns the exact remaining length of the iterator. Read more
    source§

    fn is_empty(&self) -> bool

    🔬This is a nightly-only experimental API. (exact_size_is_empty)
    Returns true if the iterator is empty. Read more
    source§

    impl Iterator for CapturableDisplayIterator<'_>

    §

    type Item = CapturableDisplay

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the iterator. Read more
    source§

    fn next_chunk<const N: usize>( &mut self diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindow.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindow.html index 6e3abfeb..1834ed66 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindow.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindow.html @@ -1,4 +1,4 @@ -CapturableWindow in crabgrab::capturable_content - Rust +CapturableWindow in crabgrab::capturable_content - Rust
    pub struct CapturableWindow { /* private fields */ }
    Expand description

    Represents a capturable application window

    Implementations§

    source§

    impl CapturableWindow

    source

    pub fn title(&self) -> String

    Gets the title of the window

    source

    pub fn rect(&self) -> Rect

    Gets the virtual screen rectangle of the window

    diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html index ce27cc37..81be7316 100644 --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowFilter.html @@ -1,4 +1,4 @@ -CapturableWindowFilter in crabgrab::capturable_content - Rust +CapturableWindowFilter in crabgrab::capturable_content - Rust
    pub struct CapturableWindowFilter {
         pub desktop_windows: bool,
         pub onscreen_only: bool,
    diff --git a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
    index 7b7780ad..9c7b73cd 100644
    --- a/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
    +++ b/docs/windows_docs/crabgrab/capturable_content/struct.CapturableWindowIterator.html
    @@ -1,4 +1,4 @@
    -CapturableWindowIterator in crabgrab::capturable_content - Rust
    +CapturableWindowIterator in crabgrab::capturable_content - Rust
         
    pub struct CapturableWindowIterator<'content> { /* private fields */ }
    Expand description

    An iterator over capturable windows

    Trait Implementations§

    source§

    impl ExactSizeIterator for CapturableWindowIterator<'_>

    1.0.0 · source§

    fn len(&self) -> usize

    Returns the exact remaining length of the iterator. Read more
    source§

    fn is_empty(&self) -> bool

    🔬This is a nightly-only experimental API. (exact_size_is_empty)
    Returns true if the iterator is empty. Read more
    source§

    impl Iterator for CapturableWindowIterator<'_>

    §

    type Item = CapturableWindow

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the iterator. Read more
    source§

    fn next_chunk<const N: usize>( &mut self diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.CaptureConfigError.html b/docs/windows_docs/crabgrab/capture_stream/enum.CaptureConfigError.html index 18fad638..fc7ca54d 100644 --- a/docs/windows_docs/crabgrab/capture_stream/enum.CaptureConfigError.html +++ b/docs/windows_docs/crabgrab/capture_stream/enum.CaptureConfigError.html @@ -1,11 +1,11 @@ -CaptureConfigError in crabgrab::capture_stream - Rust +CaptureConfigError in crabgrab::capture_stream - Rust
    pub enum CaptureConfigError {
         UnsupportedPixelFormat,
         InvalidBufferCount,
     }
    Expand description

    Represents an error creating the capture config

    Variants§

    §

    UnsupportedPixelFormat

    The pixel format is unsupported by the implementation

    §

    InvalidBufferCount

    The buffer count is out of the valid range for the implementation

    -

    Trait Implementations§

    source§

    impl Clone for CaptureConfigError

    source§

    fn clone(&self) -> CaptureConfigError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CaptureConfigError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for CaptureConfigError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for CaptureConfigError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl Send for CaptureConfigError

    source§

    impl Sync for CaptureConfigError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    source§

    impl Clone for CaptureConfigError

    source§

    fn clone(&self) -> CaptureConfigError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CaptureConfigError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for CaptureConfigError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for CaptureConfigError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl Send for CaptureConfigError

    source§

    impl Sync for CaptureConfigError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html b/docs/windows_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html index aca93f92..f3c20e31 100644 --- a/docs/windows_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html +++ b/docs/windows_docs/crabgrab/capture_stream/enum.CapturePixelFormat.html @@ -1,4 +1,4 @@ -CapturePixelFormat in crabgrab::capture_stream - Rust +CapturePixelFormat in crabgrab::capture_stream - Rust
    #[non_exhaustive]
    pub enum CapturePixelFormat { Bgra8888, Argb2101010, diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.StreamCreateError.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamCreateError.html index 7faa3cd1..c563c051 100644 --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamCreateError.html +++ b/docs/windows_docs/crabgrab/capture_stream/enum.StreamCreateError.html @@ -1,4 +1,4 @@ -StreamCreateError in crabgrab::capture_stream - Rust +StreamCreateError in crabgrab::capture_stream - Rust
    pub enum StreamCreateError {
         Other(String),
         UnsupportedPixelFormat,
    @@ -6,7 +6,7 @@
     }
    Expand description

    This represents an error when creating a capture stream

    Variants§

    §

    Other(String)

    §

    UnsupportedPixelFormat

    The supplied pixel format is unsupported by the implementation

    §

    UnauthorizedFeature(String)

    Requested features are not authorized

    -

    Trait Implementations§

    source§

    impl Clone for StreamCreateError

    source§

    fn clone(&self) -> StreamCreateError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StreamCreateError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for StreamCreateError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for StreamCreateError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl Send for StreamCreateError

    source§

    impl Sync for StreamCreateError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    source§

    impl Clone for StreamCreateError

    source§

    fn clone(&self) -> StreamCreateError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StreamCreateError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for StreamCreateError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for StreamCreateError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl Send for StreamCreateError

    source§

    impl Sync for StreamCreateError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html index 58e8c5a4..9fed12a1 100644 --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html +++ b/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html @@ -1,8 +1,8 @@ -StreamError in crabgrab::capture_stream - Rust +StreamError in crabgrab::capture_stream - Rust
    pub enum StreamError {
         Other(String),
     }
    Expand description

    This represents an error during a stream, for example a failure to retrieve a video or audio frame

    -

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for StreamError

    source§

    fn clone(&self) -> StreamError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StreamError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for StreamError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for StreamError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Variants§

    §

    Other(String)

    Trait Implementations§

    source§

    impl Clone for StreamError

    source§

    fn clone(&self) -> StreamError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StreamError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for StreamError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for StreamError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html index 5b5297cd..d1f64117 100644 --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html +++ b/docs/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html @@ -1,4 +1,4 @@ -StreamEvent in crabgrab::capture_stream - Rust +StreamEvent in crabgrab::capture_stream - Rust
    pub enum StreamEvent {
         Audio(AudioFrame),
         Video(VideoFrame),
    diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.StreamStopError.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamStopError.html
    index db54bfe2..7fa1e81f 100644
    --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamStopError.html
    +++ b/docs/windows_docs/crabgrab/capture_stream/enum.StreamStopError.html
    @@ -1,4 +1,4 @@
    -StreamStopError in crabgrab::capture_stream - Rust
    +StreamStopError in crabgrab::capture_stream - Rust
         
    pub enum StreamStopError {
         Other(String),
         AlreadyStopped,
    diff --git a/docs/windows_docs/crabgrab/capture_stream/index.html b/docs/windows_docs/crabgrab/capture_stream/index.html
    index a19f58a5..8fe719af 100644
    --- a/docs/windows_docs/crabgrab/capture_stream/index.html
    +++ b/docs/windows_docs/crabgrab/capture_stream/index.html
    @@ -1,3 +1,3 @@
    -crabgrab::capture_stream - Rust
    +crabgrab::capture_stream - Rust
         
    Expand description

    The actual capture stream and related constructs

    Structs§

    Enums§

    \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html b/docs/windows_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html index 2a4dce94..5bdbff85 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.AudioCaptureConfig.html @@ -1,4 +1,4 @@ -AudioCaptureConfig in crabgrab::capture_stream - Rust +AudioCaptureConfig in crabgrab::capture_stream - Rust
    pub struct AudioCaptureConfig { /* private fields */ }
    Expand description

    Configuration settings for audio streams

    Implementations§

    source§

    impl AudioCaptureConfig

    source

    pub fn new() -> Self

    Creates a new audio capture config with default settings:

      diff --git a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html index 18cf9c4b..ea440798 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html @@ -1,4 +1,4 @@ -CaptureAccessToken in crabgrab::capture_stream - Rust +CaptureAccessToken in crabgrab::capture_stream - Rust
      pub struct CaptureAccessToken { /* private fields */ }
      Expand description

      Represents programmatic capture access

      Implementations§

      Trait Implementations§

      source§

      impl Clone for CaptureAccessToken

      source§

      fn clone(&self) -> CaptureAccessToken

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for CaptureAccessToken

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Copy for CaptureAccessToken

      source§

      impl Send for CaptureAccessToken

      source§

      impl Sync for CaptureAccessToken

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where T: 'static + ?Sized,

      source§

      fn type_id(&self) -> TypeId

      Gets the TypeId of self. Read more
      source§

      impl<T> Borrow<T> for T
      where diff --git a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html index 5c042f86..81c3cf3d 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html @@ -1,4 +1,4 @@ -CaptureConfig in crabgrab::capture_stream - Rust +CaptureConfig in crabgrab::capture_stream - Rust
      pub struct CaptureConfig { /* private fields */ }
      Expand description

      Configuration settings for a capture stream

      Implementations§

      source§

      impl CaptureConfig

      source

      pub fn with_window( window: CapturableWindow, diff --git a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html index 43c40894..d394996d 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html @@ -1,4 +1,4 @@ -CaptureStream in crabgrab::capture_stream - Rust +CaptureStream in crabgrab::capture_stream - Rust
      pub struct CaptureStream { /* private fields */ }
      Expand description

      Represents an active capture stream

      Implementations§

      source§

      impl CaptureStream

      source

      pub fn test_access(borderless: bool) -> Option<CaptureAccessToken>

      Test whether the calling application has permission to capture content

      source

      pub async fn request_access(borderless: bool) -> Option<CaptureAccessToken>

      Prompt the user for permission to capture content

      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html b/docs/windows_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html index 16ba10c0..d15aaa18 100644 --- a/docs/windows_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html +++ b/docs/windows_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html @@ -1,4 +1,4 @@ -FrameBitmap in crabgrab::feature::bitmap - Rust +FrameBitmap in crabgrab::feature::bitmap - Rust
      pub enum FrameBitmap {
           BgraUnorm8x4(FrameBitmapBgraUnorm8x4),
           RgbaUnormPacked1010102(FrameBitmapRgbaUnormPacked1010102),
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
      index 144fce35..15ca672b 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
      @@ -1,8 +1,8 @@
      -VideoFrameBitmapError in crabgrab::feature::bitmap - Rust
      +VideoFrameBitmapError in crabgrab::feature::bitmap - Rust
           
      pub enum VideoFrameBitmapError {
           Other(String),
       }
      Expand description

      Represents an error while generating a frame bitmap

      -

      Variants§

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for VideoFrameBitmapError

      source§

      fn clone(&self) -> VideoFrameBitmapError

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for VideoFrameBitmapError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for VideoFrameBitmapError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for VideoFrameBitmapError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where +

      Variants§

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for VideoFrameBitmapError

      source§

      fn clone(&self) -> VideoFrameBitmapError

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for VideoFrameBitmapError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for VideoFrameBitmapError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for VideoFrameBitmapError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where T: 'static + ?Sized,

      source§

      fn type_id(&self) -> TypeId

      Gets the TypeId of self. Read more
      source§

      impl<T> Borrow<T> for T
      where T: ?Sized,

      source§

      fn borrow(&self) -> &T

      Immutably borrows from an owned value. Read more
      source§

      impl<T> BorrowMut<T> for T
      where T: ?Sized,

      source§

      fn borrow_mut(&mut self) -> &mut T

      Mutably borrows from an owned value. Read more
      source§

      impl<T> From<T> for T

      source§

      fn from(t: T) -> T

      Returns the argument unchanged.

      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html index 62bcd09e..166c03e8 100644 --- a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html +++ b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html @@ -1,4 +1,4 @@ -VideoRange in crabgrab::feature::bitmap - Rust +VideoRange in crabgrab::feature::bitmap - Rust
      pub enum VideoRange {
           Video,
           Full,
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/index.html b/docs/windows_docs/crabgrab/feature/bitmap/index.html
      index fef3c54d..30c44e86 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/index.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/index.html
      @@ -1,4 +1,4 @@
      -crabgrab::feature::bitmap - Rust
      +crabgrab::feature::bitmap - Rust
           

      Module crabgrab::feature::bitmap

      source ·
      Expand description

      Frame to Bitmap conversion (requires bitmap feature)

      Structs§

      Enums§

      Traits§

      \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html index 5b0fdfe8..ffc3a8cc 100644 --- a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html +++ b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapBgraUnorm8x4.html @@ -1,4 +1,4 @@ -FrameBitmapBgraUnorm8x4 in crabgrab::feature::bitmap - Rust +FrameBitmapBgraUnorm8x4 in crabgrab::feature::bitmap - Rust
      pub struct FrameBitmapBgraUnorm8x4 {
           pub data: Box<[[u8; 4]]>,
           pub width: usize,
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
      index 1c868cce..62cb8a96 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaF16x4.html
      @@ -1,4 +1,4 @@
      -FrameBitmapRgbaF16x4 in crabgrab::feature::bitmap - Rust
      +FrameBitmapRgbaF16x4 in crabgrab::feature::bitmap - Rust
           
      pub struct FrameBitmapRgbaF16x4 {
           pub data: Box<[[f16; 4]]>,
           pub width: usize,
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
      index 7f75f1c4..582ac53b 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapRgbaUnormPacked1010102.html
      @@ -1,4 +1,4 @@
      -FrameBitmapRgbaUnormPacked1010102 in crabgrab::feature::bitmap - Rust
      +FrameBitmapRgbaUnormPacked1010102 in crabgrab::feature::bitmap - Rust
           
      pub struct FrameBitmapRgbaUnormPacked1010102 {
           pub data: Box<[u32]>,
           pub width: usize,
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
      index b0c51870..25c644a5 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/struct.FrameBitmapYCbCr.html
      @@ -1,4 +1,4 @@
      -FrameBitmapYCbCr in crabgrab::feature::bitmap - Rust
      +FrameBitmapYCbCr in crabgrab::feature::bitmap - Rust
           
      pub struct FrameBitmapYCbCr {
           pub luma_data: Box<[u8]>,
           pub luma_width: usize,
      diff --git a/docs/windows_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html b/docs/windows_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
      index 03f328a7..446d9215 100644
      --- a/docs/windows_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
      +++ b/docs/windows_docs/crabgrab/feature/bitmap/trait.VideoFrameBitmap.html
      @@ -1,4 +1,4 @@
      -VideoFrameBitmap in crabgrab::feature::bitmap - Rust
      +VideoFrameBitmap in crabgrab::feature::bitmap - Rust
           
      pub trait VideoFrameBitmap {
           // Required method
           fn get_bitmap(&self) -> Result<FrameBitmap, VideoFrameBitmapError>;
      diff --git a/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html b/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html
      index 13625ca3..247a6770 100644
      --- a/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html
      +++ b/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html
      @@ -1,4 +1,4 @@
      -WindowsDx11VideoFrameError in crabgrab::feature::dx11 - Rust
      +WindowsDx11VideoFrameError in crabgrab::feature::dx11 - Rust
           
      pub enum WindowsDx11VideoFrameError {
           Other(String),
       }

      Variants§

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for WindowsDx11VideoFrameError

      source§

      fn clone(&self) -> WindowsDx11VideoFrameError

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for WindowsDx11VideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for WindowsDx11VideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for WindowsDx11VideoFrameError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/docs/windows_docs/crabgrab/feature/dx11/index.html b/docs/windows_docs/crabgrab/feature/dx11/index.html index 321e5cbd..34a48a7d 100644 --- a/docs/windows_docs/crabgrab/feature/dx11/index.html +++ b/docs/windows_docs/crabgrab/feature/dx11/index.html @@ -1,4 +1,4 @@ -crabgrab::feature::dx11 - Rust +crabgrab::feature::dx11 - Rust

      Module crabgrab::feature::dx11

      source ·
      Expand description

      Frame -> DX11 Surface/Texture conversion (requires dx11 feature)

      Enums§

      Traits§

      \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11CaptureStream.html b/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11CaptureStream.html index 36fbf361..997badc8 100644 --- a/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11CaptureStream.html +++ b/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11CaptureStream.html @@ -1,4 +1,4 @@ -WindowsDx11CaptureStream in crabgrab::feature::dx11 - Rust +WindowsDx11CaptureStream in crabgrab::feature::dx11 - Rust
      pub trait WindowsDx11CaptureStream {
           // Required method
           fn get_dx11_device(&self) -> ID3D11Device;
      diff --git a/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11VideoFrame.html b/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11VideoFrame.html
      index 46d9be81..707e19aa 100644
      --- a/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11VideoFrame.html
      +++ b/docs/windows_docs/crabgrab/feature/dx11/trait.WindowsDx11VideoFrame.html
      @@ -1,4 +1,4 @@
      -WindowsDx11VideoFrame in crabgrab::feature::dx11 - Rust
      +WindowsDx11VideoFrame in crabgrab::feature::dx11 - Rust
           
      pub trait WindowsDx11VideoFrame {
           // Required methods
           fn get_dx11_surface(
      diff --git a/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html
      index 013f6143..27a7b40c 100644
      --- a/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html
      +++ b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html
      @@ -1,4 +1,4 @@
      -WindowsDxgiCaptureStreamError in crabgrab::feature::dxgi - Rust
      +WindowsDxgiCaptureStreamError in crabgrab::feature::dxgi - Rust
           
      pub enum WindowsDxgiCaptureStreamError {
           NoAdapter(String),
       }

      Variants§

      §

      NoAdapter(String)

      Trait Implementations§

      source§

      impl Debug for WindowsDxgiCaptureStreamError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for WindowsDxgiCaptureStreamError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for WindowsDxgiCaptureStreamError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where diff --git a/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiVideoFrameError.html b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiVideoFrameError.html index abf7ad0c..0ec365d1 100644 --- a/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiVideoFrameError.html +++ b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiVideoFrameError.html @@ -1,7 +1,7 @@ -WindowsDxgiVideoFrameError in crabgrab::feature::dxgi - Rust +WindowsDxgiVideoFrameError in crabgrab::feature::dxgi - Rust
      pub enum WindowsDxgiVideoFrameError {
           Other(String),
      -}

      Variants§

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for WindowsDxgiVideoFrameError

      source§

      fn clone(&self) -> WindowsDxgiVideoFrameError

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for WindowsDxgiVideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for WindowsDxgiVideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for WindowsDxgiVideoFrameError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where +}

      Variants§

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for WindowsDxgiVideoFrameError

      source§

      fn clone(&self) -> WindowsDxgiVideoFrameError

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      source§

      impl Debug for WindowsDxgiVideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Display for WindowsDxgiVideoFrameError

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      source§

      impl Error for WindowsDxgiVideoFrameError

      source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      The lower-level source of this error, if any. Read more
      source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type based access to context intended for error reports. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      source§

      impl<T> Any for T
      where T: 'static + ?Sized,

      source§

      fn type_id(&self) -> TypeId

      Gets the TypeId of self. Read more
      source§

      impl<T> Borrow<T> for T
      where T: ?Sized,

      source§

      fn borrow(&self) -> &T

      Immutably borrows from an owned value. Read more
      source§

      impl<T> BorrowMut<T> for T
      where T: ?Sized,

      source§

      fn borrow_mut(&mut self) -> &mut T

      Mutably borrows from an owned value. Read more
      source§

      impl<T> From<T> for T

      source§

      fn from(t: T) -> T

      Returns the argument unchanged.

      diff --git a/docs/windows_docs/crabgrab/feature/dxgi/index.html b/docs/windows_docs/crabgrab/feature/dxgi/index.html index 3b44158f..8c7f9c8f 100644 --- a/docs/windows_docs/crabgrab/feature/dxgi/index.html +++ b/docs/windows_docs/crabgrab/feature/dxgi/index.html @@ -1,4 +1,4 @@ -crabgrab::feature::dxgi - Rust +crabgrab::feature::dxgi - Rust

      Module crabgrab::feature::dxgi

      source ·
      Expand description

      Frame -> DXGI Surface conversion (requires dxgi feature)

      Enums§

      Traits§

      \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiCaptureStream.html b/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiCaptureStream.html index c4aea858..91be6a7e 100644 --- a/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiCaptureStream.html +++ b/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiCaptureStream.html @@ -1,4 +1,4 @@ -WindowsDxgiCaptureStream in crabgrab::feature::dxgi - Rust +WindowsDxgiCaptureStream in crabgrab::feature::dxgi - Rust
      pub trait WindowsDxgiCaptureStream {
           // Required methods
           fn get_dxgi_adapter(
      diff --git a/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiVideoFrame.html b/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiVideoFrame.html
      index c1c99e7b..73eaac39 100644
      --- a/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiVideoFrame.html
      +++ b/docs/windows_docs/crabgrab/feature/dxgi/trait.WindowsDxgiVideoFrame.html
      @@ -1,4 +1,4 @@
      -WindowsDxgiVideoFrame in crabgrab::feature::dxgi - Rust
      +WindowsDxgiVideoFrame in crabgrab::feature::dxgi - Rust
           
      pub trait WindowsDxgiVideoFrame {
           // Required method
           fn get_dxgi_surface(
      diff --git a/docs/windows_docs/crabgrab/feature/index.html b/docs/windows_docs/crabgrab/feature/index.html
      index b36516c1..1490b5be 100644
      --- a/docs/windows_docs/crabgrab/feature/index.html
      +++ b/docs/windows_docs/crabgrab/feature/index.html
      @@ -1,4 +1,4 @@
      -crabgrab::feature - Rust
      +crabgrab::feature - Rust
           

      Module crabgrab::feature

      source ·
      Expand description

      Extension features

      Modules§

      • Frame to Bitmap conversion (requires bitmap feature)
      • Frame -> DX11 Surface/Texture conversion diff --git a/docs/windows_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html b/docs/windows_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html index 19c05172..8ec95972 100644 --- a/docs/windows_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html +++ b/docs/windows_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html @@ -1,8 +1,8 @@ -ScreenshotError in crabgrab::feature::screenshot - Rust +ScreenshotError in crabgrab::feature::screenshot - Rust
        pub enum ScreenshotError {
             Other(String),
         }
        Expand description

        Represents an error while taking a screenshot

        -

        Variants§

        §

        Other(String)

        Trait Implementations§

        source§

        impl Debug for ScreenshotError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Display for ScreenshotError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Error for ScreenshotError

        source§

        fn source(&self) -> Option<&(dyn Error + 'static)>

        The lower-level source of this error, if any. Read more
        source§

        fn description(&self) -> &str

        👎Deprecated since 1.42.0: use the Display impl or to_string()
        source§

        fn cause(&self) -> Option<&dyn Error>

        👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
        source§

        fn provide<'a>(&'a self, request: &mut Request<'a>)

        🔬This is a nightly-only experimental API. (error_generic_member_access)
        Provides type based access to context intended for error reports. Read more
        source§

        impl Send for ScreenshotError

        source§

        impl Sync for ScreenshotError

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +

        Variants§

        §

        Other(String)

        Trait Implementations§

        source§

        impl Debug for ScreenshotError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Display for ScreenshotError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Error for ScreenshotError

        source§

        fn source(&self) -> Option<&(dyn Error + 'static)>

        The lower-level source of this error, if any. Read more
        source§

        fn description(&self) -> &str

        👎Deprecated since 1.42.0: use the Display impl or to_string()
        source§

        fn cause(&self) -> Option<&dyn Error>

        👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
        source§

        fn provide<'a>(&'a self, request: &mut Request<'a>)

        🔬This is a nightly-only experimental API. (error_generic_member_access)
        Provides type based access to context intended for error reports. Read more
        source§

        impl Send for ScreenshotError

        source§

        impl Sync for ScreenshotError

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> From<T> for T

        source§

        fn from(t: T) -> T

        Returns the argument unchanged.

        diff --git a/docs/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html b/docs/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html index 59f29878..c2a20f13 100644 --- a/docs/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html +++ b/docs/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html @@ -1,4 +1,4 @@ -take_screenshot in crabgrab::feature::screenshot - Rust +take_screenshot in crabgrab::feature::screenshot - Rust
        pub async fn take_screenshot(
             token: CaptureAccessToken,
             config: CaptureConfig
        diff --git a/docs/windows_docs/crabgrab/feature/screenshot/index.html b/docs/windows_docs/crabgrab/feature/screenshot/index.html
        index 84f52200..c354a29b 100644
        --- a/docs/windows_docs/crabgrab/feature/screenshot/index.html
        +++ b/docs/windows_docs/crabgrab/feature/screenshot/index.html
        @@ -1,4 +1,4 @@
        -crabgrab::feature::screenshot - Rust
        +crabgrab::feature::screenshot - Rust
             
        Expand description

        Screenshot utility function (requires screenshot feature)

        Enums§

        Functions§

        • Take a screenshot of the capturable content given a configuration
        \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html b/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html index 98e5f4cd..8e208e3b 100644 --- a/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html +++ b/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFrameError.html @@ -1,4 +1,4 @@ -WgpuVideoFrameError in crabgrab::feature::wgpu - Rust +WgpuVideoFrameError in crabgrab::feature::wgpu - Rust
        pub enum WgpuVideoFrameError {
             NoBackendTexture,
             InvalidVideoPlaneTexture,
        @@ -8,7 +8,7 @@
         

        Variants§

        §

        NoBackendTexture

        the backend texture couldn’t be fetched

        §

        InvalidVideoPlaneTexture

        The requested plane isn’t valid for this frame

        §

        NoWgpuDevice

        No Wgpu device was supplied to the capture stream

        -
        §

        Other(String)

        Trait Implementations§

        source§

        impl Clone for WgpuVideoFrameError

        source§

        fn clone(&self) -> WgpuVideoFrameError

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl Debug for WgpuVideoFrameError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Display for WgpuVideoFrameError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Error for WgpuVideoFrameError

        source§

        fn source(&self) -> Option<&(dyn Error + 'static)>

        The lower-level source of this error, if any. Read more
        source§

        fn description(&self) -> &str

        👎Deprecated since 1.42.0: use the Display impl or to_string()
        source§

        fn cause(&self) -> Option<&dyn Error>

        👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
        source§

        fn provide<'a>(&'a self, request: &mut Request<'a>)

        🔬This is a nightly-only experimental API. (error_generic_member_access)
        Provides type based access to context intended for error reports. Read more

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +
        §

        Other(String)

        Trait Implementations§

        source§

        impl Clone for WgpuVideoFrameError

        source§

        fn clone(&self) -> WgpuVideoFrameError

        Returns a copy of the value. Read more
        1.0.0 · source§

        fn clone_from(&mut self, source: &Self)

        Performs copy-assignment from source. Read more
        source§

        impl Debug for WgpuVideoFrameError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Display for WgpuVideoFrameError

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl Error for WgpuVideoFrameError

        source§

        fn source(&self) -> Option<&(dyn Error + 'static)>

        The lower-level source of this error, if any. Read more
        source§

        fn description(&self) -> &str

        👎Deprecated since 1.42.0: use the Display impl or to_string()
        source§

        fn cause(&self) -> Option<&dyn Error>

        👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
        source§

        fn provide<'a>(&'a self, request: &mut Request<'a>)

        🔬This is a nightly-only experimental API. (error_generic_member_access)
        Provides type based access to context intended for error reports. Read more

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> From<T> for T

        source§

        fn from(t: T) -> T

        Returns the argument unchanged.

        diff --git a/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html b/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html index d4195d04..eb450c45 100644 --- a/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html +++ b/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html @@ -1,4 +1,4 @@ -WgpuVideoFramePlaneTexture in crabgrab::feature::wgpu - Rust +WgpuVideoFramePlaneTexture in crabgrab::feature::wgpu - Rust
        pub enum WgpuVideoFramePlaneTexture {
             Rgba,
             Luminance,
        diff --git a/docs/windows_docs/crabgrab/feature/wgpu/index.html b/docs/windows_docs/crabgrab/feature/wgpu/index.html
        index 774014a2..cf159a94 100644
        --- a/docs/windows_docs/crabgrab/feature/wgpu/index.html
        +++ b/docs/windows_docs/crabgrab/feature/wgpu/index.html
        @@ -1,4 +1,4 @@
        -crabgrab::feature::wgpu - Rust
        +crabgrab::feature::wgpu - Rust
             

        Module crabgrab::feature::wgpu

        source ·
        Expand description

        Frame -> Wgpu Texture conversion (requires wgpu feature)

        Enums§

        Traits§

        \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html index 408d89a0..ddee709a 100644 --- a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html +++ b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureConfigExt.html @@ -1,4 +1,4 @@ -WgpuCaptureConfigExt in crabgrab::feature::wgpu - Rust +WgpuCaptureConfigExt in crabgrab::feature::wgpu - Rust
        pub trait WgpuCaptureConfigExt: Sized {
             // Required method
             fn with_wgpu_device(
        diff --git a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
        index 4ba53150..e7ee53c4 100644
        --- a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
        +++ b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuCaptureStreamExt.html
        @@ -1,4 +1,4 @@
        -WgpuCaptureStreamExt in crabgrab::feature::wgpu - Rust
        +WgpuCaptureStreamExt in crabgrab::feature::wgpu - Rust
             
        pub trait WgpuCaptureStreamExt {
             // Required methods
             fn get_wgpu_device_wrapper(
        diff --git a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
        index 34951487..e460242b 100644
        --- a/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
        +++ b/docs/windows_docs/crabgrab/feature/wgpu/trait.WgpuVideoFrameExt.html
        @@ -1,4 +1,4 @@
        -WgpuVideoFrameExt in crabgrab::feature::wgpu - Rust
        +WgpuVideoFrameExt in crabgrab::feature::wgpu - Rust
             
        pub trait WgpuVideoFrameExt {
             // Required method
             fn get_wgpu_texture(
        diff --git a/docs/windows_docs/crabgrab/frame/enum.AudioBufferError.html b/docs/windows_docs/crabgrab/frame/enum.AudioBufferError.html
        index 39ec93fd..d4c00223 100644
        --- a/docs/windows_docs/crabgrab/frame/enum.AudioBufferError.html
        +++ b/docs/windows_docs/crabgrab/frame/enum.AudioBufferError.html
        @@ -1,4 +1,4 @@
        -AudioBufferError in crabgrab::frame - Rust
        +AudioBufferError in crabgrab::frame - Rust
             
        pub enum AudioBufferError {
             UnsupportedFormat,
             InvalidChannel,
        diff --git a/docs/windows_docs/crabgrab/frame/enum.AudioChannelCount.html b/docs/windows_docs/crabgrab/frame/enum.AudioChannelCount.html
        index f9f38b30..9f7c88a9 100644
        --- a/docs/windows_docs/crabgrab/frame/enum.AudioChannelCount.html
        +++ b/docs/windows_docs/crabgrab/frame/enum.AudioChannelCount.html
        @@ -1,4 +1,4 @@
        -AudioChannelCount in crabgrab::frame - Rust
        +AudioChannelCount in crabgrab::frame - Rust
             
        pub enum AudioChannelCount {
             Mono,
             Stereo,
        diff --git a/docs/windows_docs/crabgrab/frame/enum.AudioChannelData.html b/docs/windows_docs/crabgrab/frame/enum.AudioChannelData.html
        index ac208c54..09c68d99 100644
        --- a/docs/windows_docs/crabgrab/frame/enum.AudioChannelData.html
        +++ b/docs/windows_docs/crabgrab/frame/enum.AudioChannelData.html
        @@ -1,4 +1,4 @@
        -AudioChannelData in crabgrab::frame - Rust
        +AudioChannelData in crabgrab::frame - Rust
             
        pub enum AudioChannelData<'data> {
             F32(AudioChannelDataSamples<'data, f32>),
             I32(AudioChannelDataSamples<'data, i32>),
        diff --git a/docs/windows_docs/crabgrab/frame/enum.AudioSampleRate.html b/docs/windows_docs/crabgrab/frame/enum.AudioSampleRate.html
        index 78f7cdb4..5075a196 100644
        --- a/docs/windows_docs/crabgrab/frame/enum.AudioSampleRate.html
        +++ b/docs/windows_docs/crabgrab/frame/enum.AudioSampleRate.html
        @@ -1,4 +1,4 @@
        -AudioSampleRate in crabgrab::frame - Rust
        +AudioSampleRate in crabgrab::frame - Rust
             
        pub enum AudioSampleRate {
             Hz8000,
             Hz16000,
        diff --git a/docs/windows_docs/crabgrab/frame/index.html b/docs/windows_docs/crabgrab/frame/index.html
        index fa2c7b12..ac8c5113 100644
        --- a/docs/windows_docs/crabgrab/frame/index.html
        +++ b/docs/windows_docs/crabgrab/frame/index.html
        @@ -1,3 +1,3 @@
        -crabgrab::frame - Rust
        -    

        Module crabgrab::frame

        source ·
        Expand description

        Audio and video frames

        +crabgrab::frame - Rust +

        Module crabgrab::frame

        source ·
        Expand description

        Audio and video frames

        Structs§

        Enums§

        \ No newline at end of file diff --git a/docs/windows_docs/crabgrab/frame/struct.AudioChannelDataSamples.html b/docs/windows_docs/crabgrab/frame/struct.AudioChannelDataSamples.html index e212445b..d686e9c4 100644 --- a/docs/windows_docs/crabgrab/frame/struct.AudioChannelDataSamples.html +++ b/docs/windows_docs/crabgrab/frame/struct.AudioChannelDataSamples.html @@ -1,4 +1,4 @@ -AudioChannelDataSamples in crabgrab::frame - Rust +AudioChannelDataSamples in crabgrab::frame - Rust
        pub struct AudioChannelDataSamples<'data, T> { /* private fields */ }
        Expand description

        Wraps a “slice” of audio data for one channel, handling data stride

        Implementations§

        source§

        impl<T: Copy> AudioChannelDataSamples<'_, T>

        source

        pub fn get(&self, n: usize) -> T

        Get the nth sample for this channel data

        source

        pub fn length(&self) -> usize

        Get the length of this sample buffer

        diff --git a/docs/windows_docs/crabgrab/frame/struct.AudioFrame.html b/docs/windows_docs/crabgrab/frame/struct.AudioFrame.html index f2bc89e5..85c0e6db 100644 --- a/docs/windows_docs/crabgrab/frame/struct.AudioFrame.html +++ b/docs/windows_docs/crabgrab/frame/struct.AudioFrame.html @@ -1,4 +1,4 @@ -AudioFrame in crabgrab::frame - Rust +AudioFrame in crabgrab::frame - Rust

        Struct crabgrab::frame::AudioFrame

        source ·
        pub struct AudioFrame { /* private fields */ }
        Expand description

        A frame of captured audio

        Implementations§

        source§

        impl AudioFrame

        source

        pub fn sample_rate(&self) -> AudioSampleRate

        Get the sample rate of the captured audio

        source

        pub fn channel_count(&self) -> AudioChannelCount

        Get the channel count of the captured audio

        diff --git a/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html b/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html index 04844ba3..0d703b5c 100644 --- a/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html +++ b/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html @@ -1,13 +1,14 @@ -VideoFrame in crabgrab::frame - Rust -

        Struct crabgrab::frame::VideoFrame

        source ·
        pub struct VideoFrame { /* private fields */ }
        Expand description

        A frame of captured video

        -

        Implementations§

        source§

        impl VideoFrame

        source

        pub fn frame_id(&self) -> u64

        Get the sequence id of this video frame (monotonically increasing)

        +VideoFrame in crabgrab::frame - Rust +

        Struct crabgrab::frame::VideoFrame

        source ·
        pub struct VideoFrame { /* private fields */ }
        Expand description

        A frame of captured video

        +

        Implementations§

        source§

        impl VideoFrame

        source

        pub fn frame_id(&self) -> u64

        Get the sequence id of this video frame (monotonically increasing)

        Note: This is separate from audio frame ids

        -
        source

        pub fn capture_time(&self) -> Instant

        Get the Instant that this frame was delivered to the application

        -
        source

        pub fn origin_time(&self) -> Duration

        Get the time since the start of the stream that this frame was generated

        -
        source

        pub fn size(&self) -> Size

        Get the raw size of the frame

        +
        source

        pub fn capture_time(&self) -> Instant

        Get the Instant that this frame was delivered to the application

        +
        source

        pub fn origin_time(&self) -> Duration

        Get the time since the start of the stream that this frame was generated

        +
        source

        pub fn size(&self) -> Size

        Get the raw size of the frame

        For planar image formats, this is the size of the largest plane

        -
        source

        pub fn dpi(&self) -> f64

        Get the dpi of the contents of the frame (accounting for capture scaling)

        -

        Trait Implementations§

        source§

        impl Debug for VideoFrame

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl VideoFrameBitmap for VideoFrame

        source§

        fn get_bitmap(&self) -> Result<FrameBitmap, VideoFrameBitmapError>

        Create a bitmap image from this frame. This usually involves a memory transfer from VRAM to system RAM, +
        source

        pub fn dpi(&self) -> f64

        Get the dpi of the contents of the frame (accounting for capture scaling)

        +
        source

        pub fn content_rect(&self) -> Rect

        Get the rectangle of the frame representing containing the captured contents

        +

        Trait Implementations§

        source§

        impl Debug for VideoFrame

        source§

        fn fmt(&self, f: &mut Formatter<'_>) -> Result

        Formats the value using the given formatter. Read more
        source§

        impl VideoFrameBitmap for VideoFrame

        source§

        fn get_bitmap(&self) -> Result<FrameBitmap, VideoFrameBitmapError>

        Create a bitmap image from this frame. This usually involves a memory transfer from VRAM to system RAM, and is an expensive operation.
        source§

        impl WgpuVideoFrameExt for VideoFrame

        source§

        fn get_wgpu_texture( &self, plane: WgpuVideoFramePlaneTexture, @@ -18,7 +19,7 @@ &self ) -> Result<(ID3D11Texture2D, DirectXPixelFormat), WindowsDx11VideoFrameError>

        source§

        impl WindowsDxgiVideoFrame for VideoFrame

        source§

        fn get_dxgi_surface( &self -) -> Result<(IDXGISurface, DirectXPixelFormat), WindowsDxgiVideoFrameError>

        Get the surface texture for this video frame
        source§

        impl Send for VideoFrame

        source§

        impl Sync for VideoFrame

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +) -> Result<(IDXGISurface, DirectXPixelFormat), WindowsDxgiVideoFrameError>

        Get the surface texture for this video frame
        source§

        impl Send for VideoFrame

        source§

        impl Sync for VideoFrame

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where T: 'static + ?Sized,

        source§

        fn type_id(&self) -> TypeId

        Gets the TypeId of self. Read more
        source§

        impl<T> Borrow<T> for T
        where T: ?Sized,

        source§

        fn borrow(&self) -> &T

        Immutably borrows from an owned value. Read more
        source§

        impl<T> BorrowMut<T> for T
        where T: ?Sized,

        source§

        fn borrow_mut(&mut self) -> &mut T

        Mutably borrows from an owned value. Read more
        source§

        impl<T> From<T> for T

        source§

        fn from(t: T) -> T

        Returns the argument unchanged.

        diff --git a/docs/windows_docs/crabgrab/index.html b/docs/windows_docs/crabgrab/index.html index abb6e6c2..c6d6a75a 100644 --- a/docs/windows_docs/crabgrab/index.html +++ b/docs/windows_docs/crabgrab/index.html @@ -1,4 +1,4 @@ -crabgrab - Rust 166 167 168 +169 +170 +171 +172 +173 +174
        #![allow(unused)]
         use std::{marker::PhantomData, time::{Duration, Instant}, fmt::Debug};
         
        @@ -290,6 +296,7 @@ 

        Files

        fn origin_time(&self) -> Duration; fn capture_time(&self) -> Instant; fn frame_id(&self) -> u64; + fn content_rect(&self) -> Rect; } /// A frame of captured video @@ -329,6 +336,11 @@

        Files

        pub fn dpi(&self) -> f64 { self.impl_video_frame.dpi() } + + /// Get the rectangle of the frame representing containing the captured contents + pub fn content_rect(&self) -> Rect { + self.impl_video_frame.content_rect() + } } impl Debug for VideoFrame { diff --git a/docs/windows_docs/src/crabgrab/platform/windows/frame.rs.html b/docs/windows_docs/src/crabgrab/platform/windows/frame.rs.html index 0a775ca7..4110f4ba 100644 --- a/docs/windows_docs/src/crabgrab/platform/windows/frame.rs.html +++ b/docs/windows_docs/src/crabgrab/platform/windows/frame.rs.html @@ -105,11 +105,18 @@

        Files

        103 104 105 +106 +107 +108 +109 +110 +111 +112
        use std::{marker::PhantomData, sync::Arc, time::Duration};
         
         use windows::{Graphics::{Capture::Direct3D11CaptureFrame, DirectX::DirectXPixelFormat, SizeInt32}, Win32::Graphics::Direct3D11::ID3D11Device};
         
        -use crate::{prelude::{AudioBufferError, AudioCaptureFrame, AudioChannelCount, AudioChannelDataSamples, AudioSampleRate, VideoCaptureFrame}, util::Size};
        +use crate::{prelude::{AudioBufferError, AudioCaptureFrame, AudioChannelCount, AudioChannelDataSamples, AudioSampleRate, Point, Rect, VideoCaptureFrame}, util::Size};
         
         pub struct WindowsVideoFrame {
             pub(crate) device       : ID3D11Device,
        @@ -153,6 +160,13 @@ 

        Files

        fn frame_id(&self) -> u64 { self.frame_id } + + fn content_rect(&self) -> Rect { + Rect { + origin: Point::ZERO, + size: self.size() + } + } } pub struct WindowsAudioFrame { diff --git a/examples/capture_window.rs b/examples/capture_window.rs index fc08d5d1..e5980394 100644 --- a/examples/capture_window.rs +++ b/examples/capture_window.rs @@ -29,6 +29,7 @@ fn main() { match event { StreamEvent::Video(frame) => { println!("Got frame: {}", frame.frame_id()); + println!("Content rectangle: {:?}", frame.content_rect()); }, _ => {} } diff --git a/src/frame.rs b/src/frame.rs index c1b59164..bae65b1b 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -120,6 +120,7 @@ pub(crate) trait VideoCaptureFrame { fn origin_time(&self) -> Duration; fn capture_time(&self) -> Instant; fn frame_id(&self) -> u64; + fn content_rect(&self) -> Rect; } /// A frame of captured video @@ -159,6 +160,11 @@ impl VideoFrame { pub fn dpi(&self) -> f64 { self.impl_video_frame.dpi() } + + /// Get the rectangle of the frame representing containing the captured contents + pub fn content_rect(&self) -> Rect { + self.impl_video_frame.content_rect() + } } impl Debug for VideoFrame { diff --git a/src/platform/macos/frame.rs b/src/platform/macos/frame.rs index 1f231845..22b8fcce 100644 --- a/src/platform/macos/frame.rs +++ b/src/platform/macos/frame.rs @@ -2,9 +2,9 @@ use std::{cell::{Ref, RefCell}, marker::PhantomData, sync::Arc, time::{Duration, use objc2::runtime::AnyObject; -use crate::{frame::{AudioCaptureFrame, VideoCaptureFrame}, prelude::{AudioBufferError, AudioChannelCount, AudioChannelData, AudioChannelDataSamples, AudioSampleRate}, util::{Rect, Size}}; +use crate::{frame::{AudioCaptureFrame, VideoCaptureFrame}, prelude::{AudioBufferError, AudioChannelCount, AudioChannelData, AudioChannelDataSamples, AudioSampleRate, Point}, util::{Rect, Size}}; -use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; +use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; pub(crate) struct MacosSCStreamVideoFrame { pub(crate) sample_buffer: CMSampleBuffer, @@ -112,6 +112,30 @@ impl VideoCaptureFrame for MacosVideoFrame { MacosVideoFrame::CGDisplayStream(cgd_frame) => cgd_frame.frame_id } } + + fn content_rect(&self) -> Rect { + match self { + MacosVideoFrame::SCStream(sc_frame) => { + let info_dict = sc_frame.get_info_dict(); + let content_rect_ptr = unsafe { info_dict.get_value(SCStreamFrameInfoContentRect) }; + let content_rect_dict = unsafe { NSDictionary::from_id_unretained(content_rect_ptr as *mut AnyObject) }; + let frame_content_rect = unsafe { CGRect::create_from_dictionary_representation(&content_rect_dict) }; + Rect { + origin: Point { + x: frame_content_rect.origin.x, + y: frame_content_rect.origin.y, + }, + size: Size { + width: frame_content_rect.size.x, + height: frame_content_rect.size.y + } + } + }, + MacosVideoFrame::CGDisplayStream(sc_fame) => { + todo!() + } + } + } } pub struct MacosAudioFrame { diff --git a/src/platform/windows/frame.rs b/src/platform/windows/frame.rs index e4f46ae1..0e79aed5 100644 --- a/src/platform/windows/frame.rs +++ b/src/platform/windows/frame.rs @@ -2,7 +2,7 @@ use std::{marker::PhantomData, sync::Arc, time::Duration}; use windows::{Graphics::{Capture::Direct3D11CaptureFrame, DirectX::DirectXPixelFormat, SizeInt32}, Win32::Graphics::Direct3D11::ID3D11Device}; -use crate::{prelude::{AudioBufferError, AudioCaptureFrame, AudioChannelCount, AudioChannelDataSamples, AudioSampleRate, VideoCaptureFrame}, util::Size}; +use crate::{prelude::{AudioBufferError, AudioCaptureFrame, AudioChannelCount, AudioChannelDataSamples, AudioSampleRate, Point, Rect, VideoCaptureFrame}, util::Size}; pub struct WindowsVideoFrame { pub(crate) device : ID3D11Device, @@ -46,6 +46,13 @@ impl VideoCaptureFrame for WindowsVideoFrame { fn frame_id(&self) -> u64 { self.frame_id } + + fn content_rect(&self) -> Rect { + Rect { + origin: Point::ZERO, + size: self.size() + } + } } pub struct WindowsAudioFrame {