diff --git a/Cargo.toml b/Cargo.toml index d2556746..c9693976 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.3" +version = "0.3.4" 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 71aaf225..89b935e9 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 fde6a5ec..c3815902 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 6466b229..bfcd9735 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 45ca75d9..f13e9f91 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 8c327b99..86794538 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 6d0aebdc..4222000f 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 90764be9..688e226e 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 6b0e3dcc..80c5f934 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 cecc8381..65836d41 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 824d64be..6e79eb17 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 ca4cf440..c56973f3 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 668f25f8..b481458a 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 -
pub enum CaptureConfigError {
+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 dbdba761..f7d34b92 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 3ba9e892..f75a314a 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,
@@ -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/macos_docs/crabgrab/capture_stream/enum.StreamError.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html index 058228c0..ea59bd92 100644 --- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamError.html +++ b/docs/macos_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/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html b/docs/macos_docs/crabgrab/capture_stream/enum.StreamEvent.html index 8ddb32bc..737b50b7 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 412d640a..a206c843 100644
--- a/docs/macos_docs/crabgrab/capture_stream/enum.StreamStopError.html
+++ b/docs/macos_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/macos_docs/crabgrab/capture_stream/index.html b/docs/macos_docs/crabgrab/capture_stream/index.html
index 9e91d242..b3a95f35 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
-    
Expand description

The actual capture stream and related constructs

+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 29b3e87b..31ffef3f 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 611094b7..bb25fdc1 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html @@ -1,6 +1,6 @@ -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 +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 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/struct.CaptureConfig.html b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html index 566e6aac..ee3fab88 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureConfig.html @@ -1,17 +1,17 @@ -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( +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, pixel_format: CapturePixelFormat ) -> Result<CaptureConfig, CaptureConfigError>

    Create a capture configuration for a given capturable window

    -
    source

    pub fn with_display( +

    source

    pub fn with_display( display: CapturableDisplay, pixel_format: CapturePixelFormat ) -> CaptureConfig

    Create a capture configuration for a given capturable display

    -
    source

    pub fn with_buffer_count(self, buffer_count: usize) -> Self

    Configure the buffer count - the number of frames in the capture queue.

    +
    source

    pub fn with_buffer_count(self, buffer_count: usize) -> Self

    Configure the buffer count - the number of frames in the capture queue.

    Higher numbers mean higher latency, but smoother performance

    -
    source

    pub fn with_show_cursor(self, show_cursor: bool) -> Self

    Configure whether the cursor is visible in the capture

    -
    source

    pub fn with_output_size(self, output_size: Size) -> Self

    Configure the output texture size - by default, this will match the captured content at the time of enumeration

    +
    source

    pub fn with_show_cursor(self, show_cursor: bool) -> Self

    Configure whether the cursor is visible in the capture

    +
    source

    pub fn with_output_size(self, output_size: Size) -> Self

    Configure the output texture size - by default, this will match the captured content at the time of enumeration

    Trait Implementations§

    source§

    impl Clone for CaptureConfig

    source§

    fn clone(&self) -> CaptureConfig

    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 CaptureConfig

    source§

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

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

    impl MacosCaptureConfigExt for CaptureConfig

    source§

    fn with_scale_to_fit(self, scale_to_fit: bool) -> Self

    Set whether or not to scale content to the output size
    source§

    fn with_maximum_fps(self, maximum_fps: Option<f32>) -> Self

    Set the maximum capture frame-rate
    source§

    fn with_metal_device(self, metal_device: Device) -> Self

    Set the metal device to use for texture creation
    source§

    impl WgpuCaptureConfigExt for CaptureConfig

    source§

    fn with_wgpu_device( self, wgpu_device: Arc<dyn AsRef<Device> + Send + Sync + 'static> diff --git a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html index c508a711..5896c916 100644 --- a/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html +++ b/docs/macos_docs/crabgrab/capture_stream/struct.CaptureStream.html @@ -1,17 +1,17 @@ -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

    -
    source

    pub fn supported_pixel_formats() -> &'static [CapturePixelFormat]

    Gets the implementation’s supported pixel formats

    -
    source

    pub fn new( +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

    +
    source

    pub fn supported_pixel_formats() -> &'static [CapturePixelFormat]

    Gets the implementation’s supported pixel formats

    +
    source

    pub fn new( token: CaptureAccessToken, config: CaptureConfig, callback: impl FnMut(Result<StreamEvent, StreamError>) + Send + 'static ) -> Result<Self, StreamCreateError>

    Start a new capture stream with the given stream callback

    -
    source

    pub fn stop(&mut self) -> Result<(), StreamStopError>

    Stop the capture

    +
    source

    pub fn stop(&mut self) -> Result<(), StreamStopError>

    Stop the capture

    Trait Implementations§

    source§

    impl MetalCaptureStreamExt for CaptureStream

    source§

    fn get_metal_device(&self) -> Device

    Get the metal device used for frame capture
    source§

    impl WgpuCaptureStreamExt for CaptureStream

    source§

    fn get_wgpu_device(&self) -> Option<&Device>

    Gets the Wgpu device referenced by device wrapper supplied to CaptureConfig::with_wgpu_device(..)
    source§

    fn get_wgpu_device_wrapper( &self -) -> Option<Arc<dyn AsRef<Device> + Send + Sync + 'static>>

    Gets the Wgpu device wrapper supplied to CaptureConfig::with_wgpu_device(..)
    source§

    impl Send for CaptureStream

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +) -> Option<Arc<dyn AsRef<Device> + Send + Sync + 'static>>

    Gets the Wgpu device wrapper supplied to CaptureConfig::with_wgpu_device(..)

    source§

    impl Send for CaptureStream

    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.FrameBitmap.html b/docs/macos_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html index 730fdeea..df5b3ab1 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 4b6c9d0e..530ccc15 100644
    --- a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
    +++ b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
    @@ -1,4 +1,4 @@
    -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

    diff --git a/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html b/docs/macos_docs/crabgrab/feature/bitmap/enum.VideoRange.html index d7aa1e7c..1b374e88 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 f0be77b6..e5102e9d 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 86208890..027c5fcc 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 53723f69..3d35508a 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 8eb551d7..c62deaac 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 9190a0ce..7592ccba 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 f5aa1fc8..974628fe 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 768107b7..13e135f6 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 c1bf72cc..508f6257 100644 --- a/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html +++ b/docs/macos_docs/crabgrab/feature/iosurface/enum.GetIoSurfaceError.html @@ -1,4 +1,4 @@ -GetIoSurfaceError in crabgrab::feature::iosurface - Rust +GetIoSurfaceError in crabgrab::feature::iosurface - Rust
      pub enum GetIoSurfaceError {
           NoImageBuffer,
           NoIoSurface,
      diff --git a/docs/macos_docs/crabgrab/feature/iosurface/index.html b/docs/macos_docs/crabgrab/feature/iosurface/index.html
      index 10be3010..39c23a37 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 74917baf..f78ceaef 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 37f2f993..624cf290 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 cb744616..a6f03207 100644
      --- a/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html
      +++ b/docs/macos_docs/crabgrab/feature/metal/enum.MacosVideoFrameError.html
      @@ -1,11 +1,11 @@
      -MacosVideoFrameError in crabgrab::feature::metal - Rust
      +MacosVideoFrameError in crabgrab::feature::metal - Rust
           
      pub enum MacosVideoFrameError {
           NoIoSurface,
           NoImageBuffer,
           InvalidVideoPlaneTexture,
           Other(String),
       }
      Expand description

      Represents an error getting the texture from a video frame

      -

      Variants§

      §

      NoIoSurface

      §

      NoImageBuffer

      §

      InvalidVideoPlaneTexture

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for MacosVideoFrameError

      source§

      fn clone(&self) -> MacosVideoFrameError

      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 MacosVideoFrameError

      source§

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

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

      impl Display for MacosVideoFrameError

      source§

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

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

      impl Error for MacosVideoFrameError

      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§

      §

      NoIoSurface

      §

      NoImageBuffer

      §

      InvalidVideoPlaneTexture

      §

      Other(String)

      Trait Implementations§

      source§

      impl Clone for MacosVideoFrameError

      source§

      fn clone(&self) -> MacosVideoFrameError

      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 MacosVideoFrameError

      source§

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

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

      impl Display for MacosVideoFrameError

      source§

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

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

      impl Error for MacosVideoFrameError

      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/metal/enum.MetalVideoFramePlaneTexture.html b/docs/macos_docs/crabgrab/feature/metal/enum.MetalVideoFramePlaneTexture.html index 935a932c..a5c6d2c9 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 c4bf70d6..f4be4964 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 13649d5d..58edf05b 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 74bc3c97..5763fe58 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 f3c3dbe0..ba6b189a 100644
      --- a/docs/macos_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html
      +++ b/docs/macos_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/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html b/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html index c39ae56d..c4669d60 100644 --- a/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html +++ b/docs/macos_docs/crabgrab/feature/screenshot/fn.take_screenshot.html @@ -1,5 +1,5 @@ -take_screenshot in crabgrab::feature::screenshot - Rust -
      pub async fn take_screenshot(
      +take_screenshot in crabgrab::feature::screenshot - Rust
      +    
      pub async fn take_screenshot(
           token: CaptureAccessToken,
           config: CaptureConfig
       ) -> Result<VideoFrame, ScreenshotError>
      Expand description

      Take a screenshot of the capturable content given a configuration

      diff --git a/docs/macos_docs/crabgrab/feature/screenshot/index.html b/docs/macos_docs/crabgrab/feature/screenshot/index.html index b8519a62..f15fdf90 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 316eaf11..8d65d4cd 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,
      @@ -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/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html b/docs/macos_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html index 2903b36b..430bf4dd 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 a00fbf70..d75b9801 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 0b2c4aa4..3f8144c4 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 59449ad2..c11162e4 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 72543288..af6913fe 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 1a17604d..eee3ab95 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 66d6c0fa..2f18a3b0 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 2ce31792..f884c300 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 6a083dde..04fd927a 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 5ee057ca..71aa6b0c 100644
      --- a/docs/macos_docs/crabgrab/frame/index.html
      +++ b/docs/macos_docs/crabgrab/frame/index.html
      @@ -1,3 +1,3 @@
      -crabgrab::frame - Rust
      +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 cda4a755..c8732373 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 a2340ee8..489b0dc7 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 95143acd..34e4ab1a 100644 --- a/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html +++ b/docs/macos_docs/crabgrab/frame/struct.VideoFrame.html @@ -1,4 +1,4 @@ -VideoFrame in crabgrab::frame - Rust +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

      diff --git a/docs/macos_docs/crabgrab/index.html b/docs/macos_docs/crabgrab/index.html index aa922b56..90c0775c 100644 --- a/docs/macos_docs/crabgrab/index.html +++ b/docs/macos_docs/crabgrab/index.html @@ -1,4 +1,4 @@ -crabgrab - Rust 326 327 328 -329 -330 -331 -332 -333 -334 -335 -336 -337 -338 -339 -340 -341 -342 -343
      use std::fmt::Debug;
       use std::{error::Error, fmt::Display};
       
       use crate::platform::platform_impl::{ImplAudioCaptureConfig, ImplCaptureAccessToken, ImplCaptureConfig, ImplCaptureStream};
       use crate::capturable_content::Capturable;
       use crate::prelude::{AudioChannelCount, AudioFrame, AudioSampleRate, CapturableDisplay, CapturableWindow, VideoFrame};
      -use crate::util::{Point, Rect, Size};
      +use crate::util::Size;
       
       /// Represents an event in a capture stream
       #[derive(Debug)]
      @@ -510,7 +495,6 @@ 

      Files

      #[derive(Clone, Debug)] pub struct CaptureConfig { pub(crate) target: Capturable, - pub(crate) source_rect: Rect, pub(crate) output_size: Size, pub(crate) show_cursor: bool, pub(crate) pixel_format: CapturePixelFormat, @@ -562,13 +546,6 @@

      Files

      Ok(CaptureConfig { target: Capturable::Window(window), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), @@ -583,13 +560,6 @@

      Files

      CaptureConfig { target: Capturable::Display(display), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), diff --git a/docs/macos_docs/src/crabgrab/feature/screenshot/platform/macos.rs.html b/docs/macos_docs/src/crabgrab/feature/screenshot/platform/macos.rs.html index deae5ae2..fb00bbc5 100644 --- a/docs/macos_docs/src/crabgrab/feature/screenshot/platform/macos.rs.html +++ b/docs/macos_docs/src/crabgrab/feature/screenshot/platform/macos.rs.html @@ -69,23 +69,13 @@

      Files

      67 68 69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79
      use std::cell::RefCell;
       use std::time::Instant;
       
       use crate::feature::screenshot::ScreenshotError;
       use crate::frame::VideoFrame;
       use crate::platform::macos::frame::{MacosSCStreamVideoFrame, MacosVideoFrame};
      -use crate::platform::macos::objc_wrap::{CGPoint, CGRect, CGSize, NSArray, SCContentFilter, SCScreenshotManager, SCStreamColorMatrix, SCStreamConfiguration, SCStreamPixelFormat};
      +use crate::platform::macos::objc_wrap::{CGSize, NSArray, SCContentFilter, SCScreenshotManager, SCStreamColorMatrix, SCStreamConfiguration, SCStreamPixelFormat};
       use crate::platform::platform_impl::objc_wrap::CGMainDisplayID;
       use crate::prelude::{Capturable, CaptureAccessToken, CaptureConfig, CapturePixelFormat};
       
      @@ -110,16 +100,6 @@ 

      Files

      stream_config.set_color_matrix(SCStreamColorMatrix::ItuR709_2); } stream_config.set_pixel_format(pixel_format); - stream_config.set_source_rect(CGRect { - origin: CGPoint { - x: config.source_rect.origin.x, - y: config.source_rect.origin.y, - }, - size: CGSize { - x: config.source_rect.size.width, - y: config.source_rect.size.height - } - }); stream_config.set_size(CGSize { x: config.output_size.width, y: config.output_size.height, diff --git a/docs/macos_docs/src/crabgrab/platform/macos/capture_stream.rs.html b/docs/macos_docs/src/crabgrab/platform/macos/capture_stream.rs.html index faf40f71..3ceb9727 100644 --- a/docs/macos_docs/src/crabgrab/platform/macos/capture_stream.rs.html +++ b/docs/macos_docs/src/crabgrab/platform/macos/capture_stream.rs.html @@ -686,7 +686,7 @@

      Files

      } config.set_pixel_format(pixel_format); config.set_minimum_time_interval(CMTime::new_with_seconds(capture_config.impl_capture_config.maximum_fps.map(|x| 1.0 / x).unwrap_or(1.0 / 120.0) as f64, 240)); - config.set_source_rect(CGRect { + /*config.set_source_rect(CGRect { origin: CGPoint { x: capture_config.source_rect.origin.x, y: capture_config.source_rect.origin.y, @@ -695,8 +695,8 @@

      Files

      x: capture_config.source_rect.size.width, y: capture_config.source_rect.size.height } - }); - config.set_size(CGSize { + });*/ + config.set_size(CGSize { x: capture_config.output_size.width, y: capture_config.output_size.height, }); 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 e72f4bad..7664a945 100644 --- a/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html +++ b/docs/macos_docs/src/crabgrab/platform/macos/frame.rs.html @@ -228,7 +228,7 @@

      Files

      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, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; +use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoBoundingRect, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; pub(crate) struct MacosSCStreamVideoFrame { pub(crate) sample_buffer: CMSampleBuffer, diff --git a/docs/windows_docs/crabgrab/all.html b/docs/windows_docs/crabgrab/all.html index 35f50b6a..90fdba78 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 522118a4..84998980 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 c8268bf9..93284ee8 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 fe2f9472..a6d6e263 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 5f6b2066..a735f275 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 7db6b474..8cf7e9ac 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 e2a0189c..9b42340e 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 6be86474..99e89920 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 1834ed66..de46d2f5 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 81be7316..eec5c581 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 9c7b73cd..b88c9b72 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 fc7ca54d..62ebaae0 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 -
      pub enum CaptureConfigError {
      +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 f3c20e31..b47a08c3 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 c563c051..b359f568 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,
      diff --git a/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html
      index 9fed12a1..958046fc 100644
      --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamError.html
      +++ b/docs/windows_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/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html b/docs/windows_docs/crabgrab/capture_stream/enum.StreamEvent.html index d1f64117..a8c7d356 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 7fa1e81f..a73b8b59 100644
      --- a/docs/windows_docs/crabgrab/capture_stream/enum.StreamStopError.html
      +++ b/docs/windows_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/windows_docs/crabgrab/capture_stream/index.html b/docs/windows_docs/crabgrab/capture_stream/index.html index 8fe719af..0df7a77f 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 -
      Expand description

      The actual capture stream and related constructs

      +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 5bdbff85..e3c48d20 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 ea440798..329c0382 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureAccessToken.html @@ -1,6 +1,6 @@ -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 +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 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/struct.CaptureConfig.html b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html index 81c3cf3d..87880b3b 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureConfig.html @@ -1,17 +1,17 @@ -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( +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, pixel_format: CapturePixelFormat ) -> Result<CaptureConfig, CaptureConfigError>

        Create a capture configuration for a given capturable window

        -
        source

        pub fn with_display( +

        source

        pub fn with_display( display: CapturableDisplay, pixel_format: CapturePixelFormat ) -> CaptureConfig

        Create a capture configuration for a given capturable display

        -
        source

        pub fn with_buffer_count(self, buffer_count: usize) -> Self

        Configure the buffer count - the number of frames in the capture queue.

        +
        source

        pub fn with_buffer_count(self, buffer_count: usize) -> Self

        Configure the buffer count - the number of frames in the capture queue.

        Higher numbers mean higher latency, but smoother performance

        -
        source

        pub fn with_show_cursor(self, show_cursor: bool) -> Self

        Configure whether the cursor is visible in the capture

        -
        source

        pub fn with_output_size(self, output_size: Size) -> Self

        Configure the output texture size - by default, this will match the captured content at the time of enumeration

        +
        source

        pub fn with_show_cursor(self, show_cursor: bool) -> Self

        Configure whether the cursor is visible in the capture

        +
        source

        pub fn with_output_size(self, output_size: Size) -> Self

        Configure the output texture size - by default, this will match the captured content at the time of enumeration

        Trait Implementations§

        source§

        impl Clone for CaptureConfig

        source§

        fn clone(&self) -> CaptureConfig

        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 CaptureConfig

        source§

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

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

        impl WgpuCaptureConfigExt for CaptureConfig

        source§

        fn with_wgpu_device( self, wgpu_device: Arc<dyn AsRef<Device> + Send + Sync + 'static> diff --git a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html index d394996d..6e406021 100644 --- a/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html +++ b/docs/windows_docs/crabgrab/capture_stream/struct.CaptureStream.html @@ -1,19 +1,19 @@ -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

        -
        source

        pub fn supported_pixel_formats() -> &'static [CapturePixelFormat]

        Gets the implementation’s supported pixel formats

        -
        source

        pub fn new( +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

        +
        source

        pub fn supported_pixel_formats() -> &'static [CapturePixelFormat]

        Gets the implementation’s supported pixel formats

        +
        source

        pub fn new( token: CaptureAccessToken, config: CaptureConfig, callback: impl FnMut(Result<StreamEvent, StreamError>) + Send + 'static ) -> Result<Self, StreamCreateError>

        Start a new capture stream with the given stream callback

        -
        source

        pub fn stop(&mut self) -> Result<(), StreamStopError>

        Stop the capture

        +
        source

        pub fn stop(&mut self) -> Result<(), StreamStopError>

        Stop the capture

        Trait Implementations§

        source§

        impl WgpuCaptureStreamExt for CaptureStream

        source§

        fn get_wgpu_device(&self) -> Option<&Device>

        Gets the Wgpu device referenced by device wrapper supplied to CaptureConfig::with_wgpu_device(..)
        source§

        fn get_wgpu_device_wrapper( &self ) -> Option<Arc<dyn AsRef<Device> + Send + Sync + 'static>>

        Gets the Wgpu device wrapper supplied to CaptureConfig::with_wgpu_device(..)
        source§

        impl WindowsDx11CaptureStream for CaptureStream

        source§

        fn get_dx11_device(&self) -> ID3D11Device

        Get the underlying DX11 device used for frame capture
        source§

        impl WindowsDxgiCaptureStream for CaptureStream

        source§

        fn get_dxgi_adapter( &self -) -> Result<IDXGIAdapter, WindowsDxgiCaptureStreamError>

        Get the DXGI adapter used by the capture stream for frame generation
        source§

        fn get_dxgi_device(&self) -> IDXGIDevice

        Get the DXGI device used by the capture stream for frame generation
        source§

        impl Send for CaptureStream

        Auto Trait Implementations§

        Blanket Implementations§

        source§

        impl<T> Any for T
        where +) -> Result<IDXGIAdapter, WindowsDxgiCaptureStreamError>

        Get the DXGI adapter used by the capture stream for frame generation
        source§

        fn get_dxgi_device(&self) -> IDXGIDevice

        Get the DXGI device used by the capture stream for frame generation

        source§

        impl Send for CaptureStream

        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.FrameBitmap.html b/docs/windows_docs/crabgrab/feature/bitmap/enum.FrameBitmap.html index d15aaa18..e68c7ed4 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 15ca672b..be46772e 100644
        --- a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
        +++ b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoFrameBitmapError.html
        @@ -1,4 +1,4 @@
        -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

        diff --git a/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html b/docs/windows_docs/crabgrab/feature/bitmap/enum.VideoRange.html index 166c03e8..a440b6c1 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 30c44e86..8183b0e1 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 ffc3a8cc..f5eb4ff3 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 62cb8a96..3d9db3b5 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 582ac53b..e5f74edc 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 25c644a5..86587f05 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 446d9215..743ace82 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 247a6770..ba18c44f 100644
        --- a/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html
        +++ b/docs/windows_docs/crabgrab/feature/dx11/enum.WindowsDx11VideoFrameError.html
        @@ -1,7 +1,7 @@
        -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 +}

        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 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/dx11/index.html b/docs/windows_docs/crabgrab/feature/dx11/index.html index 34a48a7d..53e2ed4d 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 997badc8..0e6d55cf 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 707e19aa..c329c309 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 27a7b40c..f240b769 100644
        --- a/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html
        +++ b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiCaptureStreamError.html
        @@ -1,7 +1,7 @@
        -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 +}

        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 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/enum.WindowsDxgiVideoFrameError.html b/docs/windows_docs/crabgrab/feature/dxgi/enum.WindowsDxgiVideoFrameError.html index 0ec365d1..224e8706 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 8c7f9c8f..fe8fc269 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 91be6a7e..d0a747bb 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 73eaac39..3774021a 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 1490b5be..bff62c71 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 8ec95972..f3cdd9d0 100644 --- a/docs/windows_docs/crabgrab/feature/screenshot/enum.ScreenshotError.html +++ b/docs/windows_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/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html b/docs/windows_docs/crabgrab/feature/screenshot/fn.take_screenshot.html index c2a20f13..efa77de6 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 c354a29b..e690e32d 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 8e208e3b..18afba13 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,
          diff --git a/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html b/docs/windows_docs/crabgrab/feature/wgpu/enum.WgpuVideoFramePlaneTexture.html
          index eb450c45..2ba2e55b 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 cf159a94..52ad34de 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 ddee709a..b702ad28 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 e7ee53c4..01f0ecaa 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 e460242b..528af1f0 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 d4c00223..7b5e2edd 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 9f7c88a9..18df4b70 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 09c68d99..bf274d9e 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 5075a196..24708a76 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 ac8c5113..6b67d549 100644
          --- a/docs/windows_docs/crabgrab/frame/index.html
          +++ b/docs/windows_docs/crabgrab/frame/index.html
          @@ -1,3 +1,3 @@
          -crabgrab::frame - Rust
          +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 d686e9c4..c0f18caf 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 85c0e6db..d213858e 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 0d703b5c..83f72cc0 100644 --- a/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html +++ b/docs/windows_docs/crabgrab/frame/struct.VideoFrame.html @@ -1,4 +1,4 @@ -VideoFrame in crabgrab::frame - Rust +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

          diff --git a/docs/windows_docs/crabgrab/index.html b/docs/windows_docs/crabgrab/index.html index c6d6a75a..04578330 100644 --- a/docs/windows_docs/crabgrab/index.html +++ b/docs/windows_docs/crabgrab/index.html @@ -1,4 +1,4 @@ -crabgrab - Rust 326 327 328 -329 -330 -331 -332 -333 -334 -335 -336 -337 -338 -339 -340 -341 -342 -343
          use std::fmt::Debug;
           use std::{error::Error, fmt::Display};
           
           use crate::platform::platform_impl::{ImplAudioCaptureConfig, ImplCaptureAccessToken, ImplCaptureConfig, ImplCaptureStream};
           use crate::capturable_content::Capturable;
           use crate::prelude::{AudioChannelCount, AudioFrame, AudioSampleRate, CapturableDisplay, CapturableWindow, VideoFrame};
          -use crate::util::{Point, Rect, Size};
          +use crate::util::Size;
           
           /// Represents an event in a capture stream
           #[derive(Debug)]
          @@ -510,7 +495,6 @@ 

          Files

          #[derive(Clone, Debug)] pub struct CaptureConfig { pub(crate) target: Capturable, - pub(crate) source_rect: Rect, pub(crate) output_size: Size, pub(crate) show_cursor: bool, pub(crate) pixel_format: CapturePixelFormat, @@ -562,13 +546,6 @@

          Files

          Ok(CaptureConfig { target: Capturable::Window(window), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), @@ -583,13 +560,6 @@

          Files

          CaptureConfig { target: Capturable::Display(display), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), diff --git a/examples/capture_window.rs b/examples/capture_window.rs index e5980394..007de02b 100644 --- a/examples/capture_window.rs +++ b/examples/capture_window.rs @@ -17,7 +17,7 @@ fn main() { } let window = content.windows().filter(|window| { let app_identifier = window.application().identifier(); - window.title().len() != 0 && (app_identifier.to_lowercase().contains("finder") || app_identifier.to_lowercase().contains("explorer")) + window.title().len() != 0 && (app_identifier.to_lowercase().contains("terminal") || app_identifier.to_lowercase().contains("explorer")) }).next(); match window { Some(window) => { @@ -29,7 +29,6 @@ fn main() { match event { StreamEvent::Video(frame) => { println!("Got frame: {}", frame.frame_id()); - println!("Content rectangle: {:?}", frame.content_rect()); }, _ => {} } @@ -40,12 +39,12 @@ fn main() { } }).unwrap(); println!("stream created!"); - tokio::task::block_in_place(|| std::thread::sleep(Duration::from_millis(4000))); + tokio::task::block_in_place(|| std::thread::sleep(Duration::from_millis(2000))); stream.stop().unwrap(); }, None => { println!("Failed to find window"); } } }); runtime.block_on(future).unwrap(); - runtime.shutdown_timeout(Duration::from_millis(10000)); + runtime.shutdown_timeout(Duration::from_millis(100000)); } diff --git a/examples/feature_bitmap.rs b/examples/feature_bitmap.rs index c0ff81a6..65def666 100644 --- a/examples/feature_bitmap.rs +++ b/examples/feature_bitmap.rs @@ -10,10 +10,6 @@ fn main() { Some(token) => token, None => CaptureStream::request_access(false).await.expect("Expected capture access") }; - let window_filter = CapturableWindowFilter { - desktop_windows: false, - onscreen_only: true, - }; let filter = CapturableContentFilter::NORMAL_WINDOWS; let content = CapturableContent::new(filter).await.unwrap(); let window = content.windows().filter(|window| { diff --git a/examples/feature_screenshot.rs b/examples/feature_screenshot.rs index 8216e73f..74ad46fd 100644 --- a/examples/feature_screenshot.rs +++ b/examples/feature_screenshot.rs @@ -7,10 +7,6 @@ fn main() { Some(token) => token, None => CaptureStream::request_access(false).await.expect("Expected capture access") }; - let window_filter = CapturableWindowFilter { - desktop_windows: false, - onscreen_only: true, - }; let filter = CapturableContentFilter::NORMAL_WINDOWS; let content = CapturableContent::new(filter).await.unwrap(); let window = content.windows().filter(|window| { diff --git a/examples/feature_wgpu.rs b/examples/feature_wgpu.rs index cbd72888..bddf2c5c 100644 --- a/examples/feature_wgpu.rs +++ b/examples/feature_wgpu.rs @@ -3,8 +3,8 @@ use std::time::Duration; use futures::executor::block_on; use crabgrab::prelude::*; -use crabgrab::feature::wgpu::WgpuCaptureConfigExt; -use crabgrab::feature::wgpu::WgpuVideoFrameExt; +use crabgrab::feature::wgpu::WgpuCaptureConfigExt as _; +use crabgrab::feature::wgpu::WgpuVideoFrameExt as _; #[allow(unused)] struct Gfx { diff --git a/src/capture_stream.rs b/src/capture_stream.rs index debbb217..ab1ed215 100644 --- a/src/capture_stream.rs +++ b/src/capture_stream.rs @@ -4,7 +4,7 @@ use std::{error::Error, fmt::Display}; use crate::platform::platform_impl::{ImplAudioCaptureConfig, ImplCaptureAccessToken, ImplCaptureConfig, ImplCaptureStream}; use crate::capturable_content::Capturable; use crate::prelude::{AudioChannelCount, AudioFrame, AudioSampleRate, CapturableDisplay, CapturableWindow, VideoFrame}; -use crate::util::{Point, Rect, Size}; +use crate::util::Size; /// Represents an event in a capture stream #[derive(Debug)] @@ -165,7 +165,6 @@ pub enum CapturePixelFormat { #[derive(Clone, Debug)] pub struct CaptureConfig { pub(crate) target: Capturable, - pub(crate) source_rect: Rect, pub(crate) output_size: Size, pub(crate) show_cursor: bool, pub(crate) pixel_format: CapturePixelFormat, @@ -217,13 +216,6 @@ impl CaptureConfig { Ok(CaptureConfig { target: Capturable::Window(window), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), @@ -238,13 +230,6 @@ impl CaptureConfig { CaptureConfig { target: Capturable::Display(display), pixel_format, - source_rect: Rect { - origin: Point { - x: 0.0, - y: 0.0, - }, - size: rect.size - }, output_size: rect.size, show_cursor: false, impl_capture_config: ImplCaptureConfig::new(), diff --git a/src/feature/screenshot/platform/macos.rs b/src/feature/screenshot/platform/macos.rs index a68f5582..0e8cba4d 100644 --- a/src/feature/screenshot/platform/macos.rs +++ b/src/feature/screenshot/platform/macos.rs @@ -4,7 +4,7 @@ use std::time::Instant; use crate::feature::screenshot::ScreenshotError; use crate::frame::VideoFrame; use crate::platform::macos::frame::{MacosSCStreamVideoFrame, MacosVideoFrame}; -use crate::platform::macos::objc_wrap::{CGPoint, CGRect, CGSize, NSArray, SCContentFilter, SCScreenshotManager, SCStreamColorMatrix, SCStreamConfiguration, SCStreamPixelFormat}; +use crate::platform::macos::objc_wrap::{CGSize, NSArray, SCContentFilter, SCScreenshotManager, SCStreamColorMatrix, SCStreamConfiguration, SCStreamPixelFormat}; use crate::platform::platform_impl::objc_wrap::CGMainDisplayID; use crate::prelude::{Capturable, CaptureAccessToken, CaptureConfig, CapturePixelFormat}; @@ -29,16 +29,6 @@ pub async fn take_screenshot(token: CaptureAccessToken, config: CaptureConfig) - stream_config.set_color_matrix(SCStreamColorMatrix::ItuR709_2); } stream_config.set_pixel_format(pixel_format); - stream_config.set_source_rect(CGRect { - origin: CGPoint { - x: config.source_rect.origin.x, - y: config.source_rect.origin.y, - }, - size: CGSize { - x: config.source_rect.size.width, - y: config.source_rect.size.height - } - }); stream_config.set_size(CGSize { x: config.output_size.width, y: config.output_size.height, diff --git a/src/platform/macos/capture_stream.rs b/src/platform/macos/capture_stream.rs index 7ecf04ff..ae8d46d1 100644 --- a/src/platform/macos/capture_stream.rs +++ b/src/platform/macos/capture_stream.rs @@ -211,7 +211,7 @@ impl MacosCaptureStream { } config.set_pixel_format(pixel_format); config.set_minimum_time_interval(CMTime::new_with_seconds(capture_config.impl_capture_config.maximum_fps.map(|x| 1.0 / x).unwrap_or(1.0 / 120.0) as f64, 240)); - config.set_source_rect(CGRect { + /*config.set_source_rect(CGRect { origin: CGPoint { x: capture_config.source_rect.origin.x, y: capture_config.source_rect.origin.y, @@ -220,7 +220,7 @@ impl MacosCaptureStream { x: capture_config.source_rect.size.width, y: capture_config.source_rect.size.height } - }); + });*/ config.set_size(CGSize { x: capture_config.output_size.width, y: capture_config.output_size.height, diff --git a/src/platform/macos/frame.rs b/src/platform/macos/frame.rs index 22b8fcce..58eeb1f3 100644 --- a/src/platform/macos/frame.rs +++ b/src/platform/macos/frame.rs @@ -4,7 +4,7 @@ use objc2::runtime::AnyObject; 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, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; +use super::objc_wrap::{kAudioFormatFlagIsBigEndian, kAudioFormatFlagIsPacked, kAudioFormatFlagsCanonical, kAudioFormatNativeEndian, AVAudioFormat, AVAudioPCMBuffer, AudioBufferList, AudioStreamBasicDescription, CFDictionary, CGRect, CGRectMakeWithDictionaryRepresentation, CMBlockBuffer, CMSampleBuffer, IOSurface, NSDictionary, NSNumber, NSScreen, SCStreamFrameInfoBoundingRect, SCStreamFrameInfoContentRect, SCStreamFrameInfoScaleFactor, SCStreamFrameInfoScreenRect}; pub(crate) struct MacosSCStreamVideoFrame { pub(crate) sample_buffer: CMSampleBuffer,