/usr/include/mimetic/codec/codec_base.h is in libmimetic-dev 0.9.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | /***************************************************************************
copyright : (C) 2002-2008 by Stefano Barbato
email : stefano@codesink.org
$Id: codec_base.h,v 1.13 2008-10-07 11:06:26 tat Exp $
***************************************************************************/
#ifndef _MIMETIC_CODEC_CODECBASE_H_
#define _MIMETIC_CODEC_CODECBASE_H_
namespace mimetic
{
struct buffered_codec_type_tag
{
};
struct unbuffered_codec_type_tag
{
};
/// Codecs base class
struct codec
{
typedef unsigned char char_type;
virtual ~codec() {}
virtual const char* name() const = 0;
/*! return the multiplier of the required (max) size of the output buffer
* when encoding */
virtual double codeSizeMultiplier() const { return 1.0; }
};
/// Base class for unbuffered codecs
struct unbuffered_codec: public codec
{
typedef unbuffered_codec_type_tag codec_type;
template<typename OutIt>
void flush(OutIt&)
{
}
};
/// Base class for buffered codecs
struct buffered_codec: public codec
{
typedef buffered_codec_type_tag codec_type;
};
}
#endif
|