Blob Blame History Raw
TEST ()
{
  GeglBuffer   *buffer;
  GeglRectangle extent = {0,0, 10, 10};
  gfloat       *buf;
  gint          i;
  test_start();

  buf = g_malloc (sizeof (float) * 12 * 10);
  for (i=0;i<120;i++)
    buf[i]=i%12==5?0.5:0.0;

  buffer = gegl_buffer_linear_new_from_data (buf, babl_format ("Y float"),
                                             &extent,
                                             12 * 4,
                                             (GDestroyNotify) g_free, /* destroy_notify */
                                             NULL   /* destroy_notify_data */);
  print_buffer (buffer);
  g_object_unref (buffer);
  test_end ();
}