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

Function hb_get_bit_depth

libhb/common.c:7048–7066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7046}
7047
7048int hb_get_bit_depth(int format)
7049{
7050 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(format);
7051 int i, min, max;
7052
7053 if (!desc || !desc->nb_components)
7054 {
7055 return -1;
7056 }
7057
7058 min = INT_MAX, max = -INT_MAX;
7059 for (i = 0; i < desc->nb_components; i++)
7060 {
7061 min = FFMIN(desc->comp[i].depth, min);
7062 max = FFMAX(desc->comp[i].depth, max);
7063 }
7064
7065 return max;
7066}
7067
7068int hb_get_color_prim(int color_primaries, hb_geometry_t geometry, hb_rational_t rate)
7069{

Callers 7

hb_display_job_infoFunction · 0.85
match_pix_fmtFunction · 0.85
pix_fmt_is_supportedFunction · 0.85
encx265InitFunction · 0.85
encsvtInitFunction · 0.85
ghb_update_title_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected