2014-02-01 17:01:31 -08:00
|
|
|
/******************************************************************************
|
|
|
|
Copyright (C) 2014 by Hugh Bailey <obs.jim@gmail.com>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-02-01 21:46:13 -08:00
|
|
|
#include "util/c99defs.h"
|
2014-04-04 00:30:37 -07:00
|
|
|
#include "obs-data.h"
|
2015-08-15 23:47:53 -07:00
|
|
|
#include "media-io/frame-rate.h"
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2014-10-12 07:54:39 -07:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief libobs header for the properties system used in libobs
|
|
|
|
*
|
|
|
|
* @page properties Properties
|
|
|
|
* @brief Platform and Toolkit independent settings implementation
|
|
|
|
*
|
|
|
|
* @section prop_overview_sec Overview
|
|
|
|
*
|
|
|
|
* libobs uses a property system which lets for example sources specify
|
|
|
|
* settings that can be displayed to the user by the UI.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-02-01 17:01:31 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-03-19 13:42:59 -07:00
|
|
|
/** Only update when the user presses OK or Apply */
|
|
|
|
#define OBS_PROPERTIES_DEFER_UPDATE (1<<0)
|
|
|
|
|
2014-02-01 17:01:31 -08:00
|
|
|
enum obs_property_type {
|
|
|
|
OBS_PROPERTY_INVALID,
|
2014-03-04 06:07:13 -08:00
|
|
|
OBS_PROPERTY_BOOL,
|
2014-02-01 17:01:31 -08:00
|
|
|
OBS_PROPERTY_INT,
|
|
|
|
OBS_PROPERTY_FLOAT,
|
|
|
|
OBS_PROPERTY_TEXT,
|
|
|
|
OBS_PROPERTY_PATH,
|
2014-03-02 05:32:47 -08:00
|
|
|
OBS_PROPERTY_LIST,
|
2014-02-01 17:01:31 -08:00
|
|
|
OBS_PROPERTY_COLOR,
|
2014-05-30 02:16:46 -07:00
|
|
|
OBS_PROPERTY_BUTTON,
|
2014-08-17 05:43:37 -07:00
|
|
|
OBS_PROPERTY_FONT,
|
2015-04-13 11:08:40 -07:00
|
|
|
OBS_PROPERTY_EDITABLE_LIST,
|
2015-08-15 23:47:53 -07:00
|
|
|
OBS_PROPERTY_FRAME_RATE,
|
2014-02-01 17:01:31 -08:00
|
|
|
};
|
|
|
|
|
2014-03-02 05:32:47 -08:00
|
|
|
enum obs_combo_format {
|
|
|
|
OBS_COMBO_FORMAT_INVALID,
|
|
|
|
OBS_COMBO_FORMAT_INT,
|
|
|
|
OBS_COMBO_FORMAT_FLOAT,
|
|
|
|
OBS_COMBO_FORMAT_STRING
|
|
|
|
};
|
|
|
|
|
|
|
|
enum obs_combo_type {
|
|
|
|
OBS_COMBO_TYPE_INVALID,
|
|
|
|
OBS_COMBO_TYPE_EDITABLE,
|
|
|
|
OBS_COMBO_TYPE_LIST,
|
2014-02-01 17:01:31 -08:00
|
|
|
};
|
|
|
|
|
2016-05-26 10:48:07 -07:00
|
|
|
enum obs_editable_list_type {
|
|
|
|
OBS_EDITABLE_LIST_TYPE_STRINGS,
|
|
|
|
OBS_EDITABLE_LIST_TYPE_FILES,
|
|
|
|
OBS_EDITABLE_LIST_TYPE_FILES_AND_URLS
|
|
|
|
};
|
|
|
|
|
2014-06-27 19:52:53 -07:00
|
|
|
enum obs_path_type {
|
|
|
|
OBS_PATH_FILE,
|
2016-01-31 09:37:16 -08:00
|
|
|
OBS_PATH_FILE_SAVE,
|
2014-06-27 19:52:53 -07:00
|
|
|
OBS_PATH_DIRECTORY
|
|
|
|
};
|
|
|
|
|
2014-04-02 00:42:12 -07:00
|
|
|
enum obs_text_type {
|
|
|
|
OBS_TEXT_DEFAULT,
|
|
|
|
OBS_TEXT_PASSWORD,
|
2014-07-19 12:31:46 -07:00
|
|
|
OBS_TEXT_MULTILINE,
|
2014-04-02 00:42:12 -07:00
|
|
|
};
|
|
|
|
|
2015-03-17 18:19:21 -07:00
|
|
|
enum obs_number_type {
|
|
|
|
OBS_NUMBER_SCROLLER,
|
|
|
|
OBS_NUMBER_SLIDER
|
|
|
|
};
|
|
|
|
|
2014-08-17 05:43:37 -07:00
|
|
|
#define OBS_FONT_BOLD (1<<0)
|
|
|
|
#define OBS_FONT_ITALIC (1<<1)
|
|
|
|
#define OBS_FONT_UNDERLINE (1<<2)
|
|
|
|
#define OBS_FONT_STRIKEOUT (1<<3)
|
|
|
|
|
2014-02-01 21:46:13 -08:00
|
|
|
struct obs_properties;
|
2014-02-01 17:01:31 -08:00
|
|
|
struct obs_property;
|
2014-09-25 17:44:05 -07:00
|
|
|
typedef struct obs_properties obs_properties_t;
|
|
|
|
typedef struct obs_property obs_property_t;
|
2014-02-01 17:01:31 -08:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_properties_t *obs_properties_create(void);
|
|
|
|
EXPORT obs_properties_t *obs_properties_create_param(void *param,
|
2014-06-24 23:54:10 -07:00
|
|
|
void (*destroy)(void *param));
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_properties_destroy(obs_properties_t *props);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2015-03-19 13:42:59 -07:00
|
|
|
EXPORT void obs_properties_set_flags(obs_properties_t *props, uint32_t flags);
|
|
|
|
EXPORT uint32_t obs_properties_get_flags(obs_properties_t *props);
|
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_properties_set_param(obs_properties_t *props,
|
2014-04-19 20:29:11 -07:00
|
|
|
void *param, void (*destroy)(void *param));
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void *obs_properties_get_param(obs_properties_t *props);
|
2014-04-19 20:29:11 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_first(obs_properties_t *props);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_get(obs_properties_t *props,
|
2014-03-02 20:19:44 -08:00
|
|
|
const char *property);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2015-02-03 20:07:50 -08:00
|
|
|
/**
|
|
|
|
* Applies settings to the properties by calling all the necessary
|
|
|
|
* modification callbacks
|
|
|
|
*/
|
|
|
|
EXPORT void obs_properties_apply_settings(obs_properties_t *props,
|
2014-09-25 17:44:05 -07:00
|
|
|
obs_data_t *settings);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-02-01 17:01:31 -08:00
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
2014-05-30 02:16:46 -07:00
|
|
|
/**
|
|
|
|
* Callback for when a button property is clicked. If the properties
|
|
|
|
* need to be refreshed due to changes to the property layout, return true,
|
|
|
|
* otherwise return false.
|
|
|
|
*/
|
2014-09-25 17:44:05 -07:00
|
|
|
typedef bool (*obs_property_clicked_t)(obs_properties_t *props,
|
|
|
|
obs_property_t *property, void *data);
|
2014-05-30 02:16:46 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_bool(obs_properties_t *props,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *description);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_int(obs_properties_t *props,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *description,
|
|
|
|
int min, int max, int step);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_float(obs_properties_t *props,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *description,
|
|
|
|
double min, double max, double step);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2015-03-17 18:19:21 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_int_slider(obs_properties_t *props,
|
|
|
|
const char *name, const char *description,
|
|
|
|
int min, int max, int step);
|
|
|
|
|
|
|
|
EXPORT obs_property_t *obs_properties_add_float_slider(obs_properties_t *props,
|
|
|
|
const char *name, const char *description,
|
|
|
|
double min, double max, double step);
|
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_text(obs_properties_t *props,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *description,
|
|
|
|
enum obs_text_type type);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2014-06-27 19:52:53 -07:00
|
|
|
/**
|
|
|
|
* Adds a 'path' property. Can be a directory or a file.
|
|
|
|
*
|
|
|
|
* If target is a file path, the filters should be this format, separated by
|
|
|
|
* double semi-colens, and extensions separated by space:
|
|
|
|
* "Example types 1 and 2 (*.ex1 *.ex2);;Example type 3 (*.ex3)"
|
|
|
|
*
|
|
|
|
* @param props Properties object
|
|
|
|
* @param name Settings name
|
|
|
|
* @param description Description (display name) of the property
|
|
|
|
* @param type Type of path (directory or file)
|
|
|
|
* @param filter If type is a file path, then describes the file filter
|
|
|
|
* that the user can browse. Items are separated via
|
|
|
|
* double semi-colens. If multiple file types in a
|
|
|
|
* filter, separate with space.
|
|
|
|
*/
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_path(obs_properties_t *props,
|
2014-06-27 19:52:53 -07:00
|
|
|
const char *name, const char *description,
|
|
|
|
enum obs_path_type type, const char *filter,
|
|
|
|
const char *default_path);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_list(obs_properties_t *props,
|
2014-02-01 17:01:31 -08:00
|
|
|
const char *name, const char *description,
|
2014-03-03 01:56:54 -08:00
|
|
|
enum obs_combo_type type, enum obs_combo_format format);
|
Implement RTMP module (still needs drop code)
- Implement the RTMP output module. This time around, we just use a
simple FLV muxer, then just write to the stream with RTMP_Write.
Easy and effective.
- Fix the FLV muxer, the muxer now outputs proper FLV packets.
- Output API:
* When using encoders, automatically interleave encoded packets
before sending it to the output.
* Pair encoders and have them automatically wait for the other to
start to ensure sync.
* Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
because it was a bit confusing, and doing this makes a lot more
sense for outputs that need to stop suddenly (disconnections/etc).
- Encoder API:
* Remove some unnecessary encoder functions from the actual API and
make them internal. Most of the encoder functions are handled
automatically by outputs anyway, so there's no real need to expose
them and end up inadvertently confusing plugin writers.
* Have audio encoders wait for the video encoder to get a frame, then
start at the exact data point that the first video frame starts to
ensure the most accrate sync of video/audio possible.
* Add a required 'frame_size' callback for audio encoders that
returns the expected number of frames desired to encode with. This
way, the libobs encoder API can handle the circular buffering
internally automatically for the encoder modules, so encoder
writers don't have to do it themselves.
- Fix a few bugs in the serializer interface. It was passing the wrong
variable for the data in a few cases.
- If a source has video, make obs_source_update defer the actual update
callback until the tick function is called to prevent threading
issues.
2014-04-07 22:00:10 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_color(obs_properties_t *props,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *description);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_button(obs_properties_t *props,
|
2014-05-30 02:16:46 -07:00
|
|
|
const char *name, const char *text,
|
|
|
|
obs_property_clicked_t callback);
|
|
|
|
|
2017-12-26 10:57:12 -08:00
|
|
|
EXPORT obs_property_t *obs_properties_add_button2(obs_properties_t *props,
|
|
|
|
const char *name, const char *text,
|
|
|
|
obs_property_clicked_t callback, void *priv);
|
|
|
|
|
2014-08-17 05:43:37 -07:00
|
|
|
/**
|
|
|
|
* Adds a font selection property.
|
|
|
|
*
|
|
|
|
* A font is an obs_data sub-object which contains the following items:
|
|
|
|
* face: face name string
|
|
|
|
* style: style name string
|
|
|
|
* size: size integer
|
|
|
|
* flags: font flags integer (OBS_FONT_* defined above)
|
|
|
|
*/
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_font(obs_properties_t *props,
|
2014-08-17 05:43:37 -07:00
|
|
|
const char *name, const char *description);
|
|
|
|
|
2015-04-13 11:08:40 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_editable_list(obs_properties_t *props,
|
|
|
|
const char *name, const char *description,
|
2016-05-26 10:48:07 -07:00
|
|
|
enum obs_editable_list_type type, const char *filter,
|
2015-04-13 11:08:40 -07:00
|
|
|
const char *default_path);
|
|
|
|
|
2015-08-15 23:47:53 -07:00
|
|
|
EXPORT obs_property_t *obs_properties_add_frame_rate(obs_properties_t *props,
|
|
|
|
const char *name, const char *description);
|
|
|
|
|
2014-02-01 17:01:31 -08:00
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
2014-04-04 00:30:37 -07:00
|
|
|
/**
|
|
|
|
* Optional callback for when a property is modified. If the properties
|
|
|
|
* need to be refreshed due to changes to the property layout, return true,
|
|
|
|
* otherwise return false.
|
|
|
|
*/
|
2014-09-25 17:44:05 -07:00
|
|
|
typedef bool (*obs_property_modified_t)(obs_properties_t *props,
|
|
|
|
obs_property_t *property, obs_data_t *settings);
|
2018-01-03 15:32:11 -08:00
|
|
|
typedef bool (*obs_property_modified2_t)(void *priv, obs_properties_t *props,
|
|
|
|
obs_property_t *property, obs_data_t *settings);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_property_set_modified_callback(obs_property_t *p,
|
2014-04-04 00:30:37 -07:00
|
|
|
obs_property_modified_t modified);
|
2018-01-03 15:32:11 -08:00
|
|
|
EXPORT void obs_property_set_modified_callback2(obs_property_t *p,
|
|
|
|
obs_property_modified2_t modified, void *priv);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT bool obs_property_modified(obs_property_t *p, obs_data_t *settings);
|
|
|
|
EXPORT bool obs_property_button_clicked(obs_property_t *p, void *obj);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_property_set_visible(obs_property_t *p, bool visible);
|
|
|
|
EXPORT void obs_property_set_enabled(obs_property_t *p, bool enabled);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2015-01-03 07:36:28 -08:00
|
|
|
EXPORT void obs_property_set_description(obs_property_t *p,
|
|
|
|
const char *description);
|
2016-07-20 08:09:45 -07:00
|
|
|
EXPORT void obs_property_set_long_description(obs_property_t *p,
|
|
|
|
const char *long_description);
|
2015-01-03 07:36:28 -08:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT const char * obs_property_name(obs_property_t *p);
|
|
|
|
EXPORT const char * obs_property_description(obs_property_t *p);
|
2016-07-20 08:09:45 -07:00
|
|
|
EXPORT const char * obs_property_long_description(obs_property_t *p);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT enum obs_property_type obs_property_get_type(obs_property_t *p);
|
|
|
|
EXPORT bool obs_property_enabled(obs_property_t *p);
|
|
|
|
EXPORT bool obs_property_visible(obs_property_t *p);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT bool obs_property_next(obs_property_t **p);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT int obs_property_int_min(obs_property_t *p);
|
|
|
|
EXPORT int obs_property_int_max(obs_property_t *p);
|
|
|
|
EXPORT int obs_property_int_step(obs_property_t *p);
|
2015-03-17 18:19:21 -07:00
|
|
|
EXPORT enum obs_number_type obs_property_int_type(obs_property_t *p);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT double obs_property_float_min(obs_property_t *p);
|
|
|
|
EXPORT double obs_property_float_max(obs_property_t *p);
|
|
|
|
EXPORT double obs_property_float_step(obs_property_t *p);
|
2015-03-17 18:19:21 -07:00
|
|
|
EXPORT enum obs_number_type obs_property_float_type(obs_property_t *p);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT enum obs_text_type obs_proprety_text_type(obs_property_t *p);
|
|
|
|
EXPORT enum obs_path_type obs_property_path_type(obs_property_t *p);
|
|
|
|
EXPORT const char * obs_property_path_filter(obs_property_t *p);
|
|
|
|
EXPORT const char * obs_property_path_default_path(obs_property_t *p);
|
|
|
|
EXPORT enum obs_combo_type obs_property_list_type(obs_property_t *p);
|
|
|
|
EXPORT enum obs_combo_format obs_property_list_format(obs_property_t *p);
|
2014-02-01 17:01:31 -08:00
|
|
|
|
2016-09-19 06:39:02 -07:00
|
|
|
EXPORT void obs_property_int_set_limits(obs_property_t *p,
|
|
|
|
int min, int max, int step);
|
|
|
|
EXPORT void obs_property_float_set_limits(obs_property_t *p,
|
|
|
|
double min, double max, double step);
|
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_property_list_clear(obs_property_t *p);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT size_t obs_property_list_add_string(obs_property_t *p,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, const char *val);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT size_t obs_property_list_add_int(obs_property_t *p,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, long long val);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT size_t obs_property_list_add_float(obs_property_t *p,
|
2014-04-04 00:30:37 -07:00
|
|
|
const char *name, double val);
|
|
|
|
|
2014-12-09 13:55:20 -08:00
|
|
|
EXPORT void obs_property_list_insert_string(obs_property_t *p, size_t idx,
|
|
|
|
const char *name, const char *val);
|
|
|
|
EXPORT void obs_property_list_insert_int(obs_property_t *p, size_t idx,
|
|
|
|
const char *name, long long val);
|
|
|
|
EXPORT void obs_property_list_insert_float(obs_property_t *p, size_t idx,
|
|
|
|
const char *name, double val);
|
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_property_list_item_disable(obs_property_t *p, size_t idx,
|
2014-06-11 17:01:07 -07:00
|
|
|
bool disabled);
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT bool obs_property_list_item_disabled(obs_property_t *p, size_t idx);
|
2014-06-11 17:01:07 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT void obs_property_list_item_remove(obs_property_t *p, size_t idx);
|
2014-04-04 00:30:37 -07:00
|
|
|
|
2014-09-25 17:44:05 -07:00
|
|
|
EXPORT size_t obs_property_list_item_count(obs_property_t *p);
|
|
|
|
EXPORT const char *obs_property_list_item_name(obs_property_t *p, size_t idx);
|
|
|
|
EXPORT const char *obs_property_list_item_string(obs_property_t *p, size_t idx);
|
|
|
|
EXPORT long long obs_property_list_item_int(obs_property_t *p, size_t idx);
|
|
|
|
EXPORT double obs_property_list_item_float(obs_property_t *p, size_t idx);
|
2014-03-03 01:56:54 -08:00
|
|
|
|
2016-05-26 10:48:07 -07:00
|
|
|
EXPORT enum obs_editable_list_type obs_property_editable_list_type(obs_property_t *p);
|
2015-04-13 11:08:40 -07:00
|
|
|
EXPORT const char *obs_property_editable_list_filter(obs_property_t *p);
|
|
|
|
EXPORT const char *obs_property_editable_list_default_path(obs_property_t *p);
|
|
|
|
|
2015-08-15 23:47:53 -07:00
|
|
|
EXPORT void obs_property_frame_rate_clear(obs_property_t *p);
|
|
|
|
EXPORT void obs_property_frame_rate_options_clear(obs_property_t *p);
|
|
|
|
EXPORT void obs_property_frame_rate_fps_ranges_clear(obs_property_t *p);
|
|
|
|
|
|
|
|
EXPORT size_t obs_property_frame_rate_option_add(obs_property_t *p,
|
|
|
|
const char *name, const char *description);
|
|
|
|
EXPORT size_t obs_property_frame_rate_fps_range_add(obs_property_t *p,
|
|
|
|
struct media_frames_per_second min,
|
|
|
|
struct media_frames_per_second max);
|
|
|
|
|
|
|
|
EXPORT void obs_property_frame_rate_option_insert(obs_property_t *p, size_t idx,
|
|
|
|
const char *name, const char *description);
|
|
|
|
EXPORT void obs_property_frame_rate_fps_range_insert(obs_property_t *p,
|
|
|
|
size_t idx,
|
|
|
|
struct media_frames_per_second min,
|
|
|
|
struct media_frames_per_second max);
|
|
|
|
|
|
|
|
EXPORT size_t obs_property_frame_rate_options_count(obs_property_t *p);
|
|
|
|
EXPORT const char *obs_property_frame_rate_option_name(obs_property_t *p,
|
|
|
|
size_t idx);
|
|
|
|
EXPORT const char *obs_property_frame_rate_option_description(
|
|
|
|
obs_property_t *p, size_t idx);
|
|
|
|
|
|
|
|
EXPORT size_t obs_property_frame_rate_fps_ranges_count(obs_property_t *p);
|
|
|
|
EXPORT struct media_frames_per_second obs_property_frame_rate_fps_range_min(
|
|
|
|
obs_property_t *p, size_t idx);
|
|
|
|
EXPORT struct media_frames_per_second obs_property_frame_rate_fps_range_max(
|
|
|
|
obs_property_t *p, size_t idx);
|
|
|
|
|
2014-02-01 17:01:31 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|