Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 *	Bitrate histogram include file
3
 *
4
 *	Copyright (c) 2000 Mark Taylor
5
 *
6
 * This library is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU Library General Public
8
 * License as published by the Free Software Foundation; either
9
 * version 2 of the License, or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
14
 * Library General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Library General Public
17
 * License along with this library; if not, write to the
18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 * Boston, MA 02111-1307, USA.
20
 */
21
 
22
#ifndef LAME_BRHIST_H
23
#define LAME_BRHIST_H
24
 
25
#if defined(_WIN32)  &&  !defined(__CYGWIN__)
26
# include <windows.h>
27
#endif
28
#include "lame.h"
29
 
30
int   brhist_init       ( const lame_global_flags  *gf, const int bitrate_kbps_min, const int bitrate_kbps_max );
31
void  brhist_disp       ( const lame_global_flags  *gf );
32
void  brhist_disp_total ( const lame_global_flags  *gf );
33
void  brhist_jump_back  ( void );
34
 
35
typedef struct {
36
    FILE*   Console_fp;			/* filepointer to stream reporting information */
37
    FILE*   Error_fp;                   /* filepointer to stream fatal error reporting information */
38
    FILE*   Report_fp;                  /* filepointer to stream reports (normally a text file or /dev/null) */
39
#if defined(_WIN32)  &&  !defined(__CYGWIN__) 
40
    HANDLE  Console_Handle;
41
#endif
42
    int     disp_width;
43
    int     disp_height;
44
    char    str_up         [10];
45
    char    str_clreoln    [10];
46
    char    str_emph       [10];
47
    char    str_norm       [10];
48
    char    Console_buff [1024];
49
} Console_IO_t;
50
 
51
extern Console_IO_t  Console_IO;
52
 
53
#endif /* LAME_BRHIST_H */