linkedin / linkedin/LiTr

Feature request: Group filters

Open
#142 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
663
Forks
92
PR merge metrics
No merged PRs in 30d

Description

Hi,
Is there a way to apply multiple filters at once?
For example, when I want to use 3 filters simultaneously:
```
TransformationOptions.Builder()
.setVideoFilters(listOf(ContrastFilter(3f), BrightnessFilter(0.7f), SaturationFilter(0f)))
```
Only the last filter is applied to the transformation (target video) and previous ones are lost.

Does the library support it?

These examples [GlFilterGroup](https://github.com/MasayukiSuda/ExoPlayerFilter/blob/master/epf/src/main/java/com/daasuu/epf/filter/GlFilterGroup.java), [GlFilterGroup](https://github.com/MasayukiSuda/Mp4Composer-android/blob/master/mp4compose/src/main/java/com/daasuu/mp4compose/filter/GlFilterGroup.java) and [GPUImageFilterGroup](https://github.com/cats-oss/android-gpuimage/blob/master/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageFilterGroup.java) might be helpful and used as a reference.

Thank you 👍

Contributor guide

Open the contributing guide

Research direction

Start at TransformationOptions.Builder().setVideoFilters and trace how the video filter list is passed into the transformation. Review the linked GlFilterGroup and GPUImageFilterGroup implementations for composition patterns, then verify that contrast, brightness, and saturation all apply in order without earlier filters being discarded.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
audio-video-rtc, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.