5#ifndef JAWSMAKO_RENDERSPEC_H
6#define JAWSMAKO_RENDERSPEC_H
126 float cyanAngle = 15.0,
float magentaAngle = 75.0f,
float yellowAngle = 0.0f,
float blackAngle = 45.0f)
156 const float cyanAngle = 15.0,
157 const float magentaAngle = 75.0f,
158 const float yellowAngle = 0.0f,
159 const float blackAngle = 45.0f,
160 const float defaultAngle = 45.0f) :
CColorSpotHalftone(freq, false, cyanAngle, magentaAngle, yellowAngle, blackAngle)
400 const IDOMColorSpacePtr &targetSpace,
427 return ! (*
this == other);
447 #define obj2CColorConversionPostProcessSpec(obj) CColorConversionPostProcessSpecPtr(dynamic_cast<CColorConversionPostProcessSpec *>((IRCObject *) (obj)), true)
449 class CToneCurvesPostProcessSpec;
509 #define obj2CToneCurvesPostProcessSpec(obj) CToneCurvesPostProcessSpecPtr(dynamic_cast<CToneCurvesPostProcessSpec *>((IRCObject *) (obj)), true)
511 class CSpotMergePostProcessSpec;
573 #define obj2CSpotMergePostProcessSpec(obj) CSpotMergePostProcessSpecPtr(dynamic_cast<CSpotMergePostProcessSpec *>((IRCObject *) (obj)), true)
575 class CInkLimitPostProcessSpec;
601 bool _keepBlack =
true);
612 #define obj2CInkLimitPostProcessSpec(obj) CInkLimitPostProcessSpecPtr(dynamic_cast<CInkLimitPostProcessSpec *>((IRCObject *) (obj)), true)
614 class CHalftonePostProcessSpec;
655 #define obj2CHalftonePostProcessSpec(obj) CHalftonePostProcessSpecPtr(dynamic_cast<CHalftonePostProcessSpec *>((IRCObject *) (obj)), true)
889 #define renderSpecToCImageRenderSpec(rs) (dynamic_cast<CImageRenderSpec *>(rs))
909 #define renderSpecToCImagesRenderSpec(rs) (dynamic_cast<CImagesRenderSpec *>(rs))
939 #define renderSpecToCFrameBufferRenderSpec(rs) (dynamic_cast<CFrameBufferRenderSpec *>(rs))
1012 return ! (*
this == other);
1043 #define renderSpecToCFrameBuffersRenderSpec(rs) (dynamic_cast<CFrameBuffersRenderSpec *>(rs))
Definition edlvector.h:30
CEDLVector< CColorantInfo > CColorantInfoVect
Definition idomcolorspace.h:845
Base class Interface for all Reference Counted objects.
Definition ircobject.h:35
bool operator!=(const CLogicalStep &other) const
Definition renderspec.h:425
eRenderingIntent intent
The rendering intent to use.
Definition renderspec.h:414
IDOMColorSpacePtr targetSpace
The target space. Not used for conversion if a device link is supplied.
Definition renderspec.h:412
CLogicalStep()
Definition renderspec.h:407
IDOMICCProfilePtr deviceLink
The device link, if provided.
Definition renderspec.h:413
eBlackPointCompensation bpc
The black point compensation to use.
Definition renderspec.h:415
bool operator==(const CLogicalStep &other) const
Definition renderspec.h:417
This class describes a post-processing step whereby the previous result is color converted to a new c...
Definition renderspec.h:375
CEDLVector< CLogicalStep > CLogicalSteps
Definition renderspec.h:430
ePostProcessType getType() const override
Get the type of post processing this spec represents.
Definition renderspec.h:439
static JAWSMAKO_API CColorConversionPostProcessSpecPtr create(const CLogicalSteps &steps)
Create a color-conversion post process through multiple color spaces and/or links.
static JAWSMAKO_API CColorConversionPostProcessSpecPtr create(const IDOMICCProfilePtr &deviceLink, const IDOMColorSpacePtr &targetSpace, eRenderingIntent intent=eRelativeColorimetric, eBlackPointCompensation bpc=eBPCDefault)
Create a color-conversion post process using a device link profile.
CLogicalSteps conversionSteps
Definition renderspec.h:445
static JAWSMAKO_API CColorConversionPostProcessSpecPtr create(const IDOMColorSpacePtr &targetSpace, eRenderingIntent intent=eRelativeColorimetric, eBlackPointCompensation bpc=eBPCDefault)
Create a color-conversion post process.
CColorSpotHalftone(float freq, bool useFullResForFlattening=false, float cyanAngle=15.0, float magentaAngle=75.0f, float yellowAngle=0.0f, float blackAngle=45.0f)
Definition renderspec.h:125
float frequency
The halftone frequency in LPI to be used.
Definition renderspec.h:136
bool useFullResolutionForFlattening
Definition renderspec.h:137
CEDLVector< float > angles
The vector of angles to use.
Definition renderspec.h:141
CEDLVector< CEDLVector< uint8 > > thresholdArrays
The threshold arrays. Must be width x height bytes in size, and no larger than 65535 bytes.
Definition renderspec.h:210
uint32 height
the height of the halftone cell in pixels
Definition renderspec.h:209
uint32 width
The width of the halftone cell in pixels.
Definition renderspec.h:208
CColorThresholdArrayHalftone()
Definition renderspec.h:202
float perturbation
The weight of random perturbation to apply to each pre-screened pixel which may reduce pattern artifa...
Definition renderspec.h:298
uint32 denominator
The denominator parameter, set to the sum of the weights.
Definition renderspec.h:295
bool useSerpentine
If true, the algorithm reverses scanning direction with each alternate scanline to reduce pattern art...
Definition renderspec.h:297
uint8 rows
The number of rows in the error weighting matrix - 5 maximum.
Definition renderspec.h:292
CEDSHalftone()
Definition renderspec.h:259
uint8 weights[20]
The weight matrix; maximum of 20 entries (5 x 4)
Definition renderspec.h:296
uint8 pixelColumn
The pixel column.
Definition renderspec.h:294
uint8 dropSizes
The number of distinct drop sizes to produce (not including white). Please refer to the class descrip...
Definition renderspec.h:291
uint8 columns
The number of columns in the error weighting matrix - 4 maximum.
Definition renderspec.h:293
Description of a frame buffer for use with renderSeparationsToFrameBuffers and Apex rendering functio...
Definition renderspec.h:969
int32 pixelStride
Definition renderspec.h:979
uint32 bufferOfs
Offset to the byte containing the first first pixel to be written to.
Definition renderspec.h:972
uint8 bufferOfsBits
Definition renderspec.h:973
void * buffer
Pointer to the frame buffer.
Definition renderspec.h:971
CFrameBufferInfo()
Definition renderspec.h:989
int32 rowStride
Definition renderspec.h:977
int8 pixelStrideBits
Definition renderspec.h:984
bool operator!=(const CFrameBufferInfo &other) const
Definition renderspec.h:1010
bool operator==(const CFrameBufferInfo &other) const
Definition renderspec.h:999
int32 rowStride
The distance, in bytes, from one scanline to the next. May be negative.
Definition renderspec.h:931
bool hostEndian
Definition renderspec.h:932
CFrameBufferRenderSpec()
Definition renderspec.h:923
void * buffer
A pointer to the frame buffer memory where the first pixel will be written.
Definition renderspec.h:930
int32 objectMapRowStride
The distance, in bytes, from one object map scanline to the next. May be negative.
Definition renderspec.h:937
void * objectMapBuffer
Definition renderspec.h:934
CFrameBufferInfoVect bufferInfo
Definition renderspec.h:1031
CFrameBuffersRenderSpec()
Definition renderspec.h:1026
bool hostEndian
Definition renderspec.h:1038
CFrameBufferInfo objectMapInfo
Definition renderspec.h:1040
This class describes a post-processing step whereby halftoning is performed.
Definition renderspec.h:626
JawsMako::CSeparatedColorSpotHalftone CSeparatedColorSpotHalftone
Definition renderspec.h:629
float dpiX
Definition renderspec.h:652
ePostProcessType getType() const override
Get the type of post processing this spec represents.
Definition renderspec.h:645
const IHalftone * halftone
Definition renderspec.h:651
float dpiY
Definition renderspec.h:653
static JAWSMAKO_API CHalftonePostProcessSpecPtr create(const IHalftone *halftone, float dpiX, float dpiY=0.0f)
Create a halftone post process.
IDOMImagePtr result
On render completion, this will be populated with the rendered result.
Definition renderspec.h:884
IDOMImagePtr objectMap
Definition renderspec.h:885
bool compress
If true, the image data will be lightly compressed during render.
Definition renderspec.h:887
CImageRenderSpec()
Definition renderspec.h:879
CDOMImageVect result
On render completion, this will be populated with the rendered result images.
Definition renderspec.h:904
CImagesRenderSpec()
Definition renderspec.h:899
bool compress
If true, the image data will be lightly compressed during render.
Definition renderspec.h:907
IDOMImagePtr objectMap
Definition renderspec.h:905
This class describes a post-processing step whereby ink limiting via scaling is performed.
Definition renderspec.h:588
static JAWSMAKO_API CInkLimitPostProcessSpecPtr create(float _maxTotalInk, bool _keepBlack=true)
Create an ink-limiting post process.
ePostProcessType getType() const override
Get the type of post processing this spec represents.
Definition renderspec.h:603
bool keepBlack
Definition renderspec.h:610
float maxTotalInk
Definition renderspec.h:609
A base class that describes base rendering properties common to all rendering operations....
Definition renderspec.h:692
CSpotColorNames ignoredSpotColors
Spot components to ignore.
Definition renderspec.h:756
CSpotColorNames objectMapExcludeSpots
Definition renderspec.h:813
CSpotColorAliasVect aliasedSpotColors
Spot colorant aliases. Please see CSpotColorAlias for further information.
Definition renderspec.h:757
uint32 width
The width, in pixels, of the result.
Definition renderspec.h:748
uint8 depth
The depth, in bits (8 or 16), of the result.
Definition renderspec.h:750
CRenderSpec()
Definition renderspec.h:694
IOptionalContentPtr optionalContent
The optional content object for the document.
Definition renderspec.h:786
CColorManagerConfigPtr overrideCmmConfig
An optional CMM configuration override to apply to the given render.
Definition renderspec.h:797
bool alpha
Whether or not alpha information should be produced.
Definition renderspec.h:753
IDOMColorSpaceDeviceN::CColorantInfoVect replacementSpotColors
Definition renderspec.h:775
bool decomposeDeviceN
Definition renderspec.h:759
IDOMColorSpacePtr processSpace
Definition renderspec.h:746
bool generateObjectMap
Definition renderspec.h:806
bool ignoreInputIccProfiles
Definition renderspec.h:795
void assignCommon(const CRenderSpec &other)
Definition renderspec.h:716
bool retrieveObjectMap
Definition renderspec.h:809
CSpotColorNames retainedSpotColors
Spot components to generate as distinct separations/channels.
Definition renderspec.h:755
eBlackPreservation preserveBlackForOther
Whether or not to apply black preservation for non-text objects.
Definition renderspec.h:864
virtual ~CRenderSpec()=default
CRenderPostProcessVect postProcesses
Definition renderspec.h:780
eOptionalContentEvent optionalContentEvent
Definition renderspec.h:787
eBlackPreservation preserveBlackForText
Whether or not to apply black preservation for text.
Definition renderspec.h:863
FRect sourceRect
The source area of the DOM that will be mapped to the output width and height.
Definition renderspec.h:751
bool use16BitInternalRendering
Definition renderspec.h:798
uint32 height
The height, in pixels, of the result.
Definition renderspec.h:749
eBlackPreservation
The possible types for enabling/controlling 100% black preservation.
Definition renderspec.h:857
@ eBPDefault
Default behavior.
Definition renderspec.h:858
@ eBPOn
Use black point compensation if applicable during color conversion.
Definition renderspec.h:859
@ eBPOff
Do not use black point compensation during color conversion.
Definition renderspec.h:860
uint8 aaFactor
The aaFactor to be used. 1 means no anti-aliasing. The maximum value is 4.
Definition renderspec.h:752
eRenderingIntent cmykImageRenderingIntent
Definition renderspec.h:792
bool ditherShadingPatterns
Whether or not to apply dithering to shading patterns.
Definition renderspec.h:866
eRenderingIntent rgbImageRenderingIntent
Definition renderspec.h:790
Description of spot halftones, used for color halftoned rendering. Analogous to a PostScript Type 2 H...
Definition renderspec.h:153
CSeparatedColorSpotHalftone(const float freq, const float cyanAngle=15.0, const float magentaAngle=75.0f, const float yellowAngle=0.0f, const float blackAngle=45.0f, const float defaultAngle=45.0f)
Definition renderspec.h:155
CSpotColorAlias()=default
RawString remappedColorant
The colorant to which occurrences of spotName will be mapped.
Definition renderspec.h:59
RawString spotName
The name of the spot to map.
Definition renderspec.h:58
CSpotColorAlias(const RawString &_spotName, const RawString &_remappedColorant)
Construct a new CSpotColorAlias object.
Definition renderspec.h:53
bool useFullResolutionForFlattening
Definition renderspec.h:99
float frequency
The frequency of the spot function, in lines per inch.
Definition renderspec.h:98
CSpotHalftone(float freq, bool useFullResForFlattening=false)
Definition renderspec.h:93
This class describes a post-processing step whereby one or more spot colorants folded into the proces...
Definition renderspec.h:548
static JAWSMAKO_API CSpotMergePostProcessSpecPtr create(const IDOMColorSpaceDeviceN::CColorantInfoVect &_mergeSpotColors, const CEDLVector< CFloatVect > &_toneCurves=CEDLVector< CFloatVect >())
Create a tone-mapping post process.
CEDLVector< CFloatVect > toneCurves
Definition renderspec.h:571
IDOMColorSpaceDeviceN::CColorantInfoVect mergeSpotColors
Definition renderspec.h:570
ePostProcessType getType() const override
Get the type of post processing this spec represents.
Definition renderspec.h:564
uint32 width
The width of the halftone cell in pixels.
Definition renderspec.h:183
CEDLVector< uint8 > thresholdArray
The threshold array. Must be width x height bytes in size, and no larger than 65535 bytes.
Definition renderspec.h:185
uint32 height
the height of the halftone cell in pixels
Definition renderspec.h:184
CThresholdArrayHalftone()
Definition renderspec.h:177
uint8 threshold
Range is 8 bits, 1 to 254 inclusive.
Definition renderspec.h:226
CThresholdHalftone(uint8 thresh=127)
Definition renderspec.h:221
This class describes a post-processing step whereby one or more tone curves (aka calibration curves) ...
Definition renderspec.h:463
CEDLVector< CFloatVect > toneCurves
Definition renderspec.h:507
static JAWSMAKO_API CToneCurvesPostProcessSpecPtr create(const CEDLVector< CFloatVect > &_toneCurves)
Create a tone-mapping post process.
ePostProcessType getType() const override
Get the type of post processing this spec represents.
Definition renderspec.h:501
An abstract base class for communicating halftone information to the Jaws renderer,...
Definition renderspec.h:77
virtual ~IHalftone()=default
A class that describes a post process operation to be (logically) performed after an initial render t...
Definition renderspec.h:315
virtual ePostProcessType getType() const =0
Get the type of post processing this spec represents.
@ ePPTColorConversion
Color convert to a new color space.
Definition renderspec.h:324
@ ePPTCustomSpot
Custom spot color manipulation on the GPU with a specially made shader.
Definition renderspec.h:330
@ ePPTInkLimit
Ink limiting via scaling.
Definition renderspec.h:327
@ ePPTCustomSpotMerge
Custom spot merging on the GPU with a specially made shader.
Definition renderspec.h:331
@ ePPTCustomColor
Custom color manipulation on the GPU with a specially made shader.
Definition renderspec.h:329
@ ePPTHalftone
Apply halftone.
Definition renderspec.h:328
@ ePPTSpotMerge
Merge spots.
Definition renderspec.h:326
@ ePPTToneCurves
Apply tone curves.
Definition renderspec.h:325
A generic renderer interface.
Definition renderspec.h:1053
virtual void render(const IDOMNodePtr &node, CRenderSpec *renderSpec)=0
Render a node, targeting the given render specification. Any gray, RGB (except sRGB),...
virtual ~IRenderer()=default
CEDLVector< IDOMImagePtr > CDOMImageVect
Definition edlfwd.h:57
RectTmpl< double > FRect
Definition edlgeom.h:347
unsigned int uint32
Definition edltypes.h:34
_BEGIN_HQN_NAMESPACE typedef signed char int8
Definition edltypes.h:27
signed int int32
Definition edltypes.h:29
unsigned char uint8
Definition edltypes.h:32
eBlackPointCompensation
Black point compensation enumeration.
Definition edlblackpointcompensation.h:17
eRenderingIntent
Rendering intent enumeration.
Definition edlrenderingintent.h:17
@ eBPCDefault
Default behavior.
Definition edlblackpointcompensation.h:19
@ eRenderingIntentUnset
No rendering intent was set.
Definition edlrenderingintent.h:18
@ eRelativeColorimetric
Relative colorimetric rendering intent.
Definition edlrenderingintent.h:20
eObjectMapFlag
Object Map bits for an object map generated by Apex.
Definition renderspec.h:673
ePostProcessType
The possible types of post processing operations.
Definition renderspec.h:323
@ eOMFText
Text.
Definition renderspec.h:677
@ eOMFComposited
Composited. That is, transparency computation contributed to the pixel.
Definition renderspec.h:680
@ eOMFShading
Shading patterns (gradients and vignettes).
Definition renderspec.h:678
@ eOMFLineWork
"Linework" objects, such as simple flat fills, strokes, and bilevel masks.
Definition renderspec.h:676
@ eOMFImage
Images.
Definition renderspec.h:679
@ eOMFInteresting
Nodes with the eNodeInterestingFlag node flag set.
Definition renderspec.h:675
@ eOMFNone
Definition renderspec.h:674
EDLSysString RawString
A raw, 8 bit string. Encoding depends on context.
Definition types.h:152
Definition apexcustompostprocess.h:17
eOptionalContentEvent
Optional content Event types.
Definition types.h:195
@ eOCEView
View.
Definition types.h:197
CEDLVector< U8String > CSpotColorNames
Definition types.h:171
CEDLVector< IPostProcessSpecPtr > CRenderPostProcessVect
Definition renderspec.h:341
CEDLVector< CFrameBufferInfo > CFrameBufferInfoVect
Definition renderspec.h:1015
CEDLVector< CSpotColorAlias > CSpotColorAliasVect
An alias for a vector of CSpotColorAlias.
Definition renderspec.h:65
#define DECL_SMART_PTR(cls)
Definition smartptr.h:211
#define JAWSMAKO_API
Definition types.h:29