Ejemplo n.º 1
0
 def do_get_core_encodings(self):
     encodings = GTKXpraClient.do_get_core_encodings(self)
     #we can handle rgb32 format (but not necessarily transparency!)
     def add(x):
         if x in self.allowed_encodings and x not in encodings:
             encodings.append(x)
     add("rgb32")
     return encodings
Ejemplo n.º 2
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     for x in ("webp", ):
         if x in cencs:
             cencs.remove(x)
     #for some reason, the cairo_workaround does not work for ARGB32
     #cencs.append("rgb32")
     return cencs
Ejemplo n.º 3
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     for x in ("webp", ):
         if x in cencs:
             cencs.remove(x)
     #for some reason, the cairo_workaround does not work for ARGB32
     #cencs.append("rgb32")
     return cencs
Ejemplo n.º 4
0
 def do_get_core_encodings(self):
     encodings = GTKXpraClient.do_get_core_encodings(self)
     #we can handle rgb32 format (but not necessarily transparency!)
     def add(x):
         if x in self.allowed_encodings and x not in encodings:
             encodings.append(x)
     add("rgb32")
     return encodings
Ejemplo n.º 5
0
 def do_get_core_encodings(self):
     encodings = GTKXpraClient.do_get_core_encodings(self)
     if self.has_transparency():
         try:
             #to unpremultiply rgb32 data
             from xpra.codecs.argb.argb import unpremultiply_argb_in_place  #@UnresolvedImport
             assert unpremultiply_argb_in_place
             encodings.append("rgb32")
         except:
             pass
     #gtk2 can handle 'png' and 'jpeg' natively (without PIL)
     #(though using PIL is better since we can do that in the decode thread)
     for x in ("png", "jpeg"):
         if x not in encodings:
             encodings.append(x)
     return encodings
Ejemplo n.º 6
0
 def do_get_core_encodings(self):
     encodings = GTKXpraClient.do_get_core_encodings(self)
     if self.has_transparency():
         try:
             #to unpremultiply rgb32 data
             from xpra.codecs.argb.argb import unpremultiply_argb_in_place   #@UnresolvedImport
             assert unpremultiply_argb_in_place
             encodings.append("rgb32")
         except:
             pass
     #gtk2 can handle 'png' and 'jpeg' natively (without PIL)
     #(though using PIL is better since we can do that in the decode thread)
     for x in ("png", "jpeg"):
         if x not in encodings:
             encodings.append(x)
     return encodings
Ejemplo n.º 7
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     #we can now paint with alpha via pixbufs:
     cencs.append("rgb32")
     return cencs
Ejemplo n.º 8
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     for x in ("webp", ):
         if x in cencs:
             cencs.remove(x)
     return cencs
Ejemplo n.º 9
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     for x in ("webp", ):
         if x in cencs:
             cencs.remove(x)
     return cencs
Ejemplo n.º 10
0
 def do_get_core_encodings(self):
     cencs = GTKXpraClient.do_get_core_encodings(self)
     #for some reason, the cairo_workaround does not work for ARGB32
     #cencs.append("rgb32")
     return cencs