EmperrorAoyama
New Member
Hi everyone,
I'm creating a custom filter with which I'd want to get current video frame (2D array of its pixels) and transform it in a way described by another 2D "transformation Array".
I read a lot of scripts and filters' codes for these that are already attached to OBS source, but I'm still having some basic level problems before I start development.
First thing:
Is there any basic documentation about any API provided for achieving such basic frame gathering actions and similiar things, especially for custom filter development?
Second thing:
In this filter for example
https://github.com/jp9000/obs-studio/blob/master/plugins/obs-filters/mask-filter.c
There is this part:
.type = OBS_SOURCE_TYPE_FILTER,
.output_flags = OBS_SOURCE_VIDEO,
I'm guessing it's purpose is to connect my custom methods with some obs filter manager. My question here is: are these ".type" ".output" possible options described somewhere? Or do you know in which script are these methods executed when they're attached as a filter in OBS studio?
I'm creating a custom filter with which I'd want to get current video frame (2D array of its pixels) and transform it in a way described by another 2D "transformation Array".
I read a lot of scripts and filters' codes for these that are already attached to OBS source, but I'm still having some basic level problems before I start development.
First thing:
Is there any basic documentation about any API provided for achieving such basic frame gathering actions and similiar things, especially for custom filter development?
Second thing:
In this filter for example
https://github.com/jp9000/obs-studio/blob/master/plugins/obs-filters/mask-filter.c
There is this part:
.type = OBS_SOURCE_TYPE_FILTER,
.output_flags = OBS_SOURCE_VIDEO,
I'm guessing it's purpose is to connect my custom methods with some obs filter manager. My question here is: are these ".type" ".output" possible options described somewhere? Or do you know in which script are these methods executed when they're attached as a filter in OBS studio?