+
    #ÏjÄ  ã                   ó´   € ^ RI t ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ] P                   ] P"                   ! R	 R
]4      4       4       tR# )é    N)Úlibav©ÚPacket)ÚStream)Úavrational_to_fraction©Ú
VideoFrame)Úint32_t)Úmemcpyc                   ó<  a € ] tR t^t o R tR t]P                  RV 3R lR ll4       t]P                  RV 3R lR ll4       t	]P                  R 4       t]P                  R	 4       tR
 tRR lt]R 4       t]R 4       t]R 4       t]R 4       t]R 4       tRtV tR# )ÚVideoStreamc                ó^  € V P                   f   RV P                   R\        V 4      R R2# RV P                   RV P                   RV P                  '       d   V P                  P                  MR  RV P                   P
                   RV P                   P                   R\        V 4      R R2# )Nz<av.VideoStream #z video/<nocodec> at 0xÚxÚ>Ú z, z at 0x)Úcodec_contextÚindexÚidÚnameÚformatÚwidthÚheight©Úselfs   &ÚE/opt/data/home/.local/lib/python3.14/site-packages/av/video/stream.pyÚ__repr__ÚVideoStream.__repr__   s¡   € Ø×ÑÒ%Ø& t§z¡z lÐ2HÌÈDËÐRSÈÐTUÐVÐVà §
¡
˜|¨1¨T¯Y©Y¨K°rØ#'§;§; ;ˆt�{‰{×Ò°DÐ9¸¸4×;MÑ;M×;SÑ;SÐ:TÐTUØ×!Ñ!×(Ñ(Ð)¨´°4³¸¨|¸1ð>ð	
ó    c                óì   € VR9   d&   \        R\        V 4      P                   RV R24      hV P                  f&   \        R\        V 4      P                   RV R24      h\	        V P                  V4      # )Ú	framerateÚ'z' object has no attribute ')r    Úrate)ÚAttributeErrorÚtypeÚ__name__r   Úgetattr)r   r   s   &&r   Ú__getattr__ÚVideoStream.__getattr__   s„   € ØÐ(Ô(Ü Ø”D˜“J×'Ñ'Ð(Ð(CÀDÀ6ÈÐKóð ð ×ÑÒ%Ü Ø”D˜“J×'Ñ'Ð(Ð(CÀDÀ6ÈÐKóð ô �t×)Ñ)¨4Ó0Ð0r   Nc                ó.   <€ V ^8„  d   QhRS[ R,          /# )é   ÚframeNr   )r   Ú__classdict__s   "€r   Ú__annotate__ÚVideoStream.__annotate__#   s   ø€ ÷ ñ ™J¨Õ-ñ r   c                óâ   € V P                  \        P                  4       V P                  P	                  V4      pV F.  pWn        V P                  P                  VP                  n        K0  	  V# )z©
Encode an :class:`.VideoFrame` and return a list of :class:`.Packet`.

:rtype: list[Packet]

.. seealso:: This is mostly a passthrough to :meth:`.CodecContext.encode`.
)	Ú_assert_has_codec_contextÚlibÚAVERROR_ENCODER_NOT_FOUNDr   ÚencodeÚ_streamÚptrr   Ústream_index)r   r+   ÚpacketsÚpackets   &&  r   r3   ÚVideoStream.encode"   sX   € ð 	×&Ñ&¤s×'DÑ'DÔEØ×$Ñ$×+Ñ+¨EÓ2ˆãˆFØ!ŒNØ&*§h¡h§n¡nˆF�J‰JÖ#ñ ð ˆr   c                ó.   <€ V ^8„  d   QhRS[ R,          /# )r*   r8   Nr   )r   r,   s   "€r   r-   r.   4   s   ø€ ÷ 	1ñ 	1™V d�]ñ 	1r   c                óX   € V P                  4        V P                  P                  V4      # )z¥
Decode a :class:`.Packet` and return a list of :class:`.VideoFrame`.

:rtype: list[VideoFrame]

.. seealso:: This is a passthrough to :meth:`.CodecContext.decode`.
)r0   r   Údecode)r   r8   s   &&r   r<   ÚVideoStream.decode3   s'   € ð 	×&Ñ&Ô(Ø×!Ñ!×(Ñ(¨Ó0Ð0r   c                ó  € \         P                  ! V 4       V P                  e0   V P                  P                  P                  V P                  n        V P                  e'   V P                  '       d   V P                  4        R # R # R # ©N)r   Ú_finalize_for_outputr   r5   r    Úavg_frame_rateÚ_has_display_matrixÚ_apply_display_matrixr   s   &r   r@   Ú VideoStream._finalize_for_output?   sh   € ä×#Ò# DÔ)Ø×ÑÒ)Ø&*×&8Ñ&8×&<Ñ&<×&FÑ&FˆD�H‰HÔ#ð ×ÑÒ)¨d×.F×.FÐ.FØ×&Ñ&Ö(ñ /GÑ)r   c                óâ  € ^	\         P                  ! \        4      ,          p\        P                  ! \         P
                  ! V P                  P                  P                  4      \         P
                  ! V P                  P                  P                  4      \        P                  V^ 4      pV\         P                  8X  d   \        R4      h\        VP                  V P                  V4       R# )é	   z+could not allocate display matrix side dataN)ÚcythonÚsizeofr
   r1   Úav_packet_side_data_newÚaddressr5   ÚcodecparÚcoded_side_dataÚnb_coded_side_dataÚAV_PKT_DATA_DISPLAYMATRIXÚNULLÚMemoryErrorr   ÚdataÚ_display_matrix)r   ÚnÚsds   &  r   rC   Ú!VideoStream._apply_display_matrixI   sœ   € àœFŸMšM¬'Ó2Õ2ˆÜ36×3NÒ3NÜ�NŠN˜4Ÿ8™8×,Ñ,×<Ñ<Ó=Ü�NŠN˜4Ÿ8™8×,Ñ,×?Ñ?Ó@Ü×)Ñ)ØØó4
ˆð ”—‘ÔÜÐKÓLÐLäˆr�w‰w˜×,Ñ,¨aÖ0r   c                óð   € Vf
   RV n         R# V Uu. uF  p\        V4      NK  	  pp\        V4      ^	8w  d   \        R4      h\	        ^	4       F  pW4,          V P
                  V&   K  	  RV n         R# u upi )a"  Set the display matrix written to the container as coded side data.

``matrix`` is a sequence of 9 integers in FFmpeg's ``AV_PKT_DATA_DISPLAYMATRIX``
layout, or ``None`` to clear. Must be called before the first frame is
encoded. See :meth:`set_display_rotation` for a higher-level helper.
NFz+display matrix must have exactly 9 elementsT)rB   ÚintÚlenÚ
ValueErrorÚrangerR   )r   ÚmatrixÚvÚvalsÚis   &&   r   Úset_display_matrixÚVideoStream.set_display_matrixX   sp   € ð Š>Ø',ˆDÔ$Ùá &Ó'¡˜1”�A–¡ˆÐ'Üˆt‹9˜Œ>ÜÐJÓKÐKä�q–ˆAØ&*¥gˆD× Ñ  Ó#ñ à#'ˆÖ ùò (s   ’A3c                óÒ   € \         P                  ! V P                  \        V4      ) 4       \         P                  ! V P                  \        V4      \        V4      4       RV n        R# )a@  Set the container display matrix from a rotation and optional flips.

``degrees`` is a counter-clockwise rotation (matching the value read back
from :attr:`VideoFrame.rotation`); ``hflip`` / ``vflip`` mirror after it.
Together these express all eight EXIF orientations. Must be called before
the first frame is encoded.
TN)r1   Úav_display_rotation_setrR   ÚfloatÚav_display_matrix_flipÚboolrB   )r   ÚdegreesÚhflipÚvflips   &&&&r   Úset_display_rotationÚ VideoStream.set_display_rotationk   sH   € ô 	×#Ò# D×$8Ñ$8¼5À»>¸/ÔJÜ×"Ò" 4×#7Ñ#7¼¸e»ÄdÈ5ÃkÔRØ#'ˆÖ r   c                óh   € \        \        P                  ! V P                  P                  4      4      # )z¹
The average frame rate of this video stream.

This is calculated when the file is opened by looking at the first
few frames and averaging their rate.

:type: fractions.Fraction | None
)r   rG   rJ   r5   rA   r   s   &r   Úaverage_rateÚVideoStream.average_ratey   s"   € ô &¤f§n¢n°T·X±X×5LÑ5LÓ&MÓNÐNr   c                óh   € \        \        P                  ! V P                  P                  4      4      # )zâ
The base frame rate of this stream.

This is calculated as the lowest framerate at which the timestamps of
frames can be represented accurately. See :ffmpeg:`AVStream.r_frame_rate`
for more.

:type: fractions.Fraction | None
)r   rG   rJ   r5   Úr_frame_rater   s   &r   Ú	base_rateÚVideoStream.base_rate…   s"   € ô &¤f§n¢n°T·X±X×5JÑ5JÓ&KÓLÐLr   c                ó¼   € \         P                  ! \        P                  V P                  \        P                  4      p\        \        P                  ! V4      4      # )zÃThe guessed frame rate of this stream.

This is a wrapper around :ffmpeg:`av_guess_frame_rate`, and uses multiple
heuristics to decide what is "the" frame rate.

:type: fractions.Fraction | None
)r1   Úav_guess_frame_raterG   rO   r5   r   rJ   )r   Úvals   & r   Úguessed_rateÚVideoStream.guessed_rate’   s=   € ô "×5Ò5Ü�K‰K˜Ÿ™¤6§;¡;ó
ˆô &¤f§n¢n°SÓ&9Ó:Ð:r   c                óÈ   € \         P                  ! V P                  P                  V P                  \        P
                  4      p\        \        P                  ! V4      4      # )zäThe guessed sample aspect ratio (SAR) of this stream.

This is a wrapper around :ffmpeg:`av_guess_sample_aspect_ratio`, and uses multiple
heuristics to decide what is "the" sample aspect ratio.

:type: fractions.Fraction | None
)r1   Úav_guess_sample_aspect_ratioÚ	containerr5   rG   rO   r   rJ   )r   Úsars   & r   Úsample_aspect_ratioÚVideoStream.sample_aspect_ratio    sC   € ô "×>Ò>Ø�N‰N×Ñ §¡¬&¯+©+ó
ˆô &¤f§n¢n°SÓ&9Ó:Ð:r   c                óð  € \         P                  ! \        P                  4      p\        P                  ! \         P
                  ! VP                  4      \         P
                  ! VP                  4      V P                  P                  V P                  P                  ,          V P                  P                  V P                  P                  ,          R4       \        \         P
                  ! V4      4      # )z¤The guessed display aspect ratio (DAR) of this stream.

This is calculated from :meth:`.VideoStream.guessed_sample_aspect_ratio`.

:type: fractions.Fraction | None
i   )rG   Údeclarer1   Ú
AVRationalÚ	av_reducerJ   ÚnumÚdenr   r   r{   r   r   )r   Údars   & r   Údisplay_aspect_ratioÚ VideoStream.display_aspect_ratio®   s—   € ô �nŠnœSŸ^™^Ó,ˆÜ�ŠÜ�NŠN˜3Ÿ7™7Ó#Ü�NŠN˜3Ÿ7™7Ó#Ø�K‰K×Ñ × 8Ñ 8× <Ñ <Õ<Ø�K‰K×Ñ ×!9Ñ!9×!=Ñ!=Õ=Øô	
ô &¤f§n¢n°SÓ&9Ó:Ð:r   )rB   r?   )FF)r%   Ú
__module__Ú__qualname__Ú__firstlineno__r   r'   rG   Úccallr3   r<   Úcfuncr@   rC   r_   ri   Úpropertyrl   rp   ru   r{   r„   Ú__static_attributes__Ú__classdictcell__)r,   s   @r   r   r      së   ø‡ € ò
ò	1ð ‡\�\÷ñ ó ðð  ‡\�\÷	1ñ 	1ó ð	1ð ‡\�\ñ)ó ð)ð ‡\�\ñ1ó ð1ò(ô&(ð ñ	Oó ð	Oð ñ
Mó ð
Mð ñ;ó ð;ð ñ;ó ð;ð ñ;ó ö;r   r   )rG   Úcython.cimportsr   r1   Úcython.cimports.av.packetr   Úcython.cimports.av.streamr   Úcython.cimports.av.utilsr   Úcython.cimports.av.video.framer	   Úcython.cimports.libc.stdintr
   Úcython.cimports.libc.stringr   ÚfinalÚcclassr   © r   r   Ú<module>r˜      sK   ðÛ Ý (Ý ,Ý ,Ý ;Ý 5Ý /Ý .ð ‡�Ø‡�ôr;�&ó r;ó ó òr;r   