+
    8&Ïj¼  ã                   óž   € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ]P                  ! ]
4      tRR R lltR R ltR R	 ltR
 R ltR# )é    N)ÚIterator)Úurlopenc                óF   € V ^8„  d   QhR\         R\        \        ,          /# )é   Úcheck_writableÚreturn)Úboolr   Ústr)Úformats   "ÚE/opt/data/cache/scratch/pip-target-elquwxdg/lib/python/av/datasets.pyÚ__annotate__r      s"   € ÷  Eñ  E¤4ð  E´H¼SµMñ  Eó    c              #   óV  "  €  \         P                  R ,          x € \         P                  R8X  d4   \         P                  P                  \        P                  RR4      x € R# . ROp\        \        R4      '       d!   VP                  ^ \        P                  4       V F°  p\         P                  P                  VRR4      pV '       d�   \         P                  P                  V4      '       d/   \         P                  ! V\         P                  4      '       g   K~  M-\         P                  ! V\         P                  4      '       g   K¬  Vx € K²  	  \         P                  P                  \         P                  P                  R4      RR4      x € R#   \         d     ELˆi ; i5i)	ÚPYAV_TESTDATA_DIRÚntÚpyavÚdatasetsNÚreal_prefixÚ~z.pyav)z/usr/local/sharez/usr/local/libz
/usr/sharez/usr/lib)ÚosÚenvironÚKeyErrorÚnameÚpathÚjoinÚsysÚprefixÚhasattrÚinsertÚexistsÚaccessÚW_OKÚ
expanduser)r   ÚbasesÚbaseÚdir_s   &   r   Úiter_data_dirsr'      s  é € ðÜ�j‰jÐ,Õ-Ò-ô 
‡w�w�$„Ü�g‰g�l‰lœ3Ÿ:™: v¨zÓ:Ò:Ùò€Eô Œs�M×"Ò"Ø�‰�QœŸ
™
Ô#ãˆÜ�w‰w�|‰|˜D &¨*Ó5ˆßÜ�w‰w�~‰~˜d×#Ò#Ü—y’y ¤r§w¡w×/Ò/Ùð 0ô —y’y ¤r§w¡w×/Ò/ÙØŒ
ñ ô �'‰'�,‰,”r—w‘w×)Ñ)¨#Ó.°¸Ó
DÔDøô; ô Úðüs;   ‚F)„F �CF)Ã2*F)Ä-F)ÅAF)ÆF&Æ"F)Æ%F&Æ&F)c                ó<   € V ^8„  d   QhR\         R\         R\         /# )r   Úurlr   r   ©r
   )r   s   "r   r   r   /   s!   € ÷ .ñ .œð .¤Cð .¬Cñ .r   c                óØ  € \         P                  P                  V4      pW!8w  d   \        V R24      h\	        4        FK  p\         P                  P                  W14      p\         P                  P                  V4      '       g   KI  Vu # 	  \        \	        R4      4      p\         P                  P                  W14      p\        P                  RV  RV 24       \        V 4      pVP                  4       ^È8w  d   \        RVP                  4        24      h\         P                  P                  V4      p \         P                  ! V4       VR,           p\#        VR4      ;_uu_ 4       p\$        P&                  ! WX4       RRR4       \         P(                  ! Wt4       V#   \         d+   pTP                  \        P                   8w  d   h  Rp?L„Rp?ii ; i  + '       g   i     L`; i)	aC  Download the data at a URL, and cache it under the given name.

The file is stored under `pyav/test` with the given name in the directory
:envvar:`PYAV_TESTDATA_DIR`, or the first that is writeable of:

- the current virtualenv
- ``/usr/local/share``
- ``/usr/local/lib``
- ``/usr/share``
- ``/usr/lib``
- the user's home

z is not normalized.TzDownloading z to zHTTP Nz.tmpÚwb)r   r   ÚnormpathÚ
ValueErrorr'   r   r    ÚnextÚlogÚinfor   ÚgetcodeÚdirnameÚmakedirsÚOSErrorÚerrnoÚEEXISTÚopenÚshutilÚcopyfileobjÚrename)	r)   r   Ú
clean_namer&   r   ÚresponseÚeÚtmp_pathÚfhs	   &&       r   Úcached_downloadrA   /   sp  € ô —‘×!Ñ! $Ó'€JØÔÜ˜D˜6Ð!4Ð5Ó6Ð6äÖ ˆÜ�w‰w�|‰|˜DÓ'ˆÜ�7‰7�>‰>˜$×ÔØŠKñ !ô
 ”˜tÓ$Ó%€DÜ�7‰7�<‰<˜Ó#€Dä‡H�Hˆ|˜C˜5  T FÐ+Ô,ä�s‹|€HØ×ÑÓ˜SÔ Ü˜5 ×!1Ñ!1Ó!3Ð 4Ð5Ó6Ð6ä�7‰7�?‰?˜4Ó €DðÜ
�Š�DÔð
 �f�}€HÜ	ˆh˜×	Ô	 Ü×Ò˜8Ô(÷ 
ô ‡I‚IˆhÔà€Køô ô Ø�7‰7”e—l‘lÔ"Øô #ûðú÷
 
×	ús$   Ä7F! Å*GÆ!GÆ, GÇGÇG)	c                ó0   € V ^8„  d   QhR\         R\         /# ©r   r   r   r*   )r   s   "r   r   r   `   s   € ÷ ñ Œsð ”sñ r   c           
     ó´   € \        RV ,           \        P                  P                  RV P	                  R\        P                  P
                  4      4      4      # )zÂDownload and return a path to a sample from the FFmpeg test suite.

Data is handled by :func:`cached_download`.

See the `FFmpeg Automated Test Environment <https://www.ffmpeg.org/fate.html>`_

z"http://fate.ffmpeg.org/fate-suite/z
fate-suiteÚ/©rA   r   r   r   ÚreplaceÚsep©r   s   &r   ÚfaterJ   `   s>   € ô Ø,¨tÕ3Ü
�‰�‰�\ 4§<¡<°´R·W±W·[±[Ó#AÓBóð r   c                ó0   € V ^8„  d   QhR\         R\         /# rC   r*   )r   s   "r   r   r   n   s   € ÷ 	ñ 	”#ð 	œ#ñ 	r   c           
     ó´   € \        RV ,           \        P                  P                  RV P	                  R\        P                  P
                  4      4      4      # )z}Download and return a path to a sample that is curated by the PyAV developers.

Data is handled by :func:`cached_download`.

zhttps://pyav.org/datasets/zpyav-curatedrE   rF   rI   s   &r   ÚcuratedrM   n   s>   € ô Ø$ tÕ+Ü
�‰�‰�^ T§\¡\°#´r·w±w·{±{Ó%CÓDóð r   )F)r6   Úloggingr   r9   r   Úcollections.abcr   Úurllib.requestr   Ú	getLoggerÚ__name__r0   r'   rA   rJ   rM   © r   r   Ú<module>rT      sA   ðÛ Û Û 	Û Û 
Ý $Ý "à×Ò˜Ó!€÷ EõF.õb÷	r   