Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_file_convert ( CameraFile file,
const char *  mime_type 
)

Parameters:
file a CameraFile
mime_type a MIME type string
Returns:
a gphoto2 error code.

Definition at line 848 of file gphoto2-file.c.

References CHECK_NULL, and gp_file_raw_to_ppm().

{
      CHECK_NULL (file && mime_type);

      if (!strcmp (file->mime_type, GP_MIME_RAW) &&
             !strcmp (mime_type, GP_MIME_PPM))
            return (gp_file_raw_to_ppm (file));

      else
            return (GP_ERROR_NOT_SUPPORTED);
}


Generated by  Doxygen 1.6.0   Back to index