#include <stdbool.h>
#include <stdlib.h>

#include <gdk-pixbuf/gdk-pixbuf.h>

static guchar memory[1024 * 1024 * 3] = "";

extern
int main(int argc, char * argv[])
{
    while ( true )
    {
        GBytes      * bytes = g_bytes_new_static (memory, sizeof memory);
        GdkPixbuf   * pixbuf = gdk_pixbuf_new_from_bytes (bytes, GDK_COLORSPACE_RGB, FALSE, 8, 1024, 1024, 1024 * 3);
        guint       length;

        gdk_pixbuf_get_pixels_with_length (pixbuf, &length);

        g_object_unref (pixbuf);
        g_bytes_unref (bytes);

        g_usleep (10000ul);
    }

    return EXIT_SUCCESS;
}
