From f5be11a24391012f34902d137053d2797c2387b9 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 11 Sep 2017 17:16:06 +0900 Subject: [PATCH] Apply tizen coding rule [Version] 0.10.7 [Profile] Mobile, TV [Issue Type] apply coding rule bugs Change-Id: I255fb46dc17b4774ed006c1624e996ac9551f932 --- transcode/include/mm_transcode.h | 36 ++++++++++------------- transcode/include/mm_transcode_internal.h | 20 +++++-------- transcode/mm_transcode_pipeline.c | 2 +- 3 files changed, 24 insertions(+), 34 deletions(-) diff --git a/transcode/include/mm_transcode.h b/transcode/include/mm_transcode.h index 740875b..a4002c6 100644 --- a/transcode/include/mm_transcode.h +++ b/transcode/include/mm_transcode.h @@ -35,8 +35,7 @@ typedef bool (*mm_transcode_support_type_callback)(int encoder_type, void *user_ /** * Video Container Formats */ -typedef enum -{ +typedef enum { /* 3gp */ MM_CONTAINER_3GP = 0x00, MM_CONTAINER_MP4, @@ -46,8 +45,7 @@ typedef enum /** * Video Encoder */ -typedef enum -{ +typedef enum { MM_VIDEOENCODER_MPEG4 = 0x00, MM_VIDEOENCODER_H263, MM_VIDEOENCODER_H264, @@ -58,8 +56,7 @@ typedef enum /** * Audio Encorder */ -typedef enum -{ +typedef enum { MM_AUDIOENCODER_AAC = 0x00, MM_AUDIOENCODER_AMR, MM_AUDIOENCODER_NO_USE, @@ -69,8 +66,7 @@ typedef enum /** * Video Seek Mode */ -typedef enum -{ +typedef enum { /* 3GP */ MM_SEEK_INACCURATE = 0x00, MM_SEEK_ACCURATE, @@ -80,11 +76,11 @@ typedef enum /** * - * @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 */ @@ -96,7 +92,7 @@ mm_transcode_create(MMHandleType* MMHandle); /** * - * @remark Video Transcode Pipeline + * @remark Video Transcode Pipeline * * @param MMHandle [in] MMHandleType * @param in_Filename [in] Input Video File pointer @@ -104,7 +100,7 @@ mm_transcode_create(MMHandleType* MMHandle); * @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 */ @@ -117,7 +113,7 @@ mm_transcode_prepare(MMHandleType MMHandle, const char *in_Filename, mm_containe /** * - * @remark Video Transcode Pipeline + * @remark Video Transcode Pipeline * * @param MMHandle [in] MMHandleType * @param resolution_width [in] Video Resolution Width @@ -132,7 +128,7 @@ mm_transcode_prepare(MMHandleType MMHandle, const char *in_Filename, mm_containe * @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 */ @@ -145,12 +141,12 @@ mm_transcode(MMHandleType MMHandle, unsigned int resolution_width, unsigned int /** * - * @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 */ @@ -162,11 +158,11 @@ mm_transcode_is_busy(MMHandleType MMHandle, bool *is_busy); /** * - * @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 */ @@ -178,11 +174,11 @@ mm_transcode_cancel(MMHandleType MMHandle); /** * - * @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 */ diff --git a/transcode/include/mm_transcode_internal.h b/transcode/include/mm_transcode_internal.h index a00fe33..881547d 100644 --- a/transcode/include/mm_transcode_internal.h +++ b/transcode/include/mm_transcode_internal.h @@ -56,7 +56,7 @@ extern "C" { #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" @@ -91,8 +91,7 @@ typedef enum { 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; @@ -107,8 +106,7 @@ typedef struct _handle_param_s 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; @@ -122,8 +120,7 @@ typedef struct _handle_vidp_plugin_s 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; @@ -140,8 +137,7 @@ typedef struct _handle_audp_plugin_s GstPad *decvideopad; } handle_audp_plugin_s; -typedef struct _handle_encode_s -{ +typedef struct _handle_encode_s { /* encode pipeline */ GstElement *encbin; GstPad *encaudiopad; @@ -156,8 +152,7 @@ typedef struct _handle_encode_s int encodebin_profile; } handle_encode_s; -typedef struct _handle_property_s -{ +typedef struct _handle_property_s { /* pipeline property */ guint bus_watcher; int AUDFLAG; @@ -219,8 +214,7 @@ typedef struct _handle_property_s int seek_idx; } handle_property_s; -typedef struct _handle_s -{ +typedef struct _handle_s { /* Transcode Pipeline Element*/ GstElement *pipeline; GstElement *filesrc; diff --git a/transcode/mm_transcode_pipeline.c b/transcode/mm_transcode_pipeline.c index e97f48e..4ec17f5 100755 --- a/transcode/mm_transcode_pipeline.c +++ b/transcode/mm_transcode_pipeline.c @@ -102,7 +102,7 @@ int _mm_cleanup_signal(handle_s *handle) if (handle->property->completed_cb) { handle->property->completed_cb = NULL; - handle->property->completed_cb_param= NULL; + handle->property->completed_cb_param = NULL; } if (handle->property->audio_cb_probe_id) { -- 2.34.1