Example #1
0
SWFDBLBitmap
newSWFDBLBitmap(FILE* f)
{
	SWFDBLBitmap dbl = newSWFDBLBitmap_fromInput(newSWFInput_file(f));
	BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs;
	return dbl;
}
Example #2
0
File: dbl.c Project: cran/R2SWF
SWFDBLBitmap
newSWFDBLBitmap(FILE* f)
{
	SWFInput input = newSWFInput_file(f);
	SWFDBLBitmap dbl = NULL;

	/* If newSWFInput_file() failed, return NULL to signify this */
	if (NULL == input)
		return NULL;

	dbl = newSWFDBLBitmap_fromInput(input);

	/* If newSWFDBLBitmap_fromInput() failed, return NULL to signify this */
	if (NULL == dbl)
		return NULL;

	BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs;
	return dbl;
}