/usr/include/avifile-0.7/StreamInfo.h is in libavifile-0.7-dev 1:0.7.48~20090503.ds-19+b1.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | #ifndef AVIFILE_STREAMINFO_H
#define AVIFILE_STREAMINFO_H
#ifndef AVIFILE_INFOTYPES_H
#error Wrong usage of StreamInfo.h - include only infotypes.h!
#endif
#include "avm_default.h"
#include "avm_stl.h"
/*
* this file could be a part of infotypes in future > so be careful
*
* so include only !!!! infotypes.h !!!! (StreamInfo is included there!)
*/
AVM_BEGIN_NAMESPACE;
class IMediaReadStream;
class AviReadStream;
class AsfReadStream;
class FFReadStream;
class AVMEXPORT StreamInfo
{
friend class IMediaReadStream;
friend class AviReadStream;
friend class AsfReadStream;
friend class FFReadStream;
public:
enum Type { Video, Audio, Other };
StreamInfo();
StreamInfo(const StreamInfo&);// copy
~StreamInfo();
/// returns string representation of this Info structure
avm::string GetString() const;
/// stream type (Video, Audio,...)
Type GetType() const;
/// Format tag (FourCC for Video, WAVEFORMAT Tag for audio,
uint_t GetFormat() const;
const char* GetFormatName() const;
/// Quality of the stream 0..10000 (not sure here)
int GetQuality() const;
double GetBps() const; // calculated Bps
double GetFps() const; // calculated Fps
/// total length of the stream in seconds
double GetLengthTime() const;
/// total stream size
int64_t GetStreamSize() const;
/// frames in the stream
uint_t GetStreamFrames() const;
/// size of each sample in stream - will be 0 for VBR streams
size_t GetSampleSize() const;
/// some stats about frames
/// note - for Audio stream are all frames marked as KeyFrames
size_t GetMaxKfFrameSize() const;
size_t GetMinKfFrameSize() const;
size_t GetAvgKfFrameSize() const;
uint_t GetKfFrames() const;
int64_t GetKfFramesSize() const;
/// delta frames - valid for video stream
size_t GetMaxFrameSize() const;
size_t GetMinFrameSize() const;
size_t GetAvgFrameSize() const;
uint_t GetFrames() const;
int64_t GetFramesSize() const;
// for non video returns -1
int GetVideoWidth() const;
int GetVideoHeight() const;
float GetAspectRatio() const;
// for non audio returns -1
int GetAudioBitsPerSample() const;
int GetAudioChannels() const;
int GetAudioSamplesPerSec() const;
const avm::vector<avm::string>& GetProperties() const;
protected:
struct StreamInfoPriv; // forward declaration
struct StreamInfoPriv* m_p; // private structure - hidden
};
AVM_END_NAMESPACE;
#endif // AVIFILE_STREAMINFO_H
|