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

Function store_ref

libhb/comb_detect.c:1006–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006static void store_ref(hb_filter_private_t *pv, hb_buffer_t *b)
1007{
1008 // Free unused buffer
1009 if (!pv->ref_used[0])
1010 {
1011 hb_buffer_close(&pv->ref[0]);
1012 }
1013 memmove(&pv->ref[0], &pv->ref[1], sizeof(pv->ref[0]) * 2);
1014 memmove(&pv->ref_used[0], &pv->ref_used[1], sizeof(pv->ref_used[0]) * 2);
1015 pv->ref[2] = b;
1016 pv->ref_used[2] = 0;
1017}
1018
1019static void reset_combing_results(hb_filter_private_t *pv)
1020{

Callers 1

comb_detect_workFunction · 0.70

Calls 1

hb_buffer_closeFunction · 0.85

Tested by

no test coverage detected