+
    k'Ïj   ã                   ó€   € ^ RI t ^ RIHt ^ RIHt ^ RIHt ^ RIHtH	t	 ^ RI
Ht ] P                   ! R R4      4       tR# )	é    N)Ú	err_check)Úopaque_container)Úfrom_avrational)Úavdict_to_dictÚto_avrational©ÚSideDataContainerc                   ór  a € ] tR t^t o RtR tR tR t]P                  RV 3R lR ll4       t
]P                  V 3R lR	 l4       t]P                  V 3R
 lR l4       t]R 4       t]P                  R 4       t]R 4       t]P                  R 4       t]R 4       t]P                  R 4       t]]P$                  ! R4      R 4       4       t]R 4       t]P                  R 4       t]R 4       t]R 4       t]P                  R 4       t]R 4       t]R 4       tR t]R 4       t]P                  R 4       tRtV tR# ) ÚFramez
Base class for audio and video frames.

See also :class:`~av.audio.frame.AudioFrame` and :class:`~av.video.frame.VideoFrame`.
c                ó¢   € \         P                  ;_uu_ 4        \        P                  4       V n        R R R 4       R #   + '       g   i     R # ; i©N)ÚcythonÚnogilÚlibÚav_frame_allocÚptr)ÚselfÚargsÚkwargss   &*,ÚB/opt/data/cache/scratch/pip-target-lhm_ju4v/lib/python/av/frame.pyÚ	__cinit__ÚFrame.__cinit__   s'   € Ü�\�\‹\Ü×)Ñ)Ó+ˆDŒH÷ �\�\Š\ús	   ™=½A	c                óÖ   € \         P                  ;_uu_ 4        \        P                  \         P                  ! V P
                  4      4       R R R 4       R #   + '       g   i     R # ; ir   )r   r   r   Úav_frame_freeÚaddressr   ©r   s   &r   Ú__dealloc__ÚFrame.__dealloc__   s2   € Ü�\�\‹\Ü×ÑœfŸnšn¨T¯X©XÓ6Ô7÷ �\�\Š\ús   ™4AÁA(	c                ój   € R V P                   P                   RV P                   R\        V 4      R R2# )z<av.z pts=z at 0xÚxÚ>)Ú	__class__Ú__name__ÚptsÚidr   s   &r   Ú__repr__ÚFrame.__repr__   s2   € Ø�d—n‘n×-Ñ-Ð.¨e°D·H±H°:¸VÄBÀtÃHÈQÀ<ÈqÐQÐQó    Tc                óT   <€ V ^8„  d   QhRS[ RS[P                  RS[P                  /# )é   ÚsourceÚdata_layoutÚreturn)r   r   ÚbintÚvoid)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚFrame.__annotate__!   s-   ø€ ÷ 6ñ 6Ùð6Ù*0¯+©+ð6á	�‰ñ6r(   c                ó¸  € VP                   V n         \        P                  V P                  VP                  4       V'       d—   VP                  P                  V P                  n        VP                  P
                  V P                  n        VP                  P                  V P                  n        VP                  P                  V P                  n        R # R # r   )Ú
_time_baser   Úav_frame_copy_propsr   r0   ÚwidthÚheightÚ	ch_layout)r   r+   r,   s   &&&r   Ú_copy_internal_attributesÚFrame._copy_internal_attributes    s†   € ð
 !×+Ñ+ˆŒÜ×Ñ §¡¨&¯*©*Ô5ßà$Ÿj™j×/Ñ/ˆD�H‰HŒOØ#ŸZ™Z×-Ñ-ˆD�H‰HŒNØ$Ÿj™j×/Ñ/ˆD�H‰HŒOØ!'§¡×!5Ñ!5ˆD�H‰HÖñ r(   c                ó4   <€ V ^8„  d   QhRS[ P                  /# )r*   r-   )r   r/   )r0   r1   s   "€r   r2   r3   /   s   ø€ ÷ ñ ¡v§{¡{ñ r(   c                ó   € R # r   © r   s   &r   Ú_init_user_attributesÚFrame._init_user_attributes.   s   € ár(   c                óN   <€ V ^8„  d   QhRS[ P                  RS[P                  /# )r*   Údstr-   )r   Ú
AVRationalr   r/   )r0   r1   s   "€r   r2   r3   3   s#   ø€ ÷ ñ ¡§¡ð ±6·;±;ñ r(   c                óÄ  € VP                   '       g   \        R 4      hV P                  P                   '       g	   Wn        R# V P                  P                   VP                   8X  d(   V P                  P                  VP                  8X  d   R# V P                  P
                  \        P                  8w  dE   \        P                  V P                  P
                  V P                  V4      V P                  n        V P                  P                  ^ 8w  dE   \        P                  V P                  P                  V P                  V4      V P                  n	        Wn        R# )zCannot rebase to zero time.N)
ÚnumÚ
ValueErrorr5   Údenr   r$   r   ÚAV_NOPTS_VALUEÚav_rescale_qÚduration)r   rB   s   &&r   Ú_rebase_timeÚFrame._rebase_time2   sÞ   € à�w�wˆwÜÐ:Ó;Ð;à�‰×"×"Ð"Ø!ŒOÙà�?‰?×Ñ #§'¡'Ô)¨d¯o©o×.AÑ.AÀSÇWÁWÔ.LÙà�8‰8�<‰<œ3×-Ñ-Ô-Ü×+Ñ+¨D¯H©H¯L©L¸$¿/¹/È3ÓOˆD�H‰HŒLà�8‰8×Ñ Ô!Ü #× 0Ñ 0Ø—‘×!Ñ! 4§?¡?°Có!ˆD�H‰HÔð Žr(   c                ó„   € V P                   P                  \        P                  8X  d   R# V P                   P                  # )a,  
The decoding timestamp copied from the :class:`~av.packet.Packet` that triggered returning this frame in :attr:`time_base` units.

(if frame threading isn't used) This is also the Presentation time of this frame calculated from only :attr:`.Packet.dts` values without pts values.

:type: int | None
N)r   Úpkt_dtsr   rH   r   s   &r   ÚdtsÚ	Frame.dtsH   s/   € ð �8‰8×Ñœs×1Ñ1Ô1ÙØ�x‰x×ÑÐr(   c                óp   € Vf"   \         P                  V P                  n        R # WP                  n        R # r   )r   rH   r   rN   ©r   Úvalues   &&r   rO   rP   U   s#   € àŠ=Ü"×1Ñ1ˆD�H‰HÖà$�H‰HÖr(   c                ó„   € V P                   P                  \        P                  8X  d   R# V P                   P                  # )zœ
The presentation timestamp in :attr:`time_base` units for this frame.

This is the time at which the frame should be shown to the user.

:type: int | None
N)r   r$   r   rH   r   s   &r   r$   Ú	Frame.pts\   s+   € ð �8‰8�<‰<œ3×-Ñ-Ô-ÙØ�x‰x�|‰|Ðr(   c                óp   € Vf"   \         P                  V P                  n        R # WP                  n        R # r   )r   rH   r   r$   rR   s   &&r   r$   rU   i   s!   € àŠ=Ü×-Ñ-ˆD�H‰HŽLà �H‰HŽLr(   c                ó.   € V P                   P                  # )zB
The duration of the frame in :attr:`time_base` units

:type: int
©r   rJ   r   s   &r   rJ   ÚFrame.durationp   s   € ð �x‰x× Ñ Ð r(   c                ó&   € WP                   n        R # r   rX   rR   s   &&r   rJ   rY   y   s   € à!�‰Ör(   c                ó  € V P                   P                  \        P                  8X  d   R# \	        V P                   P                  4      V P
                  P                  ,          V P
                  P                  ,          # )z‰
The presentation time in seconds for this frame.

This is the time at which the frame should be shown to the user.

:type: float | None
N)r   r$   r   rH   Úfloatr5   rE   rG   r   s   &r   ÚtimeÚ
Frame.time}   sN   € ð �8‰8�<‰<œ3×-Ñ-Ô-ÙÜ�T—X‘X—\‘\Ó" T§_¡_×%8Ñ%8Õ8¸4¿?¹?×;NÑ;NÕNÐNr(   c                óh   € V P                   P                  '       d   \        V P                   4      # R# )z`
The unit of time (in fractional seconds) in which timestamps are expressed.

:type: AVRational
N)r5   rE   r   r   s   &r   Ú	time_baseÚFrame.time_base‹   s(   € ð �?‰?××ÐÜ" 4§?¡?Ó3Ð3ñ r(   c                óZ   € \        V\        P                  ! V P                  4      4       R # r   )r   r   r   r5   rR   s   &&r   r`   ra   •   s   € ä�eœVŸ^š^¨D¯O©OÓ<Ö=r(   c                ó¬   € V P                   P                  ^ 8g  ;'       g5    \        V P                   P                  \        P
                  ,          4      # )z%
Is this frame corrupt?

:type: bool
)r   Údecode_error_flagsÚboolÚflagsr   ÚAV_FRAME_FLAG_CORRUPTr   s   &r   Ú
is_corruptÚFrame.is_corrupt™   sB   € ð �x‰x×*Ñ*¨aÑ/÷ 
ð 
´4Ø�H‰H�N‰NœS×6Ñ6Õ6ó4
ð 	
r(   c                ój   € \        V P                  P                  \        P                  ,          4      # )zŸIs this frame a key frame?

Reads the ``AV_FRAME_FLAG_KEY`` bit of :ffmpeg:`AVFrame.flags`. FFmpeg
removed the ``AVFrame.key_frame`` field this used to wrap.

)re   r   rf   r   ÚAV_FRAME_FLAG_KEYr   s   &r   Ú	key_frameÚFrame.key_frame¤   s"   € ô �D—H‘H—N‘N¤S×%:Ñ%:Õ:Ó;Ð;r(   c                óà   € V'       d4   V P                   ;P                  \        P                  ,          un        R # V P                   ;P                  \        P                  ( ,          un        R # r   )r   rf   r   rk   ©r   Úvs   &&r   rl   rm   ®   s:   € ÷ Ø�H‰H�NŠNœc×3Ñ3Õ3�Nà�H‰H�NŠNœs×4Ñ4Ð4Õ4�Nr(   c                ó   € \        V 4      # r   r   r   s   &r   Ú	side_dataÚFrame.side_data¶   s   € ä  Ó&Ð&r(   c                ó@   € \        V P                  P                  4      # )z)Metadata attached to the frame by FFmpeg.)r   r   Úmetadatar   s   &r   ru   ÚFrame.metadataº   s   € ô ˜dŸh™h×/Ñ/Ó0Ð0r(   c                óZ   € \         P                  V P                  4      p\        V4       R# )z�
Ensures that the frame data is writable. Copy the data to new buffer if it is not.
This is a wrapper around :ffmpeg:`av_frame_make_writable`.
N)r   Úav_frame_make_writabler   r   )r   Úrets   & r   Úmake_writableÚFrame.make_writable¿   s   € ô
 ×4Ñ4°T·X±XÓ>ˆÜ�#Žr(   c                ó  € V P                   P                  \        P                  JdX   \        P
                  ! \        P                  ! \        P                  V P                   P                  P                  4      4      # R # r   )	r   Ú
opaque_refr   ÚNULLr   ÚgetÚcastÚp_charÚdatar   s   &r   ÚopaqueÚFrame.opaqueÇ   sR   € à�8‰8×Ñ¤f§k¡kÓ1Ü#×'Ò'Ü—’œFŸM™M¨4¯8©8×+>Ñ+>×+CÑ+CÓDóð ñ 2r(   c                óÖ   € \         P                  \        P                  ! V P                  P
                  4      4       Ve(   \        P                  ! V4      V P                  n        R # R # r   )r   Úav_buffer_unrefr   r   r   r}   r   Úaddro   s   &&r   rƒ   r„   Î   sD   € ä×ÑœFŸNšN¨4¯8©8×+>Ñ+>Ó?Ô@àŠ=Ü"2×"6Ò"6°qÓ"9ˆD�H‰HÖñ r(   )r5   r   N)T)r#   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r&   r   Úcfuncr:   r?   rK   ÚpropertyrO   Úsetterr$   rJ   Ú	cdivisionr]   r`   rh   rl   rr   ru   rz   rƒ   Ú__static_attributes__Ú__classdictcell__)r1   s   @r   r   r      sÝ  ø‡ € ñò,ò8òRð ‡\�\÷6ñ 6ó ð6ð ‡\�\÷ó ðð ‡\�\÷ó ðð* ñ
 ó ð
 ð 	‡Z�Zñ%ó ð%ð ñ
ó ð
ð 	‡Z�Zñ!ó ð!ð ñ!ó ð!ð ‡_�_ñ"ó ð"ð Ø×Ò�dÓñ
Oó ó ð
Oð ñ4ó ð4ð ×Ññ>ó ð>ð ñ
ó ð
ð ñ<ó ð<ð ×Ññ5ó ð5ð ñ'ó ð'ð ñ1ó ð1òð ñó ðð ‡]�]ñ:ó ö:r(   r   )r   Úcython.cimports.av.errorr   Úcython.cimports.av.opaquer   Úcython.cimports.av.rationalr   Úcython.cimports.av.utilsr   r   Úav.sidedata.sidedatar	   Úcclassr   r>   r(   r   Ú<module>r˜      s;   ðÛ Ý .Ý 6Ý 7÷õ
 3ð ‡�÷E:ð E:ó òE:r(   