/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.h | 45 void SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& normals, in CORE3D_BEGIN_NAMESPACE() 46 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, in CORE3D_BEGIN_NAMESPACE() 47 const DataBuffer& colors) override; in CORE3D_BEGIN_NAMESPACE() 51 … void SetJointData(size_t submeshIndex, const DataBuffer& jointData, const DataBuffer& weightData, in CORE3D_BEGIN_NAMESPACE() 54 …void SetMorphTargetData(size_t submeshIndex, const DataBuffer& basePositions, const DataBuffer& ba… in CORE3D_BEGIN_NAMESPACE() 55 …const DataBuffer& baseTangents, const DataBuffer& targetPositions, const DataBuffer& targetNormals, in CORE3D_BEGIN_NAMESPACE() 149 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals); in CORE3D_BEGIN_NAMESPACE() 151 …uint32_t targetSize, const DataBuffer& targetPositions, const MeshBuilder::DataBuffer& targetTange… in CORE3D_BEGIN_NAMESPACE() 153 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals, in CORE3D_BEGIN_NAMESPACE() 154 const DataBuffer& targetTangents); in CORE3D_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/common/src/utils/ |
H A D | data_buffer.cpp | 22 DataBuffer::DataBuffer(size_t capacity) in DataBuffer() function in OHOS::DistributedHardware::DataBuffer 33 size_t DataBuffer::Capacity() const in Capacity() 38 size_t DataBuffer::Size() const in Size() 43 size_t DataBuffer::Offset() const in Offset() 48 uint8_t *DataBuffer::Data() const in Data() 53 int32_t DataBuffer::SetRange(size_t offset, size_t size) in SetRange() 64 void DataBuffer::SetInt32(const std::string name, int32_t value) in SetInt32() 69 void DataBuffer::SetInt64(const std::string name, int64_t value) in SetInt64() 79 bool DataBuffer::FindInt32(const std::string& name, int32_t& value) in FindInt32() 112 int64_t DataBuffer::GetTimeStamp() in GetTimeStamp() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/databuffer/src/ |
H A D | data_buffer.cpp | 25 DataBuffer::DataBuffer(size_t capacity) in DataBuffer() function in OHOS::DistributedHardware::DataBuffer 36 DataBuffer::~DataBuffer() in ~DataBuffer() 48 size_t DataBuffer::Capacity() const in Capacity() 53 uint8_t *DataBuffer::Data() const in Data() 58 void DataBuffer::SetSize(size_t size) in SetSize() 63 void DataBuffer::SetDataType(uint8_t dataType) in SetDataType() 68 uint8_t DataBuffer::DataType() in DataType() 73 void DataBuffer::SetDataNumber(size_t number) in SetDataNumber() 78 size_t DataBuffer::DataNumber() in DataNumber() 83 void DataBuffer::ResetCapcity(size_t capacity) in ResetCapcity() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_mesh_builder.h | 97 struct DataBuffer { in CORE3D_BEGIN_NAMESPACE() struct 115 …virtual void SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& nor… in CORE3D_BEGIN_NAMESPACE() 116 const DataBuffer& texcoords0, const DataBuffer& texcoords1, const DataBuffer& tangents, in CORE3D_BEGIN_NAMESPACE() 117 const DataBuffer& colors) = 0; in CORE3D_BEGIN_NAMESPACE() 130 virtual void CalculateAABB(size_t submeshIndex, const DataBuffer& positions) = 0; in CORE3D_BEGIN_NAMESPACE() 136 virtual void SetIndexData(size_t submeshIndex, const DataBuffer& indices) = 0; in CORE3D_BEGIN_NAMESPACE() 145 …virtual void SetJointData(size_t submeshIndex, const DataBuffer& jointData, const DataBuffer& weig… in CORE3D_BEGIN_NAMESPACE() 146 const DataBuffer& vertexPositions) = 0; in CORE3D_BEGIN_NAMESPACE() 160 …ual void SetMorphTargetData(size_t submeshIndex, const DataBuffer& basePositions, const DataBuffer… in CORE3D_BEGIN_NAMESPACE() 161 …const DataBuffer& baseTangents, const DataBuffer& targetPositions, const DataBuffer& targetNormals, in CORE3D_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | data_buffer.cpp | 20 int DataBuffer::sequence_ = 0; 22 DataBuffer::DataBuffer() : buf_(nullptr), size_(0), used_(0) in DataBuffer() function in OHOS::AppDistributedKv::DataBuffer 25 DataBuffer::~DataBuffer() in ~DataBuffer() 33 bool DataBuffer::Init(size_t size) in Init() 47 const char *DataBuffer::GetBufPtr() const in GetBufPtr() 52 size_t DataBuffer::GetBufSize() const in GetBufSize() 57 void DataBuffer::SetBufUsed(size_t used) in SetBufUsed() 62 size_t DataBuffer::GetBufUsed() const in GetBufUsed()
|
H A D | data_buffer.h | 31 class DataBuffer { 33 DataBuffer(); 35 ~DataBuffer(); 69 uint8_t headArray[DataBuffer::HEADER_LEN];
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/test/unittest/common/pipeline_node/ |
H A D | scale_convert_process_test.cpp | 154 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 174 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 195 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 224 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 317 std::shared_ptr<DataBuffer> dtBuf = std::make_shared<DataBuffer>(10); 333 std::shared_ptr<DataBuffer> imgData = std::make_shared<DataBuffer>(10); 367 std::shared_ptr<DataBuffer> dtBuf = std::make_shared<DataBuffer>(10); 549 std::shared_ptr<DataBuffer> dtBuf = std::make_shared<DataBuffer>(10); 613 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 636 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); [all …]
|
H A D | decode_data_process_test.cpp | 226 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 259 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 316 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 353 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 364 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 402 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 439 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 499 std::shared_ptr<DataBuffer> outputBuffer; 531 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 536 std::shared_ptr<DataBuffer> outputBuffer; [all …]
|
H A D | fps_controller_process_test.cpp | 140 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 155 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 159 std::shared_ptr<DataBuffer> db; 167 std::shared_ptr<DataBuffer> dataBuf = std::make_shared<DataBuffer>(capacity); 199 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 200 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 232 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 233 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 268 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 269 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); [all …]
|
H A D | encode_data_process_test.cpp | 178 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 189 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 222 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 223 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 311 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 312 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 410 std::vector<std::shared_ptr<DataBuffer>> outputBuffers; 440 std::vector<std::shared_ptr<DataBuffer>> inputBuffers; 441 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity);
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/include/ |
H A D | dcamera_softbus_session.h | 42 int32_t OnDataReceived(std::shared_ptr<DataBuffer>& buffer); 43 int32_t SendData(DCameraSessionMode mode, std::shared_ptr<DataBuffer>& buffer); 61 int32_t SendBytes(std::shared_ptr<DataBuffer>& buffer); 62 int32_t SendStream(std::shared_ptr<DataBuffer>& buffer); 63 void DealRecvData(std::shared_ptr<DataBuffer>& buffer); 64 void PackRecvData(std::shared_ptr<DataBuffer>& buffer); 65 void AssembleNoFrag(std::shared_ptr<DataBuffer>& buffer, SessionDataHeader& headerPara); 66 void AssembleFrag(std::shared_ptr<DataBuffer>& buffer, SessionDataHeader& headerPara); 69 int32_t UnPackSendData(std::shared_ptr<DataBuffer>& buffer, DCameraSendFuc memberFunc); 71 void PostData(std::shared_ptr<DataBuffer>& buffer); [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/common/ |
H A D | data_stream_impl.h | 30 bool GetDataBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout) override; 31 bool QueueEmptyBuffer(const std::shared_ptr<DataBuffer>& buffer) override; 34 bool GetEmptyBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout) override; 35 bool QueueDataBuffer(const std::shared_ptr<DataBuffer>& buffer) override; 42 std::queue<std::shared_ptr<DataBuffer>> emptyBuffers_ {}; 43 std::queue<std::shared_ptr<DataBuffer>> dataBuffers_ {}; 44 std::vector<std::shared_ptr<DataBuffer>> allBuffers_ {}; // keep all buffers 47 class VirtualDataBuffer : public DataBuffer {
|
/ohos5.0/foundation/distributedhardware/distributed_camera/common/include/utils/ |
H A D | data_buffer.h | 28 class DataBuffer : public IFeedableData { 30 explicit DataBuffer(size_t capacity); 45 virtual ~DataBuffer(); 58 DataBuffer(const DataBuffer &) = delete; 59 DataBuffer &operator = (const DataBuffer &) = delete;
|
/ohos5.0/base/security/device_security_level/test/dslm_unit_test/ |
H A D | dslm_oem_property_test.cpp | 42 extern int32_t EcdsaVerify(const struct DataBuffer *srcData, const struct DataBuffer *sigData, 43 const struct DataBuffer *pbkData, uint32_t algorithm); 686 const DataBuffer srcData = {.length = length, .data = (uint8_t *)data}; 687 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; 688 DataBuffer *pbkData = nullptr; 703 const DataBuffer srcData = {.length = length, .data = nullptr}; 714 const DataBuffer sigData = {.length = length, .data = nullptr}; 725 const DataBuffer pbkData = {.length = length, .data = nullptr}; 740 const DataBuffer srcData = {.length = 0, .data = (uint8_t *)data}; 751 const DataBuffer sigData = {.length = 0, .data = (uint8_t *)data}; [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/ |
H A D | dcamera_softbus_session_test.cpp | 131 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 150 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 172 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 192 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 213 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 298 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 321 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 364 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 382 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity);
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/screendatachannel/include/ |
H A D | screen_data_channel_impl.h | 39 int32_t SendData(const std::shared_ptr<DataBuffer> &screenData) override; 41 int32_t SendFullData(const std::shared_ptr<DataBuffer> &screenData); 42 int32_t SendDirtyData(const std::shared_ptr<DataBuffer> &screenData); 43 …void ProcessDirtyData(const StreamData *data, std::shared_ptr<DataBuffer> dataBuffer, const Stream… 44 void ProcessDullData(const StreamData *data, std::shared_ptr<DataBuffer> dataBuffer); 50 void DirtyVecToJson(nlohmann::json &rectJson, const std::shared_ptr<DataBuffer> &screenData); 51 void JsonToDirtyJson(nlohmann::json &rectJson, std::shared_ptr<DataBuffer> &screenData);
|
/ohos5.0/foundation/multimedia/media_utils_lite/interfaces/kits/ |
H A D | data_stream.h | 41 class DataBuffer { 43 virtual ~DataBuffer() = default; 114 virtual bool GetEmptyBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout = -1) = 0; 123 virtual bool QueueDataBuffer(const std::shared_ptr<DataBuffer>& buffer) = 0; 144 virtual bool GetDataBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout = -1) = 0; 153 virtual bool QueueEmptyBuffer(const std::shared_ptr<DataBuffer>& buffer) = 0;
|
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/standard/ |
H A D | data_stream.h | 41 class DataBuffer { 43 virtual ~DataBuffer() = default; 114 virtual bool GetEmptyBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout = -1) = 0; 123 virtual bool QueueDataBuffer(const std::shared_ptr<DataBuffer>& buffer) = 0; 144 virtual bool GetDataBuffer(std::shared_ptr<DataBuffer>& buffer, int timeout = -1) = 0; 153 virtual bool QueueEmptyBuffer(const std::shared_ptr<DataBuffer>& buffer) = 0;
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screensinkprocessor/src/ |
H A D | image_sink_decoder_test.cpp | 339 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); 344 std::queue<std::shared_ptr<DataBuffer>>().swap(imageDecoder_->videoDataQueue_); 423 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(100); 437 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(100); 450 std::shared_ptr<DataBuffer> screenData = nullptr; 465 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(100); 481 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(100); 497 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(110); 525 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(DATA_LEN);
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screendatachannel/src/ |
H A D | screen_data_channel_impl_test.cpp | 142 std::shared_ptr<DataBuffer> screenData = nullptr; 155 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); 169 std::shared_ptr<DataBuffer> screenData = nullptr; 182 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); 261 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); 276 std::shared_ptr<DataBuffer> data = nullptr; 290 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); 353 std::shared_ptr<DataBuffer> screenData = std::make_shared<DataBuffer>(10);
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcameramgr/ |
H A D | dcamera_stream_data_process_producer_test.cpp | 75 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 113 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 146 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 178 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); 202 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity);
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/test/unittest/common/pipeline/ |
H A D | dcamera_pipeline_source_test.cpp | 117 std::vector<std::shared_ptr<DataBuffer>> buffers; 118 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 175 std::vector<std::shared_ptr<DataBuffer>> buffers; 191 std::vector<std::shared_ptr<DataBuffer>> buffers; 192 std::shared_ptr<DataBuffer> db = std::make_shared<DataBuffer>(capacity); 243 std::shared_ptr<DataBuffer> videoResult = std::make_shared<DataBuffer>(i);
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_softbus_session.cpp | 107 int32_t DCameraSoftbusSession::OnDataReceived(std::shared_ptr<DataBuffer>& buffer) in OnDataReceived() 118 void DCameraSoftbusSession::DealRecvData(std::shared_ptr<DataBuffer>& buffer) in DealRecvData() 128 void DCameraSoftbusSession::PackRecvData(std::shared_ptr<DataBuffer>& buffer) in PackRecvData() 177 std::shared_ptr<DataBuffer> postData = std::make_shared<DataBuffer>(headerPara.dataLen); in AssembleNoFrag() 200 packBuffer_ = std::make_shared<DataBuffer>(headerPara.totalLen); in AssembleFrag() 278 void DCameraSoftbusSession::PostData(std::shared_ptr<DataBuffer>& buffer) in PostData() 280 std::vector<std::shared_ptr<DataBuffer>> buffers; in PostData() 336 …std::shared_ptr<DataBuffer> unpackData = std::make_shared<DataBuffer>(buffer->Size() + BINARY_HEAD… in UnPackSendData() 353 std::shared_ptr<DataBuffer> unpackData = in UnPackSendData() 423 int32_t DCameraSoftbusSession::SendBytes(std::shared_ptr<DataBuffer>& buffer) in SendBytes() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/scale_conversion/ |
H A D | scale_convert_process.h | 51 int32_t ProcessData(std::vector<std::shared_ptr<DataBuffer>>& inputBuffers) override; 61 int32_t GetImageUnitInfo(ImageUnitInfo& imgInfo, const std::shared_ptr<DataBuffer>& imgBuf); 70 std::shared_ptr<DataBuffer>& dstBuf); 72 std::shared_ptr<DataBuffer>& dstBuf); 74 std::shared_ptr<DataBuffer>& dstBuf); 77 int32_t ConvertDone(std::vector<std::shared_ptr<DataBuffer>>& outputBuffers);
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/include/eventbus/ |
H A D | dcamera_pipeline_event.h | 34 const std::vector<std::shared_ptr<DataBuffer>>& multiDataBuffers) in PipelineConfig() 58 void SetDataBuffers(std::vector<std::shared_ptr<DataBuffer>>& multiDataBuffers) in SetDataBuffers() 63 std::vector<std::shared_ptr<DataBuffer>> GetDataBuffers() const in GetDataBuffers() 71 std::vector<std::shared_ptr<DataBuffer>> multiDataBuffers_;
|