Home
last modified time | relevance | path

Searched refs:GRID_SIZE (Results 1 – 25 of 190) sorted by relevance

12345678

/dports/games/augustus/augustus-3.1.0/src/map/
H A Dgrid.c219 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_and_u8()
226 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_and_u16()
248 buffer_write_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_save_state_u8()
258 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_save_state_u16()
265 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_save_state_u32_to_u16()
272 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_save_state_u32()
279 buffer_read_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_load_state_u8()
284 buffer_read_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_load_state_i8()
289 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_load_state_u16()
296 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_load_state_u16_to_u32()
[all …]
H A Dgrid.h9 GRID_SIZE = 162 enumerator
13 uint8_t items[GRID_SIZE * GRID_SIZE];
17 int8_t items[GRID_SIZE * GRID_SIZE];
21 uint16_t items[GRID_SIZE * GRID_SIZE];
25 int16_t items[GRID_SIZE * GRID_SIZE];
29 uint32_t items[GRID_SIZE * GRID_SIZE];
/dports/games/julius/julius-1.7.0/src/map/
H A Dgrid.c182 memset(grid, 0, GRID_SIZE * GRID_SIZE * sizeof(int8_t)); in map_grid_clear_i8()
187 memset(grid, 0, GRID_SIZE * GRID_SIZE * sizeof(uint8_t)); in map_grid_clear_u8()
197 memset(grid, 0, GRID_SIZE * GRID_SIZE * sizeof(int16_t)); in map_grid_clear_i16()
207 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_and_u8()
214 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_and_u16()
231 buffer_write_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_save_state_u8()
236 buffer_write_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_save_state_i8()
241 for (int i = 0; i < GRID_SIZE * GRID_SIZE; i++) { in map_grid_save_state_u16()
248 buffer_read_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_load_state_u8()
253 buffer_read_raw(buf, grid, GRID_SIZE * GRID_SIZE); in map_grid_load_state_i8()
[all …]
H A Dgrid.h9 GRID_SIZE = 162 enumerator
13 uint8_t items[GRID_SIZE * GRID_SIZE];
17 int8_t items[GRID_SIZE * GRID_SIZE];
21 uint16_t items[GRID_SIZE * GRID_SIZE];
25 int16_t items[GRID_SIZE * GRID_SIZE];
/dports/graphics/opencv/opencv-4.5.3/samples/android/15-puzzle/src/org/opencv/samples/puzzle15/
H A DPuzzle15Processor.java20 private static final int GRID_SIZE = 4; field in Puzzle15Processor
21 private static final int GRID_AREA = GRID_SIZE * GRID_SIZE;
59 for (int i = 0; i < GRID_SIZE; i++) { in prepareGameSize()
61 int k = i * GRID_SIZE + j; in prepareGameSize()
62 … = mRgba15.submat(i * height / GRID_SIZE, (i + 1) * height / GRID_SIZE, j * width / GRID_SIZE, (j … in prepareGameSize()
84 for (int i = 0; i < GRID_SIZE; i++) { in puzzleFrame()
86 int k = i * GRID_SIZE + j; in puzzleFrame()
87 …e.rows() / GRID_SIZE, (i + 1) * inputPicture.rows() / GRID_SIZE, j * inputPicture.cols()/ GRID_SIZ… in puzzleFrame()
127 if (row < 0 || row >= GRID_SIZE || col < 0 || col >= GRID_SIZE) { in deliverTouchEvent()
132 int idx = row * GRID_SIZE + col; in deliverTouchEvent()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/VK-GL-CTS/src/modules/gles31/functional/
H A Des31fVertexAttributeBindingTests.cpp247 GRID_SIZE = 20 enumerator
350 gl.glDrawArrays(GL_TRIANGLES, 0, GRID_SIZE*GRID_SIZE*6); in renderTo()
363 gl.glDrawArrays(GL_TRIANGLES, 0, GRID_SIZE*GRID_SIZE*6); in renderTo()
545 GRID_SIZE = 20 enumerator
671 gl.glDrawArrays(GL_TRIANGLES, 0, GRID_SIZE*GRID_SIZE*6); in renderTo()
715 …ec.zeroStride) ? (2) : (m_spec.instanced) ? (2 * GRID_SIZE * GRID_SIZE) : (2 * 6 * GRID_SIZE * GRI… in createBuffers()
728 colorOffsetWritePtr = &primitiveData[GRID_SIZE*GRID_SIZE*6]; in createBuffers()
840 GRID_SIZE = 20 enumerator
928 gl.glDrawArrays(GL_TRIANGLES, 0, 6*GRID_SIZE*GRID_SIZE); in renderTo()
1003 const int numCells = GRID_SIZE*GRID_SIZE; in createBuffers()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/glx/
H A Dglmatrix.c231 s->x = (GLfloat) (frand(GRID_SIZE) - (GRID_SIZE/2)); in reset_strip()
940 glVertex3f(-GRID_SIZE/2, -GRID_SIZE/2, 0); in draw_grid()
941 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, 0); in draw_grid()
942 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, 0); in draw_grid()
943 glVertex3f( GRID_SIZE/2, -GRID_SIZE/2, 0); in draw_grid()
946 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
947 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, GRID_DEPTH/2); in draw_grid()
948 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, GRID_DEPTH/2); in draw_grid()
949 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
952 glVertex3f(-GRID_SIZE/2, -GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
[all …]
H A Dflyingtoasters.c632 glVertex3f(-GRID_SIZE/2, -GRID_SIZE/2, 0); in draw_grid()
633 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, 0); in draw_grid()
634 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, 0); in draw_grid()
635 glVertex3f( GRID_SIZE/2, -GRID_SIZE/2, 0); in draw_grid()
638 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
639 glVertex3f(-GRID_SIZE/2, GRID_SIZE/2, GRID_DEPTH/2); in draw_grid()
640 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, GRID_DEPTH/2); in draw_grid()
641 glVertex3f( GRID_SIZE/2, GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
644 glVertex3f(-GRID_SIZE/2, -GRID_SIZE/2, -GRID_DEPTH/2); in draw_grid()
645 glVertex3f(-GRID_SIZE/2, -GRID_SIZE/2, GRID_DEPTH/2); in draw_grid()
[all …]
/dports/math/igraph/igraph-0.9.5/src/layout/drl/
H A DDensityGrid_3d.cpp45 #define GET_BIN(z, y, x) (Bins[(z*GRID_SIZE+y)*GRID_SIZE+x])
69 Density = new float[GRID_SIZE][GRID_SIZE][GRID_SIZE]; in Init()
71 Bins = new deque<Node>[GRID_SIZE * GRID_SIZE * GRID_SIZE]; in Init()
85 for (i = 0; i < GRID_SIZE; i++) in Init()
86 for (int j = 0; j < GRID_SIZE; j++) in Init()
87 for (int k = 0; k < GRID_SIZE; k++) { in Init()
200 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Subtract()
201 (y_grid >= GRID_SIZE) || (y_grid < 0) || in Subtract()
220 den_ptr += GRID_SIZE - (diam + 1); in Subtract()
249 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Add()
[all …]
H A DDensityGrid.cpp45 #define GET_BIN(y, x) (Bins[y*GRID_SIZE+x])
69 Density = new float[GRID_SIZE][GRID_SIZE]; in Init()
71 Bins = new deque<Node>[GRID_SIZE * GRID_SIZE]; in Init()
85 for (i = 0; i < GRID_SIZE; i++) in Init()
86 for (int j = 0; j < GRID_SIZE; j++) { in Init()
186 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Subtract()
187 (y_grid >= GRID_SIZE) || (y_grid < 0) ) { in Subtract()
204 den_ptr += GRID_SIZE - (diam + 1); in Subtract()
230 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Add()
231 (y_grid >= GRID_SIZE) || (y_grid < 0) ) { in Add()
[all …]
/dports/math/R-cran-igraph/igraph/src/
H A DDensityGrid_3d.cpp45 #define GET_BIN(z, y, x) (Bins[(z*GRID_SIZE+y)*GRID_SIZE+x])
69 Density = new float[GRID_SIZE][GRID_SIZE][GRID_SIZE]; in Init()
71 Bins = new deque<Node>[GRID_SIZE * GRID_SIZE * GRID_SIZE]; in Init()
85 for (i = 0; i < GRID_SIZE; i++) in Init()
86 for (int j = 0; j < GRID_SIZE; j++) in Init()
87 for (int k = 0; k < GRID_SIZE; k++) { in Init()
200 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Subtract()
201 (y_grid >= GRID_SIZE) || (y_grid < 0) || in Subtract()
220 den_ptr += GRID_SIZE - (diam + 1); in Subtract()
249 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Add()
[all …]
H A DDensityGrid.cpp45 #define GET_BIN(y, x) (Bins[y*GRID_SIZE+x])
69 Density = new float[GRID_SIZE][GRID_SIZE]; in Init()
71 Bins = new deque<Node>[GRID_SIZE * GRID_SIZE]; in Init()
85 for (i = 0; i < GRID_SIZE; i++) in Init()
86 for (int j = 0; j < GRID_SIZE; j++) { in Init()
186 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Subtract()
187 (y_grid >= GRID_SIZE) || (y_grid < 0) ) { in Subtract()
204 den_ptr += GRID_SIZE - (diam + 1); in Subtract()
230 if ( (x_grid >= GRID_SIZE) || (x_grid < 0) || in Add()
231 (y_grid >= GRID_SIZE) || (y_grid < 0) ) { in Add()
[all …]
/dports/games/scourge/scourge/src/
H A Dcontainerview.cpp64 *invX = ( x - OFFSET_X ) / GRID_SIZE; in convertMousePos()
65 *invY = ( y - OFFSET_Y ) / GRID_SIZE; in convertMousePos()
110 px *= GRID_SIZE; in drawWidgetContents()
111 py *= GRID_SIZE; in drawWidgetContents()
141 glVertex2d( 0, yy * GRID_SIZE ); in drawWidgetContents()
142 glVertex2d( colCount * GRID_SIZE, yy * GRID_SIZE ); in drawWidgetContents()
147 glVertex2d( xx * GRID_SIZE, 0 ); in drawWidgetContents()
148 glVertex2d( xx * GRID_SIZE, rowCount * GRID_SIZE ); in drawWidgetContents()
153 glVertex2d( colCount * GRID_SIZE - 1, 0 ); in drawWidgetContents()
154 glVertex2d( colCount * GRID_SIZE - 1, rowCount * GRID_SIZE - 1 ); in drawWidgetContents()
[all …]
/dports/x11-toolkits/gtk30/gtk+-3.24.31/tests/
H A Dtestgeometry.c21 #define GRID_SIZE 20 macro
55 for (y = 0; y < height - 2 * border; y += GRID_SIZE) in on_drawing_area_draw()
56 for (x = 0; x < width - 2 * border; x += GRID_SIZE) in on_drawing_area_draw()
57 if (((x + y) / GRID_SIZE) % 2 == 0) in on_drawing_area_draw()
59 cairo_rectangle (cr, border + x, border + y, GRID_SIZE, GRID_SIZE); in on_drawing_area_draw()
86 gtk_window_resize_to_geometry (GTK_WINDOW (window), 8 * GRID_SIZE, 8 * GRID_SIZE); in on_resize_clicked()
159 geometry.width_inc = GRID_SIZE; in create_window()
160 geometry.height_inc = GRID_SIZE; in create_window()
165 geometry.min_width = 5 * GRID_SIZE + 2 * border; in create_window()
166 geometry.min_height = 5 * GRID_SIZE + 2 * border; in create_window()
[all …]
/dports/games/openxcom/OpenXcom-1.0/src/Basescape/
H A DBaseView.cpp170 _selector = new Surface(size * GRID_SIZE, size * GRID_SIZE, _x, _y); in setSelectable()
356 frame->setX(x * GRID_SIZE); in draw()
357 frame->setY(y * GRID_SIZE); in draw()
379 frame->setX(x * GRID_SIZE); in draw()
380 frame->setY(y * GRID_SIZE); in draw()
402 frame->setX(x * GRID_SIZE - GRID_SIZE / 2); in draw()
403 frame->setY(y * GRID_SIZE); in draw()
419 frame->setY(y * GRID_SIZE - GRID_SIZE / 2); in draw()
438 frame->setX(x * GRID_SIZE); in draw()
439 frame->setY(y * GRID_SIZE); in draw()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/VK-GL-CTS/src/modules/gles31/stress/
H A Des31sVertexAttributeBindingTests.cpp241 GRID_SIZE = 20 enumerator
279 << "Rendering " << (int)GRID_SIZE << "x" << (int)GRID_SIZE << " grid.\n" in init()
344 gl.glDrawArrays(GL_TRIANGLES, 0, GRID_SIZE*GRID_SIZE*6); in renderTo()
357 gl.glDrawArrays(GL_TRIANGLES, 0, GRID_SIZE*GRID_SIZE*6); in renderTo()
441 …std::vector<deUint8> dataBuf (m_spec.bufferOffset + m_spec.bufferStride * GRID_SIZE * GRID_SIZE * … in createBuffers()
447 for (int y = 0; y < GRID_SIZE; ++y) in createBuffers()
448 for (int x = 0; x < GRID_SIZE; ++x) in createBuffers()
453 …tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f, float(y+0) / float(GRID_SIZE) * 2.0f - 1.0f… in createBuffers()
454 …tcu::Vec4(float(x+0) / float(GRID_SIZE) * 2.0f - 1.0f, float(y+1) / float(GRID_SIZE) * 2.0f - 1.0f… in createBuffers()
455 …tcu::Vec4(float(x+1) / float(GRID_SIZE) * 2.0f - 1.0f, float(y+1) / float(GRID_SIZE) * 2.0f - 1.0f… in createBuffers()
[all …]
/dports/graphics/reallyslick/rss-glx_0.9.1/src/PixelCity/
H A DEntity.cpp43 static cell cell_list[GRID_SIZE][GRID_SIZE];
168 if (compile_x == GRID_SIZE) { in do_compile()
171 if (compile_y == GRID_SIZE) in do_compile()
197 return (float)compile_count / (GRID_SIZE * GRID_SIZE); in EntityProgress()
260 for (x = 0; x < GRID_SIZE; x++) { in EntityRender()
261 for (y = 0; y < GRID_SIZE; y++) { in EntityRender()
269 for (x = 0; x < GRID_SIZE; x++) { in EntityRender()
270 for (y = 0; y < GRID_SIZE; y++) { in EntityRender()
283 for (x = 0; x < GRID_SIZE; x++) { in EntityRender()
284 for (y = 0; y < GRID_SIZE; y++) { in EntityRender()
[all …]
H A DVisible.cpp27 static bool vis_grid[GRID_SIZE][GRID_SIZE];
95 if (x < 0 || x >= GRID_SIZE) //just in case the camera leaves the world map in VisibleUpdate()
98 if (y < 0 || y >= GRID_SIZE) //just in case the camera leaves the world map in VisibleUpdate()
107 for (x = 0; x < GRID_SIZE; x++) { in VisibleUpdate()
108 for (y = 0; y < GRID_SIZE; y++) { in VisibleUpdate()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/VK-GL-CTS/src/external/openglcts/modules/gl/
H A Dgl4cTextureBarrierTests.cpp191 gl.bufferData(GL_ARRAY_BUFFER, GRID_SIZE * GRID_SIZE * sizeof(float) * 12, NULL, GL_STATIC_DRAW); in init()
261 static Vertex grid[GRID_SIZE + 1][GRID_SIZE + 1]; in generateVertexData()
264 for (int x = 0; x < GRID_SIZE + 1; ++x) in generateVertexData()
265 for (int y = 0; y < GRID_SIZE + 1; ++y) in generateVertexData()
268 float normx = (((float)x) / GRID_SIZE); in generateVertexData()
269 float normy = (((float)y) / GRID_SIZE); in generateVertexData()
279 for (int x = 0; x < GRID_SIZE; ++x) in generateVertexData()
280 for (int y = 0; y < GRID_SIZE; ++y) in generateVertexData()
283 list[(x + y * GRID_SIZE) * 2 + 0].v0 = grid[x][y]; in generateVertexData()
485 GRID_SIZE = 64, enumerator
[all …]
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/
H A Dvf_photosensitivity.c33 #define GRID_SIZE 8 macro
37 uint8_t grid[GRID_SIZE][GRID_SIZE][4];
93 #define NUM_CELLS (GRID_SIZE * GRID_SIZE)
110 gx = cell % GRID_SIZE; in convert_frame_partial()
111 gy = cell / GRID_SIZE; in convert_frame_partial()
113 x0 = width * gx / GRID_SIZE; in convert_frame_partial()
114 x1 = width * (gx+1) / GRID_SIZE; in convert_frame_partial()
115 y0 = height * gy / GRID_SIZE; in convert_frame_partial()
116 y1 = height * (gy+1) / GRID_SIZE; in convert_frame_partial()
196 for (y = 0; y < GRID_SIZE; y++) { in get_badness()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/
H A Dvf_photosensitivity.c33 #define GRID_SIZE 8 macro
37 uint8_t grid[GRID_SIZE][GRID_SIZE][4];
93 #define NUM_CELLS (GRID_SIZE * GRID_SIZE)
110 gx = cell % GRID_SIZE; in convert_frame_partial()
111 gy = cell / GRID_SIZE; in convert_frame_partial()
113 x0 = width * gx / GRID_SIZE; in convert_frame_partial()
114 x1 = width * (gx+1) / GRID_SIZE; in convert_frame_partial()
115 y0 = height * gy / GRID_SIZE; in convert_frame_partial()
116 y1 = height * (gy+1) / GRID_SIZE; in convert_frame_partial()
196 for (y = 0; y < GRID_SIZE; y++) { in get_badness()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/
H A Dvf_photosensitivity.c33 #define GRID_SIZE 8 macro
37 uint8_t grid[GRID_SIZE][GRID_SIZE][4];
93 #define NUM_CELLS (GRID_SIZE * GRID_SIZE)
110 gx = cell % GRID_SIZE; in convert_frame_partial()
111 gy = cell / GRID_SIZE; in convert_frame_partial()
113 x0 = width * gx / GRID_SIZE; in convert_frame_partial()
114 x1 = width * (gx+1) / GRID_SIZE; in convert_frame_partial()
115 y0 = height * gy / GRID_SIZE; in convert_frame_partial()
116 y1 = height * (gy+1) / GRID_SIZE; in convert_frame_partial()
196 for (y = 0; y < GRID_SIZE; y++) { in get_badness()
[all …]
/dports/multimedia/handbrake/ffmpeg-4.4/libavfilter/
H A Dvf_photosensitivity.c33 #define GRID_SIZE 8 macro
37 uint8_t grid[GRID_SIZE][GRID_SIZE][4];
93 #define NUM_CELLS (GRID_SIZE * GRID_SIZE)
110 gx = cell % GRID_SIZE; in convert_frame_partial()
111 gy = cell / GRID_SIZE; in convert_frame_partial()
113 x0 = width * gx / GRID_SIZE; in convert_frame_partial()
114 x1 = width * (gx+1) / GRID_SIZE; in convert_frame_partial()
115 y0 = height * gy / GRID_SIZE; in convert_frame_partial()
116 y1 = height * (gy+1) / GRID_SIZE; in convert_frame_partial()
196 for (y = 0; y < GRID_SIZE; y++) { in get_badness()
[all …]
/dports/mail/roundcube/roundcubemail-1.5.1/plugins/identicon/
H A Didenticon_engine.php30 const GRID_SIZE = 5; define in identicon_engine
48 …his->width = (int) round(($size - $this->margin * 2) / self::GRID_SIZE) * self::GRID_SIZE + $this…
102 $cell_width = ($this->width - $this->margin * 2) / self::GRID_SIZE;
103 $cell_height = ($this->height - $this->margin * 2) / self::GRID_SIZE;
107 $row_num = intval($i / self::GRID_SIZE);
108 $cell_num_h = $i - $row_num * self::GRID_SIZE;
/dports/games/qqwing/qqwing-1.3.4/src/java/com/qqwing/
H A DQQWing.java41 public static final int GRID_SIZE = 3; field in QQWing
43 public static final int ROW_COL_SEC_SIZE = (GRID_SIZE * GRID_SIZE);
702 int row = i * GRID_SIZE + j; in colBoxReduction()
716 int row = GRID_SIZE * colBox; in colBoxReduction()
750 int column = i * GRID_SIZE + j; in rowBoxReduction()
764 int column = GRID_SIZE * rowBox; in rowBoxReduction()
1384 } else if (i % GRID_SIZE == GRID_SIZE - 1) { in puzzleToString()
1476 + (cellToColumn(cell) / GRID_SIZE)); in cellToSection()
1485 + (cellToColumn(cell) / GRID_SIZE * GRID_SIZE)); in cellToSectionStartCell()
1506 return ((section % GRID_SIZE * GRID_SIZE) in sectionToFirstCell()
[all …]

12345678