fix: reduce more copy times
This commit is contained in:
parent
a5b337b50f
commit
34b079f9ad
|
@ -34,6 +34,12 @@ class DepthProcessor : public Processor {
|
|||
std::string Name() override;
|
||||
|
||||
protected:
|
||||
inline Processor::process_type ProcessOutputConnection() override {
|
||||
return Processor::WITHOUT_CLONE;
|
||||
}
|
||||
inline Processor::process_type ProcessInputConnection() override {
|
||||
return Processor::WITHOUT_CLONE;
|
||||
}
|
||||
Object *OnCreateOutput() override;
|
||||
bool OnProcess(
|
||||
Object *const in, Object *const out,
|
||||
|
|
|
@ -41,6 +41,9 @@ class DisparityProcessor : public Processor {
|
|||
void NotifyComputingTypeChanged(const DisparityComputingMethod &MethodType);
|
||||
|
||||
protected:
|
||||
inline Processor::process_type ProcessOutputConnection() override {
|
||||
return Processor::WITHOUT_CLONE;
|
||||
}
|
||||
Object *OnCreateOutput() override;
|
||||
bool OnProcess(
|
||||
Object *const in, Object *const out,
|
||||
|
|
|
@ -37,6 +37,12 @@ class PointsProcessorOCV : public Processor {
|
|||
bool OnProcess(
|
||||
Object *const in, Object *const out,
|
||||
std::shared_ptr<Processor> const parent) override;
|
||||
inline Processor::process_type ProcessOutputConnection() override {
|
||||
return Processor::WITHOUT_CLONE;
|
||||
}
|
||||
inline Processor::process_type ProcessInputConnection() override {
|
||||
return Processor::WITHOUT_CLONE;
|
||||
}
|
||||
|
||||
private:
|
||||
cv::Mat Q_;
|
||||
|
|
Loading…
Reference in New Issue
Block a user