Aus öffentlichen Paketdaten erstellte Orientierung.
Ein Flutter-Paket, das Bildfilter mithilfe von OpenGL (SPIR-V)-Fragment-Shadern anwendet und leistungsstarke visuelle Effekte ermöglicht. Es enthält Vorschaugeneratoren, um Filterergebnisse in Echtzeit zu visualisieren, was es ideal für Apps mit dynamischer Bildbearbeitung macht. Das Paket unterstützt mehrere Plattformen wie Android, iOS, Web und macOS und gewährleistet breite Kompatibilität. Entwickler können benutzerdefinierte Shaders integrieren oder eingebaute Filter für Effekte wie Unschärfe, Helligkeit, Kontrast usw. nutzen. Für Effizienz und Benutzerfreundlichkeit konzipiert, ist es geeignet für Foto-Editoren, kreative Apps und jede Anwendung, die Echtzeit-Bildverarbeitung mit minimalem Overhead benötigt.
final texture = awaitTextureSource.fromAsset('demo.jpeg');
final brConfig = BrightnessShaderConfiguration();
brConfig.brightness = 0.5;
final stConfig = SaturationShaderConfiguration();
stConfig.saturation = 0.5;
final configuration = GroupShaderConfiguration();
configuration.add(brConfig);
configuration.add(stConfig);
final result = await configuration.export(texture, texture.size);
LookupTable sample
final texture = awaitTextureSource.fromAsset('demo.jpeg');
final configuration = SquareLookupTableShaderConfiguration();
await configuration.setLutAsset('lookup_amatorka.png');
final image = await configuration.export(texture, texture.size);
LookupTable HALD sample
final texture = awaitTextureSource.fromAsset('demo.jpeg');
final configuration = HALDLookupTableShaderConfiguration();
await configuration.setLutAsset('lookup_hald.png');
final image = await configuration.export(texture, texture.size);