Demosaicing of plain RGGB data

Hi,
can I use LibRaw for demosaicing plain RGGB data (i mean file with no metadata, just pixels stored as [R G R G R G; G B G B G B; ...]?

If I understand it correctly I need to call dcraw_process() and dcraw_make_mem_image() but I do not know how to prepare the buffer and tell the LibRaw size etc.

thanks
Jan

Forums: