+
    k'Ïj1  ã                   óú   € ^ RI t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHt ^ RIHt ^ RIHtHt ^ R	IHtHt ] P*                  R
 R l4       t] P.                  ] P0                   ! R R]4      4       4       tR# )é    N)ÚCodecContextÚwrap_codec_context)ÚStreamContainer)Ú
Dictionary)ÚPacket)ÚStreamÚwrap_stream)Úavdict_to_dict)Úint64_tÚuint8_t)ÚfreeÚmallocc                óD   € V ^8„  d   QhR\         R\        P                  /# )é   ÚselfÚreturn)ÚInputContainerÚcythonÚvoid)Úformats   "ÚL/opt/data/cache/scratch/pip-target-lhm_ju4v/lib/python/av/container/input.pyÚ__annotate__r      s   € ÷ ñ ”nð ¬¯©ñ ó    c                 óX  € \        4       V n        \        P                  ;_uu_ 4        V P                  ^,          '       dM   \
        P                  \        P                  ! V P                  4      4       V ;P                  R,          un        RRR4       R#   + '       g   i     R# ; i)r   Néýÿÿÿ)	r   Ústreamsr   ÚnogilÚ_myflagÚlibÚavformat_close_inputÚaddressÚptr©r   s   &r   Úclose_inputr$      sY   € ä"Ó$€D„LÜ	��‹Ø�<‰<˜!×Ôä×$Ñ$¤V§^¢^°D·H±HÓ%=Ô>Ø�LŠL˜BÕ�L÷	 
��Šús   ¨A&BÂB)	c            
       óè   a € ] tR t^t o R tR t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       tR tR	 tR
 tRRRRRRRRRR/V 3R lR llt]P"                  V 3R lR l4       tRtV tR# )r   c           	     ób  € \         P                  pV P                  P                  pV P                  '       Ed   V^ 8”  Ed   \        V P                  4      p\         P                  ! \         P                  \         P                  \        P                  ,          ,          \        V\         P                  ! \         P                  4      ,          4      4      pV\         P                  8X  d   \        4       h\        V4       FP  p\         P                  W6&   \        P                  \         P                   ! W6,          4      VP                  ^ 4       KR  	  V P#                  V P$                  4       V P'                  4        \         P(                  ;_uu_ 4        \        P+                  V P                  V4      pRRR4       V P#                  R4       V'       dM   \        V4       F2  p\        P-                  \         P                   ! W6,          4      4       K4  	  \/        V4       V P1                  X4       Rp\3        4       V n        \        V P                  P                  4       EFI  pV P                  P4                  V,          p	\        P7                  V	P8                  P:                  4      p
V
'       dÑ   \        P=                  V
4      pV\         P                  8X  d   \        4       h\        P?                  W¹P8                  4      pV^ 8  d;   \        PA                  \         P                   ! V4      4       V P1                  V4       V	PB                  Vn"        \G        WºV PH                  4      pVPJ                  '       d   RpMRpV P4                  PM                  \O        W	V4      4       EKL  	  V PH                  '       d0   V PH                  PP                  '       g   V'       g   \S        R4      h\U        V P                  PV                  4      V n,        R#   + '       g   i     ELl; i)r   NFTzAHardware accelerated decode requested but no stream is compatible)-r   ÚNULLr"   Ú
nb_streamsÚoptionsr   ÚcastÚpointerr   ÚAVDictionaryr   ÚsizeofÚp_voidÚMemoryErrorÚrangeÚav_dict_copyr!   Úset_timeoutÚopen_timeoutÚstart_timeoutr   Úavformat_find_stream_infoÚav_dict_freer   Ú	err_checkr   r   Úavcodec_find_decoderÚcodecparÚcodec_idÚavcodec_alloc_context3Úavcodec_parameters_to_contextÚavcodec_free_contextÚ	time_baseÚpkt_timebaser   ÚhwaccelÚ
is_hwaccelÚ
add_streamr	   Úallow_software_fallbackÚRuntimeErrorr
   ÚmetadataÚ	_metadata)r   ÚargsÚkwargsÚ	c_optionsÚnb_streams_beforeÚ	base_dictÚiÚretÚ at_least_one_accelerated_contextÚstreamÚcodecÚcodec_contextÚpy_codec_contexts   &*,          r   Ú	__cinit__ÚInputContainer.__cinit__   sÍ  € ô GMÇkÁkˆ	à)-¯©×)<Ñ)<ÐØ�<�<‰<Ð-°Õ1Ü" 4§<¡<Ó0ˆIÜŸšÜ—‘œvŸ~™~¬c×.>Ñ.>Õ?Õ@ÜÐ(¬6¯=ª=¼¿¹Ó+GÕGÓHóˆIð œFŸK™KÔ'Ü!“mÐ#ÜÐ,Ö-�Ü%Ÿ{™{�	‘Ü× Ñ ¤§¢°	µÓ!=¸y¿}¹}ÈaÖPñ .ð 	×Ñ˜×*Ñ*Ô+Ø×ÑÔÜ�\�\‹\Ü×/Ñ/°·±¸)ÓDˆC÷ à×Ñ˜ÔçÜÐ,Ö-�Ü× Ñ ¤§¢°	µÓ!=Ö>ñ .ä�ŒOà�‰�sÔà+0Ð(ä&Ó(ˆŒÜ�t—x‘x×*Ñ*×+ˆAØ—X‘X×%Ñ% aÕ(ˆFÜ×,Ñ,¨V¯_©_×-EÑ-EÓFˆEßÜ #× :Ñ :¸5Ó A�Ø ¤F§K¡KÔ/Ü%›-Ð'Ü×7Ñ7¸ÇÁÓW�Ø˜”7Ü×,Ñ,¬V¯^ª^¸MÓ-JÔKØ—N‘N 3Ô'Ø-3×-=Ñ-=�Ô*Ü#5Ø!¨$¯,©,ó$Ð ð $×.×.Ð.Ø7;Ð4øð $(Ð Ø�L‰L×#Ñ#¤K°Ð>NÓ$O×Pñ) ,ð. �L�LˆLØ—L‘L×8×8Ð8ß4äØSóð ô (¨¯©×(9Ñ(9Ó:ˆŽ÷[ �\ˆ\ús   Æ!PÐP.	c                ó   € \        V 4       R # ©N©r$   r#   s   &r   Ú__dealloc__ÚInputContainer.__dealloc__d   ó
   € Ü�DÖr   c                ó¤   € V P                  4        V P                  P                  \        P                  8w  d   V P                  P                  # R # rV   )Ú_assert_openr"   Ú
start_timer   ÚAV_NOPTS_VALUEr#   s   &r   r]   ÚInputContainer.start_timeg   s;   € à×ÑÔØ�8‰8×Ñ¤#×"4Ñ"4Ô4Ø—8‘8×&Ñ&Ð&ñ 5r   c                ó¤   € V P                  4        V P                  P                  \        P                  8w  d   V P                  P                  # R# )a8  Start time of the stream in real world time, in microseconds since the
Unix epoch, or ``None`` if unknown.

Only a few demuxers know this; RTSP computes it from RTCP sender reports,
which is what makes it useful for aligning analytics with a camera's clock.

Wraps :ffmpeg:`AVFormatContext.start_time_realtime`.
N)r\   r"   Ústart_time_realtimer   r^   r#   s   &r   ra   Ú"InputContainer.start_time_realtimem   s=   € ð 	×ÑÔØ�8‰8×'Ñ'¬3×+=Ñ+=Ô=Ø—8‘8×/Ñ/Ð/ñ >r   c                ó¤   € V P                  4        V P                  P                  \        P                  8w  d   V P                  P                  # R # rV   )r\   r"   Údurationr   r^   r#   s   &r   rd   ÚInputContainer.duration{   s;   € à×ÑÔØ�8‰8×Ñ¤× 2Ñ 2Ô2Ø—8‘8×$Ñ$Ð$ñ 3r   c                óN   € V P                  4        V P                  P                  # rV   )r\   r"   Úbit_rater#   s   &r   rg   ÚInputContainer.bit_rate�   s   € à×ÑÔØ�x‰x× Ñ Ð r   c                óŠ   € V P                  4        \        P                  V P                  P                  4      pV^ 8¼  d   V# R# )zÅSize of the input in bytes, or ``None`` if it cannot be determined.

A non-seekable input, such as a pipe or a file-like object without
``seek``, has no size to report.

Wraps :ffmpeg:`avio_size`.
N)r\   r   Ú	avio_sizer"   Úpb)r   Úsizes   & r   rl   ÚInputContainer.size†   s7   € ð 	×ÑÔÜŸ™ d§h¡h§k¡kÓ2ˆØ�1Œ9ØˆKñ r   c                ó   € \        V 4       R # rV   rW   r#   s   &r   ÚcloseÚInputContainer.close”   rZ   r   c           	   /  óV	  "  € V P                  4        V P                  P                  ! V/ VB pV P                  P                  pV^ 8X  d   R# \
        P                  ! \
        P                  \        ,          \        V\
        P                  ! \        4      ,          4      4      pV\
        P                  8X  d   \        4       hV P                  V P                  4        \        V4       F  p^ WV&   K	  	  V F(  pVP                   pWd8¼  d   \#        RV R24      h^WV&   K*  	  \
        P$                  ;_uu_ 4        \&        P)                  4       pRRR4       X\
        P                  8X  d   \        R4      h \
        P$                  ;_uu_ 4        \&        P+                  V4       RRR4        V P-                  4        \
        P$                  ;_uu_ 4        \&        P/                  V P                  V4      p	RRR4       V P1                  X	4       TP4                  T8  g   K­  YXP4                  ,          '       g   KÇ  TP4                  \7        T P                  4      8  g   Kí  \9        4       p
\
        P$                  ;_uu_ 4        \&        P;                  T
P                  T4       RRR4       T P                  T
P                  P4                  ,          T
n        T
P<                  P                  P>                  T
P                  n        T
x € EKš    + '       g   i     ELË; i  + '       g   i     ELˆ; i  + '       g   i     ELJ; i  \2         d     Mi ; i  + '       g   i     L¿; i\        T4       Fh  pYV,          '       g   K  \9        4       p
T P                  T,          T
n        T
P<                  P                  P>                  T
P                  n        T
x € Kj  	  T P                  R4       \A        T4       T\
        P                  8w  d,   \&        PC                  \
        PD                  ! T4      4       R# R#   T P                  R4       \A        T4       X\
        P                  8w  d+   \&        PC                  \
        PD                  ! T4      4       i i ; i5i)aè  demux(streams=None, video=None, audio=None, subtitles=None, data=None)

Yields a series of :class:`.Packet` from the given set of :class:`.Stream`::

    for packet in container.demux():
        # Do something with `packet`, often:
        for frame in packet.decode():
            # Do something with `frame`.

.. seealso:: :meth:`.StreamContainer.get` for the interpretation of
    the arguments.

.. note:: The last packets are dummy packets that when decoded will flush the buffers.

Nzstream index z out of rangezCould not allocate packet)#r\   r   Úgetr"   r(   r   r*   r+   r   r   r-   r'   r/   r2   Úread_timeoutr0   ÚindexÚ
ValueErrorr   r   Úav_packet_allocÚav_packet_unrefr4   Úav_read_framer7   ÚEOFErrorÚstream_indexÚlenr   Úav_packet_move_refÚ_streamr>   r   Úav_packet_freer!   )r   rG   rH   r   r(   Úinclude_streamrL   rO   Úread_packetrM   Úpackets   &*,        r   ÚdemuxÚInputContainer.demux—   s0  é € ð  	×ÑÔà $§¡× 0Ò 0°$Ð A¸&Ñ AˆØ"&§(¡(×"5Ñ"5ˆ
Ø˜Œ?ÙÜ28·+²+Ü�N‰Nœ7Õ#Ü�:¤§¢¬gÓ 6Õ6Ó7ó3
ˆð œVŸ[™[Ô(Ü“-Ðð 	×Ñ˜×*Ñ*Ô+ð:	@Ü˜:Ö&�Ø$%�Ó!ñ 'ã!�Ø—L‘L�Ø”?Ü$ }°Q°C°}Ð%EÓFÐFØ$%�Ó!ñ	 "ô ——“Ü!×1Ñ1Ó3�÷ àœfŸk™kÔ)Ü!Ð"=Ó>Ð>àä—\—\“\Ü×'Ñ'¨Ô4÷ "ðØ×&Ñ&Ô(ÜŸŸ›Ü!×/Ñ/°·±¸+ÓF˜÷ &à—N‘N 3Ô'ð  ×,Ñ,¨zÖ9Ø&×'?Ñ'?×@Ö@à"×/Ñ/´#°d·l±lÓ2CÖCô "(£˜Ü#Ÿ\Ÿ\›\Ü×2Ñ2°6·:±:¸{ÔK÷ *à)-¯©°f·j±j×6MÑ6MÕ)N˜œà/5¯~©~×/AÑ/A×/KÑ/K˜Ÿ
™
Ô,Ø$�÷E —�ú÷ "—\�\ú÷ &Ÿ˜ûô  ô Ùðú÷ *Ÿ\úô ˜:Ö&�Ø!×$Ö$Ü#›X�FØ%)§\¡\°!¥_�F”NØ+1¯>©>×+=Ñ+=×+GÑ+G�F—J‘JÔ(Ø ”Lñ 'ð ×Ñ˜TÔ"Ü�Ô ØœfŸk™kÔ)Ü×"Ñ"¤6§>¢>°+Ó#>Ö?ñ *øð ×Ñ˜TÔ"Ü�Ô ØœfŸk™kÔ)Ü×"Ñ"¤6§>¢>°+Ó#>Õ?ð *üsÀ   ‚CR)Ã!AQ	 Ä=LÅAQ	 ÆL(Æ)Q	 Æ2(M Ç!L<Ç;M ÈQ	 È'Q	 É!Q	 É'"Q	 Ê	!M!Ê*A*Q	 ÌL%	Ì	Q	 Ì(L9	Ì3	Q	 Ì<M	Í	M ÍMÍQ	 ÍMÍQ	 Í!M1	Í,!Q	 ÎAQ	 Ï+AR)Ñ	AR&Ò&R)c              /  ó”   "  € V P                  4        V P                  ! V/ VB  F  pVP                  4        Rj  x€L
  K  	  R#  L
5i)a0  decode(streams=None, video=None, audio=None, subtitles=None, data=None)

Yields a series of :class:`.Frame` from the given set of streams::

    for frame in container.decode():
        # Do something with `frame`.

.. seealso:: :meth:`.StreamContainer.get` for the interpretation of
    the arguments.

N)r\   r‚   Údecode)r   rG   rH   r�   s   &*, r   r…   ÚInputContainer.decodeö   s=   é € ð 	×ÑÔØ—j’j $Ð1¨&Ô1ˆFØ—}‘}“×&Ò&ó 2Ù&ùs   ‚9A»A¼AÚbackwardTÚ	any_frameFrO   NÚunsupported_frame_offsetÚunsupported_byte_offsetc          
      ó–   <€ V ^8„  d   QhRS[ P                  RS[ P                  RS[R,          RS[ P                  RS[ P                  /# )r   r‡   rˆ   rO   Nr‰   rŠ   )r   Úbintr   )r   Ú__classdict__s   "€r   r   ÚInputContainer.__annotate__  sS   ø€ ÷ >ñ >ñ —+‘+ð	>ñ
 —;‘;ð>ñ ˜•ð>ñ #)§+¡+ð>ñ "(§¡ñ>r   c               ó”  € V P                  4        \        V\        4      '       g   \        R\	        V4      4      hTp^ pV'       d   V\
        P                  ,          pV'       d   V\
        P                  ,          pV'       d   V\
        P                  ,          pV'       d   V\
        P                  ,          pV'       d   VP                  MRp	\        P                  ;_uu_ 4        \
        P                  V P                  W—V4      p
RRR4       V P                  X
4       V P!                  4        R#   + '       g   i     L3; i)a‘  seek(offset, *, backward=True, any_frame=False, stream=None)

Seek to a (key)frame nearest to the given timestamp.

:param int offset: Time to seek to, expressed in``stream.time_base`` if ``stream``
    is given, otherwise in :data:`av.time_base`.
:param bool backward: If there is not a (key)frame at the given offset,
    look backwards for it.
:param bool any_frame: Seek to any frame, not just a keyframe.
:param Stream stream: The stream who's ``time_base`` the ``offset`` is in.

:param bool unsupported_frame_offset: ``offset`` is a frame
    index instead of a time; not supported by any known format.
:param bool unsupported_byte_offset: ``offset`` is a byte
    location in the file; not supported by any known format.

After seeking, packets that you demux should correspond (roughly) to
the position you requested.

In most cases, the defaults of ``backwards = True`` and ``any_frame = False``
are the best course of action, followed by you demuxing/decoding to
the position that you want. This is because to properly decode video frames
you need to start from the previous keyframe.

.. seealso:: :ffmpeg:`avformat_seek_file` for discussion of the flags.

z+Container.seek only accepts integer offset.Néÿÿÿÿ)r\   Ú
isinstanceÚintÚ	TypeErrorÚtyper   ÚAVSEEK_FLAG_BACKWARDÚAVSEEK_FLAG_ANYÚAVSEEK_FLAG_FRAMEÚAVSEEK_FLAG_BYTErt   r   r   Úav_seek_framer"   r7   Úflush_buffers)r   Úoffsetr‡   rˆ   rO   r‰   rŠ   Úc_offsetÚflagsrz   rM   s   &&$$$$$    r   ÚseekÚInputContainer.seek  sÞ   € ðJ 	×ÑÔä˜&¤#×&Ò&ÜÐIÌ4ÐPVË<ÓXÐXà"ˆØˆ÷ Ø”S×-Ñ-Õ-ˆEßØ”S×(Ñ(Õ(ˆE÷ $Ø”S×*Ñ*Õ*ˆEß"Ø”S×)Ñ)Õ)ˆEç39 6§<¢<¸rˆÜ�\�\‹\Ü×#Ñ# D§H¡H¨lÀeÓLˆC÷ à�‰�sÔà×ÑÖ÷	 �\ús   Ã*"D7Ä7E	c                ó4   <€ V ^8„  d   QhRS[ P                  /# )r   r   )r   r   )r   r�   s   "€r   r   rŽ   G  s   ø€ ÷ 	.ñ 	.™vŸ{™{ñ 	.r   c                ó˜   € V P                  4        V P                   F)  pVP                  pV'       g   K  VP                  4        K+  	  R # rV   )r\   r   rQ   rš   )r   rO   rQ   s   &  r   rš   ÚInputContainer.flush_buffersF  s:   € à×ÑÔð
 —l”lˆFØ"×0Ñ0ˆMß‰}Ø×+Ñ+Ö-ó #r   )rF   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__rS   rX   Úpropertyr]   ra   rd   rg   rl   ro   r‚   r…   rž   r   Úcfuncrš   Ú__static_attributes__Ú__classdictcell__)r�   s   @r   r   r      sÜ   ø‡ € òI;òVð ñ'ó ð'ð
 ñ0ó ð0ð ñ%ó ð%ð
 ñ!ó ð!ð ñó ðòò]@ò~'ð >ð !%ð	>ð
 "'ð>ð !%ð>ð 16ð>ð 05÷>ò >ð@ ‡\�\÷	.ó ö	.r   r   )r   Ú cython.cimports.av.codec.contextr   r   Ú$cython.cimports.av.container.streamsr   Úcython.cimports.av.dictionaryr   Úcython.cimports.av.packetr   Úcython.cimports.av.streamr   r	   Úcython.cimports.av.utilsr
   Úcython.cimports.libc.stdintr   r   Úcython.cimports.libc.stdlibr   r   r¨   r$   ÚfinalÚcclassÚ	Containerr   © r   r   Ú<module>r·      sf   ðÛ ß MÝ @Ý 4Ý ,ß 9Ý 3ß 8ß 4ð ‡�ôó ðð ‡�Ø‡�ôx.�Yó x.ó ó òx.r   