ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
session_capture_ctx Struct Reference

Internal session capture context structure. More...

Data Fields

media_source_t * source
 Underlying media source (webcam, file, stdin, test)
 
adaptive_sleep_state_t sleep_state
 Adaptive sleep state for frame rate limiting.
 
fps_t fps_tracker
 FPS tracker for monitoring capture rate.
 
uint32_t target_fps
 Target frames per second.
 
bool resize_for_network
 Whether to resize frames for network transmission.
 
bool initialized
 Context has been successfully initialized.
 
uint64_t frame_count
 Frame count for FPS calculation.
 
uint64_t start_time_ns
 Start time for FPS calculation (nanoseconds)
 
bool audio_enabled
 Audio is enabled for capture.
 
bool file_has_audio
 File has audio stream available.
 
bool using_file_audio
 Using file audio (true) or microphone fallback (false)
 
bool audio_fallback_enabled
 Fall back to microphone if file has no audio.
 
void * mic_audio_ctx
 Microphone audio context for fallback (borrowed, not owned)
 
void * audio_ctx
 Main audio context for playback (borrowed, not owned)
 
bool should_pause_after_first_frame
 Pause media source after first frame is read (–pause flag)
 
bool paused_after_first_frame
 Whether we've already paused after the first frame.
 

Detailed Description

Internal session capture context structure.

Contains all state for media capture including source, timing, and FPS tracking.

Definition at line 47 of file common/session/capture.c.

Field Documentation

◆ audio_ctx

void* session_capture_ctx::audio_ctx

Main audio context for playback (borrowed, not owned)

Definition at line 88 of file common/session/capture.c.

Referenced by session_capture_get_audio_context(), and session_capture_set_audio_context().

◆ audio_enabled

bool session_capture_ctx::audio_enabled

◆ audio_fallback_enabled

bool session_capture_ctx::audio_fallback_enabled

Fall back to microphone if file has no audio.

Definition at line 82 of file common/session/capture.c.

Referenced by session_capture_create().

◆ file_has_audio

bool session_capture_ctx::file_has_audio

File has audio stream available.

Definition at line 76 of file common/session/capture.c.

Referenced by session_capture_create().

◆ fps_tracker

fps_t session_capture_ctx::fps_tracker

FPS tracker for monitoring capture rate.

Definition at line 55 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_destroy(), session_capture_read_frame(), and session_network_capture_create().

◆ frame_count

uint64_t session_capture_ctx::frame_count

Frame count for FPS calculation.

Definition at line 67 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_get_current_fps(), and session_capture_read_frame().

◆ initialized

◆ mic_audio_ctx

void* session_capture_ctx::mic_audio_ctx

Microphone audio context for fallback (borrowed, not owned)

Definition at line 85 of file common/session/capture.c.

Referenced by session_capture_create(), and session_capture_read_audio().

◆ paused_after_first_frame

bool session_capture_ctx::paused_after_first_frame

Whether we've already paused after the first frame.

Definition at line 94 of file common/session/capture.c.

Referenced by session_capture_read_frame().

◆ resize_for_network

bool session_capture_ctx::resize_for_network

Whether to resize frames for network transmission.

Definition at line 61 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_process_for_transmission(), and session_network_capture_create().

◆ should_pause_after_first_frame

bool session_capture_ctx::should_pause_after_first_frame

Pause media source after first frame is read (–pause flag)

Definition at line 91 of file common/session/capture.c.

Referenced by session_capture_create(), and session_capture_read_frame().

◆ sleep_state

adaptive_sleep_state_t session_capture_ctx::sleep_state

Adaptive sleep state for frame rate limiting.

Definition at line 52 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_sleep_for_fps(), and session_network_capture_create().

◆ source

◆ start_time_ns

uint64_t session_capture_ctx::start_time_ns

Start time for FPS calculation (nanoseconds)

Definition at line 70 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_get_current_fps(), and session_network_capture_create().

◆ target_fps

uint32_t session_capture_ctx::target_fps

Target frames per second.

Definition at line 58 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_get_target_fps(), and session_network_capture_create().

◆ using_file_audio

bool session_capture_ctx::using_file_audio

Using file audio (true) or microphone fallback (false)

Definition at line 79 of file common/session/capture.c.

Referenced by session_capture_create(), session_capture_read_audio(), and session_capture_using_file_audio().


The documentation for this struct was generated from the following file: