Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hexitec mods #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ endif
ifneq ($(COMPILE_HEXITEC),0)

HEXITEC_LDFLAGS := -L/opt/pleora/ebus_sdk/CentOS-RHEL-7-x86_64/lib
HEXITEC_LDLIBS := -lPvDevice -lPvStream -lPvBuffer -lPvGenICam -lPvBase -lPvSerial -lEbUtilsLib
HEXITEC_LDLIBS := -lPvDevice -lPvStream -lPvBuffer -lPvGenICam -lPvBase -lPvSerial -lPvSystem -lEbUtilsLib

hexitec-name := hexitec
hexitec-objs := ../camera/hexitec/src/Hexitec.o
Expand Down
3 changes: 2 additions & 1 deletion common/include/lima/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ LIMACORE_API std::ostream& operator <<(std::ostream& os, AlignDir align_dir);
*/
enum ImageType {
Bpp8, Bpp8S, Bpp10, Bpp10S, Bpp12, Bpp12S, Bpp14, Bpp14S,
Bpp16, Bpp16S, Bpp32, Bpp32S, Bpp32F, Bpp1, Bpp4, Bpp6, Bpp24, Bpp24S
Bpp16, Bpp16S, Bpp32, Bpp32S, Bpp32F, Bpp1, Bpp4, Bpp6, Bpp24, Bpp24S,
Bpp64, Bpp64S
};

LIMACORE_API std::ostream& operator <<(std::ostream& os, ImageType image_type);
Expand Down
2 changes: 1 addition & 1 deletion common/sip/Constants.sip
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum AlignDir {

enum ImageType {
Bpp8, Bpp8S, Bpp10, Bpp10S, Bpp12, Bpp12S, Bpp14, Bpp14S, Bpp16, Bpp16S, Bpp32, Bpp32S,
Bpp32F, Bpp1, Bpp4, Bpp6, Bpp24, Bpp24S
Bpp32F, Bpp1, Bpp4, Bpp6, Bpp24, Bpp24S, Bpp64, Bpp64S
};

enum AcqMode {
Expand Down
4 changes: 4 additions & 0 deletions common/src/Constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const char* lima::convert_2_string(ImageType image_type)
case Bpp6: name = "Bpp6"; break;
case Bpp24: name = "Bpp24"; break;
case Bpp24S: name = "Bpp24S"; break;
case Bpp64: name = "Bpp64"; break;
case Bpp64S: name = "Bpp64S"; break;
}
return name;
}
Expand Down Expand Up @@ -88,6 +90,8 @@ void lima::convert_from_string(const std::string& val,
else if(buffer == "bpp6") image_type = Bpp6;
else if(buffer == "bpp24") image_type = Bpp24;
else if(buffer == "bpp24s") image_type = Bpp24S;
else if(buffer == "bpp64") image_type = Bpp64;
else if(buffer == "bpp64s") image_type = Bpp64S;
else
{
std::ostringstream msg;
Expand Down
6 changes: 5 additions & 1 deletion common/src/SizeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ int FrameDim::getImageTypeBpp(ImageType type)
case Bpp24:
case Bpp24S:
return 32;
case Bpp64S:
case Bpp64: return 64;
default:
throw LIMA_COM_EXC(InvalidValue, "Invalid image type");
}
Expand Down Expand Up @@ -205,7 +207,9 @@ int FrameDim::getImageTypeDepth(ImageType type)
case Bpp24:
case Bpp24S:
return 4;

case Bpp64:
case Bpp64S:
return 8;
default:
throw LIMA_COM_EXC(InvalidValue, "Invalid image type");
}
Expand Down
4 changes: 4 additions & 0 deletions control/src/CtBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ void CtBuffer::transformHwFrameInfoToData(Data &fdata,
fdata.type= Data::UINT32; break;
case Bpp24S:
fdata.type = Data::INT32; break;
case Bpp64:
fdata.type= Data::UINT64; break;
case Bpp64S:
fdata.type = Data::INT64; break;
default:
THROW_CTL_ERROR(InvalidValue) << "Data type not yet managed" << DEB_VAR1(ftype);
}
Expand Down
2 changes: 2 additions & 0 deletions control/src/CtSpsImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ void CtSpsImage::_check_data_size(Data &data)
case Data::UINT32: image_type = Bpp32; break;
case Data::INT32: image_type = Bpp32S; break;
case Data::FLOAT: image_type = Bpp32F; break;
case Data::UINT64: image_type = Bpp64; break;
case Data::INT64: image_type = Bpp64S; break;
default:
THROW_CTL_ERROR(InvalidValue) << "Invalid "
<< DEB_VAR1(data.type);
Expand Down
4 changes: 1 addition & 3 deletions sip/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,13 @@ def main():
extraIncludes += ['../../third-party/yat/include','/home/xpix_user/PCI_VALIDATED/trunk/sw/xpci_lib']
elif(modName == 'xspress3'):
extraIncludes += ['../../third-party/hdf5/c++/src']
extra_cxxflags += ['-DSIPCOMPILATION']
elif(modName == 'pco'):
extraIncludes += ['R:/bliss/projects/LIMA/package/WIN32/PCO/sdkPco/include']
elif(modName == 'marccd'):
extraIncludes += ['../../../include/DiffractionImage']
extraIncludes += ['../../third-party/yat/include']
elif(modName == 'pointgrey'):
extraIncludes += ['/usr/include/flycapture']
extraIncludes += ['../../camera/pointgrey/sdk/usr/include/flycapture']
elif(modName == 'rayonixhs'):
extraIncludes += ['/opt/rayonix/include/craydl','/opt/rayonix/include','/opt/rayonix/include/marccd']
extra_cxxflags += ['-std=c++0x']
Expand All @@ -210,7 +209,6 @@ def main():
elif (modName == 'hexitec'):
extraIncludes += ['../../camera/hexitec/sdk','/opt/pleora/ebus_sdk/CentOS-RHEL-7-x86_64/include']
extra_cxxflags += ['-std=c++11']
extra_cxxflags += ['-DSIPCOMPILATION']
elif (modName == 'slsdetector'):
SLS_DETECTORS_DIR = '../../camera/slsdetector/slsDetectorPackage'
SLS_DETECTORS_SW = os.path.join(SLS_DETECTORS_DIR,
Expand Down