Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
58f867ff
Commit
58f867ff
authored
Mar 14, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_abitscope: rename macro to less generic one
parent
2201c91f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
avf_abitscope.c
libavfilter/avf_abitscope.c
+5
-5
No files found.
libavfilter/avf_abitscope.c
View file @
58f867ff
...
...
@@ -174,7 +174,7 @@ static int config_output(AVFilterLink *outlink)
} \
}
#define
TRACE(type, depth, one)
\
#define
DO_TRACE(type, depth, one)
\
for (int ch = 0; ch < inlink->channels; ch++) { \
const int w = outpicref->width / inlink->channels; \
const type *in = (const type *)insamples->extended_data[ch]; \
...
...
@@ -238,18 +238,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
switch
(
insamples
->
format
)
{
case
AV_SAMPLE_FMT_U8P
:
if
(
s
->
mode
==
0
)
{
BARS
(
uint8_t
,
8
,
1
)
}
else
{
TRACE
(
uint8_t
,
8
,
1
)
}
if
(
s
->
mode
==
0
)
{
BARS
(
uint8_t
,
8
,
1
)
}
else
{
DO_
TRACE
(
uint8_t
,
8
,
1
)
}
break
;
case
AV_SAMPLE_FMT_S16P
:
if
(
s
->
mode
==
0
)
{
BARS
(
uint16_t
,
16
,
1
)
}
else
{
TRACE
(
uint16_t
,
16
,
1
)
}
if
(
s
->
mode
==
0
)
{
BARS
(
uint16_t
,
16
,
1
)
}
else
{
DO_
TRACE
(
uint16_t
,
16
,
1
)
}
break
;
case
AV_SAMPLE_FMT_FLTP
:
case
AV_SAMPLE_FMT_S32P
:
if
(
s
->
mode
==
0
)
{
BARS
(
uint32_t
,
32
,
1U
)
}
else
{
TRACE
(
uint32_t
,
32
,
1U
)
}
if
(
s
->
mode
==
0
)
{
BARS
(
uint32_t
,
32
,
1U
)
}
else
{
DO_
TRACE
(
uint32_t
,
32
,
1U
)
}
break
;
case
AV_SAMPLE_FMT_DBLP
:
case
AV_SAMPLE_FMT_S64P
:
if
(
s
->
mode
==
0
)
{
BARS
(
uint64_t
,
64
,
1ULL
)
}
else
{
TRACE
(
uint64_t
,
64
,
1ULL
)
}
if
(
s
->
mode
==
0
)
{
BARS
(
uint64_t
,
64
,
1ULL
)
}
else
{
DO_
TRACE
(
uint64_t
,
64
,
1ULL
)
}
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment