/* Network-Integrated Multimedia Middleware (NMM)
 * http://www.motama.com/nmm.html
 *
 * Copyright (C) 2006-2007
 * Motama GmbH, Saarbruecken, Germany
 * http://www.motama.com
 *
 * This file is part of NMM. 
 * 
 * NMM is free software; you can redistribute it and/or modify it    
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; only version 2 of the License.      
 * 
 * NMM is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
 * License for more details.  
 * 
 * You should have received a copy of the GNU General Public License 
 * along with NMM; if not, write to the Free Software Foundation,    
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

module NMM {
  
  /**
   * Interface for still frame handling.
   * This interface provides instream events for indicating buffers that contain still frames.
   * A node sends two events to indicate that the last video frame contained in the buffers
   * between these two events is a stillframe.
   *
   * This looks a bit complicated but was necessary because the DVD reader indicates still frames
   * only after they have been read, and the output of the DVD reader is muxed data which contains
   * not only video data.
   * If a node can more easily detect a stillframe, it simply sends the two events before and
   * after sending the buffer that contains the still frame.
   */
  interface IStillFrame {
    
    /**
     * Set still frame flag.
     * Instream event to set the still frame flag.
     * The still frame flag must be set to @a true before and to @a false after the data
     * which contains the still frame.
     * Nodes which respond to these events must internally keep track of the still frame flag.
     * @param value of the still frame flag
     */
    Result setStillFrame(in nmm_bool value) instream;
  };
}
