Original implementation of Alpha Image filters

Chromakey (to finish), lumakey and alpha fill.
This commit is contained in:
Bruno Herbelin
2022-06-06 23:33:36 +02:00
parent fec2fb7ce6
commit 1604eaa239
16 changed files with 246 additions and 8 deletions

View File

@@ -166,6 +166,9 @@ void CloneSource::setFilter(FrameBufferFilter::Type T)
case FrameBufferFilter::FILTER_EDGE:
filter_ = new EdgeFilter;
break;
case FrameBufferFilter::FILTER_ALPHA:
filter_ = new AlphaFilter;
break;
case FrameBufferFilter::FILTER_IMAGE:
filter_ = new ImageFilter;
break;
@@ -174,10 +177,6 @@ void CloneSource::setFilter(FrameBufferFilter::Type T)
filter_ = new PassthroughFilter;
break;
}
// TODO : resampling of renderbuffer ?
}
void CloneSource::play (bool on)