#pragma once #import #import #include "DYScopeMath.hpp" #include @class DYColorProfile; struct DYScopeReference { std::vector pixels; uint64_t invalid=0; bool converted=false; }; @interface DYScopeSample : NSObject @property(nonatomic,copy) NSData *pixels; @property(nonatomic,copy) NSDictionary *metadata; @property(nonatomic) NSUInteger generation; @property(nonatomic) CGColorSpaceRef space; /// Final-output bins in the host RGB domain, calculated only if requested. @property(nonatomic,readonly) NSData *canvasHistogram; /// Shared straight-alpha display samples for the workspace and spider scopes. - (std::shared_ptr)displayReferenceWithProfile:(DYColorProfile *)profile; - (NSData *)spiderScopeWithProfile:(DYColorProfile *)profile; @end