[shotwell] transformer: Implement auto-enhance
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] transformer: Implement auto-enhance
- Date: Sat, 25 Mar 2017 08:23:41 +0000 (UTC)
commit ca90c9242b7702f50c81a0f4dfd67ef90fe772c6
Author: Jens Georg <mail jensge org>
Date: Fri Mar 24 20:24:22 2017 +0100
transformer: Implement auto-enhance
Signed-off-by: Jens Georg <mail jensge org>
src/graphics-processor.vala | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/src/graphics-processor.vala b/src/graphics-processor.vala
index c9e11d5..cb2d9d7 100644
--- a/src/graphics-processor.vala
+++ b/src/graphics-processor.vala
@@ -72,15 +72,22 @@ int main(string[] args) {
}
var output = src.copy();
+ PixelTransformationBundle? adjustments = null;
- var transformations = marshall_all_transformations(pipeline);
+ if (pipeline != null) {
+ var transformations = marshall_all_transformations(pipeline);
- var adjustments = new PixelTransformationBundle();
- var map = transformations.get("adjustments");
- if (map == null) {
- adjustments.set_to_identity();
- } else {
- adjustments.load(map);
+ adjustments = new PixelTransformationBundle();
+ var map = transformations.get("adjustments");
+ if (map == null) {
+ adjustments.set_to_identity();
+ } else {
+ adjustments.load(map);
+ }
+ }
+
+ if (auto_enhance) {
+ adjustments = AutoEnhance.create_auto_enhance_adjustments(src);
}
var transformer = adjustments.generate_transformer();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]