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

Function check_combing_results

libhb/comb_detect.c:1028–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static int check_combing_results(hb_filter_private_t *pv)
1029{
1030 int combed = HB_COMB_NONE;
1031 for (int ii = 0; ii < pv->comb_check_nthreads; ii++)
1032 {
1033 if (pv->block_score[ii] >= (pv->block_threshold / 2))
1034 {
1035 if (pv->block_score[ii] <= pv->block_threshold)
1036 {
1037 // Indicate light combing for block_score that is between
1038 // ( pv->block_threshold / 2 ) and pv->block_threshold
1039 combed = HB_COMB_LIGHT;
1040 }
1041 else if (pv->block_score[ii] > pv->block_threshold)
1042 {
1043 return HB_COMB_HEAVY;
1044 }
1045 }
1046 }
1047 return combed;
1048}
1049
1050static int comb_segmenter(hb_filter_private_t *pv)
1051{

Callers 1

comb_segmenterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected