
    hC                     B    S SK Jr  S SKJrJr  S SKJr   " S S\5      rg)   )	MIME_TYPE)LITTLE_ENDIANStreamReader)BaseImageHeaderc                   X    \ rS rSrSr\S 5       r\S 5       r\S 5       r	\
S 5       rSrg)	Bmp   z#Image header parser for BMP images.c                     [        U[        5      nUR                  S5      nUR                  S5      nUR                  S5      nUR                  S5      nU R                  U5      nU R                  U5      nU " X4Xx5      $ )zUReturn |Bmp| instance having header properties parsed from the BMP image in
`stream`.      &   *   )r   r   	read_long_dpi)	clsstream
stream_rdrpx_width	px_heighthorz_px_per_metervert_px_per_meterhorz_dpivert_dpis	            @/var/www/html/env/lib/python3.13/site-packages/docx/image/bmp.pyfrom_streamBmp.from_stream	   s}     "&-8
''-((.	&006&00688-.88-.8;;    c                 "    [         R                  $ )zMMIME content type for this image, unconditionally `image/bmp` for BMP
images.)r   BMPselfs    r   content_typeBmp.content_type   s     }}r   c                     g)z8Default filename extension, always 'bmp' for BMP images.bmp r    s    r   default_extBmp.default_ext    s     r   c                 >    U S:X  a  g[        [        U S-  5      5      $ )zcReturn the integer pixels per inch from `px_per_meter`, defaulting to 96 if
`px_per_meter` is zero.    `   g
F%u?)intround)px_per_meters    r   r   Bmp._dpi%   s$     15./00r   r&   N)__name__
__module____qualname____firstlineno____doc__classmethodr   propertyr"   r'   staticmethodr   __static_attributes__r&   r   r   r   r      sS    -< <   
   1 1r   r   N)	constantsr   helpersr   r   imager   r   r&   r   r   <module>r<      s      0 "%1/ %1r   