Lines Matching defs:texture
825 static int realloc_texture(SDL_Texture **texture, Uint32 new_format, int new_width, int new_height, SDL_BlendMode blendmode, int init_texture)
829 if (!*texture || SDL_QueryTexture(*texture, &format, &access, &w, &h) < 0 || new_width != w || new_height != h || new_format != format) {
832 if (*texture)
833 SDL_DestroyTexture(*texture);
834 if (!(*texture = SDL_CreateTexture(renderer, new_format, SDL_TEXTUREACCESS_STREAMING, new_width, new_height)))
836 if (SDL_SetTextureBlendMode(*texture, blendmode) < 0)
839 if (SDL_LockTexture(*texture, NULL, &pixels, &pitch) < 0)
842 SDL_UnlockTexture(*texture);
844 av_log(NULL, AV_LOG_VERBOSE, "Created %dx%d texture with %s.\n", new_width, new_height, SDL_GetPixelFormatName(new_format));