| Modifier and Type | Class and Description |
|---|---|
| private class | PrismMediaFrameHandler.
Bridge class to avoid having to import JFXMedia into a bunch of prism code. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static Map | |
| private WeakReference | |
| private final RenderJob | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | factoryReleased()
Implements com. Called when the factory is released. |
| public void | factoryReset()
Implements com. Called when the factory is lost and about to be reset. |
| public static synchronized PrismMediaFrameHandler | |
| public Texture | Returns: the current media texture valid for rendering intog
or null if called outside a render cyclethe Graphics context about to be rendered into g, VideoDataBuffer currentFrame)This should only ever be called during a render cycle. |
| private void | |
| public void | releaseTextures()
Call this when you no longer need to render movie frames, for example when playback stops. |
| private void |
| handlers | back to summary |
|---|---|
| private static Map<Object, PrismMediaFrameHandler> handlers | |
| registeredWithFactory | back to summary |
|---|---|
| private WeakReference<ResourceFactory> registeredWithFactory | |
| releaseRenderJob | back to summary |
|---|---|
| private final RenderJob releaseRenderJob | |
| textures | back to summary |
|---|---|
| private final Map<Screen, PrismMediaFrameHandler. | |
| PrismMediaFrameHandler | back to summary |
|---|---|
| private PrismMediaFrameHandler(Object provider) | |
| factoryReleased | back to summary |
|---|---|
| public void factoryReleased() Implements com. Doc from com. Called when the factory is released. This may result in all resources becoming invalid. The listeners should let go of all resources created from this factory.
| |
| factoryReset | back to summary |
|---|---|
| public void factoryReset() Implements com. Doc from com. Called when the factory is lost and about to be reset. This may result in some of the vram based resources becoming invalid. The listeners can chose which resources to let go of depending on whether they're based in vram.
| |
| getHandler | back to summary |
|---|---|
| public static synchronized PrismMediaFrameHandler getHandler(Object provider) | |
| getTexture | back to summary |
|---|---|
| public Texture getTexture(Graphics g, VideoDataBuffer currentFrame) This should only ever be called during a render cycle. Any other time it will return null. Note that a returned texture should be unlocked when the caller no longer needs it. | |
| releaseData | back to summary |
|---|---|
| private void releaseData() | |
| releaseTextures | back to summary |
|---|---|
| public void releaseTextures() Call this when you no longer need to render movie frames, for example when playback stops. | |
| updateTexture | back to summary |
|---|---|
| private void updateTexture(Graphics g, VideoDataBuffer vdb, PrismMediaFrameHandler. | |
| Modifier and Type | Field and Description |
|---|---|
| private final VideoDataBuffer | |
| private final PixelFormat |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MediaFrame | convertToFormat(PixelFormat fmt)
Implements com. Converts the video frame to a different video format. |
| public ByteBuffer | |
| public int | |
| public int | |
| public int | |
| public PixelFormat | |
| public int | |
| public void | holdFrame()
Implements com. This method will prevent the frame from being deallocated or recycled. |
| public int | |
| public int[] | planeStrides()
Implements com. The plane line stride is the number of bytes between two consecutive lines in the buffer. |
| public void | releaseFrame()
Implements com. When you're finished with a video frame, call this to allow the media subsystem to deallocate or recycle the frame immediately. |
| public int | strideForPlane(int planeIndex)
Implements com. The plane line stride is the number of bytes between two consecutive lines in the buffer. |
| primary | back to summary |
|---|---|
| private final VideoDataBuffer primary | |
| videoFormat | back to summary |
|---|---|
| private final PixelFormat videoFormat | |
| PrismFrameBuffer | back to summary |
|---|---|
| public PrismFrameBuffer(VideoDataBuffer sourceBuffer) | |
| convertToFormat | back to summary |
|---|---|
| public MediaFrame convertToFormat(PixelFormat fmt) Implements com. Doc from com. Converts the video frame to a different video format.
| |
| getBufferForPlane | back to summary |
|---|---|
| public ByteBuffer getBufferForPlane(int plane) Implements com.
| |
| getEncodedHeight | back to summary |
|---|---|
| public int getEncodedHeight() Implements com.
| |
| getEncodedWidth | back to summary |
|---|---|
| public int getEncodedWidth() Implements com.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com.
| |
| getPixelFormat | back to summary |
|---|---|
| public PixelFormat getPixelFormat() Implements com.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com.
| |
| holdFrame | back to summary |
|---|---|
| public void holdFrame() Implements com. Doc from com. This method will prevent the frame from being deallocated or recycled. It is very important to balance the use of this method by calling releaseFrame when you're done with it otherwise the memory occupied by the frame will never be released which could lead to out of memory conditions.
| |
| planeCount | back to summary |
|---|---|
| public int planeCount() Implements com.
| |
| planeStrides | back to summary |
|---|---|
| public int[] planeStrides() Implements com. Doc from com. The plane line stride is the number of bytes between two consecutive
lines in the buffer. This number will vary depending on the frame's
| |
| releaseFrame | back to summary |
|---|---|
| public void releaseFrame() Implements com. Doc from com. When you're finished with a video frame, call this to allow the media subsystem to deallocate or recycle the frame immediately.
| |
| strideForPlane | back to summary |
|---|---|
| public int strideForPlane(int planeIndex) Implements com. Doc from com. The plane line stride is the number of bytes between two consecutive
lines in the buffer. This number will vary depending on the frame's
| |
| Modifier and Type | Field and Description |
|---|---|
| public int | |
| public int | |
| public double | |
| public Texture |
| Access | Constructor and Description |
|---|---|
| private |
| encodedHeight | back to summary |
|---|---|
| public int encodedHeight | |
| encodedWidth | back to summary |
|---|---|
| public int encodedWidth | |
| lastFrameTime | back to summary |
|---|---|
| public double lastFrameTime | |
| texture | back to summary |
|---|---|
| public Texture texture | |
| TextureMapEntry | back to summary |
|---|---|
| private TextureMapEntry() | |