~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to mediastreamer/msGSMdecoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  The mediastreamer library aims at providing modular media processing and I/O
3
 
        for linphone, but also for any telephony application.
4
 
  Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org
5
 
                                                                                
6
 
  This library is free software; you can redistribute it and/or
7
 
  modify it under the terms of the GNU Lesser General Public
8
 
  License as published by the Free Software Foundation; either
9
 
  version 2.1 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
 
  Lesser General Public License for more details.
15
 
 
16
 
  You should have received a copy of the GNU Lesser General Public
17
 
  License along with this library; if not, write to the Free Software
18
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
*/
20
 
 
21
 
 
22
 
#ifndef MSGSMDECODER_H
23
 
#define MSGSMDECODER_H
24
 
 
25
 
#include <msfilter.h>
26
 
#include <mscodec.h>
27
 
#include <gsm.h>
28
 
 
29
 
/*this is the class that implements a GSMdecoder filter*/
30
 
 
31
 
#define MSGSMDECODER_MAX_INPUTS  1 /* max output per filter*/
32
 
 
33
 
 
34
 
typedef struct _MSGSMDecoder
35
 
{
36
 
    /* the MSGSMDecoder derivates from MSFilter, so the MSFilter object MUST be the first of the MSGSMDecoder object
37
 
       in order to the object mechanism to work*/
38
 
    MSFilter filter;
39
 
    MSFifo *f_inputs[MSGSMDECODER_MAX_INPUTS];
40
 
    MSFifo *f_outputs[MSGSMDECODER_MAX_INPUTS];
41
 
    gsm gsm_handle;
42
 
} MSGSMDecoder;
43
 
 
44
 
typedef struct _MSGSMDecoderClass
45
 
{
46
 
        /* the MSGSMDecoder derivates from MSFilter, so the MSFilter class MUST be the first of the MSGSMDecoder class
47
 
       in order to the class mechanism to work*/
48
 
        MSFilterClass parent_class;
49
 
} MSGSMDecoderClass;
50
 
 
51
 
/* PUBLIC */
52
 
#define MS_GSMDECODER(filter) ((MSGSMDecoder*)(filter))
53
 
#define MS_GSMDECODER_CLASS(klass) ((MSGSMDecoderClass*)(klass))
54
 
MSFilter * ms_GSMdecoder_new(void);
55
 
 
56
 
/* FOR INTERNAL USE*/
57
 
void ms_GSMdecoder_init(MSGSMDecoder *r);
58
 
void ms_GSMdecoder_class_init(MSGSMDecoderClass *klass);
59
 
void ms_GSMdecoder_destroy( MSGSMDecoder *obj);
60
 
void ms_GSMdecoder_process(MSGSMDecoder *r);
61
 
 
62
 
extern MSCodecInfo GSMinfo;
63
 
 
64
 
#endif