mirror of
https://github.com/opencv/opencv.git
synced 2025-06-18 16:11:50 +08:00
Removed unused functions from View::Priv
This commit is contained in:
parent
a6160b6994
commit
322115bfcf
@ -402,20 +402,6 @@ fluid::ViewPrivWithoutOwnBorder::ViewPrivWithoutOwnBorder(const Buffer *parent,
|
|||||||
m_border_size = borderSize;
|
m_border_size = borderSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint8_t* fluid::ViewPrivWithoutOwnBorder::InLineB(int index) const
|
|
||||||
{
|
|
||||||
GAPI_DbgAssert(m_p);
|
|
||||||
|
|
||||||
const auto &p_priv = m_p->priv();
|
|
||||||
|
|
||||||
GAPI_DbgAssert(index >= -m_border_size
|
|
||||||
&& index < -m_border_size + m_lines_next_iter);
|
|
||||||
|
|
||||||
const int log_idx = m_read_caret + index;
|
|
||||||
|
|
||||||
return p_priv.storage().inLineB(log_idx, m_p->meta().size.height);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fluid::ViewPrivWithoutOwnBorder::allocate(int lineConsumption, BorderOpt)
|
void fluid::ViewPrivWithoutOwnBorder::allocate(int lineConsumption, BorderOpt)
|
||||||
{
|
{
|
||||||
initCache(lineConsumption);
|
initCache(lineConsumption);
|
||||||
@ -475,17 +461,6 @@ std::size_t fluid::ViewPrivWithOwnBorder::size() const
|
|||||||
return m_own_storage.size();
|
return m_own_storage.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint8_t* fluid::ViewPrivWithOwnBorder::InLineB(int index) const
|
|
||||||
{
|
|
||||||
GAPI_DbgAssert(m_p);
|
|
||||||
GAPI_DbgAssert(index >= -m_border_size
|
|
||||||
&& index < -m_border_size + m_lines_next_iter);
|
|
||||||
|
|
||||||
const int log_idx = m_read_caret + index;
|
|
||||||
|
|
||||||
return m_own_storage.inLineB(log_idx, m_p->meta().size.height);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool fluid::View::ready() const
|
bool fluid::View::ready() const
|
||||||
{
|
{
|
||||||
return m_priv->ready();
|
return m_priv->ready();
|
||||||
@ -641,13 +616,6 @@ int fluid::Buffer::Priv::linesReady() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* fluid::Buffer::Priv::OutLineB(int index)
|
|
||||||
{
|
|
||||||
GAPI_DbgAssert(index >= 0 && index < m_writer_lpi);
|
|
||||||
|
|
||||||
return m_storage->ptr(m_write_caret + index);
|
|
||||||
}
|
|
||||||
|
|
||||||
int fluid::Buffer::Priv::lpi() const
|
int fluid::Buffer::Priv::lpi() const
|
||||||
{
|
{
|
||||||
// FIXME:
|
// FIXME:
|
||||||
|
@ -197,9 +197,6 @@ public:
|
|||||||
|
|
||||||
// Does the view have enough unread lines for next iteration
|
// Does the view have enough unread lines for next iteration
|
||||||
bool ready() const;
|
bool ready() const;
|
||||||
|
|
||||||
// API used (indirectly) by user code
|
|
||||||
virtual const uint8_t* InLineB(int index) const = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ViewPrivWithoutOwnBorder final : public View::Priv
|
class ViewPrivWithoutOwnBorder final : public View::Priv
|
||||||
@ -212,9 +209,6 @@ public:
|
|||||||
virtual void prepareToRead() override;
|
virtual void prepareToRead() override;
|
||||||
|
|
||||||
inline virtual std::size_t size() const override { return 0; }
|
inline virtual std::size_t size() const override { return 0; }
|
||||||
|
|
||||||
// API used (indirectly) by user code
|
|
||||||
virtual const uint8_t* InLineB(int index) const override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ViewPrivWithOwnBorder final : public View::Priv
|
class ViewPrivWithOwnBorder final : public View::Priv
|
||||||
@ -228,9 +222,6 @@ public:
|
|||||||
virtual void allocate(int lineConsumption, BorderOpt border) override;
|
virtual void allocate(int lineConsumption, BorderOpt border) override;
|
||||||
virtual void prepareToRead() override;
|
virtual void prepareToRead() override;
|
||||||
virtual std::size_t size() const override;
|
virtual std::size_t size() const override;
|
||||||
|
|
||||||
// API used (indirectly) by user code
|
|
||||||
virtual const uint8_t* InLineB(int index) const override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void debugBufferPriv(const Buffer& buffer, std::ostream &os);
|
void debugBufferPriv(const Buffer& buffer, std::ostream &os);
|
||||||
@ -290,7 +281,6 @@ public:
|
|||||||
inline int writer_lpi() const { return m_writer_lpi; }
|
inline int writer_lpi() const { return m_writer_lpi; }
|
||||||
|
|
||||||
// API used (indirectly) by user code
|
// API used (indirectly) by user code
|
||||||
uint8_t* OutLineB(int index = 0);
|
|
||||||
int lpi() const;
|
int lpi() const;
|
||||||
|
|
||||||
inline int readStart() const { return m_readStart; }
|
inline int readStart() const { return m_readStart; }
|
||||||
|
Loading…
Reference in New Issue
Block a user