Пример #1
0
bool
DPXOutput::write_buffer ()
{
    if (m_write_pending) {
        m_dpx.WriteElement (m_subimage, &m_buf[0], m_datasize);
        m_write_pending = false;
    }
    return true;
}
Пример #2
0
bool
DPXOutput::close ()
{
    if (m_stream) {
        m_dpx.WriteElement (0, &m_buf[0], m_datasize);
        m_dpx.Finish ();
    }
        
    init();  // Reset to initial state
    return true;  // How can we fail?
                  // Epicly. -- IneQuation
}