SQLITE3_FINALIZE(sql_stmt);
/*check storage media table*/
- if(STRING_VALID(storage_id)) {
+ if (STRING_VALID(storage_id)) {
int table_cnt = 0;
/*Select list of storage*/
table_cnt = sqlite3_column_int(sql_stmt, 0);
SQLITE3_FINALIZE(sql_stmt);
- if(table_cnt > 0) {
+ if (table_cnt > 0) {
/*DO NOT THING*/
} else {
media_svc_error("media table not exist for storage [%s]", storage_id);
return result_passwd;
}
-static int __media_svc_encode_jpeg(unsigned char *src, unsigned long width, unsigned long height, image_util_colorspace_e colorspace, int quality, unsigned char **dst, unsigned long long *dst_size) {
+static int __media_svc_encode_jpeg(unsigned char *src, unsigned long width, unsigned long height, image_util_colorspace_e colorspace, int quality, unsigned char **dst, unsigned long long *dst_size)
+{
int res = IMAGE_UTIL_ERROR_NONE;
image_util_encode_h encoder = NULL;
unsigned char *encoded_data = NULL;
return MS_MEDIA_ERR_NONE;
}
-static int __media_svc_decode_jpeg(unsigned char *src, unsigned long long size, image_util_colorspace_e colorspace, unsigned char **dst, unsigned long *width, unsigned long *height, unsigned long long *dst_size) {
+static int __media_svc_decode_jpeg(unsigned char *src, unsigned long long size, image_util_colorspace_e colorspace, unsigned char **dst, unsigned long *width, unsigned long *height, unsigned long long *dst_size)
+{
int res = IMAGE_UTIL_ERROR_NONE;
image_util_decode_h decoder = NULL;
res = image_util_decode_create(&decoder);
char *p_value = p;
char *time_value = time_info;
if (time_info != NULL) {
- while(*p_value != '\0') {
+ while (*p_value != '\0') {
if (*p_value == '-')
*time_value = ':';
else