
    cCi                     0    S r SSKJr   " S S\5      rS/rg)z
Processor class for TVLT.
   )ProcessorMixinc                   R   ^  \ rS rSrSrSS/rSrSrU 4S jr      S
S jr	S	r
U =r$ )TvltProcessor   a<  
Constructs a TVLT processor which wraps a TVLT image processor and TVLT feature extractor into a single processor.

[`TvltProcessor`] offers all the functionalities of [`TvltImageProcessor`] and [`TvltFeatureExtractor`]. See the
docstring of [`~TvltProcessor.__call__`] for more information.

Args:
    image_processor (`TvltImageProcessor`):
        An instance of [`TvltImageProcessor`]. The image processor is a required input.
    feature_extractor (`TvltFeatureExtractor`):
        An instance of [`TvltFeatureExtractor`]. The feature extractor is a required input.
image_processorfeature_extractorTvltImageProcessorTvltFeatureExtractorc                 8   > [         TU ]  XS9  Xl        X l        g )N)r   r   )super__init__r   r   )selfr   r   	__class__s      m/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/deprecated/tvlt/processing_tvlt.pyr   TvltProcessor.__init__(   s    ^.!2    c                 J   Uc  Uc  [        S5      eSn	Ub  U R                  " U/UQ7SU0UD6n
Ub  U R                  " U/UQ7SS0UD6n	Ub  U R                  " U/UQ7XES.UD6n0 nUb  UR                  W5        Ub  UR                  W
5        U	b  UR                  U	5        U$ )z
Forwards the `images` argument to TvltImageProcessor's [`~TvltImageProcessor.preprocess`] and the `audio`
argument to TvltFeatureExtractor's [`~TvltFeatureExtractor.__call__`]. Please refer to the docstring of the
above two methods for more information.
NzCYou need to specify either an `images` or `audio` input to process.
mask_pixelis_mixedT)sampling_rate
mask_audio)
ValueErrorr   r   update)r   imagesaudioimages_mixedr   r   r   argskwargsimages_mixed_dictimages_dict
audio_dictoutput_dicts                r   __call__TvltProcessor.__call__.   s    " >embcc ..v^t^*^W]^K# $ 4 4\ bSW bD b[a b//,9TZJ z*{+(01r   )r   r   )NNNNFF)__name__
__module____qualname____firstlineno____doc__
attributesimage_processor_classfeature_extractor_classr   r#   __static_attributes____classcell__)r   s   @r   r   r      sD     $%89J043 % %r   r   N)r)   processing_utilsr   r   __all__ r   r   <module>r2      s&    0=N =@ 
r   