+
    Cåûj#  ã                   ó4   € R t ^ RIt^ RIHt  ! R R]4      tR# )z~Base class for the various Python data-format storage type APIs

Data-type handlers are specified using OpenGL.plugins module
N)Úpluginsc                   óÐ   a € ] tR t^
t o Rt/ t/ tRtRtRt	Rt
RtRR.t. tR t]R 4       t]R 4       t]! ]4      tRR	 ltR
 tRR ltR tRR ltR tRR ltRR ltRR ltRtV tR# )ÚFormatHandlerzÍAbstract class describing the handler interface

Each data-type handler is responsible for providing a number of methods
which allow it to manipulate (and create) instances of the data-type
it represents.
NFÚnumpyÚctypesarraysc                ór   € \         P                  P                  4        F  pV P                  V4       K  	  R# )z8Load all OpenGL.plugins-registered FormatHandler classesN)r   r   ÚallÚ
loadPlugin)ÚclsÚ
entrypoints   & ÚWC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\OpenGL\arrays\formathandler.pyÚloadAllÚFormatHandler.loadAll   s'   € ä!×/Ñ/×3Ñ3Ö5ˆJØ�N‰N˜:Ö&ó 6ó    c                ó¦  € VP                   '       g=   ^ RIHp  VP                  4       pV! 4       pWBP	                  4       VP
                  &   V# R#   \         dl   p^ RIHp ^ RI	H
p TP                  R4      pT'       d   TP                  p	MTP                  p	T	! RTP
                  TP                  T4      4        Rp?MRp?ii ; iRTn         R# )z,Load a single entry-point via plugins module©ÚArrayDatatype)Úlogs)ÚWARN_ON_FORMAT_UNAVAILABLEzOpenGL.formathandlerz5Unable to load registered array format handler %s:
%sNT)ÚloadedÚOpenGL.arrays.arraydatatyper   ÚloadÚgetRegistryÚnameÚImportErrorÚOpenGLr   ÚOpenGL._configflagsr   ÚgetLogÚwarnÚinfoÚgetException)
r
   r   r   Úplugin_classÚhandlerÚerrr   r   Ú_logÚlogFuncs
   &&        r   r	   ÚFormatHandler.loadPlugin!   s·   € ð × × Ð ÝAðØ)Ÿ™Ó0�ñ  '›.�à?F×)Ñ)Ó+¨J¯O©OÑ<Ø�ñ/ !øô
 ô Ý'ÝJà—{‘{Ð#9Ó:�ß-Ø"Ÿi™i‘Gà"Ÿi™i�GÙØLØ—O‘OØ×%Ñ% cÓ*÷ñ ûðúð& !%ˆJÖs   šA ÁCÁA!CÃCc                ó@  € ^ RI Hp VP                  4       p W1,          #   \         ds   pTP                  : RTP
                  : 2pT P                  P                  T4      pT'       d   T P                  T4       Y1,          u Rp?# \        RT: 24      hRp?ii ; i)zLookup handler by data-typer   Ú.Nz'Unable to find data-format handler for )	r   r   r   ÚKeyErrorÚ
__module__Ú__name__ÚLAZY_TYPE_REGISTRYÚgetr	   )r
   Útyper   Úregistryr#   ÚkeyÚplugins   &&     r   Ú
typeLookupÚFormatHandler.typeLookup>   s‚   € õ 	>à ×,Ñ,Ó.ˆð	VØ•>Ð!øÜô 	VØ!Ÿ_œ_¨d¯m«mÐ<ˆCØ×+Ñ+×/Ñ/°Ó4ˆFßØ—‘˜vÔ&Ø•~Õ%ÝÊdÐTÓUÐUûð	Vús!   ˜   B«ABÂBÂ	BÂBc                óP   € ^ RI Hp VP                  4       P                  W4       R# )z5Register this class as handler for given set of typesr   N)r   r   r   Úregister)ÚselfÚtypesr   s   && r   r5   ÚFormatHandler.registerP   s   € å=à×!Ñ!Ó#×,Ñ,¨TÖ9r   c                óP   € ^ RI Hp VP                  4       P                  V 4       R# )z8Register this handler as the default return-type handlerr   N)r   r   r   ÚregisterReturn)r6   r   s   & r   r:   ÚFormatHandler.registerReturnV   s   € å=à×!Ñ!Ó#×2Ñ2°4Ö8r   c                ó   € R# )z!Convert to a ctypes pointer valueN© ©r6   ÚvalueÚtypeCodes   &&&r   Ú
from_paramÚFormatHandler.from_param\   ó   ‚ r   c                ó   € R# )zreturn long for pointer valueNr=   ©r6   r?   s   &&r   ÚdataPointerÚFormatHandler.dataPointer_   rC   r   c                ó   € R# )z.Given a value, convert to array representationNr=   r>   s   &&&r   ÚasArrayÚFormatHandler.asArrayb   rC   r   c                ó   € R# )z=Given a value, guess OpenGL type of the corresponding pointerNr=   rE   s   &&r   ÚarrayToGLTypeÚFormatHandler.arrayToGLTypee   rC   r   c                ó   € R# )z6Given a data-value, calculate dimensions for the arrayNr=   r>   s   &&&r   Ú	arraySizeÚFormatHandler.arraySizeh   rC   r   c                ó&   € V P                   e   R# R# )z-Determine unit size of an array (if possible)N)ÚbaseTyper>   s   &&&r   ÚunitSizeÚFormatHandler.unitSizek   s   € à�=‰=Ò$Ùñ %r   c                ó   € R# )z<Determine dimensions of the passed array value (if possible)Nr=   r>   s   &&&r   Ú
dimensionsÚFormatHandler.dimensionsp   rC   r   r=   )N)r+   r*   Ú__qualname__Ú__firstlineno__Ú__doc__r,   ÚHANDLER_REGISTRYrR   ÚtypeConstantÚHANDLED_TYPESÚpreferredOutputÚisOutputÚGENERIC_OUTPUT_PREFERENCESÚALL_OUTPUT_HANDLERSr   Úclassmethodr	   r2   r5   r:   rA   rF   rI   rL   rO   rS   rV   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r   
   s³   ø‡ € ñð ÐØÐØ€HØ€LØ€MØ€OØ€HØ")¨>Ð!:ÐØÐò'ð
 ñ%ó ð%ð8 ñVó ðVñ ˜'Ó"€Gô:ò9ô0ò,ô=òLôEô÷
Kò Kr   r   )rZ   Úctypesr   r   Úobjectr   r=   r   r   Ú<module>rh      s"   ðñó
 Ý ôgK�Fö gKr   