Gecko:Layers: Difference between revisions

Jump to navigation Jump to search
Line 190: Line 190:


setImage can be called multiple times to queue up many images with different timestamps. As with the set methods on Layer, images already queued with a later timestamp than the given timestamp are removed. ImageQueueLayer will take ownership of the buffer, which must not be modified again. YUV formats must be supported. Unlike layer APIs, setImage can be called on any thread. Normally we'd only write into an ImageQueue from a single video decoding thread, however.
setImage can be called multiple times to queue up many images with different timestamps. As with the set methods on Layer, images already queued with a later timestamp than the given timestamp are removed. ImageQueueLayer will take ownership of the buffer, which must not be modified again. YUV formats must be supported. Unlike layer APIs, setImage can be called on any thread. Normally we'd only write into an ImageQueue from a single video decoding thread, however.
The layer implementation can choose to eagerly convert the "next" image to RGB, off the main thread, if a non-GPU-capable device is being targeted (matching what we currently do).


=== Immediate Mode ===
=== Immediate Mode ===
1,295

edits

Navigation menu