// Finally filters that don't care what order they are in,\r
// except that they must be after the above filters\r
HB_FILTER_ROTATE,\r
+ HB_FILTER_GRAYSCALE,\r
HB_FILTER_QSV_POST, // for QSV - important to have as a last one \r
HB_FILTER_QSV, // default MSDK VPP filter \r
}\r
/// Gets or sets the filter list.\r
/// </summary>\r
public List<Filter> FilterList { get; set; }\r
-\r
- /// <summary>\r
- /// Gets or sets a value indicating whether grayscale.\r
- /// </summary>\r
- public bool Grayscale { get; set; }\r
}\r
-}
\ No newline at end of file
+}\r
Filters filter = new Filters
{
FilterList = new List<Filter>(),
- Grayscale = job.Grayscale
};
// Detelecine
filter.FilterList.Add(filterItem);
}
+ if (job.Grayscale)
+ {
+ Filter filterItem = new Filter { ID = (int)hb_filter_ids.HB_FILTER_GRAYSCALE, Settings = null };
+ filter.FilterList.Add(filterItem);
+ }
+
// CropScale Filter
Filter cropScale = new Filter
{