gst_plugins_symbian/gst/devsound/gsterrorconcealmentinterface.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 __ERROR_CONCEALMENT_INTERFACE__H
       
    20 #define __ERROR_CONCEALMENT_INTERFACE__H
       
    21 
       
    22 #include <glib.h>
       
    23 #include <gst/gstelement.h>
       
    24 #include <gst/gstpluginfeature.h>
       
    25 #include <gst/gst.h>
       
    26 
       
    27 G_BEGIN_DECLS
       
    28 
       
    29 #define GST_TYPE_ERROR_CONCEALMENT     (gst_error_concealment_get_type ())
       
    30 #define GST_ERROR_CONCEALMENT(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_ERROR_CONCEALMENT, GstErrorConcealment))
       
    31 #define GST_IS_ERROR_CONCEALMENT(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_ERROR_CONCEALMENT))
       
    32 #define GST_ERROR_CONCEALMENT_GET_IFACE(obj)   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_ERROR_CONCEALMENT, GstErrorConcealmentIntfc))
       
    33 
       
    34 typedef struct _GstErrorConcealment      GstErrorConcealment;
       
    35 typedef struct _GstErrorConcealmentIntfc GstErrorConcealmentIntfc;
       
    36 
       
    37 struct _GstErrorConcealmentIntfc
       
    38     {
       
    39     GTypeInterface parent;
       
    40     /**
       
    41      * Indicates that an frame of encoded audio is lost and that error
       
    42      * concealment should be performed for a lost frame.
       
    43      * By definition, the next buffer sent to the decoder will contain no
       
    44      * valid audio data.
       
    45      * @return status
       
    46      */
       
    47     gint (*ConcealErrorForNextBuffer) (void);
       
    48 
       
    49     /**
       
    50      * Puts the hwdevice into a frame-based interface.
       
    51      * The alternate mode of interface would be buffer-based.
       
    52      * @param aFrameMode
       
    53      * @return status
       
    54      */
       
    55     gint (*SetFrameMode)(gboolean aFrameMode);
       
    56 
       
    57     /**
       
    58      * Query to find out if frame-based interface is required by hwdevice
       
    59      * for supporting error concealment.
       
    60      * @param aFrameModeRqrd indicates if frame mode is required.
       
    61      * @return status
       
    62      */
       
    63     gint (*FrameModeRqrdForEC)(gboolean* aFrameModeRqrd);
       
    64 
       
    65     };
       
    66 
       
    67 IMPORT_C GType gst_error_concealment_get_type(void);
       
    68 
       
    69 G_END_DECLS
       
    70 
       
    71 #endif /* __ERROR_CONCEALMENT_INTERFACE */