a
    ¨þdÆ  ã                   @   sÜ   d dl mZmZmZ d dlZddlmZ zddlmZ W n e	yN   dZY n0 ddl
mZmZmZmZmZmZmZmZmZ dd	lmZmZmZmZmZmZmZmZmZmZmZ dd
l m!Z!m"Z"m#Z# ddl$m%Z% g d¢Z&dS )é    )ÚAnyÚDictÚIteratorNé   )Ú_log_api_usage_onceé   )Ú_HAS_GPU_VIDEO_DECODERF)	Ú_HAS_VIDEO_OPTÚ_probe_video_from_fileÚ_probe_video_from_memoryÚ_read_video_from_fileÚ_read_video_from_memoryÚ _read_video_timestamps_from_fileÚ"_read_video_timestamps_from_memoryÚTimebaseÚVideoMetaData)Údecode_imageÚdecode_jpegÚ
decode_pngÚencode_jpegÚ
encode_pngÚImageReadModeÚ	read_fileÚ
read_imageÚ
write_fileÚ
write_jpegÚ	write_png)Ú
read_videoÚread_video_timestampsÚwrite_video)ÚVideoReader)r   r   r   r   r   r
   r   r   r   r	   r   Z_read_video_clip_from_memoryZ_read_video_meta_datar   r   r   r   r   r   r   r   r   r   r   r   r   ZVideor    )'Útypingr   r   r   ZtorchÚutilsr   Z_load_gpu_decoderr   ÚModuleNotFoundErrorZ
_video_optr	   r
   r   r   r   r   r   r   r   Úimager   r   r   r   r   r   r   r   r   r   r   Úvideor   r   r   Zvideo_readerr    Ú__all__© r'   r'   ú`/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/torchvision/io/__init__.pyÚ<module>   s   
,4