| 344 | |
| 345 | #ifdef DEBUG |
| 346 | static 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 | |
| 364 | static int draw_qrcode(AVFilterContext *ctx, AVFrame *frame) |
no test coverage detected