Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CapSoftware/scap
/ functions
Functions
112 in github.com/CapSoftware/scap
⨍
Functions
112
◇
Types & classes
44
↓ 7 callers
Method
append
(&self, i: &mut arg::IterAppend)
src/capturer/engine/linux/portal.rs:133
↓ 7 callers
Function
sample_buffer_to_pixel_buffer
(sample_buffer: &CMSampleBuffer)
src/capturer/engine/mac/pixel_buffer.rs:195
↓ 6 callers
Function
get_main_display
()
src/targets/mod.rs:63
↓ 5 callers
Function
get_pts_in_nanoseconds
Returns a frame's presentation timestamp in nanoseconds since an arbitrary start time. This is typically yielded from a monotonic clock started on sys
src/capturer/engine/mac/pixelformat.rs:23
↓ 5 callers
Function
pixel_buffer_bounds
(pixel_buffer: CVPixelBufferRef)
src/capturer/engine/mac/pixel_buffer.rs:201
↓ 4 callers
Function
get_absolute_value
(value: f64, scale_factor: f64)
src/capturer/engine/win/mod.rs:213
↓ 4 callers
Method
width
(&self)
src/capturer/engine/mac/pixel_buffer.rs:27
↓ 3 callers
Function
create_capturer
(options: &Options, tx: mpsc::Sender<Frame>)
src/capturer/engine/win/mod.rs:139
↓ 3 callers
Function
get_crop_area
(options: &Options)
src/capturer/engine/win/mod.rs:218
↓ 3 callers
Method
height
(&self)
src/capturer/engine/mac/pixel_buffer.rs:31
↓ 3 callers
Method
into
(self)
src/capturer/engine/mac/pixel_buffer.rs:103
↓ 3 callers
Method
start_capture
(&mut self)
src/capturer/engine/win/mod.rs:118
↓ 3 callers
Method
stop_capture
(&mut self)
src/capturer/engine/win/mod.rs:127
↓ 2 callers
Function
get_crop_area
(options: &Options)
src/capturer/engine/mac/mod.rs:198
↓ 2 callers
Function
get_cropped_data
(data: Vec<u8>, cur_width: i32, height: i32, width: i32)
src/frame/mod.rs:122
↓ 2 callers
Function
get_display_name
(display_id: CGDirectDisplayID)
src/targets/mac/mod.rs:11
↓ 2 callers
Function
get_scale_factor
(target: &Target)
src/targets/mod.rs:52
↓ 2 callers
Function
get_target_dimensions
(target: &Target)
src/targets/mod.rs:74
↓ 2 callers
Function
has_permission
Checks if process has permission to capture the screen
src/utils/mod.rs:11
↓ 2 callers
Function
is_supported
Checks if scap is supported on the current system
src/utils/mod.rs:37
↓ 2 callers
Method
stop
(&mut self)
src/capturer/engine/mod.rs:107
↓ 2 callers
Method
value
(&self, aspect_ratio: f32)
src/capturer/mod.rs:29
↓ 1 callers
Method
available_cursor_modes
(&self)
src/capturer/engine/linux/portal.rs:102
↓ 1 callers
Method
available_source_types
(&self)
src/capturer/engine/linux/portal.rs:94
↓ 1 callers
Method
buffer
(&self)
src/capturer/engine/mac/pixel_buffer.rs:35
↓ 1 callers
Function
convert_bgra_to_rgb
(frame_data: Vec<u8>)
src/frame/mod.rs:107
↓ 1 callers
Function
create_bgr_frame
(sample_buffer: CMSampleBuffer)
src/capturer/engine/mac/pixelformat.rs:101
↓ 1 callers
Function
create_bgra_frame
(sample_buffer: CMSampleBuffer)
src/capturer/engine/mac/pixelformat.rs:134
↓ 1 callers
Function
create_rgb_frame
(sample_buffer: CMSampleBuffer)
src/capturer/engine/mac/pixelformat.rs:165
↓ 1 callers
Method
create_session
(&self, options: arg::PropMap)
src/capturer/engine/linux/portal.rs:45
↓ 1 callers
Method
create_session_args
(&self)
src/capturer/engine/linux/portal.rs:243
↓ 1 callers
Method
create_stream
(&self)
src/capturer/engine/linux/portal.rs:403
↓ 1 callers
Function
create_yuv_frame
(sample_buffer: CMSampleBuffer)
src/capturer/engine/mac/pixelformat.rs:31
↓ 1 callers
Method
get_next_frame
Get the next captured frame
src/capturer/mod.rs:142
↓ 1 callers
Function
get_output_frame_size
(options: &Options)
src/capturer/engine/mod.rs:23
↓ 1 callers
Function
get_output_frame_size
(options: &Options)
src/capturer/engine/mac/mod.rs:166
↓ 1 callers
Function
get_timestamp
(buffer: *mut spa_buffer)
src/capturer/engine/linux/mod.rs:94
↓ 1 callers
Function
pipewire_capturer
TODO: Format negotiation
src/capturer/engine/linux/mod.rs:174
↓ 1 callers
Function
pixel_buffer_bytes_per_row
(pixel_buffer: CVPixelBufferRef)
src/capturer/engine/mac/pixel_buffer.rs:208
↓ 1 callers
Function
pixel_buffer_display_time
(sample_buffer: &CMSampleBuffer)
src/capturer/engine/mac/pixel_buffer.rs:212
↓ 1 callers
Method
process_channel_item
(&self, data: ChannelItem)
src/capturer/engine/mod.rs:128
↓ 1 callers
Function
process_sample_buffer
( sample: CMSampleBuffer, of_type: SCStreamOutputType, output_type: FrameType, )
src/capturer/engine/mac/mod.rs:233
↓ 1 callers
Method
pw_node_id
(&self)
src/capturer/engine/linux/portal.rs:178
↓ 1 callers
Function
remove_alpha_channel
(frame_data: Vec<u8>)
src/frame/mod.rs:92
↓ 1 callers
Function
request_permission
Prompts user to grant screen capturing permission to current process
src/utils/mod.rs:23
↓ 1 callers
Method
select_sources
( &self, session_handle: dbus::Path, options: arg::PropMap, )
src/capturer/engine/linux/portal.rs:54
↓ 1 callers
Method
select_sources_args
(&self)
src/capturer/engine/linux/portal.rs:256
↓ 1 callers
Method
show_cursor
(mut self, mode: bool)
src/capturer/engine/linux/portal.rs:409
↓ 1 callers
Method
start
(&mut self)
src/capturer/engine/mod.rs:89
↓ 1 callers
Method
start
( &self, session_handle: dbus::Path, parent_window: &str, options: arg::PropMa
src/capturer/engine/linux/portal.rs:67
↓ 1 callers
Method
start_capture
TODO Prevent starting capture if already started Start capturing the frames
src/capturer/mod.rs:132
↓ 1 callers
Method
stop_capture
Stop the capturer
src/capturer/mod.rs:137
Method
build
Build a new [Capturer] instance with the provided options
src/capturer/mod.rs:114
Method
bytes_per_row
(&self)
src/capturer/engine/mac/pixel_buffer.rs:39
Method
close
(&self)
src/capturer/engine/linux/portal.rs:156
Function
create_capturer
(options: &Options, tx: mpsc::Sender<Frame>)
src/capturer/engine/linux/mod.rs:374
Function
create_capturer
( options: &Options, tx: mpsc::Sender<ChannelItem>, error_flag: Arc<AtomicBool>, )
src/capturer/engine/mac/mod.rs:63
Method
data
(&self)
src/capturer/engine/mac/pixel_buffer.rs:43
Method
deref
(&self)
src/capturer/engine/mac/pixel_buffer.rs:155
Method
did_output_sample_buffer
(&self, sample: CMSampleBuffer, of_type: SCStreamOutputType)
src/capturer/engine/mac/mod.rs:58
Method
display_time
(&self)
src/capturer/engine/mac/pixel_buffer.rs:23
Method
drop
(&mut self)
src/capturer/engine/mac/pixel_buffer.rs:161
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/capturer/mod.rs:88
Method
fmt
(&self, f: &mut Formatter)
src/capturer/engine/linux/error.rs:23
Method
from
(e: pipewire::Error)
src/capturer/engine/linux/error.rs:29
Method
from_dbus
(stream: &Variant<Box<dyn RefArg>>)
src/capturer/engine/linux/portal.rs:182
Function
get_all_targets
Returns a list of targets that can be captured
src/targets/mod.rs:41
Function
get_all_targets
()
src/targets/win/mod.rs:9
Function
get_all_targets
On Linux, the target is selected when a Recorder is instanciated because this requires user interaction
src/targets/linux/mod.rs:5
Function
get_all_targets
()
src/targets/mac/mod.rs:36
Function
get_main_display
()
src/targets/win/mod.rs:43
Function
get_main_display
()
src/targets/mac/mod.rs:75
Method
get_next_pixel_buffer
(&self)
src/capturer/engine/mac/pixel_buffer.rs:168
Function
get_output_frame_size
(options: &Options)
src/capturer/engine/win/mod.rs:184
Method
get_output_frame_size
Get the dimensions the frames will be captured in
src/capturer/mod.rs:153
Method
get_output_frame_size
(&mut self)
src/capturer/engine/mod.rs:124
Function
get_scale_factor
Referred to: https://github.com/tauri-apps/tao/blob/ab792dbd6c5f0a708c818b20eaff1d9a7534c7c1/src/platform_impl/windows/dpi.rs#L50
src/targets/win/mod.rs:55
Function
get_scale_factor
(target: &Target)
src/targets/mac/mod.rs:86
Function
get_target_dimensions
(target: &Target)
src/targets/win/mod.rs:83
Function
get_target_dimensions
(target: &Target)
src/targets/mac/mod.rs:102
Method
handle_req_response
( connection: &Connection, path: dbus::Path<'static>, iterations: usize, timeo
src/capturer/engine/linux/portal.rs:274
Function
has_permission
TODO
src/utils/linux/mod.rs:8
Function
has_permission
()
src/utils/mac/mod.rs:4
Function
is_supported
()
src/utils/win/mod.rs:3
Function
is_supported
TODO
src/utils/linux/mod.rs:2
Function
is_supported
()
src/utils/mac/mod.rs:12
Function
main
()
src/main.rs:11
Method
new
(options: Options)
src/capturer/mod.rs:106
Method
new
(options: &Options, tx: mpsc::Sender<ChannelItem>)
src/capturer/engine/mod.rs:57
Method
new
(context: Context<Self::Flags>)
src/capturer/engine/win/mod.rs:40
Method
new
TODO: Error handling
src/capturer/engine/linux/mod.rs:327
Method
new
(connection: &'a Connection)
src/capturer/engine/linux/portal.rs:227
Method
new
(msg: String)
src/capturer/engine/linux/error.rs:17
Method
new
(item: ChannelItem)
src/capturer/engine/mac/pixel_buffer.rs:80
Method
new
(tx: mpsc::Sender<ChannelItem>)
src/capturer/engine/mac/mod.rs:52
Method
on_closed
(&mut self)
src/capturer/engine/win/mod.rs:111
Method
on_error
(&self)
src/capturer/engine/mac/mod.rs:40
Method
on_frame_arrived
( &mut self, frame: &mut WCFrame, _: InternalCaptureControl, )
src/capturer/engine/win/mod.rs:47
Method
open_pipe_wire_remote
( &self, session_handle: dbus::Path, options: arg::PropMap, )
src/capturer/engine/linux/portal.rs:81
Function
param_changed_callback
( _stream: &StreamRef, user_data: &mut ListenerUserData, id: u32, param: Option<&Pod>, )
src/capturer/engine/linux/mod.rs:51
next →
1–100 of 112, ranked by callers