文件
dayu-color/大鱼调色/Plugin/DYScopeSample.h
T

24 行
854 B
Objective-C

#pragma once
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#include "DYScopeMath.hpp"
#include <memory>
@class DYColorProfile;
struct DYScopeReference {
std::vector<dyscope::RGBA> 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<const DYScopeReference>)displayReferenceWithProfile:(DYColorProfile *)profile;
- (NSData *)spiderScopeWithProfile:(DYColorProfile *)profile;
@end