#include "condition.h"#include "rotateframe.h"#include "vframe.h"#include <math.h>#include <stdint.h>#include <stdio.h>#include <unistd.h>Go to the source code of this file.
Defines | |
| #define | SQR(x) ((x) * (x)) |
| #define | ROTATE_RIGHTANGLE(type, components) |
| #define | FILL_CENTER(type, components) |
| #define | ROTATE_NEAREST(type, components, black_chroma) |
| #define | ROTATE_INTERPOLATE(type, components, black_chroma) |
|
|
Value: { \
type *out_pixel = ((type**)output->get_rows())[center_y] + center_x * components; \
type *in_pixel = ((type**)input->get_rows())[center_y] + center_x * components; \
\
out_pixel[0] = in_pixel[0]; \
out_pixel[1] = in_pixel[1]; \
out_pixel[2] = in_pixel[2]; \
if(components == 4) out_pixel[3] = in_pixel[3]; \
}
|
|
|
Definition at line 546 of file rotateframe.C. |
|
|
Value: { \
type **input_rows = (type**)input->get_rows(); \
type **output_rows = (type**)output->get_rows(); \
\
for(int i = row1; i < row2; i++) \
{ \
int *int_row = plugin->int_rows[i]; \
for(int j = 0; j < width; j++) \
{ \
if(int_row[j] < 0) \
{ \
for(int k = 0; k < components; k++) \
output_rows[i][j * components + k] = 0; \
} \
else \
{ \
for(int k = 0; k < components; k++) \
output_rows[i][j * components + k] = *(input_rows[0] + int_row[j] * components + k); \
} \
} \
} \
}
Definition at line 522 of file rotateframe.C. |
|
|
Definition at line 104 of file rotateframe.C. |
|
|
Definition at line 10 of file rotateframe.C. |
1.4.4