Skip to content

Commit

Permalink
overhaul of raw data handling, now have local image for processing; f…
Browse files Browse the repository at this point in the history
…ixed colorbars; started fixing sat handling; removed debug trace
  • Loading branch information
jaredmales committed Nov 11, 2023
1 parent 38c8e12 commit d13706c
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 636 deletions.
15 changes: 0 additions & 15 deletions src/images/mzmqImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,8 @@ void mzmqImage::imageThreadExec()

if( nx != new_nx || ny != new_ny || atype != new_atype || !m_imageAttached)
{
DEBUG_TRACE_CRUMB
std::lock_guard<std::mutex> guard(*m_accessMutex);

DEBUG_TRACE_CRUMB

if(m_data) //This can't be a call to detach due to mutex
{
m_imageAttached = false;
Expand Down Expand Up @@ -375,8 +372,6 @@ void mzmqImage::imageThreadExec()
xe = xrif_allocate(xrif);

m_imageAttached = true;

DEBUG_TRACE_CRUMB
}

atype = new_atype;
Expand Down Expand Up @@ -511,32 +506,22 @@ int mzmqImage::update()

void mzmqImage::detach()
{
DEBUG_TRACE_ANCHOR(mzmqImage::detach begin)

std::lock_guard<std::mutex> guard(*m_accessMutex);

DEBUG_TRACE_CRUMB

m_imageAttached = false;
if(m_data) delete m_data;
m_data = nullptr;

m_lastCnt0 = -1;

DEBUG_TRACE_ANCHOR(mzmqImage::detach end)
}

bool mzmqImage::valid()
{
DEBUG_TRACE_ANCHOR(mzmqImage::valid begin)

if(m_data && m_imageAttached)
{
DEBUG_TRACE_ANCHOR(mzmqImage::valid true)
return true;
}

DEBUG_TRACE_ANCHOR(mzmqImage::valid false)
return false;

}
Expand Down
Loading

0 comments on commit d13706c

Please sign in to comment.