Add static keyword to these functions to be changed.
media_packet_private.c which has empty implementation is removed.
[Version] 0.1.23
[Issue Type] Refactoring
Change-Id: I41f2fdbb8296540ea6542d5a6abf06d1d366457b
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
} media_packet_s;
-int _pkt_alloc_buffer(media_packet_s *pkt);
-int _pkt_dealloc_buffer(media_packet_s *pkt);
-void _aligned_free_normal_buffer_type(void *buffer_ptr);
-
#ifdef __cplusplus
}
#endif
Name: capi-media-tool
Summary: A Core API media tool library in Tizen Native API
-Version: 0.1.22
+Version: 0.1.23
Release: 0
Group: Multimedia/API
License: Apache-2.0
static size_t _pkt_calculate_text_buffer_size(media_packet_s *pkt);
static uint32_t _convert_to_tbm_surface_format(media_format_mimetype_e format_type);
static void *_aligned_malloc_normal_buffer_type(size_t size, int alignment);
+static void _aligned_free_normal_buffer_type(void *buffer_ptr);
+static int _pkt_alloc_buffer(media_packet_s *pkt);
+static int _pkt_dealloc_buffer(media_packet_s *handle);
int media_packet_create_alloc(media_format_h fmt, media_packet_finalize_cb fcb, void *fcb_data, media_packet_h *packet)
{
}
-int _pkt_alloc_buffer(media_packet_s *pkt)
+static int _pkt_alloc_buffer(media_packet_s *pkt)
{
/* skip validating pkt */
size_t buffersize = 0;
return MEDIA_PACKET_ERROR_NONE;
}
-int _pkt_dealloc_buffer(media_packet_s *handle)
+static int _pkt_dealloc_buffer(media_packet_s *handle)
{
if (handle->type == MEDIA_BUFFER_TYPE_TBM_SURFACE) {
if (handle->surface_data)
return NULL;
}
-void _aligned_free_normal_buffer_type(void *buffer_ptr)
+static void _aligned_free_normal_buffer_type(void *buffer_ptr)
{
unsigned char *ptr;
if (buffer_ptr == NULL)
return MEDIA_PACKET_ERROR_NONE;
}
-int _packet_finalize_cb(media_packet_h packet, int error_code, void *user_data)
+static int _packet_finalize_cb(media_packet_h packet, int error_code, void *user_data)
{
int ret = MEDIA_PACKET_ERROR_NONE;
media_packet_pool_h pool = NULL;
return ret;
}
-gboolean _is_packet_in_queue(media_packet_pool_s *pool_handle, media_packet_h packet)
+static gboolean _is_packet_in_queue(media_packet_pool_s *pool_handle, media_packet_h packet)
{
int i;
for (i = 0; i < pool_handle->pool_size; i++) {
+++ /dev/null
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-#include <glib.h>
-#include <media_packet_private.h>