+
    ?i;                         R t ^ RIHtHtHtHtHtHtHt ^ RI	t	^ RI
t^RIHtHtHtHt ^RIHtHt ^RIHt  ! R R]4      tR# )zRead/Write images using rawpy.

rawpy is an easy-to-use Python wrapper for the LibRaw library.
It also contains some extra functionality for finding and repairing hot/dead pixels.
)AnyDictIteratorListOptionalTupleUnionN)	URI_BYTESInitializationErrorIOModeRequest)ImagePropertiesPluginV3)	ArrayLikec                      a a ] tR t^t oRtV3R lV 3R lltV3R lR ltR^ /V3R lR lltV3R	 lR
 ltV3R lR lt	RV3R lR llt
RV3R lR lltRtVtV ;t# )RawPyPluginzuA class representing the rawpy plugin.

Methods
-------

.. autosummary::
:toctree: _plugins/rawpy

RawPyPlugin.read
c                $   < V ^8  d   QhRS[ RR/# )   requestreturnN)r   )format__classdict__s   "S/var/www/html/photoedit/myenv/lib/python3.14/site-packages/imageio/plugins/rawpy.py__annotate__RawPyPlugin.__annotate__   s     S S SD S    c                .  < \         SV `  V4       RV n        VP                  P                  \
        P                  8X  d-    \        P                  ! VP                  4       4      V n        R# VP                  P                  \
        P"                  8X  d   \        R4      RhR#   \        P                  \        P                  \        P                  3 d=    TP                  \        8X  d   \        R4      Rh\        RTP                    R24      Rhi ; i)zInstantiates a new rawpy plugin object

Parameters
----------
request: Request
    A request object representing the resource to be operated on.
Nz&RawPy can not read the provided bytes.zRawPy can not read .RawPy does not support writing.)super__init___image_filemodeio_moder   readrawpyimreadget_fileNotSupportedErrorLibRawFileUnsupportedErrorLibRawIOError	_uri_typer	   r
   raw_uriwrite)selfr   	__class__s   &&r   r    RawPyPlugin.__init__   s     	!<<6;;. #(<<0@0@0B#C  \\!!V\\1%&GHdR 2 ''00##  
 $$	1-@  .-goo->a@  s   )B$ $A0Dc                   < V ^8  d   QhRR/# )r   r   N )r   r   s   "r   r   r   <   s      t r   c                    V P                   '       d   V P                   P                  4        V P                  P                  4        R # N)r!   close_requestfinishr.   s   &r   r5   RawPyPlugin.close<   s0    ""$r   indexc                :   < V ^8  d   QhRS[ RS[P                  /# r   r:   r   )intnpndarray)r   r   s   "r   r   r   B   s      S 2:: r   c                    V P                   P                  ! R/ VB pV\        J d
   XR,          pX#   \         d     L"i ; i)zFRead Raw Image.

Returns
-------
nd_image: ndarray
    The image data
r2   )N.)r!   postprocess	ExceptionEllipsis)r.   r:   kwargsnd_images   &$, r   r$   RawPyPlugin.readB   sM    	''33=f=H H	*H  		s   3 A Ac                \   < V ^8  d   QhRS[ S[S[S[,          3,          RS[S[,          /# )r   ndimager   )r   r   r   r   bytes)r   r   s   "r   r   r   W   s-     $ $U9d9o#=> $8E? $r   c                    \        4       h)r   )NotImplementedError)r.   rH   s   &&r   r-   RawPyPlugin.writeW   s    !##r   c                D   < V ^8  d   QhRS[ S[P                  ,          /# )r   r   )r   r>   r?   )r   r   s   "r   r   r   [   s      hrzz* r   c              #  X   "    V P                  4       x  R#   \         d     R# i ; i5i)zFLoad the image.

Returns
-------
nd_image: ndarray
    The image data
N)r$   rB   r8   s   &r   iterRawPyPlugin.iter[   s'     	))+ 		s   * *'*'*c                B   < V ^8  d   QhRS[ RS[RS[S[S[3,          /# )r   r:   exclude_appliedr   )r=   boolr   strr   )r   r   s   "r   r   r   i   s-     > >>26>	c3h>r   c                p   / pV P                   P                  pV P                   P                  VR&   V P                   P                  VR&   V P                   P                  VR&   V P                   P
                  VR&   V P                   P                  VR&   V P                   P                  P                  VR&   VP                  VR&   V P                   P                  VR&   V P                   P                  VR	&   VP                  VR
&   VP                  VR&   VP                  VR&   VP                  VR&   V P                   P                  P                   VR&   VP"                  VR&   VP$                  VR&   VP&                  VR&   V P                   P(                  VR&   V'       Ed   VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  R	R4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       VP+                  RR4       V# )a  Read ndimage metadata.

Parameters
----------
exclude_applied : bool
    If True, exclude metadata fields that are applied to the image while
    reading. For example, if the binary data contains a rotation flag,
    the image is rotated by default and the rotation flag is excluded
    from the metadata to avoid confusion.

Returns
-------
metadata : dict
    A dictionary of format-specific metadata.

black_level_per_channelcamera_white_level_per_channel
color_desccolor_matrixdaylight_whitebalancedtypeflip
num_colors
tone_curvewidthheight	raw_width
raw_height	raw_shapeiwidthiheightpixel_aspectwhite_levelN)r!   sizesrV   rW   rX   rY   rZ   	raw_imager[   r\   r]   r^   r_   r`   ra   rb   shaperd   re   rf   rg   pop)r.   r:   rR   metadata
image_sizes   &&&  r   rl   RawPyPlugin.metadatai   sg   ( %%++
.2.>.>.V.V*+;; 	12 "&!1!1!<!<#'#3#3#@#@ ,0,<,<,R,R() ,,66<<%??!%!1!1!<!<!%!1!1!<!<&,,'.. * 4 4!+!6!6 $ 0 0 : : @ @'..(00#-#:#: "&"2"2">">?LL2D9LL94@LLt,LL.LL0$7LL$'LL&LLt,LLt,LLd+LLt,LLd+LL4(LLD)LL-r   c                &   < V ^8  d   QhRS[ RS[/# r<   )r=   r   )r   r   s   "r   r   r      s     9 9 9 9r   c                    V P                   P                  pVP                  pVP                  pWC3pV P                   P                  P
                  p\        WVR7      # )zStandardized ndimage metadata

Returns
-------
properties : ImageProperties
    A dataclass filled with standardized image metadata.

Notes
-----
This does not decode pixel data and is fast for large images.

)rj   r[   )r!   rh   r_   r`   ri   r[   r   )r.   r:   	ImageSizer_   r`   rj   r[   s   &&     r   
propertiesRawPyPlugin.properties   sR     $$**	__&&"(  **00U88r   )r!   )NTr4   )__name__
__module____qualname____firstlineno____doc__r    r5   r$   r-   rO   rl   rr   __static_attributes____classdictcell____classcell__)r/   r   s   @@r   r   r      s`     	S S@ 1  *$ $ > >@9 9 9r   r   )rx   typingr   r   r   r   r   r   r   r%   numpyr>   core.requestr	   r
   r   r   core.v3_plugin_apir   r   r   r   r2   r   r   <module>r      s6    E D D   J J : o9( o9r   