+
    k'Ïjƒ*  ã                   ó¾  € ^ RI HtHt ^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHtHtHt  ! R R	]4      t ! R
 R]4      t]P&                  ! ]]! 4       4      t]P,                  R R l4       t]P0                   ! R R4      4       t]P4                  ]P0                   ! R R]4      4       4       t]P4                  ]P0                   ! R R]4      4       4       tR# )é    )ÚIntEnumÚIntFlagN)Úlibav)Ú	err_check©Úwrap_index_entries)Úfrom_avrational)Úavdict_to_dictÚdict_to_avdictÚto_avrationalc                   ób   € ] tR t^t^t^t^t^t^t^ t	^@t
^€tRtRtRtRtRtRtR	tR
tRtRtRtRtR# )ÚDisposition© Né   i   i   i   i   i   i   i   i   i   i    )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚdefaultÚdubÚoriginalÚcommentÚlyricsÚkaraokeÚforcedÚhearing_impairedÚvisual_impairedÚclean_effectsÚattached_picÚtimed_thumbnailsÚnon_diegeticÚcaptionsÚdescriptionsÚmetadataÚ	dependentÚstill_imageÚ
multilayerÚ__static_attributes__r   ó    ÚC/opt/data/cache/scratch/pip-target-lhm_ju4v/lib/python/av/stream.pyr   r      sc   † Ø€GØ
€CØ€HØ€GØ€FØ€GØ€FØÐØ€OØ€MØ€LØÐØ€LØ€HØ€LØ€HØ€IØ€KØ„Jr)   r   c                   ó¾   € ] tR t^%t]P
                  t]P                  t]P                  t
]P                  t]P                  t]P                  t]P"                  tRtR# )ÚDiscardr   N)r   r   r   r   ÚlibÚAVDISCARD_NONEÚnoneÚAVDISCARD_DEFAULTr   ÚAVDISCARD_NONREFÚnonrefÚAVDISCARD_BIDIRÚbidirÚAVDISCARD_NONINTRAÚnonintraÚAVDISCARD_NONKEYÚnonkeyÚAVDISCARD_ALLÚallr(   r   r)   r*   r,   r,   %   sO   † Ø×Ñ€DØ×#Ñ#€GØ×!Ñ!€FØ×Ñ€EØ×%Ñ%€HØ×!Ñ!€FØ
×
Ñ
„Cr)   r,   c                ó†   € V ^8„  d   QhR\         R\        P                  \        P                  ,          R\
        R\        /# )é   Ú	containerÚc_streamÚcodec_contextÚreturn)Ú	ContainerÚcythonÚpointerr-   ÚAVStreamÚCodecContextÚStream)Úformats   "r*   Ú__annotate__rH   3   s=   € ÷ !ñ !Üð!ä�n‰nœSŸ\™\Õ*ð!ô  ð!ô ñ	!r)   c                óˆ  € V P                   P                  VP                  ,          V8X  g   Q h^ RIHp ^ RIHp ^ RIHp VP                  P                  \        P                  8X  d   VP                  V\        4      pEM.VP                  P                  \        P                  8X  d   VP                  V\        4      pMîVP                  P                  \        P                   8X  d   VP                  V\        4      pM®VP                  P                  \        P"                  8X  d    \$        P                  \$        \        4      pMfVP                  P                  \        P&                  8X  d    \(        P                  \(        \        4      pM\*        P                  \*        \        4      pVP-                  WV4       V# )z~Build an av.Stream for an existing AVStream.

The AVStream MUST be fully constructed and ready for use before this is called.
)ÚAudioStream)ÚSubtitleStream)ÚVideoStream)ÚptrÚstreamsÚindexÚav.audio.streamrJ   Úav.subtitles.streamrK   Úav.video.streamrL   ÚcodecparÚ
codec_typer-   ÚAVMEDIA_TYPE_VIDEOÚ__new__Ú_cinit_bypass_sentinelÚAVMEDIA_TYPE_AUDIOÚAVMEDIA_TYPE_SUBTITLEÚAVMEDIA_TYPE_ATTACHMENTÚAttachmentStreamÚAVMEDIA_TYPE_DATAÚ
DataStreamrF   Ú_init)r=   r>   r?   rJ   rK   rL   Ú	py_streams   &&&    r*   Úwrap_streamr`   2   s7  € ð �=‰=× Ñ  §¡Õ0°HÔ<Ð<Ð<õ ,Ý2Ý+à×Ñ×#Ñ#¤s×'=Ñ'=Ô=Ø×'Ñ'¨Ô5KÓLŠ	Ø	×	Ñ	×	%Ñ	%¬×)?Ñ)?Ô	?Ø×'Ñ'¨Ô5KÓL‰	Ø	×	Ñ	×	%Ñ	%¬×)BÑ)BÔ	BØ"×*Ñ*¨>Ô;QÓR‰	Ø	×	Ñ	×	%Ñ	%¬×)DÑ)DÔ	DÜ$×,Ñ,Ô-=Ô?UÓV‰	Ø	×	Ñ	×	%Ñ	%¬×)>Ñ)>Ô	>Ü×&Ñ&¤zÔ3IÓJ‰	ä—N‘N¤6Ô+AÓBˆ	à‡O�O�I¨Ô7ØÐr)   c                   ó@  a € ] tR t^Wt o RtR t]P                  V 3R lR l4       t]P                  V 3R lR l4       t	]P                  V 3R lR l4       t
]P                  ]P                  3V 3R	 lR
 ll4       tR tR t]P                  V 3R lR l4       t]R 4       t]R 4       t]P                  V 3R lR l4       t]R 4       t]R 4       t]R 4       t]R 4       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# ) rF   aÕ  
A single stream of audio, video or subtitles within a :class:`.Container`.

::

    >>> fh = av.open(video_path)
    >>> stream = fh.streams.video[0]
    >>> stream
    <av.VideoStream #0 h264, yuv420p 1280x720 at 0x...>

This encapsulates a :class:`.CodecContext`, located at :attr:`Stream.codec_context`.
Attribute access is passed through to that context when attributes are missing
on the stream itself. E.g. ``stream.options`` will be the options on the
context.
c                ó0   € V\         J d   R # \        R4      h)Nz"cannot manually instantiate Stream)rW   ÚRuntimeError©ÚselfÚnames   &&r*   Ú	__cinit__ÚStream.__cinit__i   s   € ØÔ)Ó)ÙÜÐ?Ó@Ð@r)   c                ó~   <€ V ^8„  d   QhRS[ RS[P                  S[P                  ,          RS[RS[P                  /# )r<   r=   Ústreamr?   r@   )rA   rB   rC   r-   rD   rE   Úvoid)rG   Ú__classdict__s   "€r*   rH   ÚStream.__annotate__o   sD   ø€ ÷ 8ñ 8áð8ñ —‘™sŸ|™|Õ,ð8ñ $ð	8ñ
 
�‰ñ8r)   c                ó^   € Wn         W n        W0n        \        VP                  4      V n        R # ©N)r=   rM   r?   r
   r$   )re   r=   rj   r?   s   &&&&r*   r^   ÚStream._initn   s$   € ð #ŒØŒà*Ôä& v§¡Ó7ˆŽr)   c                ó4   <€ V ^8„  d   QhRS[ P                  /# ©r<   r@   )rB   Úbint)rG   rl   s   "€r*   rH   rm   }   s   ø€ ÷ Pñ P™&Ÿ+™+ñ Pr)   c                ó|   € V P                   R J;'       d(    V P                   P                  \        P                  8g  # ro   )r=   rM   rB   ÚNULL©re   s   &r*   Ú_is_openÚStream._is_open|   s,   € à�~‰~ TÐ)×OÐO¨d¯n©n×.@Ñ.@ÄFÇKÁKÑ.OÐOr)   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rr   ©rB   rk   )rG   rl   s   "€r*   rH   rm   �   s   ø€ ÷ :ñ :™fŸk™kñ :r)   c                óŠ   € V P                   e*   V P                   P                  \        P                  8X  d   \	        R4      hR # )NzContainer is not open)r=   rM   rB   ru   ÚAssertionErrorrv   s   &r*   Ú_assert_openÚStream._assert_open€   s3   € à�>‰>Ò! T§^¡^×%7Ñ%7¼6¿;¹;Ô%FÜ Ð!8Ó9Ð9ñ &Gr)   c                óN   <€ V ^8„  d   QhRS[ P                  RS[ P                  /# )r<   Úerrr@   )rB   Úintrk   )rG   rl   s   "€r*   rH   rm   †   s%   ø€ ÷ ñ Ù—:‘:ðá	�‰ñr)   c                ó<   € V P                   f   \        V4       R # R # ro   )r?   r   )re   r€   s   &&r*   Ú_assert_has_codec_contextÚ Stream._assert_has_codec_context…   s   € ð ×ÑÒ%Ü�cŽNñ &r)   c                óF  € V P                  4       '       g(   R V P                  P                   R\        V 4      R R2# \	        V RR4      pR V P                  P                   RV P
                   RV P                  ;'       g    R R	T;'       g    R
 R\        V 4      R R2# )ú<av.ú (container closed) at 0xÚxÚ>rf   Nú #Ú z<notype>Ú/ú	<nocodec>ú at 0x)rw   Ú	__class__r   ÚidÚgetattrrO   Útyperd   s   & r*   Ú__repr__ÚStream.__repr__Œ   s    € Ø�}‰}�Šà�t—~‘~×.Ñ.Ð/Ð/HÌÈDËÐRSÈÐTUÐVðô �t˜V TÓ*ˆà�4—>‘>×*Ñ*Ð+¨2¨d¯j©j¨\¸¸4¿9¹9×;RÐ;RÈ
Ð:SÐSTØ×"Ð"�{Ð# 6¬"¨T«(°1¨°Qð8ð	
r)   c                óº  € VR9   d   V P                  4        VR 8X  d   V P                  V4       R# VR8X  d   W P                  n        R# VR8X  d'   \	        V4      P
                  V P                  n        R# VR8X  d7   \        V\        P                  ! V P                  P                  4      4       R# V P                  e   \        V P                  W4       R# R# )r�   ÚdispositionÚdiscardÚ	time_baseN)r�   r–   r—   r˜   )r}   Ú_set_idrM   r–   r,   Úvaluer—   r   rB   Úaddressr˜   r?   Úsetattr)re   rf   rš   s   &&&r*   Ú__setattr__ÚStream.__setattr__˜   s®   € ØÐ@Ô@Ø×ÑÔØ�4Œ<Ø�L‰L˜ÔÙØ�=Ô Ø#(�H‰HÔ ÙØ�9ÔÜ& u›~×3Ñ3ˆD�H‰HÔÙØ�;ÔÜ˜%¤§¢°·±×0BÑ0BÓ!CÔDÙð ×ÑÒ)Ü�D×&Ñ&¨Ö4ñ *r)   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rr   rz   )rG   rl   s   "€r*   rH   rm   ­   s   ø€ ÷ 
ñ 
¡f§k¡kñ 
r)   c                óÜ  € \        \        P                  ! V P                  P                  4      V P                  4       V P
                  f   R # V P                  P                  P                  '       g0   V P
                  P                  P                  V P                  n        \        \        P                  ! V P                  P                  V P
                  P                  4      4       R # ro   )r   rB   r›   rM   r$   r?   r˜   Únumr   r-   Úavcodec_parameters_from_contextrS   rv   s   &r*   Ú_finalize_for_outputÚStream._finalize_for_output¬   s™   € ä”v—~’~ d§h¡h×&7Ñ&7Ó8¸$¿-¹-ÔHà×ÑÒ%Ùà�x‰x×!Ñ!×%×%Ð%Ø!%×!3Ñ!3×!7Ñ!7×!AÑ!AˆD�H‰HÔô 	Ü×/Ò/Ø—‘×!Ñ! 4×#5Ñ#5×#9Ñ#9óö	
r)   c                ó   € \        V 4      # ro   r   rv   s   &r*   Úindex_entriesÚStream.index_entries½   s   € ä! $Ó'Ð'r)   c                óN   € V P                  4        V P                  P                  # )z5
The format-specific ID of this stream.

:type: int

)r}   rM   r�   rv   s   &r*   r�   Ú	Stream.idÁ   s   € ð 	×ÑÔØ�x‰x�{‰{Ðr)   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rr   rz   )rG   rl   s   "€r*   rH   rm   Í   s   ø€ ÷  ñ  ¡§¡ñ  r)   c                óT   € Vf   ^ V P                   n        R # WP                   n        R # ro   )rM   r�   )re   rš   s   &&r*   r™   ÚStream._set_idÌ   s   € àŠ=ØˆD�H‰HŽKà�H‰HŽKr)   c                óV   € V P                   '       d   V P                   P                  # . # )z@
List the available profiles for this stream.

:type: list[str]
)r?   Úprofilesrv   s   &r*   r®   ÚStream.profilesÓ   s'   € ð ××ÐØ×%Ñ%×.Ñ.Ð.àˆIr)   c                óV   € V P                   '       d   V P                   P                  # R# )z)
The profile of this stream.

:type: str
N)r?   Úprofilerv   s   &r*   r±   ÚStream.profileß   s%   € ð ××ÐØ×%Ñ%×-Ñ-Ð-ár)   c                óN   € V P                  4        V P                  P                  # )zB
The index of this stream in its :class:`.Container`.

:type: int
)r}   rM   rO   rv   s   &r*   rO   ÚStream.indexë   s   € ð 	×ÑÔØ�x‰x�~‰~Ðr)   c                ó`   € V P                  4        \        V P                  P                  4      # )za
The unit of time (in fractional seconds) in which timestamps are expressed.

:type: AVRational

)r}   r	   rM   r˜   rv   s   &r*   r˜   ÚStream.time_baseõ   s%   € ð 	×ÑÔÜ˜tŸx™x×1Ñ1Ó2Ð2r)   c                ó¤   € V P                  4        V P                  P                  \        P                  8w  d   V P                  P                  # R# )zm
The presentation timestamp in :attr:`time_base` units of the first
frame in this stream.

:type: int | None
N)r}   rM   Ú
start_timer-   ÚAV_NOPTS_VALUErv   s   &r*   r¸   ÚStream.start_time   s=   € ð 	×ÑÔØ�8‰8×Ñ¤#×"4Ñ"4Ô4Ø—8‘8×&Ñ&Ð&ñ 5r)   c                ó¤   € V P                  4        V P                  P                  \        P                  8w  d   V P                  P                  # R# )zM
The duration of this stream in :attr:`time_base` units.

:type: int | None

N)r}   rM   Údurationr-   r¹   rv   s   &r*   r¼   ÚStream.duration  s=   € ð 	×ÑÔØ�8‰8×Ñ¤× 2Ñ 2Ô2Ø—8‘8×$Ñ$Ð$ñ 3r)   c                óN   € V P                  4        V P                  P                  # )z[
The number of frames this stream contains.

Returns ``0`` if it is not known.

:type: int
)r}   rM   Ú	nb_framesrv   s   &r*   ÚframesÚStream.frames  s    € ð 	×ÑÔØ�x‰x×!Ñ!Ð!r)   c                ó8   € V P                   P                  R4      # )z0
The language of the stream.

:type: str | None
Úlanguage©r$   Úgetrv   s   &r*   rÃ   ÚStream.language$  ó   € ð �}‰}× Ñ  Ó,Ð,r)   c                ó`   € V P                  4        \        V P                  P                  4      # ro   )r}   r   rM   r–   rv   s   &r*   r–   ÚStream.disposition-  s#   € à×ÑÔÜ˜4Ÿ8™8×/Ñ/Ó0Ð0r)   c                ó`   € V P                  4        \        V P                  P                  4      # )a  
Controls which packets of this stream are discarded by the demuxer.

Set this to e.g. :attr:`Discard.all` on streams you don't need so that
:meth:`.Container.demux` and :meth:`.Container.seek` skip them, avoiding
the cost of synchronizing streams you never read.

:type: Discard
)r}   r,   rM   r—   rv   s   &r*   r—   ÚStream.discard2  s%   € ð 	×ÑÔÜ�t—x‘x×'Ñ'Ó(Ð(r)   c                ó¼   € V P                  4        \        P                  ! V P                  P                  P
                  4      pV\        P                  8X  d   R# T# )z]
The type of the stream.

:type: Literal["audio", "video", "subtitle", "data", "attachment"]
Úunknown)r}   r-   Úav_get_media_type_stringrM   rS   rT   rB   ru   )re   Ú
media_types   & r*   r’   ÚStream.type@  sF   € ð 	×ÑÔÜ×1Ò1°$·(±(×2CÑ2C×2NÑ2NÓOˆ
Ø&¬&¯+©+Ô5ˆyÐE¸:ÐEr)   )r?   r=   r$   rM   N)"r   r   r   r   Ú__doc__rg   rB   Úcfuncr^   rw   r}   r-   ÚAVERROR_DECODER_NOT_FOUNDrƒ   r“   r�   r£   Úpropertyr¦   r�   r™   r®   r±   rO   r˜   r¸   r¼   rÀ   rÃ   r–   r—   r’   r(   Ú__classdictcell__©rl   s   @r*   rF   rF   W   sÀ  ø‡ € ñò Að
 ‡\�\÷8ó ð8ð ‡\�\÷Pó ðPð ‡\�\÷:ó ð:ð ‡\�\à #× =Ñ =÷ñ ó ðò

ò5ð( ‡\�\÷
ó ð
ð  ñ(ó ð(ð ñó ðð ‡\�\÷ ó ð ð ñ	ó ð	ð ñ	ó ð	ð ñó ðð ñ3ó ð3ð ñ	'ó ð	'ð ñ	%ó ð	%ð ñ	"ó ð	"ð ñ-ó ð-ð ñ1ó ð1ð ñ)ó ð)ð ñFó öFr)   rF   c                   ó6   a € ] tR tRt o R t]R 4       tRtV tR# )r]   iL  c           
     ó  € V P                  4       '       g(   R V P                  P                   R\        V 4      R R2# R V P                  P                   RV P                   RV P
                  ;'       g    R R\        V 4      R R2	# )r†   r‡   rˆ   r‰   rŠ   z data/r�   rŽ   )rw   r�   r   r�   rO   rf   rv   s   &r*   r“   ÚDataStream.__repr__O  s‚   € Ø�}‰}�Šà�t—~‘~×.Ñ.Ð/Ð/HÌÈDËÐRSÈÐTUÐVðð
 �4—>‘>×*Ñ*Ð+¨2¨d¯j©j¨\¸Ø�y‰y×'Ð'˜KÐ(¨¬r°$«x¸¨l¸!ð=ð	
r)   c                óÐ   € V P                  4        \        P                  ! V P                  P                  P
                  4      pV\        P                  8X  d   R # VP                  # ro   )	r}   r-   Úavcodec_descriptor_getrM   rS   Úcodec_idrB   ru   rf   )re   Údescs   & r*   rf   ÚDataStream.nameZ  sL   € à×ÑÔä×&Ò& t§x¡x×'8Ñ'8×'AÑ'AÓBð 	ð ”6—;‘;ÔÙØ�y‰yÐr)   r   N)	r   r   r   r   r“   rÔ   rf   r(   rÕ   rÖ   s   @r*   r]   r]   L  s   ø‡ € ò	
ð ñó ör)   r]   c                   óT   a € ] tR tRt o Rt]R 4       t]R 4       t]R 4       tRt	V t
R# )r[   ie  z´
An :class:`AttachmentStream` represents a stream of attachment data within a media container.
Typically used to attach font files that are referenced in ASS/SSA Subtitle Streams.
c                ó8   € V P                   P                  R4      # )z>
Returns the file name of the attachment.

:rtype: str | None
ÚfilenamerÄ   rv   s   &r*   rf   ÚAttachmentStream.namem  rÇ   r)   c                ó8   € V P                   P                  R4      # )z>
Returns the MIME type of the attachment.

:rtype: str | None
ÚmimetyperÄ   rv   s   &r*   rä   ÚAttachmentStream.mimetypev  rÇ   r)   c                óB  € V P                  4        V P                  P                  P                  pV P                  P                  P                  pV\
        P                  8X  g   V^ 8:  d   R# \        V4      p\        V4       F  pW,          W4&   K  	  \        V4      # )z+Return the raw attachment payload as bytes.r)   )
r}   rM   rS   Ú	extradataÚextradata_sizerB   ru   Ú	bytearrayÚrangeÚbytes)re   rç   ÚsizeÚpayloadÚis   &    r*   ÚdataÚAttachmentStream.data  s{   € ð 	×ÑÔØ$(§H¡H×$5Ñ$5×$?Ñ$?ˆ	Ø"&§(¡(×"3Ñ"3×"BÑ"BˆØœŸ™Ô# t¨q¤yÙä˜D“/ˆÜ�t–ˆAØ"�ˆG‹Jñ ô �W‹~Ðr)   r   N)r   r   r   r   rÑ   rÔ   rf   rä   rï   r(   rÕ   rÖ   s   @r*   r[   r[   e  sF   ø‡ € ñð
 ñ-ó ð-ð ñ-ó ð-ð ñó ör)   r[   )Úenumr   r   rB   Úcython.cimportsr   r-   Úcython.cimports.av.errorr   Úcython.cimports.av.indexr   Úcython.cimports.av.rationalr	   Úcython.cimports.av.utilsr
   r   r   r   r,   ÚdeclareÚobjectrW   rÒ   r`   ÚcclassrF   Úfinalr]   r[   r   r)   r*   Ú<module>rû      sá   ðß !ã Ý (Ý .Ý 7Ý 7÷ñ ô�'ô ô,ˆgô ð  Ÿš¨±³Ó9Ð ð ‡�ô!ó ð!ðH ‡�÷qFð qFó ðqFðh ‡�Ø‡�ô�ó ó ó ðð. ‡�Ø‡�ô%�vó %ó ó ò%r)   