Example #1
0
File: gifdbl.c Project: cran/R2SWF
SWFDBLBitmapData newSWFDBLBitmapData_fromGifInput(SWFInput input)
{	GifFileType *file;
	SWFDBLBitmapData ret;
	struct dbl_data gifdata;

	if((file = DGifOpen(input, (InputFunc) gifReadFunc)) == NULL)
		return NULL;
	if(!readGif(file, &gifdata))
		return NULL;
	ret = newSWFDBLBitmapData_fromData(&gifdata);
	/* ret->input = NULL; */
	return ret;
}
Example #2
0
File: gifdbl.c Project: cran/R2SWF
SWFDBLBitmapData newSWFDBLBitmapData_fromGifFile(const char *fileName)
{	GifFileType *file;
	SWFDBLBitmapData ret;
	struct dbl_data gifdata;

	if((file = DGifOpenFileName(fileName)) == NULL)
		return NULL;
	if(!readGif(file, &gifdata))
		return NULL;
	ret = newSWFDBLBitmapData_fromData(&gifdata);
	/* ret->input = NULL; */
	return ret;
}
Example #3
0
SWFDBLBitmapData newSWFDBLBitmapData_fromGifInput(SWFInput input)
{   GifFileType *file;
    SWFDBLBitmapData ret;
    struct dbl_data gifdata;

#if GIFLIB_MAJOR >= 5
    if((file = DGifOpen(input, (InputFunc) gifReadFunc, NULL)) == NULL)
#else
    if((file = DGifOpen(input, (InputFunc) gifReadFunc)) == NULL)
#endif
        return NULL;
    if(!readGif(file, &gifdata))
        return NULL;
    ret = newSWFDBLBitmapData_fromData(&gifdata);
    // ret->input = NULL;
    return ret;
}
Example #4
0
SWFDBLBitmapData newSWFDBLBitmapData_fromGifFile(const char *fileName)
{   GifFileType *file;
    SWFDBLBitmapData ret;
    struct dbl_data gifdata;

#if GIFLIB_MAJOR >= 5
    if((file = DGifOpenFileName(fileName, NULL)) == NULL)
#else
    if((file = DGifOpenFileName(fileName)) == NULL)
#endif
        return NULL;
    if(!readGif(file, &gifdata))
        return NULL;
    ret = newSWFDBLBitmapData_fromData(&gifdata);
    // ret->input = NULL;
    return ret;
}