from yta_editor_nodes.processor.video.transitions.base import _TransitionProcessor
from yta_editor_nodes_cpu.processor.video.transitions.slide import SlideTransitionProcessorCPU
from yta_editor_nodes_gpu.processor.video.transitions.slide import SlideTransitionNodeProcessorGPU


class SlideTransitionProcessor(_TransitionProcessor):
    """
    A transition in which the frames goes from one
    side to the other, disappearing the first one
    and appearing the second one.

    Class that is capable of doing some processing on
    an input by using the GPU or the CPU.

    Mandatory inputs:
    - `first_input`
    - `second_input`

    Optional inputs:
    - `None`
    
    Parameters:
    - `None`

    The parameters above are the accepted by this
    node, where `*` means that the parameter is
    mandatory.
    """

    mandatory_inputs = ['first_input', 'second_input']
    optional_inputs = []
    parameters_specifications = []
    # TODO: Maybe rename to 'SlideTransitionNodeProcessorCPU' (?)
    cpu_class = SlideTransitionProcessorCPU
    gpu_class = SlideTransitionNodeProcessorGPU