gst_plugins_symbian/gst/devsound/gstg711decoderinterface.h
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __G711_DECODER_INTERFACE__H
       
    20 #define __G711_DECODER_INTERFACE__H
       
    21 
       
    22 #include <glib.h>
       
    23 #include <gst/gstelement.h>
       
    24 #include <gst/gstpluginfeature.h>
       
    25 #include <gst/gst.h>
       
    26 #include <glib-object.h>
       
    27 
       
    28 G_BEGIN_DECLS
       
    29 
       
    30 #define GST_TYPE_G711_DECODER               (gst_g711_decoder_get_type ())
       
    31 #define GST_G711_DECODER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_G711_DECODER, GstG711Decoder))
       
    32 #define GST_G711_DECODER_CLASS(vtable)      (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_G711_DECODER, GstG711DecoderIntfc))
       
    33 #define GST_IS_G711_DECODER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_G711_DECODER))
       
    34 #define GST_IS_G711_DECODER_CLASS(vtable)   (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_G711_DECODER))
       
    35 #define GST_G711_DECODER_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_G711_DECODER, GstG711DecoderIntfc))
       
    36 
       
    37 typedef struct _GstG711Decoder     GstG711Decoder;
       
    38 typedef struct _GstG711DecoderIntfc GstG711DecoderIntfc;
       
    39 
       
    40 
       
    41 /**
       
    42 *  Interface for G711 decoder.
       
    43 *  This abstract class just provides the static NewL function for the creation
       
    44 *  of the proxy, and also defines the custom interface to be implemented by the
       
    45 *  proxy and the real custom interface implementation.
       
    46 *
       
    47 */
       
    48 enum TG711DecodeMode
       
    49     {
       
    50     EDecALaw,
       
    51     EDecULaw
       
    52      };
       
    53 struct _GstG711DecoderIntfc
       
    54     {
       
    55     GTypeInterface parent;   
       
    56     gint (*SetDecoderMode)(enum TG711DecodeMode aDecodeMode);
       
    57     gint (*SetCng)(gboolean aCng);
       
    58 	gint (*GetCng)(gboolean* aCng);
       
    59 	gint (*SetPlc)(gboolean aPlc);
       
    60 	
       
    61     };
       
    62 
       
    63 IMPORT_C GType gst_g711_decoder_get_type(void);
       
    64 
       
    65 G_END_DECLS
       
    66 
       
    67 #endif /* __G711_DECODER_INTERFACE__ */