janpaulus / BRICS_OODL

BRICS Object Oriented Device Layer
4 stars 2 forks source link

resolutions #12

Open shakhimardanov opened 13 years ago

shakhimardanov commented 13 years ago

It seems that, some cameras do not support a resolution list. That is a call to the device to enumerate available resolutions for the sensor might return nothing. This will cause a segmentation fault for some cameras during capture process, because the buffer size is set based on the supported resolutions. One solution is set buffer size/resolutions manually/default parameters, regardless whether they in the format list.