Add code to get replay gain information after audio recording
[platform/core/multimedia/libmm-camcorder.git] / src / include / mm_camcorder_internal.h
index a656e35..21bb5a1 100644 (file)
@@ -570,6 +570,7 @@ typedef enum {
        _MMCAMCORDER_AUDIOSRC_QUE,
        _MMCAMCORDER_AUDIOSRC_CONV,
        _MMCAMCORDER_AUDIOSRC_VOL,
+       _MMCAMCORDER_AUDIOSRC_RGA,      /* for replay gain analysis element */
 
        /* Pipeline element of Encodebin */
        _MMCAMCORDER_ENCSINK_BIN,
@@ -663,6 +664,16 @@ typedef struct {
 } _MMCamcorderMTSafe;
 
 /**
+ * MMCamcorder Replay gain value
+ */
+typedef struct {
+       gdouble track_peak;
+       gdouble track_gain;
+       gdouble album_peak;
+       gdouble album_gain;
+} _MMCamcorderReplayGain;
+
+/**
  * MMCamcorder Sub Context
  */
 typedef struct {
@@ -689,6 +700,9 @@ typedef struct {
        int drop_vframe;                        /**< When this value is bigger than zero and pass_first_vframe is zero, MSL will drop video frame though cam_stability count is bigger then zero. */
        int pass_first_vframe;                  /**< When this value is bigger than zero, MSL won't drop video frame though "drop_vframe" is bigger then zero. */
 
+       /* Replay gain */
+       _MMCamcorderReplayGain replay_gain;     /**< Replay gain for audio recording */
+
        /* INI information */
        unsigned int fourcc;                    /**< Get fourcc value of camera INI file */
        _MMCamcorderImageInfo *info_image;      /**< extra information for image capture */