mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[astyle]: coding style formating
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@438 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -94,7 +94,7 @@ static HEVCFrame *alloc_frame(HEVCContext *s)
|
||||
|
||||
mpp_frame_set_hor_stride(frame->frame, s->h265dctx->coded_width);
|
||||
mpp_frame_set_ver_stride(frame->frame, s->h265dctx->coded_height);
|
||||
h265d_dbg(H265D_DBG_GLOBAL,"w_stride %d h_stride %d\n", s->h265dctx->coded_width, s->h265dctx->coded_height);
|
||||
h265d_dbg(H265D_DBG_GLOBAL, "w_stride %d h_stride %d\n", s->h265dctx->coded_width, s->h265dctx->coded_height);
|
||||
|
||||
// frame->frame->color_type = s->h265dctx->pix_fmt;
|
||||
// if (!frame->frame->sample_aspect_ratio.num)
|
||||
|
@@ -95,8 +95,6 @@ static RK_S32 get_free_memory_num(vpu_display_mem_pool *p)
|
||||
|
||||
static RK_S32 reset_vpu_mem_pool(vpu_display_mem_pool *p)
|
||||
{
|
||||
|
||||
|
||||
vpu_display_mem_pool_impl *p_mempool = (vpu_display_mem_pool_impl *)p;
|
||||
mpp_buffer_group_clear(p_mempool->group);
|
||||
return 0;
|
||||
@@ -263,7 +261,6 @@ RK_S32 VPUMemGetFD(VPUMemLinear_t *p)
|
||||
MppBuffer buffer = (MppBuffer)p->offset;
|
||||
fd = mpp_buffer_get_fd(buffer);
|
||||
return fd;
|
||||
|
||||
}
|
||||
|
||||
RK_S32 vpu_mem_judge_used_heaps_type()
|
||||
|
@@ -92,7 +92,7 @@ MPP_RET deinit_buffer_no_lock(MppBufferImpl *buffer)
|
||||
func(group->allocator, &buffer->info);
|
||||
group->usage -= buffer->info.size;
|
||||
group->count--;
|
||||
if(!buffer->discard)
|
||||
if (!buffer->discard)
|
||||
group->count_unused--;
|
||||
} else {
|
||||
group = SEARCH_GROUP_ORPHAN(buffer->group_id);
|
||||
@@ -225,9 +225,9 @@ MPP_RET mpp_buffer_ref_dec(MppBufferImpl *buffer)
|
||||
if (group == service.mLegacyGroup) {
|
||||
deinit_buffer_no_lock(buffer);
|
||||
} else {
|
||||
if(buffer->discard){
|
||||
if (buffer->discard) {
|
||||
deinit_buffer_no_lock(buffer);
|
||||
}else{
|
||||
} else {
|
||||
list_add_tail(&buffer->list_status, &group->list_unused);
|
||||
group->count_unused++;
|
||||
}
|
||||
|
@@ -153,7 +153,8 @@ inline void Condition::signal()
|
||||
pthread_cond_signal(&mCond);
|
||||
}
|
||||
|
||||
class MppMutexCond {
|
||||
class MppMutexCond
|
||||
{
|
||||
public:
|
||||
MppMutexCond() {};
|
||||
~MppMutexCond() {};
|
||||
|
Reference in New Issue
Block a user