APIdia Launch Partner
Top Fields Constructors Methods
com.sun.prism.sw

public Class SWMaskTexture

extends SWTexture
Class Inheritance
Imports
java.nio.Buffer, .ByteBuffer, com.sun.prism.MediaFrame, .PixelFormat, .Texture, com.sun.prism.impl.PrismSettings

Field Summary

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

Constructor Summary

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

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
checkAllocation(int srcw, int srch)

pack-priv Texture
createSharedLockedTexture(Texture.WrapMode 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 byte[]
public PixelFormat
getPixelFormat()

Implements com.sun.prism.Texture.getPixelFormat.

Returns the PixelFormat of this texture.

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.

Updates this texture using the contents of the given Buffer.

public void
update(MediaFrame frame, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame.

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

Field Detail

databack to summary
private byte[] data

Constructor Detail

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

Method Detail

allocateBufferback to summary
pack-priv void allocateBuffer()

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

Annotations
@Override
checkAllocationback to summary
pack-priv void checkAllocation(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).

Annotations
@Override
getDataNoCloneback to summary
pack-priv byte[] getDataNoClone()
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.

Annotations
@Override
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.

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.

Annotations
@Override