/**
* Video Container Formats
*/
-typedef enum
-{
+typedef enum {
/* 3gp */
MM_CONTAINER_3GP = 0x00,
MM_CONTAINER_MP4,
/**
* Video Encoder
*/
-typedef enum
-{
+typedef enum {
MM_VIDEOENCODER_MPEG4 = 0x00,
MM_VIDEOENCODER_H263,
MM_VIDEOENCODER_H264,
/**
* Audio Encorder
*/
-typedef enum
-{
+typedef enum {
MM_AUDIOENCODER_AAC = 0x00,
MM_AUDIOENCODER_AMR,
MM_AUDIOENCODER_NO_USE,
/**
* Video Seek Mode
*/
-typedef enum
-{
+typedef enum {
/* 3GP */
MM_SEEK_INACCURATE = 0x00,
MM_SEEK_ACCURATE,
/**
*
- * @remark Transcode Handle Creation
+ * @remark Transcode Handle Creation
*
* @param MMHandle [in] MMHandleType pointer
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then handle creation succeed
* else if the result is -1, then handle creation failed
*/
/**
*
- * @remark Video Transcode Pipeline
+ * @remark Video Transcode Pipeline
*
* @param MMHandle [in] MMHandleType
* @param in_Filename [in] Input Video File pointer
* @param videoencoder [in] Videoencoder (avenc_h263p/avenc_mpeg4/savsenc_mp4/savsenc_h264)
* @param audioencoder [in] Audioencoder (amr/aac)
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then you can use output_Filename pointer(char** value)
* else if the result is -1, then do not execute when the colopsapce converter is not supported
*/
/**
*
- * @remark Video Transcode Pipeline
+ * @remark Video Transcode Pipeline
*
* @param MMHandle [in] MMHandleType
* @param resolution_width [in] Video Resolution Width
* @param user_param [in] User parameter which is received from user when callback function was set
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then you can use output_Filename pointer(char** value)
* else if the result is -1, then do not execute when the colopsapce converter is not supported
*/
/**
*
- * @remark Video Transcode Pipeline
+ * @remark Video Transcode Pipeline
*
* @param MMHandle [in] MMHandleType
* @param is_busy [in/out] If transcode is executing or not
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then it means that trascode is executing now
* else if the result is -1, then you can call mm_transcode_prepare for new input file
*/
/**
*
- * @remark Transcode Handle Cancel
+ * @remark Transcode Handle Cancel
*
* @param MMHandle [in] MMHandleType
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then handle destory succeed
* else if the result is -1, then handle destory failed
*/
/**
*
- * @remark Transcode Handle Destory
+ * @remark Transcode Handle Destory
*
* @param MMHandle [in] MMHandleType
- * @return This function returns transcode processor result value
+ * @return This function returns transcode processor result value
* if the result is 0, then handle destory succeed
* else if the result is -1, then handle destory failed
*/
#define BUFFER_SIZE 4096
#define ENC_BUFFER_SIZE 25
-#define TRANSCODE_FREE(src) { if(src) {g_free(src); src = NULL;} }
+#define TRANSCODE_FREE(src) { if (src) { g_free(src); src = NULL; } }
#define AAC "aac"
#define ACON "auto-audio-convert"
#define ACS "auto-colorspace"
GST_AUTOPLUG_SELECT_SKIP
} GstAutoplugSelectResult;
-typedef struct _handle_param_s
-{
+typedef struct _handle_param_s {
unsigned int resolution_width;
unsigned int resolution_height;
unsigned int fps_value;
unsigned int printed;
} handle_param_s;
-typedef struct _handle_vidp_plugin_s
-{
+typedef struct _handle_vidp_plugin_s {
/* decoder video processing pipeline */
GstElement *decvideobin;
GstElement *decsinkvideoqueue;
GstPad *srcdecvideopad;
} handle_vidp_plugin_s;
-typedef struct _handle_audp_plugin_s
-{
+typedef struct _handle_audp_plugin_s {
/* decoder audio processing pipeline */
GstElement *decaudiobin;
GstElement *decsinkaudioqueue;
GstPad *decvideopad;
} handle_audp_plugin_s;
-typedef struct _handle_encode_s
-{
+typedef struct _handle_encode_s {
/* encode pipeline */
GstElement *encbin;
GstPad *encaudiopad;
int encodebin_profile;
} handle_encode_s;
-typedef struct _handle_property_s
-{
+typedef struct _handle_property_s {
/* pipeline property */
guint bus_watcher;
int AUDFLAG;
int seek_idx;
} handle_property_s;
-typedef struct _handle_s
-{
+typedef struct _handle_s {
/* Transcode Pipeline Element*/
GstElement *pipeline;
GstElement *filesrc;