~ubuntu-branches/ubuntu/karmic/mp3val/karmic

« back to all changes in this revision

Viewing changes to mpegparse.h

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2008-01-23 09:11:35 UTC
  • mfrom: (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080123091135-r10vczs51d63e8p0
Tags: 0.1.7-3
* debian/control
  - bump Standards-Version to 3.7.3
  - bump dependency against debhelper to >=5
* debian/compat
  - bump to 5
* debian/dirs
  - removed since not needed
* debian/rules
  - do not ignore anymore clean error due to missing makefile
* debian/copyright
  - clear separation of upstream author, license and copyright
  - link to /usr/share/common-licenses/GPL file
* debian/mp3val.1
  - escaped minus signs (lintian warning)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * MP3val - a program for MPEG audio file validation
3
 
 * Copyright (C) 2005-2006 Alexey Kuznetsov (ring0) and Eugen Tikhonov (jetsys)
 
3
 * Copyright (C) 2005-2007 Alexey Kuznetsov (ring0) and Eugen Tikhonov (jetsys)
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
22
22
 
23
23
#include <iostream>
24
24
 
 
25
/*
 
26
 * MPEGINFO structure is used to contain both information about the last analyzed
 
27
 * frame (filled by ValidateMPEGFrame) and for the entire stream.
 
28
 */
 
29
 
 
30
 
25
31
struct MPEGINFO {
26
32
//MPEG frames counts
27
33
        int mpeg1layer1;
54
60
        int garbage_at_the_begin;
55
61
        int garbage_at_the_end;
56
62
 
57
 
//Misc data
 
63
//MPEG-related data
58
64
        bool LastFrameStereo;
 
65
        bool bLastFrameCRC;
 
66
        bool bCRC;
 
67
        bool bCRCError;
 
68
        int iLastBitrate;
59
69
        int iLastMPEGLayer;
60
70
        int iLastMPEGVersion;
 
71
//Miscellaneous data
 
72
        bool bVariableBitrate;
61
73
        int iTotalMPEGBytes;
62
74
        int iErrors;
63
75
        int iDeletedFrames;
 
76
        int iCRCErrors;
64
77
        
65
78
        MPEGINFO() {
66
79
                clear();
95
108
                garbage_at_the_end=-1;
96
109
                
97
110
                LastFrameStereo=false;
 
111
                bLastFrameCRC=false;
 
112
                bCRC=false;
 
113
                bCRCError=false;
 
114
                bVariableBitrate=false;
 
115
                iLastBitrate=-2;
98
116
                iLastMPEGLayer=0;
99
117
                iLastMPEGVersion=0;
 
118
                iCRCErrors=0;
100
119
                
101
120
                iTotalMPEGBytes=0;
102
121
                iErrors=0;