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

Function hb_list_bytes

libhb/common.c:4238–4252  ·  view source on GitHub ↗

* hb_list_bytes ********************************************************************** * Assuming all items are of type hb_buffer_t, returns the total * number of bytes in the list *********************************************************************/

Source from the content-addressed store, hash-verified

4236 * number of bytes in the list
4237 *********************************************************************/
4238int hb_list_bytes( hb_list_t * l )
4239{
4240 hb_buffer_t * buf;
4241 int ret;
4242 int i;
4243
4244 ret = 0;
4245 for( i = 0; i < hb_list_count( l ); i++ )
4246 {
4247 buf = hb_list_item( l, i );
4248 ret += buf->size - buf->offset;
4249 }
4250
4251 return ret;
4252}
4253
4254/**********************************************************************
4255 * hb_list_seebytes

Callers 4

EncodeFunction · 0.85
EncodeFunction · 0.85
inInputDataProcFunction · 0.85
EncodeFunction · 0.85

Calls 2

hb_list_countFunction · 0.85
hb_list_itemFunction · 0.85

Tested by

no test coverage detected