![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <CuTexImage.h>
Public Member Functions | |
| bool | InitTexture (unsigned int width, unsigned int height, unsigned int nchannel=1) |
| void | SetTexture (void *data, unsigned int width, unsigned int nchannel=1) |
| void | SwapData (CuTexImage &src) |
| void | CopyToHost (void *buf) |
| void | CopyFromDevice (const void *buf) |
| void | CopyFromHost (const void *buf) |
| void | SaveToFile (const char *name) |
| void | ReleaseData () |
| float * | data () |
| bool | IsValid () |
| unsigned int | GetLength () |
| unsigned int | GetImgWidth () |
| unsigned int | GetImgHeight () |
| size_t | GetReservedWidth () |
| size_t | GetDataSize () |
| size_t | GetRequiredSize () |
| unsigned int | IsHugeData () |
| CuTexImage () | |
| virtual | ~CuTexImage () |
Protected Attributes | |
| bool | _owner |
| void * | _cuData |
| unsigned int | _numChannel |
| unsigned int | _imgWidth |
| unsigned int | _imgHeight |
| size_t | _numBytes |
Definition at line 31 of file CuTexImage.h.
| CuTexImage::CuTexImage | ( | ) |
Definition at line 38 of file CuTexImage.cpp.
References NULL.
|
virtual |
Definition at line 45 of file CuTexImage.cpp.
| void CuTexImage::CopyFromDevice | ( | const void * | buf | ) |
Definition at line 115 of file CuTexImage.cpp.
References NULL.
| void CuTexImage::CopyFromHost | ( | const void * | buf | ) |
Definition at line 109 of file CuTexImage.cpp.
References NULL.
Referenced by pba::SparseBundleCU::RunProfileSteps(), and pba::SparseBundleCU::TransferDataToGPU().
| void CuTexImage::CopyToHost | ( | void * | buf | ) |
Definition at line 122 of file CuTexImage.cpp.
References NULL.
Referenced by pba::SparseBundleCU::RunProfileSteps(), pba::SparseBundleCU::SaveNormalEquation(), and pba::SparseBundleCU::TransferDataToHost().
|
inline |
Definition at line 53 of file CuTexImage.h.
References _cuData, GetRequiredSize(), and NULL.
Referenced by pba::SparseBundleCU::EvaluateDeltaNorm(), pba::SparseBundleCU::InitializeStorageForCG(), pba::SparseBundleCU::ReserveStorageAuto(), pba::SparseBundleCU::SaveUpdatedSystem(), and pba::SparseBundleCU::SolveNormalEquationPCGX().
|
inline |
Definition at line 65 of file CuTexImage.h.
References _numBytes, and GetRequiredSize().
Referenced by IsValid().
|
inline |
Definition at line 59 of file CuTexImage.h.
References _imgHeight.
|
inline |
Definition at line 58 of file CuTexImage.h.
References _imgWidth.
|
inline |
Definition at line 55 of file CuTexImage.h.
References _imgHeight, _imgWidth, and _numChannel.
Referenced by IsHugeData().
|
inline |
Definition at line 66 of file CuTexImage.h.
References _imgHeight, _imgWidth, and _numChannel.
Referenced by data(), and GetDataSize().
|
inline |
Definition at line 60 of file CuTexImage.h.
References _imgHeight, _numBytes, and _numChannel.
Referenced by pba::SparseBundleCU::CheckRequiredMem(), and pba::SparseBundleCU::ReserveStorage().
| bool CuTexImage::InitTexture | ( | unsigned int | width, |
| unsigned int | height, | ||
| unsigned int | nchannel = 1 |
||
| ) |
Definition at line 80 of file CuTexImage.cpp.
References height, size, and width.
Referenced by pba::SparseBundleCU::AdjustBundleAdjsutmentMode().
|
inline |
Definition at line 69 of file CuTexImage.h.
References GetLength().
|
inline |
Definition at line 54 of file CuTexImage.h.
References _cuData, GetDataSize(), and NULL.
Referenced by pba::SparseBundleCU::ComputeBlockPC(), pba::SparseBundleCU::ComputeDiagonal(), pba::SparseBundleCU::ComputeJtE(), pba::SparseBundleCU::ComputeJX(), pba::SparseBundleCU::EvaluateJacobians(), pba::SparseBundleCU::NonlinearOptimizeLM(), pba::SparseBundleCU::PrepareJacobianNormalization(), and pba::SparseBundleCU::TransferDataToGPU().
| void CuTexImage::ReleaseData | ( | ) |
Definition at line 49 of file CuTexImage.cpp.
References NULL.
Referenced by pba::SparseBundleCU::ReleaseAllocatedData(), pba::SparseBundleCU::RunProfileSteps(), and pba::SparseBundleCU::TransferDataToGPU().
| void CuTexImage::SaveToFile | ( | const char * | name | ) |
Definition at line 132 of file CuTexImage.cpp.
| void CuTexImage::SetTexture | ( | void * | data, |
| unsigned int | width, | ||
| unsigned int | nchannel = 1 |
||
| ) |
Definition at line 98 of file CuTexImage.cpp.
References width.
Referenced by pba::SparseBundleCU::EvaluateDeltaNorm(), pba::SparseBundleCU::InitializeStorageForCG(), pba::SparseBundleCU::SaveUpdatedSystem(), and pba::SparseBundleCU::SolveNormalEquationPCGX().
| void CuTexImage::SwapData | ( | CuTexImage & | src | ) |
Definition at line 55 of file CuTexImage.cpp.
References _cuData, _imgHeight, _imgWidth, _numBytes, _numChannel, and _owner.
Referenced by pba::SparseBundleCU::NonlinearOptimizeLM(), pba::SparseBundleCU::PrepareJacobianNormalization(), and pba::SparseBundleCU::SaveUpdatedSystem().
|
protected |
Definition at line 34 of file CuTexImage.h.
Referenced by data(), IsValid(), and SwapData().
|
protected |
Definition at line 37 of file CuTexImage.h.
Referenced by GetImgHeight(), GetLength(), GetRequiredSize(), GetReservedWidth(), and SwapData().
|
protected |
Definition at line 36 of file CuTexImage.h.
Referenced by GetImgWidth(), GetLength(), GetRequiredSize(), and SwapData().
|
protected |
Definition at line 38 of file CuTexImage.h.
Referenced by GetDataSize(), GetReservedWidth(), and SwapData().
|
protected |
Definition at line 35 of file CuTexImage.h.
Referenced by GetLength(), GetRequiredSize(), GetReservedWidth(), and SwapData().
|
protected |
Definition at line 33 of file CuTexImage.h.
Referenced by SwapData().