/* 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.
 *
 */

#include "nmm/multimedia/INode.idl"

module NMM {
  interface IBufferDrop {
    /**
     * Sets which buffers should be dropped (e.g. a '2' meaning every second buffer
     * should be dropped; a '3' meaning every third buffer)
     */
    void setBufferToDrop(in nmm_uint32 buffer_num);

    /**
     * Use this method to specify a drop ratio, e.g. dropping of 5 out
     * of 25 frames.
     * \param numerator The numerator of the ratio.
     * \param denominator The denominator of the ratio.
     */
    void setDropRatio(in nmm_uint32 numerator, in nmm_uint32 denominator);
  };

  interface ITimedBufferDrop {
    /**
     * Adds an in and out point for removing timestamped buffers froms stream
     */
    void addInOutPoint(in nmm_uint32 in_secs, in nmm_uint32 in_millisecs, 
		       in nmm_uint32 out_secs, in nmm_uint32 out_millisecs) 
      limited(INode::CONSTRUCTED);

    /**
     * If true, all inout-points have to be specified relative to first timestamp in stream
     */
    void useRelativeInOutPoints(in nmm_bool relative) limited(INode::CONSTRUCTED);

    /**
     * Gets the status of relative or absolute inout-points
     */
    nmm_bool isRelativeInOutPoints();
  };
}
