Lines Matching defs:texture_rect
50 SDL_Rect texture_rect;
103 SDL_Rect *texture_rect = &sdl->texture_rect;
114 texture_rect->w = sdl->window_width;
115 texture_rect->h = av_rescale(texture_rect->w, dar.den, dar.num);
118 texture_rect->h = sdl->window_height;
119 texture_rect->w = av_rescale(texture_rect->h, dar.num, dar.den);
123 texture_rect->w = codecpar->width;
124 texture_rect->h = av_rescale(texture_rect->w, dar.den, dar.num);
126 texture_rect->h = codecpar->height;
127 texture_rect->w = av_rescale(texture_rect->h, dar.num, dar.den);
129 sdl->window_width = texture_rect->w;
130 sdl->window_height = texture_rect->h;
133 texture_rect->x = (sdl->window_width - texture_rect->w) / 2;
134 texture_rect->y = (sdl->window_height - texture_rect->h) / 2;
332 SDL_RenderCopy(sdl->renderer, sdl->texture, NULL, &sdl->texture_rect);