Mali OpenCL SDK v1.1.0
 All Classes Files Functions Variables Macros Pages
mandelbrot.cpp File Reference
#include "common.h"
#include "image.h"
#include <CL/cl.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstddef>
#include <cmath>
#include <sys/time.h>

Go to the source code of this file.

Functions

int main (void)
 A sample which generates Mandelbrot data for a given data size.
 

Function Documentation

int main ( void  )

A sample which generates Mandelbrot data for a given data size.

For a given height and width, the sample will test each pixel to work out how many iterations it takes to determine if the value is not part of the Mandelbrot set. This data is output as a greyscale bitmap image. White pixels could not be ruled out of the Mandelbrot set in the number of iterations used.

Returns
The exit code of the application, non-zero if a problem occurred.

Definition at line 33 of file mandelbrot.cpp.