+
    ¨úÎj  ã                   óŽ  € ^ RI t ^ RI Ht ] P                  ! ]]! 4       4      t] P                  R R l4       t] P                  ] P                  ! ]	P                  RR7      R R l4       4       t] P                  ] P                   ! R	 R
4      4       4       t] P                  ] P                   ! R R4      4       4       t]! 4       t] P                  ! ] P$                  ] P&                  ]	P(                  ,          ,          ] P*                  4      t ]	P/                  ]4      t]'       g   R# ]P1                  ]P2                  4       K9  )é    N)Úuintc          	      ój   € V ^8„  d   QhR\         P                  R\        R\        R\        R,          /# )é   Úc_formatÚwidthÚheightÚreturnN)ÚlibÚAVPixelFormatÚcuintÚVideoFormat)Úformats   "ÚI/opt/data/cache/scratch/pip-target-_o6w5emm/lib/python/av/video/format.pyÚ__annotate__r      s7   € ÷ ñ Ü×ÑðÜ(-ðÜ7<ðä�4Õñó    c                 ó”   € V \         P                  8X  d   R # \        P                  \        \        4      pVP                  WV4       V# ©N)r
   ÚAV_PIX_FMT_NONEr   Ú__new__Ú_cinit_bypass_sentinelÚ_init)r   r   r   r   s   &&& r   Úget_video_formatr      s;   € ð ”3×&Ñ&Ô&Ùä%×-Ñ-¬kÔ;QÓR€FØ
‡L�L� &Ô)Ø€Mr   F)Úcheckc                óX   € V ^8„  d   QhR\         P                  R\        P                  /# )r   Únamer	   )ÚcythonÚp_const_charr
   r   )r   s   "r   r   r      s&   € ÷ ñ ”f×)Ñ)ð ¬c×.?Ñ.?ñ r   c                óx   € \         P                  V 4      pV\         P                  8X  d   \        RV : 24      hV# )z3Wrapper for lib.av_get_pix_fmt with error checking.znot a pixel format: )r
   Úav_get_pix_fmtr   Ú
ValueError)r   Úpix_fmts   & r   Úget_pix_fmtr"      s:   € ô
 "%×!3Ñ!3°DÓ!9€GØ”#×%Ñ%Ô%ÜÐ/°©xÐ8Ó9Ð9Ø€Nr   c                   ór  a € ] tR t^t o RtRR lt]P                  V 3R lR l4       tR 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 4       t]R 4       t]R 4       t]P,                  RV 3R lR ll4       t]P,                  RV 3R lR ll4       tRtV tR# )r   z=

>>> format = VideoFormat('rgb24')
>>> format.name
'rgb24'

c                óH  € V\         J d   R # \        V\        4      '       dc   \        P                  ! \        V4      pT P                  VP                  T;'       g    VP                  T;'       g    VP                  4       R # \        V4      pV P                  WRV4       R # r   )
r   Ú
isinstancer   r   Úcastr   r!   r   r   r"   )Úselfr   r   r   Úotherr!   s   &&&&  r   Ú	__cinit__ÚVideoFormat.__cinit__)   sr   € ØÔ)Ó)Ùä�dœK×(Ò(Ü!'§¢¬[¸$Ó!?ˆEØ�J‰J�u—}‘} e×&:Ð&:¨u¯{©{¸F×<RÐ<RÀeÇlÁlÔSÙä%0°Ó%6ˆØ�
‰
�7 6Ö*r   c                óZ   <€ V ^8„  d   QhRS[ P                  RS[RS[RS[P                  /# )r   r!   r   r   r	   )r
   r   r   r   Úvoid)r   Ú__classdict__s   "€r   r   ÚVideoFormat.__annotate__6   s7   ø€ ÷ ñ Ù×(Ñ(ðÙ16ðÙ@Eðá	�‰ñr   c                ó^   € Wn         \        P                  V4      V n        W n        W0n        R # r   )r!   r
   Úav_pix_fmt_desc_getÚptrr   r   )r'   r!   r   r   s   &&&&r   r   ÚVideoFormat._init5   s%   € ð ŒÜ×*Ñ*¨7Ó3ˆŒØŒ
ØŽr   c           	     ó  € V P                   '       g   V P                  '       dB   R V P                  P                   RV P                   RV P                    RV P                   R2	# R V P                  P                   RV P                   R2# )z<av.Ú z, ÚxÚ>)r   r   Ú	__class__Ú__name__r   ©r'   s   &r   Ú__repr__ÚVideoFormat.__repr__>   sp   € Ø�:�:ˆ:˜ŸŸ˜Ø˜$Ÿ.™.×1Ñ1Ð2°!°D·I±I°;¸bÀÇÁÀÈAÈdÏkÉkÈ]ÐZ[Ð\Ð\à˜$Ÿ.™.×1Ñ1Ð2°!°D·I±I°;¸aÐ@Ð@r   c                ó,   € \        V P                  4      # r   )Úintr!   r9   s   &r   Ú__int__ÚVideoFormat.__int__D   s   € Ü�4—<‘<Ó Ð r   c                ó`   € \         P                  ! \        V P                  P                  4      # )z#Canonical name of the pixel format.)r   r&   Ústrr1   r   r9   s   &r   r   ÚVideoFormat.nameG   s   € ô �{Š{œ3 §¡§¡Ó.Ð.r   c                óÜ   a € \         ;QJ d4    . V 3R  l\        S P                  P                  4       4       F  NK  	  5# ! V 3R  l\        S P                  P                  4       4       4      # )c              3   ó<   <"  € T F  p\        SV4      x € K  	  R # 5ir   )ÚVideoFormatComponent)Ú.0Úir'   s   & €r   Ú	<genexpr>Ú)VideoFormat.components.<locals>.<genexpr>N   s    øé € ð 
Ù3P¨aÔ   q×)Ð)Ó3Pùs   ƒ)ÚtupleÚranger1   Únb_componentsr9   s   fr   Ú
componentsÚVideoFormat.componentsL   sS   ø€ çŒuô 
Ü38¸¿¹×9OÑ9OÔ3Pó
�uð 	
ˆuô 
Ü38¸¿¹×9OÑ9OÔ3Pó
ó 
ð 	
r   c                ó@   € \         P                  V P                  4      # r   )r
   Úav_get_bits_per_pixelr1   r9   s   &r   Úbits_per_pixelÚVideoFormat.bits_per_pixelR   s   € ä×(Ñ(¨¯©Ó2Ð2r   c                ó@   € \         P                  V P                  4      # r   )r
   Úav_get_padded_bits_per_pixelr1   r9   s   &r   Úpadded_bits_per_pixelÚ!VideoFormat.padded_bits_per_pixelV   s   € ä×/Ñ/°·±Ó9Ð9r   c                ój   € \        V P                  P                  \        P                  ,          4      # )zPixel format is big-endian.)Úboolr1   Úflagsr
   ÚAV_PIX_FMT_FLAG_BEr9   s   &r   Úis_big_endianÚVideoFormat.is_big_endianZ   s"   € ô �D—H‘H—N‘N¤S×%;Ñ%;Õ;Ó<Ð<r   c                ój   € \        V P                  P                  \        P                  ,          4      # )zJPixel format has a palette in data[1], values are indexes in this palette.)rX   r1   rY   r
   ÚAV_PIX_FMT_FLAG_PALr9   s   &r   Úhas_paletteÚVideoFormat.has_palette_   ó"   € ô �D—H‘H—N‘N¤S×%<Ñ%<Õ<Ó=Ð=r   c                ój   € \        V P                  P                  \        P                  ,          4      # )z9All values of a component are bit-wise packed end to end.)rX   r1   rY   r
   ÚAV_PIX_FMT_FLAG_BITSTREAMr9   s   &r   Úis_bit_streamÚVideoFormat.is_bit_streamd   s"   € ô �D—H‘H—N‘N¤S×%BÑ%BÕBÓCÐCr   c                ój   € \        V P                  P                  \        P                  ,          4      # )z<At least one pixel component is not in the first data plane.)rX   r1   rY   r
   ÚAV_PIX_FMT_FLAG_PLANARr9   s   &r   Ú	is_planarÚVideoFormat.is_planari   s"   € ô �D—H‘H—N‘N¤S×%?Ñ%?Õ?Ó@Ð@r   c                ój   € \        V P                  P                  \        P                  ,          4      # )zFThe pixel format contains RGB-like data (as opposed to YUV/grayscale).)rX   r1   rY   r
   ÚAV_PIX_FMT_FLAG_RGBr9   s   &r   Úis_rgbÚVideoFormat.is_rgbn   ra   r   c                ój   € \        V P                  P                  \        P                  ,          4      # )z%The pixel format contains Bayer data.)rX   r1   rY   r
   ÚAV_PIX_FMT_FLAG_BAYERr9   s   &r   Úis_bayerÚVideoFormat.is_bayers   s"   € ô �D—H‘H—N‘N¤S×%>Ñ%>Õ>Ó?Ð?r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# )r   Ú
luma_width©r   r=   )r   r-   s   "€r   r   r.   y   s   ø€ ÷ 	Oñ 	O¡v§z¡zñ 	Or   c                ó€   € T;'       g    V P                   pV'       d    V) V P                  P                  ,	          ) # ^ # )zœchroma_width(luma_width=0)

Width of a chroma plane relative to a luma plane.

:param int luma_width: Width of the luma plane; defaults to ``self.width``.

)r   r1   Úlog2_chroma_w)r'   rs   s   &&r   Úchroma_widthÚVideoFormat.chroma_widthx   s6   € ð  ×-Ð- 4§:¡:ˆ
ß=G�:�+ $§(¡(×"8Ñ"8Õ8Ð9ÐNÈQÐNr   c                ó4   <€ V ^8„  d   QhRS[ P                  /# )r   Úluma_heightrt   )r   r-   s   "€r   r   r.   …   s   ø€ ÷ 	Qñ 	Q©¯©ñ 	Qr   c                ó€   € T;'       g    V P                   pV'       d    V) V P                  P                  ,	          ) # ^ # )z¢chroma_height(luma_height=0)

Height of a chroma plane relative to a luma plane.

:param int luma_height: Height of the luma plane; defaults to ``self.height``.

)r   r1   Úlog2_chroma_h)r'   rz   s   &&r   Úchroma_heightÚVideoFormat.chroma_height„   s6   € ð "×0Ð0 T§[¡[ˆß>I�;�, 4§8¡8×#9Ñ#9Õ9Ð:ÐPÈqÐPr   )r   r!   r1   r   N)r   r   )r   )r8   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r)   r   Úcfuncr   r:   r>   Úpropertyr   rM   rQ   rU   r[   r_   rd   rh   rl   rp   Úccallrw   r}   Ú__static_attributes__Ú__classdictcell__©r-   s   @r   r   r      s@  ø‡ € ñô
+ð ‡\�\÷ó ðòAò!ð ñ/ó ð/ð ñ
ó ð
ð
 ñ3ó ð3ð ñ:ó ð:ð ñ=ó ð=ð ñ>ó ð>ð ñDó ðDð ñAó ðAð ñ>ó ð>ð ñ@ó ð@ð ‡\�\÷	Oñ 	Oó ð	Oð ‡\�\÷	Qñ 	Qó ö	Qr   r   c                   ó¢   a € ] tR t^‘t o V 3R lR l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# )rE   c                ó:   <€ V ^8„  d   QhRS[ RS[P                  /# )r   r   Úindex)r   r   r   )r   r-   s   "€r   r   Ú!VideoFormatComponent.__annotate__”   s   ø€ ÷ :ñ :¡ð :±F·K±Kñ :r   c                ó  € W!P                   P                  8¼  d*   \        R V RV: RVP                   P                   24      hWn        W n        \
        P                  ! VP                   P                  V,          4      V n         R# )zcomponent index z out of range for z, which has N)r1   rL   r    r   r‹   r   ÚaddressÚcomp)r'   r   r‹   s   &&&r   r)   ÚVideoFormatComponent.__cinit__”   sm   € Ø—J‘J×,Ñ,Ô,ÜØ" 5 'Ð);¸F¹:À\Ø—:‘:×+Ñ+Ð,ð.óð ð ŒØŒ
Ü—>’> &§*¡*§/¡/°%Õ"8Ó9ˆŽr   c                ó.   € V P                   P                  # )z5The index of the plane which contains this component.)r1   Úplaner9   s   &r   r’   ÚVideoFormatComponent.planež   ó   € ð �x‰x�~‰~Ðr   c                ó.   € V P                   P                  # )z Number of bits in the component.)r1   Údepthr9   s   &r   ÚbitsÚVideoFormatComponent.bits£   r”   r   c                óú   € V P                   ^8H  ;'       d,    V P                  P                  P                  ^8H  ;'       g;    V P                   ^8H  ;'       d$    V P                  P                  P                  ^8H  # )z#Is this component an alpha channel?)r‹   r   r1   rL   r9   s   &r   Úis_alphaÚVideoFormatComponent.is_alpha¨   s_   € ð —
‘
˜a‘×FÐF D§K¡K§O¡O×$AÑ$AÀQÑ$F÷ 
ð 
Ø�J‰J˜!‰O×BÐB §¡§¡× =Ñ =ÀÑ Bð	
r   c                ó  € V P                   ^ 8H  ;'       dr    V P                  P                  P                  ^8H  ;'       gG    V P                  P                  P                  ^8H  ;'       g    V P                  P                  '       * # )z!Is this component a luma channel?)r‹   r   r1   rL   rl   r9   s   &r   Úis_lumaÚVideoFormatComponent.is_luma¯   sn   € ð �z‰z˜Q‰÷ 
ð 
Ø�K‰K�O‰O×)Ñ)¨QÑ.÷ &ð &Ø�{‰{�‰×,Ñ,°Ñ1÷&ð &à—;‘;×%Ñ%Ô%ð	
r   c                óî   € V P                   ^8H  ;'       g    V P                   ^8H  ;'       dI    V P                  P                  P                  ;'       g!    V P                  P                  P                  # )z#Is this component a chroma channel?)r‹   r   r1   rv   r|   r9   s   &r   Ú	is_chromaÚVideoFormatComponent.is_chroma¸   sU   € ð —
‘
˜a‘×2Ð2 4§:¡:°¡?÷ 
ð 
Ø�K‰K�O‰O×)Ñ)×JÐJ¨T¯[©[¯_©_×-JÑ-Jð	
r   c                ó†   € V P                   '       d   V P                  P                  4       # V P                  P                  # )zaThe width of this component's plane.

Requires the parent :class:`VideoFormat` to have a width.

)r    r   rw   r   r9   s   &r   r   ÚVideoFormatComponent.width¿   s.   € ð .2¯^¯^¨^ˆt�{‰{×'Ñ'Ó)ÐRÀÇÁ×ARÑARÐRr   c                ó†   € V P                   '       d   V P                  P                  4       # V P                  P                  # )zcThe height of this component's plane.

Requires the parent :class:`VideoFormat` to have a height.

)r    r   r}   r   r9   s   &r   r   ÚVideoFormatComponent.heightÈ   s.   € ð /3¯n¯n¨nˆt�{‰{×(Ñ(Ó*ÐTÀ$Ç+Á+×BTÑBTÐTr   )r   r‹   r1   N)r8   r   r€   r�   r)   r„   r’   r—   rš   r�   r    r   r   r†   r‡   rˆ   s   @r   rE   rE   ‘   sŸ   ø‡ € ÷:ð :ð ñó ðð ñó ðð ñ
ó ð
ð ñ
ó ð
ð ñ
ó ð
ð ñSó ðSð ñUó öUr   rE   )r   r   r   ÚdeclareÚobjectr   rƒ   r   Ú	exceptvalr
   r   r"   ÚfinalÚcclassr   rE   ÚsetÚnamesÚpointerÚconstÚAVPixFmtDescriptorÚNULLÚdescÚav_pix_fmt_desc_nextÚaddr   © r   r   Ú<module>rµ      s$  ðÛ Ý  àŸš¨±³Ó9Ð ð ‡�ôó ðð ‡�Ø×Ò�#×%Ñ%¨UÔ3ôó 4ó ðð ‡�Ø‡�÷nQð nQó ó ðnQðb ‡�Ø‡�÷<Uð <Uó ó ð<Uñ~ 	‹€Ø‡~‚~�f—n‘n V§\¡\°#×2HÑ2HÕ%IÕJÈFÏKÉKÓX€Ø
Ø×#Ñ# DÓ)€DßÙØ	‡I�Iˆd�i‰iÖr   