MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / parse_matrix_coeffs

Function parse_matrix_coeffs

ffmpeg-single-cmd/src/main/cpp/ffmpeg_opt.c:1433–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1431}
1432
1433static void parse_matrix_coeffs(uint16_t *dest, const char *str)
1434{
1435 int i;
1436 const char *p = str;
1437 for (i = 0;; i++) {
1438 dest[i] = atoi(p);
1439 if (i == 63)
1440 break;
1441 p = strchr(p, ',');
1442 if (!p) {
1443 av_log(NULL, AV_LOG_FATAL, "Syntax error in matrix \"%s\" at coeff %d\n", str, i);
1444 exit_program(1);
1445 }
1446 p++;
1447 }
1448}
1449
1450/* read file contents into a string */
1451static uint8_t *read_file(const char *filename)

Callers 1

new_video_streamFunction · 0.85

Calls 1

exit_programFunction · 0.85

Tested by

no test coverage detected