Lines Matching refs:frames
218 int res_create_multi_display_surface(const char* name, int* frames, int* fps, in res_create_multi_display_surface() argument
221 *frames = -1; in res_create_multi_display_surface()
230 *frames = 1; in res_create_multi_display_surface()
237 *frames = atoi(text[i].text); in res_create_multi_display_surface()
242 printf(" found frames = %d\n", *frames); in res_create_multi_display_surface()
248 if (*frames <= 0 || *fps <= 0) { in res_create_multi_display_surface()
249 printf("bad number of frames (%d) and/or FPS (%d)\n", *frames, *fps); in res_create_multi_display_surface()
254 if (height % *frames != 0) { in res_create_multi_display_surface()
255 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface()
260 surface = static_cast<GRSurface**>(calloc(*frames, sizeof(GRSurface*))); in res_create_multi_display_surface()
265 for (int i = 0; i < *frames; ++i) { in res_create_multi_display_surface()
266 auto created_surface = GRSurface::Create(width, height / *frames, width * 4, 4); in res_create_multi_display_surface()
281 int frame = y % *frames; in res_create_multi_display_surface()
282 uint8_t* out_row = surface[frame]->data() + (y / *frames) * surface[frame]->row_bytes; in res_create_multi_display_surface()
291 for (int i = 0; i < *frames; ++i) { in res_create_multi_display_surface()