Lines Matching refs:count
715 static void init_slot_entry(MppBufSlotsImpl *impl, RK_S32 pos, RK_S32 count) in init_slot_entry() argument
720 for (i = 0; i < count; i++, slot++) { in init_slot_entry()
881 MPP_RET mpp_buf_slot_setup(MppBufSlots slots, RK_S32 count) in mpp_buf_slot_setup() argument
890 buf_slot_dbg(BUF_SLOT_DBG_SETUP, "slot %p setup: count %d\n", impl, count); in mpp_buf_slot_setup()
896 impl->buf_count = impl->new_count = count; in mpp_buf_slot_setup()
897 impl->slots = mpp_calloc(MppBufSlotEntry, count); in mpp_buf_slot_setup()
898 init_slot_entry(impl, 0, count); in mpp_buf_slot_setup()
902 if (count > impl->buf_count) { in mpp_buf_slot_setup()
903 impl->slots = mpp_realloc(impl->slots, MppBufSlotEntry, count); in mpp_buf_slot_setup()
905 init_slot_entry(impl, impl->buf_count, (count - impl->buf_count)); in mpp_buf_slot_setup()
907 impl->new_count = count; in mpp_buf_slot_setup()
990 size_t count = 0; in mpp_buf_slot_get_count() local
998 count = impl->buf_count; in mpp_buf_slot_get_count()
1001 return count; in mpp_buf_slot_get_count()