There is a filter property on VCSimpleSession
of type VCFilter
:
typedef NS_ENUM(NSInteger, VCFilter) {
VCFilterNormal,
VCFilterGray,
VCFilterInvertColors,
VCFilterSepia,
VCFilterFisheye,
VCFilterGlow
};
Where is the implementation for these filters? How can I use them?
Each filter lives in their own file in filters/Basic directory, and added at runtime with
FilterFactory.cpp
:You can set the filters using the
setFilter:
method. The sample app iterates through all of the filters with a UIButton like so: