VideoDriver.java

package sidplay.audio;

import libsidplay.components.mos656x.VIC;

import java.util.function.Consumer;

public interface VideoDriver extends Consumer<VIC> {

    /**
     * Discard queued presentation frames after a live playback discontinuity.
     */
    default void clearQueuedFrames() {
    }

    /**
     * Propagates VIC pixel data for video drivers.<BR>
     * Pixels can be accessed using vic.getPALEmulation().getPixels()
     * <p>
     * <B>Note:</B> Pixel format is ARGB and is updated frequently at a rate of
     * the active VIC's screen refresh rate. {@link libsidplay.C64#getScreenRefresh()}
     */
    @Override
    void accept(VIC vic);

}