D | EmulatedFakeRotatingCameraDevice.cpp | 148 static void get_color(uint32_t* img, int i, int j, int w, int h, int dw, uint32_t * color) { in get_color() argument 149 int mini = dw/2 - w/2; in get_color() 150 int minj = dw/2 - h/2; in get_color() 155 *color = img[i-mini + dw*(j-minj)]; in get_color() 159 static void convert_to_square(uint32_t* src, uint32_t* dest, int sw, int sh, int dw) { in convert_to_square() argument 160 for (int i=0; i < dw; ++i) { in convert_to_square() 161 for (int j=0; j < dw; ++j) { in convert_to_square() 163 get_color(src, i, j, sw, sh, dw, &color); in convert_to_square() 164 dest[i+j*dw] = color; in convert_to_square()
|