Ticket #8182: zmlive-colors.RGB565-git.patch

File zmlive-colors.RGB565-git.patch, 1.2 KB (added by otto@…, 9 years ago)

Updated previous patch to git version, no functional changes

  • mythplugins/mythzoneminder/mythzoneminder/zmdefines.h

    diff --git a/mythplugins/mythzoneminder/mythzoneminder/zmdefines.h b/mythplugins/mythzoneminder/mythzoneminder/zmdefines.h
    index fcbbde7..b6ff6c8 100644
    a b typedef struct 
    4141enum MonitorPalette
    4242{
    4343    MP_GREY = 1,
     44    MP_RGB565 = 3,
    4445    MP_RGB24 = 4
    4546};
    4647
  • mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp

    diff --git a/mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp b/mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp
    index 1bc0cf9..a6d39eb 100644
    a b void Player::updateFrame(const unsigned char* buffer) 
    459459                m_rgba[pos_rgba++] = b;
    460460                m_rgba[pos_rgba++] = 0xff;
    461461            }
     462            else if (m_monitor.palette == MP_RGB565)
     463            {
     464                m_rgba[pos_rgba++] = r;
     465                m_rgba[pos_rgba++] = b;
     466                m_rgba[pos_rgba++] = g;
     467                m_rgba[pos_rgba++] = 0xff;
     468            }
    462469            else
    463470            {
    464471                m_rgba[pos_rgba++] = b;