Beispiel #1
0
    def test_buffer(self):
        rgb_float = Gegl.format("RGB float")
        rgba_u8 = Gegl.format("RGBA u8")

        buf_float = Gegl.Buffer(format=rgb_float)
        buf_u8 = Gegl.Buffer(format=rgba_u8)

        self.assertEqual(
            "RGB float",
            Gegl.format_get_name(buf_float.get_property("format")))
        self.assertEqual("RGBA u8",
                         Gegl.format_get_name(buf_u8.get_property("format")))
Beispiel #2
0
    def test_buffer(self):
      print("SKIPPED! This test is known to be broken in gi version >=3.14.0")
      print("https://gitlab.gnome.org/GNOME/pygobject/issues/93")
      return 0
      # buf_float.get_property("format") returns an integer,
      # not gobject pointer to the format as it should

      rgb_float = Gegl.format("RGB float")
      rgba_u8 = Gegl.format("RGBA u8")

      buf_float = Gegl.Buffer(format=rgb_float)
      buf_u8 = Gegl.Buffer(format=rgba_u8)

      self.assertEqual("RGB float", Gegl.format_get_name(buf_float.get_property("format")))
      self.assertEqual("RGBA u8", Gegl.format_get_name(buf_u8.get_property("format")))