minor change

This commit is contained in:
Thibault Deckers 2021-11-27 17:06:36 +09:00
parent db78210a37
commit 7cc4e8d01e

View file

@ -7,12 +7,14 @@ class XmpCrsNamespace extends XmpNamespace {
static final cgbcPattern = RegExp(ns + r':CircularGradientBasedCorrections\[(\d+)\]/(.*)'); static final cgbcPattern = RegExp(ns + r':CircularGradientBasedCorrections\[(\d+)\]/(.*)');
static final gbcPattern = RegExp(ns + r':GradientBasedCorrections\[(\d+)\]/(.*)'); static final gbcPattern = RegExp(ns + r':GradientBasedCorrections\[(\d+)\]/(.*)');
static final mgbcPattern = RegExp(ns + r':MaskGroupBasedCorrections\[(\d+)\]/(.*)');
static final pbcPattern = RegExp(ns + r':PaintBasedCorrections\[(\d+)\]/(.*)'); static final pbcPattern = RegExp(ns + r':PaintBasedCorrections\[(\d+)\]/(.*)');
static final retouchAreasPattern = RegExp(ns + r':RetouchAreas\[(\d+)\]/(.*)'); static final retouchAreasPattern = RegExp(ns + r':RetouchAreas\[(\d+)\]/(.*)');
static final lookPattern = RegExp(ns + r':Look/(.*)'); static final lookPattern = RegExp(ns + r':Look/(.*)');
final cgbc = <int, Map<String, String>>{}; final cgbc = <int, Map<String, String>>{};
final gbc = <int, Map<String, String>>{}; final gbc = <int, Map<String, String>>{};
final mgbc = <int, Map<String, String>>{};
final pbc = <int, Map<String, String>>{}; final pbc = <int, Map<String, String>>{};
final retouchAreas = <int, Map<String, String>>{}; final retouchAreas = <int, Map<String, String>>{};
final look = <String, String>{}; final look = <String, String>{};
@ -24,6 +26,7 @@ class XmpCrsNamespace extends XmpNamespace {
final hasStructs = extractStruct(prop, lookPattern, look); final hasStructs = extractStruct(prop, lookPattern, look);
var hasIndexedStructs = extractIndexedStruct(prop, cgbcPattern, cgbc); var hasIndexedStructs = extractIndexedStruct(prop, cgbcPattern, cgbc);
hasIndexedStructs |= extractIndexedStruct(prop, gbcPattern, gbc); hasIndexedStructs |= extractIndexedStruct(prop, gbcPattern, gbc);
hasIndexedStructs |= extractIndexedStruct(prop, mgbcPattern, mgbc);
hasIndexedStructs |= extractIndexedStruct(prop, pbcPattern, pbc); hasIndexedStructs |= extractIndexedStruct(prop, pbcPattern, pbc);
hasIndexedStructs |= extractIndexedStruct(prop, retouchAreasPattern, retouchAreas); hasIndexedStructs |= extractIndexedStruct(prop, retouchAreasPattern, retouchAreas);
return hasStructs || hasIndexedStructs; return hasStructs || hasIndexedStructs;
@ -46,6 +49,11 @@ class XmpCrsNamespace extends XmpNamespace {
title: 'Look', title: 'Look',
struct: look, struct: look,
), ),
if (mgbc.isNotEmpty)
XmpStructArrayCard(
title: 'Mask Group Based Corrections',
structByIndex: mgbc,
),
if (pbc.isNotEmpty) if (pbc.isNotEmpty)
XmpStructArrayCard( XmpStructArrayCard(
title: 'Paint Based Corrections', title: 'Paint Based Corrections',