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

Function hb_get_rgb2yuv_function

libhb/common.c:6735–6750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6733}
6734
6735hb_csp_convert_f hb_get_rgb2yuv_function(int color_matrix)
6736{
6737 switch (color_matrix)
6738 {
6739 case HB_COLR_MAT_BT470BG:
6740 case HB_COLR_MAT_SMPTE170M:
6741 case HB_COLR_MAT_FCC:
6742 return hb_rgb2yuv;
6743 case HB_COLR_MAT_BT2020_NCL:
6744 case HB_COLR_MAT_BT2020_CL: //wrong
6745 return hb_rgb2yuv_bt2020;
6746 default: //assume 709 for the rest
6747 break;
6748 }
6749 return hb_rgb2yuv_bt709;
6750}
6751
6752void hb_compute_chroma_smoothing_coefficient(uint32_t chroma_coeffs[2][4], int pix_fmt, int chroma_location)
6753{

Callers 2

ssa_work_initFunction · 0.85
decavsubWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected