DefaultHardwareBufferEffectsPipeline


@RequiresApi(value = 34)
@ExperimentalApi
public final class DefaultHardwareBufferEffectsPipeline implements RenderingPacketConsumer


A PacketProcessor that renders the input HardwareBufferFrame into a new output buffer using HardwareBufferRenderer.

Summary

Public constructors

Public methods

void

Queues a Packet for processing, suspending the caller if the consumer is at capacity.

void

Releases all resources.

void

Sets the the target for where input frames are rendered to.

Public constructors

DefaultHardwareBufferEffectsPipeline

public DefaultHardwareBufferEffectsPipeline()

Public methods

queuePacket

public void queuePacket(
    @NonNull PacketConsumer.Packet<@NonNull List<@NonNull HardwareBufferFrame>> packet
)

Queues a Packet for processing, suspending the caller if the consumer is at capacity.

Once this method returns, the ownership of the packet is transferred to this PacketConsumer, and the caller should not modify the packet.

Parameters
@NonNull PacketConsumer.Packet<@NonNull List<@NonNull HardwareBufferFrame>> packet

The Packet to process.

release

public void release()

Releases all resources.

setRenderOutput

public void setRenderOutput(HardwareBufferFrameQueue output)

Sets the the target for where input frames are rendered to.