Top Fields Constructors Methods
com.sun.prism.d3d

pack-priv Class D3DTexture

extends BaseTexture<D3DTextureResource>
implements D3DContextSource
Class Inheritance
All Implemented Interfaces
com.sun.prism.d3d.D3DContextSource
Known Direct Subclasses
com.sun.prism.d3d.D3DRTTexture
Imports
com.sun.prism.MediaFrame, .PixelFormat, .Texture, com.sun.prism.impl.BaseTexture, java.nio.Buffer, .ByteBuffer, .FloatBuffer, .IntBuffer

Field Summary

Inherited from com.sun.prism.impl.BaseTexture:
contentHeightcontentWidthresource

Constructor Summary

AccessConstructor and Description
pack-priv
D3DTexture(D3DContext context, PixelFormat format, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentWidth, int contentHeight, boolean isRTT)

pack-priv
D3DTexture(D3DContext context, PixelFormat format, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, boolean isRTT, int samples, boolean useMipmap)

pack-priv
D3DTexture(D3DTexture sharedTex, Texture.WrapMode altMode)

Method Summary

Modifier and TypeMethod and Description
protected Texture
createSharedTexture(Texture.WrapMode
the WrapMode to use for the new texture.
newMode
)

Implements abstract com.sun.prism.impl.BaseTexture.createSharedTexture.

Create a new version of this texture which shares the same ManagedResource reference.

public D3DContext
public long
public long
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.

public void
update(Buffer pixels, 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(Buffer pixels, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan)

Inherited from com.sun.prism.impl.BaseTexture:
assertLockedcheckUpdateParamscontentsNotUsefulcontentsUsefuldisposegetContentHeightgetContentWidthgetContentXgetContentYgetLastImageSerialgetLinearFilteringgetLockCountgetMaxContentHeightgetMaxContentWidthgetPhysicalHeightgetPhysicalWidthgetPixelFormatgetSharedTexturegetUseMipmapgetWrapModeisLockedisSurfaceLostlockmakePermanentsetContentHeightsetContentWidthsetLastImageSerialsetLinearFilteringtoStringunlockupdateupdateupdateupdate

Constructor Detail

D3DTextureback to summary
pack-priv D3DTexture(D3DContext context, PixelFormat format, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentWidth, int contentHeight, boolean isRTT)
D3DTextureback to summary
pack-priv D3DTexture(D3DContext context, PixelFormat format, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, boolean isRTT, int samples, boolean useMipmap)
D3DTextureback to summary
pack-priv D3DTexture(D3DTexture sharedTex, Texture.WrapMode altMode)

Method Detail

createSharedTextureback to summary
protected Texture createSharedTexture(Texture.WrapMode newMode)

Implements abstract com.sun.prism.impl.BaseTexture.createSharedTexture.

Doc from com.sun.prism.impl.BaseTexture.createSharedTexture.

Create a new version of this texture which shares the same ManagedResource reference. The lock counts for the shared resource reference are not changed in the processing of this method.

Parameters
newMode:Texture.WrapMode

the WrapMode to use for the new texture.

Returns:Texture

a new Texture object sharing the underlying resource.

Annotations
@Override
getContextback to summary
public D3DContext getContext()

Implements com.sun.prism.d3d.D3DContextSource.getContext.

Annotations
@Override
getNativeSourceHandleback to summary
public long getNativeSourceHandle()
getNativeTextureObjectback to summary
public long getNativeTextureObject()
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
updateback to summary
public void update(Buffer pixels, 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(Buffer pixels, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan)