[FFmpeg-devel] [PATCH 23/25] fftools/ffmpeg_filter: add filtergraph private data

Anton Khirnov anton at khirnov.net
Mon Apr 24 14:17:17 EEST 2023


Quoting Nicolas George (2023-04-24 12:20:00)
> Anton Khirnov (12023-04-19):
> > Start by moving OutputStream.filtered_frame to it, which really belong
> > to the filtergraph rather than the output stream.
> 
> What is the point of this? fftools/ffmpeg_filter: is not part of a
> library, concepts of public/private do not apply, just put everything
> you need in FilterGraph.

Separating internal state from public interfaces is a fundamental notion
of object-oriented programming and is completely orthogonal to that
object being a part of a library or not.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list