+
    8&Ïj  ã                   óö   € ^ RI Ht ^ RIt^ RIHt ^ RIHt ^ RIH	t	  ! R R]4      t
]P                  ]P                   ! R R	]4      4       4       t]P                  ]P                   ! R
 R4      4       4       tR# )é    )ÚIntEnumN)Úlibav)ÚSideData)Úuint8_tc                   óv   € ] tR t^	t]P
                  t]P                  t]P                  t
]P                  tRtR# )ÚVideoEncParamsType© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚlibÚAV_VIDEO_ENC_PARAMS_NONEÚNONEÚAV_VIDEO_ENC_PARAMS_VP9ÚVP9ÚAV_VIDEO_ENC_PARAMS_H264ÚH264ÚAV_VIDEO_ENC_PARAMS_MPEG2ÚMPEG2Ú__static_attributes__r	   ó    ÚO/opt/data/cache/scratch/pip-target-elquwxdg/lib/python/av/sidedata/encparams.pyr   r   	   s.   † Ø×'Ñ'€DØ
×
%Ñ
%€CØ×'Ñ'€DØ×)Ñ)„Er   r   c                   ó’   a € ] tR t^t o R t]R 4       t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       tR tR	 tR
tV tR# )ÚVideoEncParamsc                óV   € R V P                    RV P                   RV P                   R2# )z'<av.sidedata.VideoEncParams, nb_blocks=z, codec_type=z, qp=Ú>)Ú	nb_blocksÚ
codec_typeÚqp©Úselfs   &r   Ú__repr__ÚVideoEncParams.__repr__   s4   € Ø8¸¿¹Ð8HÈÐVZ×VeÑVeÐUfÐfkÐlp×lsÑlsÐktÐtuÐvÐvr   c                ó²   € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      P                  # )z¾
Number of blocks in the array
May be 0, in which case no per-block information is present. In this case
the values of blocks_offset / block_size are unspecified and should not
be accessed.
)ÚcythonÚcastÚpointerr   ÚAVVideoEncParamsÚptrÚdatar   r!   s   &r   r   ÚVideoEncParams.nb_blocks   s6   € ô �{Š{Ü�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó
ç
‰)ð	r   c                ó²   € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      P                  # )z[
Offset in bytes from the beginning of this structure at which the array of blocks starts.
)r&   r'   r(   r   r)   r*   r+   Úblocks_offsetr!   s   &r   r.   ÚVideoEncParams.blocks_offset"   s6   € ô
 �{Š{Ü�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó
ç
‰-ð	r   c                ó²   € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      P                  # )zH
Size of each block in bytes. May not match sizeof(AVVideoBlockParams).
)r&   r'   r(   r   r)   r*   r+   Ú
block_sizer!   s   &r   r1   ÚVideoEncParams.block_size+   s6   € ô
 �{Š{Ü�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó
ç
‰*ð	r   c                ó  € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      P                  p\        \         P                  ! \         P                  V4      4      # )z8
Type of the parameters (the codec they are used with).
)
r&   r'   r(   r   r)   r*   r+   Útyper   Úint)r"   Úts   & r   r   ÚVideoEncParams.codec_type4   sR   € ô
 '-§k¢kÜ�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó'
ç
‰$ð 	
ô "¤&§+¢+¬f¯j©j¸!Ó"<Ó=Ð=r   c                ó²   € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      P                  # )zà
Base quantisation parameter for the frame. The final quantiser for a
given block in a given plane is obtained from this value, possibly
combined with `delta_qp` and the per-block delta in a manner
documented for each type.
)r&   r'   r(   r   r)   r*   r+   r    r!   s   &r   r    ÚVideoEncParams.qp>   s2   € ô �{Š{œ6Ÿ>™>¬#×*>Ñ*>Õ?ÀÇÁÇÁÓO×RÑRÐRr   c           	     óN  € \         P                  ! \         P                  \        P                  ,          V P
                  P                  4      p\        ^4       UUu. uF5  p\        ^4       Uu. uF  q1P                  V,          V,          NK  	  upNK7  	  upp# u upi u uppi )zƒ
Quantisation parameter offset from the base (per-frame) qp for a given
plane (first index) and AC/DC coefficients (second index).
)	r&   r'   r(   r   r)   r*   r+   ÚrangeÚdelta_qp)r"   ÚpÚiÚjs   &   r   r<   ÚVideoEncParams.delta_qpH   sq   € ô 39·+²+Ü�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó3
ˆô ?DÀA¼hÔG¹h¸¬5°¬8Ó4©8 a—‘˜A•˜q×!Ð!©8Ô4¹hÒGÐGùÒ4ùÓGs   ÁB!Á/"BÂB!ÂB!c                ó\   € V^ 8  g   WP                   8¼  d   \        R4      h\        W4      # )z/
Get the encoding parameters for a given block
ú$Expected idx in range [0, nb_blocks))r   Ú
ValueErrorÚVideoBlockParams)r"   Úidxs   &&r   Úblock_paramsÚVideoEncParams.block_paramsS   s+   € ð
 �Œ7�cŸ^™^Ô+ÜÐCÓDÐDä Ó*Ð*r   c                ó¢  € ^ RI pV P                  P                  P                  ^,           ^,          pV P                  P                  P                  ^,           ^,          pW#,          p\
        P                  ! \
        P                  4      w  rVpV P                  V8w  d   \        R4      h\
        P                  ! \
        P                  \        P                  ,          V P                  P                  4      P                  pV\        P                   P"                  8w  d+   V\        P                   P$                  8w  d   \'        R4      hVP)                  W#3VP*                  R7      p	\-        V4       FU  p\/        W4      p
V
P0                  ^,          pV
P2                  ^,          pV P4                  V
P6                  ,           W—V3&   KW  	  V	# )z„
Convenience method that creates a 2-D map with the quantization parameters per macroblock.
Only for MPEG2 and H264 encoded videos.
Nz:Expected frame size to match number of blocks in side datazExpected MPEG2 or H264)Údtype)ÚnumpyÚframer*   ÚheightÚwidthr&   Údeclarer5   r   ÚRuntimeErrorr'   r(   r   r)   r+   r4   ÚAVVideoEncParamsTyper   r   rC   ÚemptyÚint32r;   rD   Úsrc_yÚsrc_xr    r<   )r"   ÚnpÚmb_hÚmb_wÚnb_mbÚ	block_idxÚxÚyr4   ÚmapÚblocks   &          r   Úqp_mapÚVideoEncParams.qp_map]   sU  € ó
 	à ŸJ™JŸN™N×1Ñ1°BÕ6¸2Õ=ˆØ ŸJ™JŸN™N×0Ñ0°2Õ5¸"Õ<ˆØ �KˆÜ Ÿ.š.¬¯©Ó4‰ˆ	�að �>‰>˜UÔ"ÜØLóð ô *0¯ªÜ�N‰Nœ3×/Ñ/Õ0°$·(±(·-±-ó*
ç
‰$ð 	ð ”C×,Ñ,×FÑFÔFØœ×0Ñ0×IÑIÔIäÐ5Ó6Ð6ð �h‰h˜�|¨2¯8©8ˆhÓ4ˆô ˜užˆIÜ$ TÓ5ˆEØ—‘˜rÕ!ˆAØ—‘˜rÕ!ˆAØŸ™ %§.¡.Õ0ˆC�1�‹Iñ	 &ð ˆ
r   r	   N)r
   r   r   r   r#   Úpropertyr   r.   r1   r   r    r<   rF   r^   r   Ú__classdictcell__©Ú__classdict__s   @r   r   r      s–   ø‡ € òwð ñ	ó ð	ð ñó ðð ñó ðð ñ>ó ð>ð ñSó ðSð ñHó ðHò+÷%ð %r   r   c                   óˆ   a € ] tR t^…t o V 3R lR ltR t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       tR	tV tR
# )rD   c                ó>   <€ V ^8„  d   QhRS[ RS[P                  RR/# )é   Úvideo_enc_paramsrE   ÚreturnN)r   r&   r5   )Úformatrc   s   "€r   Ú__annotate__ÚVideoBlockParams.__annotate__ˆ   s+   ø€ ÷ 
Vñ 
V©ð 
V¹f¿j¹jð 
VÈTñ 
Vr   c                ó¢  € V^ 8  g   W!P                   8¼  d   \        R4      h\        P                  ! \        P                  \
        ,          VP                  P                  4      pVP                  W!P                  ,          ,           p\        P                  ! \        P                  \        P                  ,          W4,           4      V n        R# )r   rB   N)r   rC   r&   r'   r(   r   r*   r+   r.   r1   r   ÚAVVideoBlockParams)r"   rg   rE   ÚbaseÚoffsets   &&&  r   Ú__init__ÚVideoBlockParams.__init__ˆ   sŒ   € Ø�Œ7�c×7Ñ7Ô7ÜÐCÓDÐDä(.¯ªÜ�N‰Nœ7Õ#Ð%5×%9Ñ%9×%>Ñ%>ó)
ˆð ×*Ñ*¨S×3NÑ3NÕ-NÕNð 	ô —;’;œvŸ~™~¬c×.DÑ.DÕEÀtÅ}ÓUˆŽr   c                óŠ   € R V P                    RV P                   RV P                   RV P                   RV P                   R2# )z$<av.sidedata.VideoBlockParams, src=(z, z), size=rZ   z, delta_qp=r   )rT   rS   ÚwÚhr<   r!   s   &r   r#   ÚVideoBlockParams.__repr__”   sb   € Ø5°d·j±j°\ÀÀDÇJÁJÀ<ÈxÐX\×X^ÑX^ÐW_Ð_`Ðae×agÑagÐ`hÐhsÐtx÷  uBñ  uBð  tCð  CDð  Eð  	Er   c                ó.   € V P                   P                  # )z»
Horizontal distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.
)r*   rT   r!   s   &r   rT   ÚVideoBlockParams.src_x—   ó   € ð �x‰x�~‰~Ðr   c                ó.   € V P                   P                  # )z¹
Vertical distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.
)r*   rS   r!   s   &r   rS   ÚVideoBlockParams.src_y    rx   r   c                ó.   € V P                   P                  # )z#
Width of the block in luma pixels
)r*   rs   r!   s   &r   rs   ÚVideoBlockParams.w©   ó   € ð
 �x‰x�z‰zÐr   c                ó.   € V P                   P                  # )z$
Height of the block in luma pixels
)r*   rt   r!   s   &r   rt   ÚVideoBlockParams.h°   r}   r   c                ó.   € V P                   P                  # )ze
Difference between this block's final quantization parameter and the
corresponding per-frame value.
)r*   r<   r!   s   &r   r<   ÚVideoBlockParams.delta_qp·   s   € ð �x‰x× Ñ Ð r   )r*   N)r
   r   r   r   rp   r#   r`   rT   rS   rs   rt   r<   r   ra   rb   s   @r   rD   rD   …   s{   ø‡ € ÷
Vð 
VòEð ñó ðð ñó ðð ñó ðð ñó ðð ñ!ó ö!r   rD   )Úenumr   r&   Úcython.cimportsr   r   Ú$cython.cimports.av.sidedata.sidedatar   Úcython.cimports.libc.stdintr   r   ÚfinalÚcclassr   rD   r	   r   r   Ú<module>rˆ      sx   ðÝ ã Ý (Ý 9Ý /ô*˜ô *ð ‡�Ø‡�ôp�Xó pó ó ðpðf ‡�Ø‡�÷6!ð 6!ó ó ò6!r   