§
    ÜóÉjT  ã                   ó   — d dl Z d dlmZmZ d dlmZmZmZmZ d dl	m
Z
 e j        e j         G d„ d¦  «        ¦   «         ¦   «         Ze j        dde j        d	edz  fd
„¦   «         Ze j         G d„ d¦  «        ¦   «         ZdS )é    N)ÚPyBUF_WRITABLEÚPyBuffer_FillInfo)ÚPyBUF_SIMPLEÚPyBuffer_ReleaseÚPyObject_CheckBufferÚPyObject_GetBuffer)Úmemcpyc                   ó   — e Zd Zd„ Zd„ ZdS )Ú
ByteSourcec                 ó–  — || _         	 || _        t          |¦  «        | _        d S # t          $ r Y nw xY wt          |¦  «        rwt          |t          j        | j	        ¦  «        t          ¦  «        }|sHd| _        t          j        t          j        | j	        j        ¦  «        | _        | j	        j        | _        d S t	          d¦  «        ‚)NTz'expected bytes, bytearray or memoryview)ÚownerÚptrÚlenÚlengthÚ	TypeErrorr   r   ÚcythonÚaddressÚviewr   Úhas_viewÚcastÚp_ucharÚbuf)Úselfr   Úress      ún/home/lighthouse/badge-speaker-benchmark/.benchmark-venv-community/lib64/python3.11/site-packages/av/buffer.pyÚ	__cinit__zByteSource.__cinit__   sÁ   € ØˆŒ
ð	ØˆDŒHõ ˜e™*œ*ˆDŒKØˆFøõ	 ð 	ð 	ð 	ØˆDð	øøøõ   Ñ&Ô&ð 	å$ U­F¬N¸4¼9Ñ,EÔ,EÅ|ÑTÔTˆCØð Ø $�”Ý!œ;¥v¤~°t´y´}ÑEÔE�”Ø"œiœm�”Ø�åÐAÑBÔBÐBs   ‰& ¦
3²3c                 ód   — | j         r(t          t          j        | j        ¦  «        ¦  «         d S d S ©N)r   r   r   r   r   ©r   s    r   Ú__dealloc__zByteSource.__dealloc__%   s6   € ØŒ=ð 	8Ý�Vœ^¨D¬IÑ6Ô6Ñ7Ô7Ð7Ð7Ð7ð	8ð 	8ó    N)Ú__name__Ú
__module__Ú__qualname__r   r    © r!   r   r   r      s5   € € € € € ðCð Cð Cð,8ð 8ð 8ð 8ð 8r!   r   FÚ
allow_noneÚreturnc                 óZ   — |r| €d S t          | t          ¦  «        r| S t          | ¦  «        S r   )Ú
isinstancer   )Úobjr&   s     r   Ú
bytesourcer+   *   s6   € àð �c�kØˆtÝ	�C�Ñ	$Ô	$ð Øˆ
å˜#‰ŒÐr!   c                   óÐ   — e Zd ZdZej        dej        fd„¦   «         Zdej        fd„Z	dej
        fd„Zdej        e         dej        fd„Zed	„ ¦   «         Zed
„ ¦   «         Zd„ ZdS )ÚBufferzxA base class for PyAV objects which support the buffer protocol, such
    as :class:`.Packet` and :class:`.Plane`.

    r'   c                 ó   — dS )Nr   r%   r   s    r   Ú_buffer_sizezBuffer._buffer_size;   s   € àˆqr!   c                 ó   — t           j        S r   )r   ÚNULLr   s    r   Ú_buffer_ptrzBuffer._buffer_ptr?   s
   € ÝŒ{Ðr!   c                 ó   — dS )NTr%   r   s    r   Ú_buffer_writablezBuffer._buffer_writableB   s   € Øˆtr!   r   Úflagsc                 óÐ   — |t           z  r#|                      ¦   «         st          d¦  «        ‚t          || |                      ¦   «         |                      ¦   «         d|¦  «         d S )Núbuffer is not writabler   )r   r4   Ú
ValueErrorr   r2   r/   )r   r   r5   s      r   Ú__getbuffer__zBuffer.__getbuffer__E   sh   € Ø•>Ñ!ð 	7¨$×*?Ò*?Ñ*AÔ*Að 	7ÝÐ5Ñ6Ô6Ð6å˜$  d×&6Ò&6Ñ&8Ô&8¸$×:KÒ:KÑ:MÔ:MÈqÐRWÑXÔXÐXÐXÐXr!   c                 ó*   — |                       ¦   «         S r   )r/   r   s    r   Úbuffer_sizezBuffer.buffer_sizeK   s   € à× Ò Ñ"Ô"Ð"r!   c                 ód   — t          j        t           j        |                      ¦   «         ¦  «        S )z!The memory address of the buffer.)r   r   Úsize_tr2   r   s    r   Ú
buffer_ptrzBuffer.buffer_ptrO   s$   € õ Œ{�6œ=¨$×*:Ò*:Ñ*<Ô*<Ñ=Ô=Ð=r!   c                 ó.  — |                       ¦   «         st          d¦  «        ‚t          |¦  «        }|                      ¦   «         }|j        |k    rt          d|j        › d|› d�¦  «        ‚t          |                      ¦   «         |j        |¦  «         dS )zõReplace the data in this object with the given buffer.

        Accepts anything that supports the `buffer protocol <https://docs.python.org/3/c-api/buffer.html>`_,
        e.g. bytes, NumPy arrays, other :class:`Buffer` objects, etc..

        r7   zgot z bytes; need z bytesN)r4   r8   r+   r/   r   r	   r2   r   )r   ÚinputÚsourceÚsizes       r   ÚupdatezBuffer.updateT   sœ   € ð ×$Ò$Ñ&Ô&ð 	7ÝÐ5Ñ6Ô6Ð6å'¨Ñ.Ô.ˆØ"×/Ò/Ñ1Ô1ˆàŒ=˜DÒ Ð ÝÐL F¤MÐLÐLÀÐLÐLÐLÑMÔMÐMåˆt×ÒÑ!Ô! 6¤:¨tÑ4Ô4Ð4Ð4Ð4r!   N)r"   r#   r$   Ú__doc__r   Úcfuncr=   r/   Úp_voidr2   Úbintr4   ÚpointerÚ	Py_bufferÚintr9   Úpropertyr;   r>   rC   r%   r!   r   r-   r-   4   sù   € € € € € ðð ð
 „\ð˜fœmð ð ð ñ „\ðð˜Vœ]ð ð ð ð ð &¤+ð ð ð ð ðY &¤.°Ô";ð YÀFÄJð Yð Yð Yð Yð ð#ð #ñ „Xð#ð ð>ð >ñ „Xð>ð5ð 5ð 5ð 5ð 5r!   r-   )F)r   Úcython.cimports.cpythonr   r   Úcython.cimports.cpython.bufferr   r   r   r   Úcython.cimports.libc.stringr	   ÚfinalÚcclassr   rE   rG   r+   r-   r%   r!   r   ú<module>rQ      s4  ðØ €€€Ø EÐ EÐ EÐ EÐ EÐ EÐ EÐ Eðð ð ð ð ð ð ð ð ð ð ð ð /Ð .Ð .Ð .Ð .Ð .ð „Ø„ð8ð 8ð 8ð 8ð 8ñ 8ô 8ñ „ñ „ð8ð8 „ðð  ¤ð ¸
ÀTÑ8Ið ð ð ñ „ðð „ð/5ð /5ð /5ð /5ð /5ñ /5ô /5ñ „ð/5ð /5ð /5r!   