gst_plugins_symbian/gst/devsound/gstilbcencoderinterface.h
changeset 2 5505e8908944
equal deleted inserted replaced
1:4c282e7dd6d3 2:5505e8908944
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3 *
       
     4 * This library is free software; you can redistribute it and/or
       
     5 * modify it under the terms of the GNU Lesser General Public
       
     6 * License as published by the Free Software Foundation; either
       
     7 * version 2 of the License, or (at your option) any later version.
       
     8 *
       
     9 * This library is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12 * Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public
       
    15 * License along with this library; if not, write to the
       
    16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17 * Boston, MA 02111-1307, USA.
       
    18 *
       
    19 * Description:
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef __ILBC_ENCODER_INTERFACE__H
       
    25 #define __ILBC_ENCODER_INTERFACE__H
       
    26 
       
    27 #include <glib.h>
       
    28 #include <gst/gstelement.h>
       
    29 #include <gst/gstpluginfeature.h>
       
    30 #include <gst/gst.h>
       
    31 #include <glib-object.h>
       
    32 
       
    33 G_BEGIN_DECLS
       
    34 
       
    35 #define GST_TYPE_ILBC_ENCODER               (gst_ilbc_encoder_get_type ())
       
    36 #define GST_ILBC_ENCODER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_ILBC_ENCODER, GstIlbcEncoder))
       
    37 #define GST_ILBC_ENCODER_CLASS(vtable)      (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_ILBC_ENCODER, GstIlbcEncoderIntfc))
       
    38 #define GST_IS_ILBC_ENCODER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_ILBC_ENCODER))
       
    39 #define GST_IS_ILBC_ENCODER_CLASS(vtable)   (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_ILBC_ENCODER))
       
    40 #define GST_ILBC_ENCODER_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_ILBC_ENCODER, GstIlbcEncoderIntfc))
       
    41 
       
    42 typedef struct _GstIlbcEncoder     GstIlbcEncoder;
       
    43 typedef struct _GstIlbcEncoderIntfc GstIlbcEncoderIntfc;
       
    44 
       
    45 
       
    46 /**
       
    47 *  Interface for Ilbc encoder.
       
    48 *  This abstract class just provides the static NewL function for the creation
       
    49 *  of the proxy, and also defines the custom interface to be implemented by the
       
    50 *  proxy and the real custom interface implementation.
       
    51 *
       
    52 */
       
    53 enum TIlbcEncodeMode
       
    54 	{
       
    55 	EIlbc20msFrame = 1,
       
    56 	EIlbc30msFrame
       
    57 	};
       
    58 	
       
    59 struct _GstIlbcEncoderIntfc
       
    60     {
       
    61     GTypeInterface parent;  
       
    62     gint (*SetEncoderMode)(enum TIlbcEncodeMode aEncodeMode);
       
    63     gint (*SetVadMode) (gboolean aVadMode);
       
    64     gint (*GetVadMode)(gboolean* aVadMode);
       
    65 	
       
    66     };
       
    67 
       
    68 IMPORT_C GType gst_ilbc_encoder_get_type(void);
       
    69 
       
    70 G_END_DECLS
       
    71 
       
    72 #endif /* __ILBC_ENCODER_INTERFACE__ */