mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-16 13:37:05 -04:00
Simplify media i/o interfaces
Completely revamped the entire media i/o data and handlers. The original idea was to have a system that would have connecting media inputs and outputs, but at a certain point I realized that this was an unnecessary complexity for what we wanted to do. (Also, it reminded me of directshow filters, and I HATE directshow with a passion, and wouldn't wish it upon my greatest enemy) Now, audio/video outputs are connected to directly, with better callback handlers, and will eventually have the ability to automatically handle conversions such as 4:4:4 to 4:2:0 when connecting to an input that uses them. Doing this will allow the video/audio i/o handlers to also prevent duplicate conversion, as well as make it easier/simple to use. My true goal for this is to make output and encoder plugins as simple to create as possible. I want to be able to be able to create an output plugin with almost no real hassle of having to worry about image conversions, media inputs/outputs, etc. A plugin developer shouldn't have to handle that sort of stuff when he/she doesn't really need to. Plugins will be able to simply create a callback via obs_video() and/or obs_audio(), and they will automatically receive the audio/video data in the formats requested via a simple callback, without needing to do almost anything else at all.
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
<ClInclude Include="..\..\..\libobs\media-io\audio-io.h" />
|
||||
<ClInclude Include="..\..\..\libobs\media-io\audio-resampler.h" />
|
||||
<ClInclude Include="..\..\..\libobs\media-io\format-conversion.h" />
|
||||
<ClInclude Include="..\..\..\libobs\media-io\media-io.h" />
|
||||
<ClInclude Include="..\..\..\libobs\media-io\video-io.h" />
|
||||
<ClInclude Include="..\..\..\libobs\obs-data.h" />
|
||||
<ClInclude Include="..\..\..\libobs\obs-defs.h" />
|
||||
@@ -90,7 +89,6 @@
|
||||
<ClCompile Include="..\..\..\libobs\media-io\audio-io.c" />
|
||||
<ClCompile Include="..\..\..\libobs\media-io\audio-resampler-ffmpeg.c" />
|
||||
<ClCompile Include="..\..\..\libobs\media-io\format-conversion.c" />
|
||||
<ClCompile Include="..\..\..\libobs\media-io\media-io.c" />
|
||||
<ClCompile Include="..\..\..\libobs\media-io\video-io.c" />
|
||||
<ClCompile Include="..\..\..\libobs\obs-display.c" />
|
||||
<ClCompile Include="..\..\..\libobs\obs-module.c" />
|
||||
|
||||
@@ -87,9 +87,6 @@
|
||||
<ClInclude Include="..\..\..\libobs\media-io\audio-io.h">
|
||||
<Filter>media-io\Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\libobs\media-io\media-io.h">
|
||||
<Filter>media-io\Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\libobs\media-io\video-io.h">
|
||||
<Filter>media-io\Header Files</Filter>
|
||||
</ClInclude>
|
||||
@@ -227,9 +224,6 @@
|
||||
<ClCompile Include="..\..\..\libobs\media-io\audio-io.c">
|
||||
<Filter>media-io\Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\libobs\media-io\media-io.c">
|
||||
<Filter>media-io\Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\libobs\util\config-file.c">
|
||||
<Filter>util\Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
||||
Reference in New Issue
Block a user