Top Fields Constructors Methods
com.sun.prism.es2

pack-priv Class ES2Texture<T extends ES2TextureData>

extends BaseTexture<ES2TextureResource<T extends ES2TextureData>>
Class Inheritance
Known Direct Subclasses
com.sun.prism.es2.ES2RTTexture
Imports
com.sun.javafx.PlatformUtil, com.sun.prism.Image, .Texture, .MediaFrame, .MultiTexture, .PixelFormat, com.sun.prism.impl.BaseTexture, .BufferUtil, java.nio.Buffer, .ByteBuffer, .ByteOrder, .FloatBuffer, .IntBuffer

Field Summary

Modifier and TypeField and Description
pack-priv final ES2Context
Inherited from com.sun.prism.impl.BaseTexture:
contentHeightcontentWidthresource

Constructor Summary

AccessConstructor and Description
pack-priv
ES2Texture(ES2Context context, ES2TextureResource<T> resource, PixelFormat format, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, boolean useMipmap)

pack-priv
ES2Texture(ES2Context context, ES2TextureResource<T> resource, PixelFormat format, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int maxContentWidth, int maxContentHeight, boolean useMipmap)

private
ES2Texture(ES2Texture<T extends ES2TextureData> sharedTex, Texture.WrapMode newMode)

Method Summary

Modifier and TypeMethod and Description
pack-priv static ES2Texture<T extends ES2TextureData>
create(ES2Context context, PixelFormat format, Texture.WrapMode wrapMode, int w, int h, boolean useMipmap)

public static Texture
create(ES2Context context, MediaFrame frame)

protected Texture
createSharedTexture(Texture.WrapMode newMode)

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

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

public static int
public int
pack-priv static int
nextPowerOfTwo(int val, int max)

Given a starting value and a maximum limit, returns the first power-of-two greater than or equal to the starting value.

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.

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.

pack-priv void
pack-priv void
private static boolean
uploadPixels(GLContext glCtx, int target, Buffer pixels, PixelFormat format, int texw, int texh, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean create, boolean useMipmap)

private static boolean
uploadPixels(GLContext glCtx, int target, MediaFrame frame, int texw, int texh, boolean create)

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

Field Detail

contextback to summary
pack-priv final ES2Context context

Constructor Detail

ES2Textureback to summary
pack-priv ES2Texture(ES2Context context, ES2TextureResource<T> resource, PixelFormat format, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, boolean useMipmap)
ES2Textureback to summary
pack-priv ES2Texture(ES2Context context, ES2TextureResource<T> resource, PixelFormat format, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int maxContentWidth, int maxContentHeight, boolean useMipmap)
ES2Textureback to summary
private ES2Texture(ES2Texture<T extends ES2TextureData> sharedTex, Texture.WrapMode newMode)

Method Detail

createback to summary
pack-priv static ES2Texture<T extends ES2TextureData> create(ES2Context context, PixelFormat format, Texture.WrapMode wrapMode, int w, int h, boolean useMipmap)
createback to summary
public static Texture create(ES2Context context, MediaFrame frame)
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.

Annotations
@Override
getBufferElementSizeLogback to summary
public static int getBufferElementSizeLog(Buffer b)
getNativeSourceHandleback to summary
public int getNativeSourceHandle()
nextPowerOfTwoback to summary
pack-priv static int nextPowerOfTwo(int val, int max)

Given a starting value and a maximum limit, returns the first power-of-two greater than or equal to the starting value. If the resulting value is greater than the maximum limit, zero is returned.

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.

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
updateFilterStateback to summary
pack-priv void updateFilterState()
updateWrapStateback to summary
pack-priv void updateWrapState()
uploadPixelsback to summary
private static boolean uploadPixels(GLContext glCtx, int target, Buffer pixels, PixelFormat format, int texw, int texh, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean create, boolean useMipmap)
uploadPixelsback to summary
private static boolean uploadPixels(GLContext glCtx, int target, MediaFrame frame, int texw, int texh, boolean create)