mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2025-06-18 16:45:39 -04:00

Some checks failed
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux32 flags:32 name:Linux GCC 32 os:ubuntu-latest]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux64 flags:64 name:Linux GCC x64 os:ubuntu-latest]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm32 flags:arm32 name:Linux GCC ARM 32 os:ubuntu-latest]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm64 flags:arm64 name:Linux GCC ARM 64 os:ubuntu-latest]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:macos name:macOS Apple Silicon os:macos-14]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win32 flags:-A Win32 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 Win32 os:windows-2022]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win64 flags:-A x64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 x64 os:windows-2022]) (push) Has been cancelled
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:winarm64 flags:-A ARM64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 ARM os:windows-2022]) (push) Has been cancelled
CD / Create Pi Mono Setup (push) Has been cancelled
CD / Publishing (push) Has been cancelled
36 lines
1.6 KiB
C++
Executable File
36 lines
1.6 KiB
C++
Executable File
#ifndef __DEVICECAPTURE_HPP
|
|
#define __DEVICECAPTURE_HPP
|
|
|
|
#include "utils.hpp"
|
|
#include "hw_defs.hpp"
|
|
#include "capture_structs.hpp"
|
|
#include "frontend.hpp"
|
|
|
|
struct no_access_recap_data {
|
|
no_access_recap_data(std::string name) : name(name), vid(-1), pid(-1) {}
|
|
no_access_recap_data(uint16_t vid, uint16_t pid) : name(""), vid(vid), pid(pid) {}
|
|
std::string name;
|
|
int vid;
|
|
int pid;
|
|
};
|
|
|
|
void capture_init();
|
|
void capture_close();
|
|
|
|
bool connect(bool print_failed, CaptureData* capture_data, FrontendData* frontend_data, bool auto_connect_to_first = false);
|
|
void captureCall(CaptureData* capture_data);
|
|
void capture_error_print(bool print_failed, CaptureData* capture_data, std::string error_string);
|
|
void capture_error_print(bool print_failed, CaptureData* capture_data, std::string graphical_string, std::string detailed_string);
|
|
uint64_t get_audio_n_samples(CaptureData* capture_data, CaptureDataSingleBuffer* data_buffer);
|
|
uint64_t get_video_in_size(CaptureData* capture_data, bool is_3d, InputVideoDataType video_data_type);
|
|
std::string get_name_of_device(CaptureStatus* capture_status, bool use_long = false);
|
|
int get_usb_speed_of_device(CaptureStatus* capture_status);
|
|
bool get_device_can_do_3d(CaptureStatus* capture_status);
|
|
bool get_device_3d_implemented(CaptureStatus* capture_status);
|
|
bool is_usb_speed_of_device_enough_3d(CaptureStatus* capture_status);
|
|
bool get_3d_enabled(CaptureStatus* capture_status, bool skip_requested_3d_check = false);
|
|
bool update_3d_enabled(CaptureStatus* capture_status);
|
|
bool set_3d_enabled(CaptureStatus* capture_status, bool new_value);
|
|
float get_framerate_multiplier(CaptureStatus* capture_status);
|
|
#endif
|