LCOV - code coverage report
Current view: top level - pression - compressorInfo.h (source / functions) Hit Total Coverage
Test: Pression Lines: 1 1 100.0 %
Date: 2016-12-06 05:44:58 Functions: 1 1 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2010-2013, Stefan Eilemann <eile@eyescale.ch>
       3             :  *
       4             :  * This file is part of Pression <https://github.com/Eyescale/Pression>
       5             :  *
       6             :  * This library is free software; you can redistribute it and/or modify it under
       7             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       8             :  * by the Free Software Foundation.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      11             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      12             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      13             :  * details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public License
      16             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      17             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             :  */
      19             : 
      20             : #ifndef PRESSION_COMPRESSORINFO_H
      21             : #define PRESSION_COMPRESSORINFO_H
      22             : 
      23             : #include <pression/types.h>
      24             : #include <pression/plugins/compressor.h> // base struct
      25             : 
      26             : #include <iostream>
      27             : 
      28             : namespace pression
      29             : {
      30             : /** @internal Augment the plugin information with additional data. */
      31             : struct CompressorInfo : public EqCompressorInfo
      32             : {
      33          40 :     CompressorInfo() : ratingAlpha( 0.f ), ratingNoAlpha( 0.f ) {}
      34             : 
      35             :     float ratingAlpha; //!< f( speed, ratio ) heuristic, bigger is better
      36             :     float ratingNoAlpha; //!< f( speed, ratio ) heuristic
      37             : };
      38             : 
      39             : inline std::ostream& operator << ( std::ostream& os, const CompressorInfo& info)
      40             : {
      41             :     return os << static_cast< const EqCompressorInfo& >( info ) << " rating "
      42             :               << info.ratingAlpha;
      43             : }
      44             : 
      45             : }
      46             : 
      47             : #endif //PRESSION_COMPRESSORINFO_H

Generated by: LCOV version 1.11