
    &h                     R   S r SrSSKrSSKrS\R                  S'   SSKr\R                  R                  5         \R                  R                  S5      r
S rS r\S	:X  aG  S
\R                  ;   a.  \R                  SS u  rrrr\" \\\/5      u  rr\" \\\\5        g\" \5        gg)a$  pygame.examples.headless_no_windows_needed

How to use pygame with no windowing system, like on headless servers.

Thumbnail generation with scaling is an example of what you can do with pygame.
NOTE: the pygame scale function uses mmx/sse if available, and can be run
  in multiple threads.
zU-scale inputimage outputimage new_width new_height
eg.  -scale in.png out.png 50 50

    NdummySDL_VIDEODRIVER)   r   c                 D   [         R                  R                  U 5      n[        [         R                  S5      (       a"  [         R                  R                  XBU45      nO![         R                  R                  XBU45      n[         R                  R                  XQ5        g )Nsmoothscale)pgimageloadhasattr	transformr   scalesave)finfoutwhiscaled_images         b/var/www/auris/envauris/lib/python3.13/site-packages/pygame/examples/headless_no_windows_needed.pyscaleitr      se    
cAr||]++||//q6:||))!V4HHMM,%    c                     [        XX#5        g)z<smoothscale image file named fin as fout with new size (w,h)N)r   )r   r   r   r   s       r   mainr   '   s    Cqr   __main__z-scale   )__doc__usageossysenvironpygamer   displayinitset_modescreenr   r   __name__argvr   r   r   r   mapintprint r   r   <module>r,      s   	
 
 
 !(

   

 			V	$&
 z388((12,T1a3A1S$1e r   