Top Fields Constructors Methods
com.sun.prism.sw

pack-priv Class SWArgbPreTexture

extends SWTexture
Class Inheritance
Known Direct Subclasses
com.sun.prism.sw.SWRTTexture
Imports
java.nio.Buffer, .IntBuffer, com.sun.javafx.image.PixelConverter, .PixelGetter, .PixelUtils, com.sun.javafx.image.impl.ByteBgraPre, .ByteGray, .ByteRgb, .IntArgbPre, com.sun.prism.MediaFrame, .PixelFormat, .Texture, com.sun.prism.impl.PrismSettings

Field Summary

Modifier and TypeField and Description
private int[]
private boolean
private int
Inherited from com.sun.prism.sw.SWTexture:
allocatedcontentHeightcontentWidthemploycountpermanentphysicalHeightphysicalWidth

Constructor Summary

AccessConstructor and Description
pack-priv
SWArgbPreTexture(SWResourceFactory factory, Texture.WrapMode wrapMode, int w, int h)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
applyCompositeAlpha(float alpha)

pack-priv void
checkDimensions(int srcw, int srch)

pack-priv Texture
createSharedLockedTexture(Texture.WrapMode
the new WrapMode for the new texture
altMode
)

Implements abstract com.sun.prism.sw.SWTexture.createSharedLockedTexture.

Returns a new Texture object sharing all of the information from this texture, but using the new WrapMode.

pack-priv int[]
pack-priv int
public PixelFormat
getPixelFormat()

Implements com.sun.prism.Texture.getPixelFormat.

Returns the PixelFormat of this texture.

pack-priv boolean
public void
update(Buffer buffer, PixelFormat
the format of the data contained in the pixel buffer
format
,
int
the x-offset of the image data, in pixels, relative to the contentX of this texture
dstx
,
int
the y-offset of the image data, in pixels, relative to the contentY of this texture
dsty
,
int
the x-offset into the source buffer, in pixels
srcx
,
int
the y-offset into the source buffer, in pixels
srcy
,
int
the width of the pixel region from the source buffer
srcw
,
int
the height of the pixel region from the source buffer
srch
,
int
the scanline stride of the source buffer, in bytes
srcscan
,
boolean
if true, the vertex buffer will not be flushed
skipFlush
)

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

public void
update(MediaFrame
the source video buffer to update the texture data from
frame
,
boolean
if true, the vertex buffer will not be flushed
skipFlush
)

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame.

Inherited from com.sun.prism.sw.SWTexture:
allocateassertLockedcontentsNotUsefulcontentsUsefulcreatedisposegetContentHeightgetContentWidthgetContentXgetContentYgetLastImageSerialgetLinearFilteringgetLockCountgetMaxContentHeightgetMaxContentWidthgetPhysicalHeightgetPhysicalWidthgetResourceFactorygetSharedTexturegetUseMipmapgetWrapModeisLockedisSurfaceLostlockmakePermanentsetContentHeightsetContentWidthsetLastImageSerialsetLinearFilteringunlockupdateupdateupdateupdate

Field Detail

databack to summary
private int[] data
hasAlphaback to summary
private boolean hasAlpha
offsetback to summary
private int offset

Constructor Detail

SWArgbPreTextureback to summary
pack-priv SWArgbPreTexture(SWResourceFactory factory, Texture.WrapMode wrapMode, int w, int h)
SWArgbPreTextureback to summary
pack-priv SWArgbPreTexture(SWArgbPreTexture sharedTex, Texture.WrapMode altMode)

Method Detail

allocateBufferback to summary
pack-priv void allocateBuffer()

Implements abstract com.sun.prism.sw.SWTexture.allocateBuffer.

Annotations
@Override
applyCompositeAlphaback to summary
pack-priv void applyCompositeAlpha(float alpha)
checkDimensionsback to summary
pack-priv void checkDimensions(int srcw, int srch)
createSharedLockedTextureback to summary
pack-priv Texture createSharedLockedTexture(Texture.WrapMode altMode)

Implements abstract com.sun.prism.sw.SWTexture.createSharedLockedTexture.

Doc from com.sun.prism.sw.SWTexture.createSharedLockedTexture.

Returns a new Texture object sharing all of the information from this texture, but using the new WrapMode. The new texture will be locked (in contrast to the similarly-named method in BaseTexture).

Parameters
altMode:Texture.WrapMode

the new WrapMode for the new texture

Returns:Texture

a new, locked, texture object sharing all information with this texture except for the WrapMode

Annotations
@Override
getDataNoCloneback to summary
pack-priv int[] getDataNoClone()
getOffsetback to summary
pack-priv int getOffset()

Overrides com.sun.prism.sw.SWTexture.getOffset.

Annotations
@Override
getPixelFormatback to summary
public PixelFormat getPixelFormat()

Implements com.sun.prism.Texture.getPixelFormat.

Doc from com.sun.prism.Texture.getPixelFormat.

Returns the PixelFormat of this texture.

Returns:PixelFormat

the PixelFormat of this texture

Annotations
@Override
hasAlphaback to summary
pack-priv boolean hasAlpha()
updateback to summary
public void update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

Parameters
format:PixelFormat

the format of the data contained in the pixel buffer

dstx:int

the x-offset of the image data, in pixels, relative to the contentX of this texture

dsty:int

the y-offset of the image data, in pixels, relative to the contentY of this texture

srcx:int

the x-offset into the source buffer, in pixels

srcy:int

the y-offset into the source buffer, in pixels

srcw:int

the width of the pixel region from the source buffer

srch:int

the height of the pixel region from the source buffer

srcscan:int

the scanline stride of the source buffer, in bytes

skipFlush:boolean

if true, the vertex buffer will not be flushed

Annotations
@Override
updateback to summary
public void update(MediaFrame frame, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame. The source and destination coordinates are implicit, you can only update the entire video texture.

Parameters
frame:MediaFrame

the source video buffer to update the texture data from

skipFlush:boolean

if true, the vertex buffer will not be flushed

Annotations
@Override