Changed ALL function and file names to comply with assignment and added additional (Doxygen and normal) comments to mark which version is which
Doxygen comments are shown when hovering over function in the IDE
This commit is contained in:
@@ -4,8 +4,16 @@
|
||||
static unsigned converge(float c_rea, float c_imag, unsigned n);
|
||||
|
||||
|
||||
// HIGHLY OPTIMIZED SIMD VERSION
|
||||
|
||||
/**
|
||||
* @brief Generates a Tricorn fractal image using highly optimized SSE/SIMD instructions.
|
||||
* @param start The starting complex coordinate (bottom-left or top-left depending on height sign).
|
||||
* @param width The width of the target image in pixels.
|
||||
* @param height The height of the target image. A negative height reverses the Y-axis calculation.
|
||||
* @param res The step size (resolution) per pixel in the complex plane.
|
||||
* @param n The maximum number of mathematical iterations per pixel.
|
||||
* @param color If true, generates a 24-bit RGB image. If false, writes a grayscale image.
|
||||
* @param img Pointer to the pre-allocated memory buffer where the bitmap data will be stored.
|
||||
*/
|
||||
void tricorn_V0(float complex start, size_t width, ssize_t height, float res, unsigned n, _Bool color, unsigned char* img){
|
||||
int bytesPerColor = color ? 3 : 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user