+
    8&ÏjÞ  ã                   ó\  € ^ RI t ^ RIHu Ht ^ RIHt ^ RIHt ] P                  ! ]
]
! 4       4      t] P                  R R l4       t] P                  ] P                   ! R R4      4       4       t] P                  R R	 l4       t] P                  ] P                   ! R
 R4      4       4       tR# )é    N)ÚStream)Úint64_tc                ó˜   € V ^8„  d   QhR\         P                  \         P                  \        P                  ,          ,          R\
        /# ©é   ÚptrÚreturn)ÚcythonÚpointerÚconstÚlibÚAVIndexEntryÚ
IndexEntry)Úformats   "ÚB/opt/data/cache/scratch/pip-target-elquwxdg/lib/python/av/index.pyÚ__annotate__r   
   s2   € ÷ ñ œ&Ÿ.™.¬¯©´c×6FÑ6FÕ)GÕHð ÌZñ ó    c                 óF   € \        \        4      pVP                  V 4       V# ©N)r   Ú_cinit_bypass_sentinelÚ_init)r   Úobjs   & r   Úwrap_index_entryr   	   s   € ä Ô!7Ó8€CØ‡I�Iˆc„NØ€Jr   c                   óÐ   a € ] tR t^t o RtR t]P                  V 3R lR l4       tR t	]
R 4       t]
R 4       t]
R 4       t]
R	 4       t]
R
 4       t]
R 4       t]
R 4       tRtV tR# )r   z£A single entry from a stream's index.

This is a thin wrapper around FFmpeg's ``AVIndexEntry``.

The exact meaning of the fields depends on the container/demuxer.
c                ó0   € V\         Jd   \        R 4      hR# )z&cannot manually instantiate IndexEntryN©r   ÚRuntimeError©ÚselfÚsentinels   &&r   Ú	__cinit__ÚIndexEntry.__cinit__   s   € ØÔ1Ó1ÜÐGÓHÐHñ 2r   c                ó–   <€ V ^8„  d   QhRS[ P                  S[ P                  S[P                  ,          ,          RS[ P
                  /# r   )r
   r   r   r   r   Úvoid)r   Ú__classdict__s   "€r   r   ÚIndexEntry.__annotate__   s7   ø€ ÷ ñ ™Ÿ™©¯©±S×5EÑ5EÕ(FÕGð ÉFÏKÉKñ r   c                ó"   € V^ ,          V n         R# )r   N©Úentry)r   r   s   &&r   r   ÚIndexEntry._init   s   € à˜•VˆŽ
r   c                óŠ   € R V P                    RV P                   RV P                   RV P                   RV P                   R2# )z<av.IndexEntry pos=z timestamp=z flags=z size=z min_distance=Ú>)ÚposÚ	timestampÚflagsÚsizeÚmin_distance©r   s   &r   Ú__repr__ÚIndexEntry.__repr__"   sK   € à! $§(¡( ¨;°t·~±~Ð6FÀgÈdÏjÉjÈ\ð ZØ—I‘I�;˜n¨T×->Ñ->Ð,?¸qðBð	
r   c                ó.   € V P                   P                  # r   )r)   r-   r2   s   &r   r-   ÚIndexEntry.pos(   s   € à�z‰z�~‰~Ðr   c                ó.   € V P                   P                  # r   )r)   r.   r2   s   &r   r.   ÚIndexEntry.timestamp,   s   € à�z‰z×#Ñ#Ð#r   c                ó.   € V P                   P                  # r   )r)   r/   r2   s   &r   r/   ÚIndexEntry.flags0   s   € à�z‰z×ÑÐr   c                ój   € \        V P                  P                  \        P                  ,          4      # r   )Úboolr)   r/   r   ÚAVINDEX_KEYFRAMEr2   s   &r   Úis_keyframeÚIndexEntry.is_keyframe4   s"   € ä�D—J‘J×$Ñ$¤s×';Ñ';Õ;Ó<Ð<r   c                ój   € \        V P                  P                  \        P                  ,          4      # r   )r<   r)   r/   r   ÚAVINDEX_DISCARD_FRAMEr2   s   &r   Ú
is_discardÚIndexEntry.is_discard8   s"   € ä�D—J‘J×$Ñ$¤s×'@Ñ'@Õ@ÓAÐAr   c                ó.   € V P                   P                  # r   )r)   r0   r2   s   &r   r0   ÚIndexEntry.size<   s   € à�z‰z�‰Ðr   c                ó.   € V P                   P                  # r   )r)   r1   r2   s   &r   r1   ÚIndexEntry.min_distance@   s   € à�z‰z×&Ñ&Ð&r   r(   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r!   r
   Úcfuncr   r3   Úpropertyr-   r.   r/   r>   rB   r0   r1   Ú__static_attributes__Ú__classdictcell__©r%   s   @r   r   r      s»   ø‡ € ñòIð ‡\�\÷ó ðò
ð ñó ðð ñ$ó ð$ð ñ ó ð ð ñ=ó ð=ð ñBó ðBð ñó ðð ñ'ó ö'r   r   c                ó0   € V ^8„  d   QhR\         R\        /# ©r   Ústreamr	   )r   ÚIndexEntries)r   s   "r   r   r   F   s   € ÷ ñ œvð ¬,ñ r   c                 óF   € \        \        4      pVP                  V 4       V# r   )rU   r   r   )rT   r   s   & r   Úwrap_index_entriesrW   E   s   € ä$Ô%;Ó<€CØ‡I�IˆfÔØ€Jr   c                   óœ   a € ] tR t^Lt o RtR t]P                  V 3R lR l4       tR t	V 3R lR lt
R tR	 tR
RRR/V 3R lR lltRtV tR# )rU   a4  A sequence-like view of FFmpeg's per-stream index entries.

Exposed as :attr:`~av.stream.Stream.index_entries`.

The index is provided by the demuxer and may be empty or incomplete depending
on the container format. This is useful for fast multi-seek loops (e.g., decoding
at a lower-than-native framerate).
c                ó0   € V\         J d   R # \        R4      h)Nz(cannot manually instantiate IndexEntriesr   r   s   &&r   r!   ÚIndexEntries.__cinit__X   s   € ØÔ-Ó-ÙÜÐEÓFÐFr   c                ó:   <€ V ^8„  d   QhRS[ RS[P                  /# rS   )r   r
   r$   )r   r%   s   "€r   r   ÚIndexEntries.__annotate__^   s   ø€ ÷ ñ ™Fð ¡v§{¡{ñ r   c                ó   € Wn         R # r   ©rT   )r   rT   s   &&r   r   ÚIndexEntries._init]   s   € àŽr   c                ód   € V P                   P                  4       '       g   R # R\        V 4       R2# )z$<av.IndexEntries (container closed)>z<av.IndexEntries[z]>)rT   Ú_is_openÚlenr2   s   &r   r3   ÚIndexEntries.__repr__a   s+   € Ø�{‰{×#Ñ#×%Ò%Ù9Ø"¤3 t£9 +¨RÐ0Ð0r   c                ó    <€ V ^8„  d   QhRS[ /# )r   r	   )Úint)r   r%   s   "€r   r   r\   f   s   ø€ ÷ Iñ I™ñ Ir   c                óø   € V P                   P                  4        \        P                  ;_uu_ 4        \        P
                  ! V P                   P                  4      uuR R R 4       #   + '       g   i     R # ; ir   )rT   Ú_assert_openr
   Únogilr   Ú avformat_index_get_entries_countr   r2   s   &r   Ú__len__ÚIndexEntries.__len__f   s=   € Ø�‰× Ñ Ô"Ü�\�\‹\Ü×7Ò7¸¿¹¿¹ÓH÷ �\�\‹\ús   ³*A(Á(A9	c              #  óX   "  € \        \        V 4      4       F  pW,          x € K  	  R # 5ir   )Úrangerb   )r   Úis   & r   Ú__iter__ÚIndexEntries.__iter__k   s   é € Ü”s˜4“yÖ!ˆAØ•'ŒMó "ùs   ‚(*c                ó´  € V P                   P                  4        \        V\        4      '       d²   \	        V 4      pV^ 8  d	   W,          pV^ 8  g   W8¼  d   \        RV RV 24      hTp\        P                  ;_uu_ 4        \        P                  ! V P                   P                  V4      pRRR4       X\        P                  8X  d   \        R4      h\        V4      # \        V\        4      '       d@   VP                  \	        V 4      4      w  rVp\        WVV4       Uu. uF  q€V,          NK  	  up# \!        R4      h  + '       g   i     L›; iu upi )r   zIndex entries z out of bounds for size Nzindex entry not foundz#Index must be an integer or a slice)rT   rg   Ú
isinstancere   rb   Ú
IndexErrorr
   rh   r   Úavformat_index_get_entryr   ÚNULLr   ÚsliceÚindicesrm   Ú	TypeError)	r   ÚindexÚnÚc_idxr)   ÚstartÚstopÚsteprn   s	   &&       r   Ú__getitem__ÚIndexEntries.__getitem__o   s
  € Ø�‰× Ñ Ô"Ü�eœS×!Ò!Ü�D“	ˆAØ�qŒyØ•
�Ø�qŒy˜EœJÜ  >°%°Ð8PÐQRÐPSÐ!TÓUÐUà %ˆEä——“Ü×4Ò4°T·[±[·_±_ÀeÓL�÷ àœŸ™Ô#Ü Ð!8Ó9Ð9ä# EÓ*Ð*Ü˜œu×%Ò%Ø %§¡¬c°$«iÓ 8ÑˆE˜Ü%*¨5¸Ô%=Ó>Ñ%= ˜—G�GÑ%=Ñ>Ð>äÐAÓBÐB÷ —üò ?s   Â,EÄ#EÅE	ÚbackwardTÚ	any_frameFc                ó&   <€ V ^8„  d   QhRS[ RS[ /# )r   r�   r‚   )r<   )r   r%   s   "€r   r   r\   †   s   ø€ ÷ ñ Ù&*ðÙ>Bñr   c               ó~  € V P                   P                  4        Tp^ pV'       d   V\        P                  ,          pV'       d   V\        P                  ,          p\
        P                  ;_uu_ 4        \        P                  ! V P                   P                  WE4      pRRR4       V#   + '       g   i     X# ; i)z§Search the underlying index for ``timestamp``.

This wraps FFmpeg's ``av_index_search_timestamp``.

Returns an index into this object, or ``-1`` if no match is found.
N)	rT   rg   r   ÚAVSEEK_FLAG_BACKWARDÚAVSEEK_FLAG_ANYr
   rh   Úav_index_search_timestampr   )r   r.   r�   r‚   Úc_timestampr/   Úidxs   &&$$   r   Úsearch_timestampÚIndexEntries.search_timestamp†   s‚   € ð 	�‰× Ñ Ô"Ø(ˆØˆçØ”S×-Ñ-Õ-ˆEßØ”S×(Ñ(Õ(ˆEä�\�\‹\Ü×/Ò/°·±·±ÀÓTˆC÷ ð ˆ
÷ Ž\ð ˆ
ús   Á5,B+Â+B<	r^   N)rH   rI   rJ   rK   rL   r!   r
   rM   r   r3   rj   ro   r   rŠ   rO   rP   rQ   s   @r   rU   rU   L   sc   ø‡ € ñòGð
 ‡\�\÷ó ðò1÷
Ið Iò
òCð.Ø-1ðØEJ÷÷ ð r   rU   )r
   Úcython.cimports.libavÚcimportsÚlibavr   Úcython.cimports.av.streamr   Úcython.cimports.libc.stdintr   ÚdeclareÚobjectr   rM   r   ÚfinalÚcclassr   rW   rU   © r   r   Ú<module>r–      s­   ðÛ ß #Ð #Ý ,Ý /àŸš¨±³Ó9Ð ð ‡�ôó ðð ‡�Ø‡�÷0'ð 0'ó ó ð0'ðf ‡�ôó ðð ‡�Ø‡�÷Mð Mó ó òMr   