VCS Dev Docs File src/common/disk/disk.h

The disk subsystem interface.

More...

Functions

std::vector<resolution_alias_s>kdisk_load_aliases(const std::string &filename)
std::vector<abstract_filter_graph_node_s>kdisk_load_filter_graph(const std::string &filename)
std::vector<video_preset_s*>kdisk_load_video_presets(const std::string &filename)
boolkdisk_save_aliases(const std::vector<resolution_alias_s> &aliases, const std::string &filename)
boolkdisk_save_filter_graph(const std::vector<FilterGraphNode*> &nodes, const std::string &filename)
boolkdisk_save_video_presets(const std::vector<video_preset_s*> &presets, const std::string &filename)

Detailed description

The disk subsystem interface.

The disk subsystem provides functionality to VCS for saving and loading user data files – e.g. video preset configurations.

The subsystem transparently handles loading from legacy file formats. Saving is always done using the current file format for the given type of data.

Function documentation

std::vector<resolution_alias_s> kdisk_load_aliases(const std::string &filename)

Loads the capture resolution aliases stored in the file named filename.

Returns the loaded aliases. If the loading fails, returns an empty vector.

std::vector<abstract_filter_graph_node_s> kdisk_load_filter_graph(const std::string &filename)

Loads the filter graph nodes stored in the file named filename.

Returns the loaded filter graph nodes. If the loading fails, returns an empty vector.

std::vector<video_preset_s*> kdisk_load_video_presets(const std::string &filename)

Loads the video presets stored in the file named filename.

Returns the loaded video presets. If the loading fails, returns an empty vector.

bool kdisk_save_aliases(const std::vector<resolution_alias_s> &aliases, const std::string &filename)

Saves the given alias resolutions into a file named filename.

Returns true on success, false otherwise.

bool kdisk_save_filter_graph(const std::vector<FilterGraphNode*> &nodes, const std::string &filename)

Saves the given filter graph nodes into a file named filename.

Returns true on success, false otherwise.

bool kdisk_save_video_presets(const std::vector<video_preset_s*> &presets, const std::string &filename)

Saves the given video presets into a file named filename.

Returns true on success, false otherwise.