Lines Matching refs:texture
272 DirectFB_AcquireVidLayer(SDL_Renderer * renderer, SDL_Texture * texture) in DirectFB_AcquireVidLayer() argument
278 DirectFB_TextureData *data = texture->driverdata; in DirectFB_AcquireVidLayer()
288 layconf.width = texture->w; in DirectFB_AcquireVidLayer()
289 layconf.height = texture->h; in DirectFB_AcquireVidLayer()
328 DirectFB_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) in DirectFB_CreateTexture() argument
340 texture->driverdata = data; in DirectFB_CreateTexture()
343 pixelformat = DirectFB_SDLToDFBPixelFormat(texture->format); in DirectFB_CreateTexture()
349 data->format = texture->format; in DirectFB_CreateTexture()
350 data->pitch = texture->w * DFB_BYTES_PER_PIXEL(pixelformat); in DirectFB_CreateTexture()
352 if (DirectFB_AcquireVidLayer(renderer, texture) != 0) { in DirectFB_CreateTexture()
356 dsc.width = texture->w; in DirectFB_CreateTexture()
357 dsc.height = texture->h; in DirectFB_CreateTexture()
358 if(texture->format == SDL_PIXELFORMAT_YV12 || in DirectFB_CreateTexture()
359 texture->format == SDL_PIXELFORMAT_IYUV) { in DirectFB_CreateTexture()
371 if (texture->access == SDL_TEXTUREACCESS_STREAMING) in DirectFB_CreateTexture()
403 if (texture->access == SDL_TEXTUREACCESS_STREAMING) { in DirectFB_CreateTexture()
405 if(texture->format == SDL_PIXELFORMAT_YV12 || in DirectFB_CreateTexture()
406 texture->format == SDL_PIXELFORMAT_IYUV) { in DirectFB_CreateTexture()
407 …SDL_DFB_ALLOC_CLEAR(data->pixels, (texture->h * data->pitch + ((texture->h + texture->h % 2) * (d… in DirectFB_CreateTexture()
409 SDL_DFB_ALLOC_CLEAR(data->pixels, texture->h * data->pitch); in DirectFB_CreateTexture()
418 SDL_DFB_FREE(texture->driverdata); in DirectFB_CreateTexture()
424 DirectFB_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture)
428 DirectFB_TextureData *data = (DirectFB_TextureData *) texture->driverdata;
430 switch (texture->scaleMode) {
444 texture->scaleMode = SDL_SCALEMODE_NONE;
453 DirectFB_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, in DirectFB_UpdateTexture() argument
456 DirectFB_TextureData *data = (DirectFB_TextureData *) texture->driverdata; in DirectFB_UpdateTexture()
462 int bpp = DFB_BYTES_PER_PIXEL(DirectFB_SDLToDFBPixelFormat(texture->format)); in DirectFB_UpdateTexture()
467 if ((texture->format == SDL_PIXELFORMAT_YV12) || in DirectFB_UpdateTexture()
468 (texture->format == SDL_PIXELFORMAT_IYUV)) { in DirectFB_UpdateTexture()
484 if ((texture->format == SDL_PIXELFORMAT_YV12) || in DirectFB_UpdateTexture()
485 (texture->format == SDL_PIXELFORMAT_IYUV)) { in DirectFB_UpdateTexture()
486 src = (Uint8 *) pixels + texture->h * pitch; in DirectFB_UpdateTexture()
487 dst = (Uint8 *) dpixels + texture->h * dpitch + rect->y * dpitch / 4 + rect->x * bpp / 2; in DirectFB_UpdateTexture()
493 src = (Uint8 *) pixels + texture->h * pitch + texture->h * pitch / 4; in DirectFB_UpdateTexture()
494 …dst = (Uint8 *) dpixels + texture->h * dpitch + texture->h * dpitch / 4 + rect->y * dpitch / 4 + r… in DirectFB_UpdateTexture()
510 DirectFB_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture, in DirectFB_LockTexture() argument
514 (DirectFB_TextureData *) texture->driverdata; in DirectFB_LockTexture()
537 rect->x * DFB_BYTES_PER_PIXEL(DirectFB_SDLToDFBPixelFormat(texture->format))); in DirectFB_LockTexture()
548 DirectFB_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture) in DirectFB_UnlockTexture() argument
551 (DirectFB_TextureData *) texture->driverdata; in DirectFB_UnlockTexture()
568 DirectFB_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture,
571 DirectFB_TextureData *data = (DirectFB_TextureData *) texture->driverdata;
580 static int DirectFB_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture) in DirectFB_SetRenderTarget() argument
586 if (texture) { in DirectFB_SetRenderTarget()
587 tex_data = (DirectFB_TextureData *) texture->driverdata; in DirectFB_SetRenderTarget()
634 DirectFB_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, in DirectFB_QueueCopy() argument
652 DirectFB_QueueCopyEx(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, in DirectFB_QueueCopyEx() argument
755 SDL_Texture *texture = cmd->data.draw.texture; in DirectFB_RunCommandQueue() local
761 DirectFB_TextureData *texturedata = (DirectFB_TextureData *) texture->driverdata; in DirectFB_RunCommandQueue()
784 const SDL_Rect rect = { 0, 0, texture->w, texture->h }; in DirectFB_RunCommandQueue()
785 … DirectFB_UpdateTexture(renderer, texture, &rect, texturedata->pixels, texturedata->pitch); in DirectFB_RunCommandQueue()
800 SetBlendMode(data, texture->blendMode, texturedata); in DirectFB_RunCommandQueue()
865 DirectFB_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture) in DirectFB_DestroyTexture() argument
867 DirectFB_TextureData *data = (DirectFB_TextureData *) texture->driverdata; in DirectFB_DestroyTexture()
887 texture->driverdata = NULL; in DirectFB_DestroyTexture()