1 /*
2 * Copyright (c) 2011 Stefano Sabatini
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 /**
22 * @file
23 * filter for showing textual audio frame information
24 */
25
26 #include <inttypes.h>
27 #include <stddef.h>
28
36
40
42 /**
43 * Scratch space for individual plane checksums for planar audio
44 */
47
49 {
52 }
53
55 {
58 char chlayout_str[128];
59 uint32_t checksum = 0;
64 int planes = planar ? channels : 1;
65 int i;
67
68 if (!tmp_ptr)
71
72 for (i = 0; i < planes; i++) {
74
78 }
79
82
84 "n:%"PRId64" pts:%s pts_time:%s pos:%"PRId64" "
85 "fmt:%s channels:%d chlayout:%s rate:%d nb_samples:%d "
86 "checksum:%08X ",
92 checksum);
93
95 for (i = 0; i < planes; i++)
98
100 }
101
103 {
108 },
109 { NULL },
110 };
111
113 {
116 },
117 { NULL },
118 };
119
125 .inputs = inputs,
126 .outputs = outputs,
127 };