DirectFB Reference Manual
IDirectFBImageProvider   GetSurfaceDescription

Get a surface description that best matches the image contained in the file.

GetSurfaceDescription (
  IDirectFBImageProvider *thiz
  DFBSurfaceDescription *dsc
);

For opaque image formats the pixel format of the primary layer is used. For images with alpha channel an ARGB surface description is returned.

  (C) Copyright by convergence GmbH