Example #1
0
ThumbFinder::ThumbFinder(MythScreenStack *parent, ArchiveItem *archiveItem,
                         const QString &menuTheme)
            :MythScreenType(parent, "ThumbFinder"),
    m_inputFC(nullptr),        m_codecCtx(nullptr),
    m_codec(nullptr),
    m_fps(0.0),                m_outputbuf(nullptr),
    m_frameWidth(0),           m_frameHeight(0),
    m_videostream(0),          m_currentSeek(0),
    m_startTime(-1),           m_startPTS(-1),
    m_currentPTS(-1),          m_firstIFramePTS(-1),
    m_frameTime(0),            m_updateFrame(false),
    m_finalDuration(0),        m_offset(0),
    m_archiveItem(archiveItem),
    m_thumbCount(getChapterCount(menuTheme)),
    m_thumbDir(createThumbDir()),
    m_frameButton(nullptr),    m_saveButton(nullptr),
    m_cancelButton(nullptr),   m_frameImage(nullptr),
    m_positionImage(nullptr),  m_imageGrid(nullptr),
    m_seekAmountText(nullptr), m_currentPosText(nullptr)
{
    // copy thumbList so we can abandon changes if required
    m_thumbList.clear();
    for (int x = 0; x < m_archiveItem->thumbList.size(); x++)
    {
        ThumbImage *thumb = new ThumbImage;
        *thumb = *m_archiveItem->thumbList.at(x);
        m_thumbList.append(thumb);
    }
}
Example #2
0
ThumbFinder::ThumbFinder(MythScreenStack *parent, ArchiveItem *archiveItem,
                         const QString &menuTheme)
    :MythScreenType(parent, "ThumbFinder")
{
    m_archiveItem = archiveItem;

    m_thumbDir = createThumbDir();

    // copy thumbList so we can abandon changes if required
    m_thumbList.clear();
    for (int x = 0; x < m_archiveItem->thumbList.size(); x++)
    {
        ThumbImage *thumb = new ThumbImage;
        *thumb = *m_archiveItem->thumbList.at(x);
        m_thumbList.append(thumb);
    }

    m_thumbCount = getChapterCount(menuTheme);

    m_currentSeek = 0;
    m_offset = 0;
    m_startTime = -1;
    m_startPTS = -1;
    m_currentPTS = -1;
    m_firstIFramePTS = -1;
    m_image = NULL;
}