gst_plugins_symbian/gst/devsound/gstg729encoderinterface.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 __G729_ENCODER_INTERFACE__H
       
    20 #define __G729_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_G729_ENCODER               (gst_g729_encoder_get_type ())
       
    31 #define GST_G729_ENCODER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_G729_ENCODER, GstG729Encoder))
       
    32 #define GST_G729_ENCODER_CLASS(vtable)      (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_G729_ENCODER, GstG729EncoderIntfc))
       
    33 #define GST_IS_G729_ENCODER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_G729_ENCODER))
       
    34 #define GST_IS_G729_ENCODER_CLASS(vtable)   (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_G729_ENCODER))
       
    35 #define GST_G729_ENCODER_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_G729_ENCODER, GstG729EncoderIntfc))
       
    36 
       
    37 typedef struct _GstG729Encoder     GstG729Encoder;
       
    38 typedef struct _GstG729EncoderIntfc GstG729EncoderIntfc;
       
    39 
       
    40 
       
    41 /**
       
    42 *  Interface for G729 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 
       
    49 struct _GstG729EncoderIntfc
       
    50     {
       
    51     GTypeInterface parent;  
       
    52     gint (*SetVadMode) (gboolean aVadMode);
       
    53     gint (*GetVadMode)(gboolean* aVadMode);
       
    54 	
       
    55     };
       
    56 
       
    57 IMPORT_C GType gst_g729_encoder_get_type(void);
       
    58 
       
    59 G_END_DECLS
       
    60 
       
    61 #endif /* __G711_ENCODER_INTERFACE__ */