mirror of
https://github.com/eddyem/CCD_Capture.git
synced 2026-03-20 08:40:56 +03:00
Add support of Basler cameras
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <usefull_macros.h>
|
||||
|
||||
#include "basestructs.h"
|
||||
#include "omp.h"
|
||||
|
||||
#ifndef FLT_EPSILON
|
||||
#define FLT_EPSILON 1.19209290E-07F
|
||||
@@ -467,6 +468,7 @@ static int cam_capt(IMG *ima){
|
||||
DBG("TRANSFORM 8 bit to 16");
|
||||
bytes /= 2;
|
||||
uint8_t *ptr = (uint8_t*) pdata;
|
||||
OMP_FOR()
|
||||
for(int i = 0; i < bytes; ++i){
|
||||
ima->data[i] = (uint16_t) *ptr++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user