Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 25 of 74) sorted by relevance

123

/external/harfbuzz_ng/src/
Dhb-object-private.hh56 hb_atomic_int_t ref_count; member
58 inline void init (int v) { ref_count.set_unsafe (v); } in init()
59 inline int get_unsafe (void) const { return ref_count.get_unsafe (); } in get_unsafe()
60 inline int inc (void) { return ref_count.inc (); } in inc()
61 inline int dec (void) { return ref_count.dec (); } in dec()
62 inline void finish (void) { ref_count.set_unsafe (HB_REFERENCE_COUNT_POISON_VALUE); } in finish()
64 …inline bool is_inert (void) const { return ref_count.get_unsafe () == HB_REFERENCE_COUNT_INERT_VAL… in is_inert()
65 inline bool is_valid (void) const { return ref_count.get_unsafe () > 0; } in is_valid()
105 hb_reference_count_t ref_count; member
123 obj ? obj->header.ref_count.get_unsafe () : 0); in hb_object_trace()
[all …]
/external/pcre/dist/
Dpcre_refcount.c86 re->ref_count = (-adjust > re->ref_count)? 0 : in pcre_refcount()
87 (adjust + re->ref_count > 65535)? 65535 : in pcre_refcount()
88 re->ref_count + adjust; in pcre_refcount()
89 return re->ref_count; in pcre_refcount()
/external/libexif/libexif/
Dexif-log.c30 unsigned int ref_count; member
77 log->ref_count = 1; in exif_log_new_mem()
100 log->ref_count++; in exif_log_ref()
107 if (log->ref_count > 0) log->ref_count--; in exif_log_unref()
108 if (!log->ref_count) exif_log_free (log); in exif_log_unref()
Dexif-mnote-data.c31 unsigned int ref_count; member
42 d->priv->ref_count = 1; in exif_mnote_data_construct()
51 if (d && d->priv) d->priv->ref_count++; in exif_mnote_data_ref()
74 if (d->priv->ref_count > 0) d->priv->ref_count--; in exif_mnote_data_unref()
75 if (!d->priv->ref_count) in exif_mnote_data_unref()
Dexif-mem.c6 unsigned int ref_count; member
44 mem->ref_count = 1; in exif_mem_new()
57 mem->ref_count++; in exif_mem_ref()
64 if (!--mem->ref_count) in exif_mem_unref()
Dexif-content.c36 unsigned int ref_count; member
70 content->priv->ref_count = 1; in exif_content_new_mem()
81 content->priv->ref_count++; in exif_content_ref()
87 content->priv->ref_count--; in exif_content_unref()
88 if (!content->priv->ref_count) in exif_content_unref()
Dexif-loader.c81 unsigned int ref_count; member
338 loader->ref_count = 1; in exif_loader_new_mem()
350 loader->ref_count++; in exif_loader_ref()
373 if (!--loader->ref_count) in exif_loader_unref()
/external/webrtc/webrtc/modules/desktop_capture/
Dshared_desktop_frame.cc31 int32_t ref_count; in Release() local
32 ref_count = --ref_count_; in Release()
33 if (ref_count == 0) in Release()
35 return ref_count; in Release()
/external/webrtc/webrtc/system_wrappers/include/
Dref_count.h69 int32_t ref_count; in Release() local
70 ref_count = --ref_count_; in Release()
71 if (ref_count == 0) in Release()
73 return ref_count; in Release()
/external/webrtc/webrtc/voice_engine/
Dchannel_manager.cc24 ++channel_ref_->ref_count; in ChannelOwner()
28 if (--channel_ref_->ref_count == 0) in ~ChannelOwner()
36 if (--channel_ref_->ref_count == 0) in operator =()
40 ++channel_ref_->ref_count; in operator =()
46 : channel(channel), ref_count(1) {} in ChannelRef()
Dchannel_manager.h58 int use_count() const { return channel_ref_->ref_count.Value(); } in use_count()
66 Atomic32 ref_count; member
/external/pdfium/third_party/freetype/src/raster/
Drastpic.c45 if ( --container->ref_count ) in ft_raster1_renderer_class_pic_free()
67 ((RasterPIC*)pic_container->raster)->ref_count++; in ft_raster1_renderer_class_pic_init()
77 container->ref_count = 1; in ft_raster1_renderer_class_pic_init()
Drastpic.h36 int ref_count;
/external/freetype/src/raster/
Drastpic.c45 if ( --container->ref_count ) in ft_raster1_renderer_class_pic_free()
66 ((RasterPIC*)pic_container->raster)->ref_count++; in ft_raster1_renderer_class_pic_init()
76 container->ref_count = 1; in ft_raster1_renderer_class_pic_init()
/external/freetype/src/smooth/
Dftspic.c45 if ( --container->ref_count ) in ft_smooth_renderer_class_pic_free()
67 ((SmoothPIC*)pic_container->smooth)->ref_count++; in ft_smooth_renderer_class_pic_init()
77 container->ref_count = 1; in ft_smooth_renderer_class_pic_init()
/external/pdfium/third_party/freetype/src/smooth/
Dftspic.c45 if ( --container->ref_count ) in ft_smooth_renderer_class_pic_free()
67 ((SmoothPIC*)pic_container->smooth)->ref_count++; in ft_smooth_renderer_class_pic_init()
77 container->ref_count = 1; in ft_smooth_renderer_class_pic_init()
/external/libvpx/libvpx/vp9/common/
Dvp9_onyxc_int.h72 int ref_count; member
311 if (frame_bufs[i].ref_count == 0) in get_free_fb()
315 frame_bufs[i].ref_count = 1; in get_free_fb()
328 if (ref_index >= 0 && bufs[ref_index].ref_count > 0) in ref_cnt_fb()
329 bufs[ref_index].ref_count--; in ref_cnt_fb()
333 bufs[new_idx].ref_count++; in ref_cnt_fb()
/external/elfutils/libelf/
Dcommon.h80 result->ref_count = 1; in allocate_elf()
108 if (child->ref_count != 0) in libelf_acquire_all()
126 if (child->ref_count != 0) in libelf_release_all()
Delf_end.c54 if (elf->ref_count != 0 && --elf->ref_count != 0) in elf_end()
57 int result = elf->ref_count; in elf_end()
235 return (parent != NULL && parent->ref_count == 0 in elf_end()
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h248 size_t ref_count = 0; in Release() local
252 ref_count = p->Release(); in Release()
256 return ref_count; in Release()
/external/srtp/crypto/cipher/
Dnull_cipher.c77 null_cipher.ref_count++; in null_cipher_alloc()
95 null_cipher.ref_count--; in null_cipher_dealloc()
/external/srtp/crypto/hash/
Dnull_auth.c77 null_auth.ref_count++; in null_auth_alloc()
94 null_auth.ref_count--; in null_auth_dealloc()
Dhmac.c89 hmac.ref_count++; in hmac_alloc()
106 hmac.ref_count--; in hmac_dealloc()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.h132 --frame_bufs[idx].ref_count; in decrease_ref_count()
137 if (frame_bufs[idx].ref_count == 0 && in decrease_ref_count()
/external/freetype/src/cache/
Dftcbasic.c341 node->ref_count++; in FTC_ImageCache_Lookup()
402 node->ref_count++; in FTC_ImageCache_LookupScaler()
527 node->ref_count++; in FTC_SBitCache_Lookup()
589 node->ref_count++; in FTC_SBitCache_LookupScaler()

123