Class MPSImageEdgeMode
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSImageEdgeMode
-
public final class MPSImageEdgeMode extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longClampOut of bound pixels are clamped to nearest edge pixelstatic longConstantOut of bound pixels are filled with a constant value defined by the filter.static longMirrorOut of bound pixels are mirrored wrt. the nearest edge pixel center - ie. the edge of the image is not repeated.static longMirrorWithEdgeOut of bound pixels are mirrored wrt. the nearest edge pixel nearest border - ie. the edge of the image is repeated.static longZeroOut of bound pixels are (0,0,0,1) for image with pixel format without alpha channel and (0,0,0,0) for image with pixel format that has an alpha channel
-
-
-
Field Detail
-
Zero
public static final long Zero
Out of bound pixels are (0,0,0,1) for image with pixel format without alpha channel and (0,0,0,0) for image with pixel format that has an alpha channel- See Also:
- Constant Field Values
-
Clamp
public static final long Clamp
Out of bound pixels are clamped to nearest edge pixel- See Also:
- Constant Field Values
-
Mirror
public static final long Mirror
Out of bound pixels are mirrored wrt. the nearest edge pixel center - ie. the edge of the image is not repeated. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.- See Also:
- Constant Field Values
-
MirrorWithEdge
public static final long MirrorWithEdge
Out of bound pixels are mirrored wrt. the nearest edge pixel nearest border - ie. the edge of the image is repeated. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.- See Also:
- Constant Field Values
-
Constant
public static final long Constant
Out of bound pixels are filled with a constant value defined by the filter. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.- See Also:
- Constant Field Values
-
-