X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilter.h;h=205d92482b3aa16d3fd134476335e6b6c77336e6;hb=6aea66f4331d0f543416acd55a7d99772e274414;hp=e7e8b389f217a7c78313a0ce93b427b2a204faec;hpb=98bbaf1e907e927dbd26131cbdef243a82fdc2d1;p=dcpomatic.git diff --git a/src/lib/filter.h b/src/lib/filter.h index e7e8b389f..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,7 +78,7 @@ private: /** all available filters */ static std::vector _filters; - static void maybe_add (std::string, std::string, std::string, std::string); + static void maybe_add (std::string, std::string, std::string, std::string, std::string); }; #endif