MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / show_qrcode

Function show_qrcode

libavfilter/qrencode.c:346–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345#ifdef DEBUG
346static void show_qrcode(AVFilterContext *ctx, const QRcode *qrcode)
347{
348 int i, j;
349 char *line = av_malloc(qrcode->width + 1);
350 const char *p = qrcode->data;
351
352 if (!line)
353 return;
354 for (i = 0; i < qrcode->width; i++) {
355 for (j = 0; j < qrcode->width; j++)
356 line[j] = (*p++)&1 ? '@' : ' ';
357 line[j] = 0;
358 av_log(ctx, AV_LOG_DEBUG, "%3d: %s\n", i, line);
359 }
360 av_free(line);
361}
362#endif
363
364static int draw_qrcode(AVFilterContext *ctx, AVFrame *frame)

Callers 1

draw_qrcodeFunction · 0.85

Calls 3

av_logFunction · 0.85
av_mallocFunction · 0.50
av_freeFunction · 0.50

Tested by

no test coverage detected