gst_plugins_symbian/gst/devsound/gstg711encoderinterface.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_ENCODER_INTERFACE__H
       
    20 #define __G711_ENCODER_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_ENCODER               (gst_g711_encoder_get_type ())
       
    31 #define GST_G711_ENCODER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_G711_ENCODER, GstG711Encoder))
       
    32 #define GST_G711_ENCODER_CLASS(vtable)      (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_G711_ENCODER, GstG711EncoderIntfc))
       
    33 #define GST_IS_G711_ENCODER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_G711_ENCODER))
       
    34 #define GST_IS_G711_ENCODER_CLASS(vtable)   (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_G711_ENCODER))
       
    35 #define GST_G711_ENCODER_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_G711_ENCODER, GstG711EncoderIntfc))
       
    36 
       
    37 typedef struct _GstG711Encoder     GstG711Encoder;
       
    38 typedef struct _GstG711EncoderIntfc GstG711EncoderIntfc;
       
    39 
       
    40 
       
    41 /**
       
    42 *  Interface for G711 encoder.
       
    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 TG711EncodeMode
       
    49 	{
       
    50 	EEncALaw = 1,
       
    51 	EEncULaw
       
    52 	};
       
    53 	
       
    54 struct _GstG711EncoderIntfc
       
    55     {
       
    56     GTypeInterface parent;  
       
    57     gint (*SetEncoderMode)(enum TG711EncodeMode aEncodeMode);
       
    58     gint (*SetVadMode) (gboolean aVadMode);
       
    59     gint (*GetVadMode)(gboolean* aVadMode);
       
    60 	
       
    61     };
       
    62 
       
    63 IMPORT_C GType gst_g711_encoder_get_type(void);
       
    64 
       
    65 G_END_DECLS
       
    66 
       
    67 #endif /* __G711_ENCODER_INTERFACE__ */