---
name: "SDL_VideoInfo"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_VideoInfo"
---

# SDL\_VideoInfo(3)

Video Target information

## NAME

SDL\_VideoInfo - Video Target information

## STRUCTURE DEFINITION

```
typedef struct{
  Uint32 hw_available:1;
  Uint32 wm_available:1;
  Uint32 blit_hw:1;
  Uint32 blit_hw_CC:1;
  Uint32 blit_hw_A:1;
  Uint32 blit_sw:1;
  Uint32 blit_sw_CC:1;
  Uint32 blit_sw_A:1;
  Uint32 blit_fill;
  Uint32 video_mem;
  SDL_PixelFormat *vfmt;
} SDL_VideoInfo;
```

## STRUCTURE DATA

- **hw\_available**

  Is it possible to create hardware surfaces?

- **wm\_available**

  Is there a window manager available

- **blit\_hw**

  Are hardware to hardware blits accelerated?

- **blit\_hw\_CC**

  Are hardware to hardware colorkey blits accelerated?

- **blit\_hw\_A**

  Are hardware to hardware alpha blits accelerated?

- **blit\_sw**

  Are software to hardware blits accelerated?

- **blit\_sw\_CC**

  Are software to hardware colorkey blits accelerated?

- **blit\_sw\_A**

  Are software to hardware alpha blits accelerated?

- **blit\_fill**

  Are color fills accelerated?

- **video\_mem**

  Total amount of video memory in Kilobytes

- **vfmt**

  *Pixel format* of the video device

## DESCRIPTION

This (read-only) structure is returned by **SDL\_GetVideoInfo**. It contains information on either the 'best' available mode (if called before **SDL\_SetVideoMode**) or the current video mode.

## SEE ALSO

**SDL\_PixelFormat**, **SDL\_GetVideoInfo**
