fixed returning wrong type
removed alloca()
removed alloca()
removed alloca()
validate return value of led_pixel_format_get_n_components()
use strtol() & strtod() instead of sscanf()
eliminated alloca
cast to larger type