| 7046 | } |
| 7047 | |
| 7048 | int 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 | |
| 7068 | int hb_get_color_prim(int color_primaries, hb_geometry_t geometry, hb_rational_t rate) |
| 7069 | { |
no outgoing calls
no test coverage detected