MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / size_to_pool

Function size_to_pool

libhb/fifo.c:338–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static hb_fifo_t *size_to_pool( int size )
339{
340#if !defined(HB_NO_BUFFER_POOL)
341 if (size == 0)
342 {
343 return buffers.pool[0];
344 }
345
346 int i;
347 for ( i = BUFFER_POOL_FIRST; i <= BUFFER_POOL_LAST; ++i )
348 {
349 if ( size <= (1 << i) )
350 {
351 return buffers.pool[i];
352 }
353 }
354#endif
355 return NULL;
356}
357
358hb_buffer_t * hb_buffer_init_internal( int size )
359{

Callers 3

hb_buffer_init_internalFunction · 0.85
hb_buffer_reallocFunction · 0.85
hb_buffer_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected