X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Ffilter.h;h=205d92482b3aa16d3fd134476335e6b6c77336e6;hb=8bfb6ae0780b0bf3318c345df78518ad3fabc9fc;hp=20c55049c4367dad7fb8dae691e437078245fb34;hpb=bb767c7e338414beee132af3e96829c1448e214b;p=dcpomatic.git diff --git a/src/lib/filter.h b/src/lib/filter.h index 20c55049c..205d92482 100644 --- a/src/lib/filter.h +++ b/src/lib/filter.h @@ -33,7 +33,7 @@ class Filter { public: - Filter (std::string, std::string, std::string, std::string); + Filter (std::string, std::string, std::string, std::string, std::string); /** @return our id */ std::string id () const { @@ -54,6 +54,10 @@ public: std::string pp () const { return _pp; } + + std::string category () const { + return _category; + } static std::vector all (); static Filter const * from_id (std::string); @@ -66,6 +70,7 @@ private: std::string _id; /** user-visible name */ std::string _name; + std::string _category; /** string for a FFmpeg video filter descriptor */ std::string _vf; /** string for a FFmpeg post-processing descriptor */ @@ -73,6 +78,7 @@ private: /** all available filters */ static std::vector _filters; + static void maybe_add (std::string, std::string, std::string, std::string, std::string); }; #endif