Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dead1964
Commit
dead1964
authored
Aug 30, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_vectorscope: make color mode more useful
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fb42e775
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
vf_vectorscope.c
libavfilter/vf_vectorscope.c
+12
-10
filter-vectorscope_color
tests/ref/fate/filter-vectorscope_color
+3
-3
No files found.
libavfilter/vf_vectorscope.c
View file @
dead1964
...
...
@@ -305,16 +305,6 @@ static void vectorscope(VectorscopeContext *s, AVFrame *in, AVFrame *out, int pd
}
}
}
if
(
s
->
mode
==
COLOR
)
{
for
(
i
=
0
;
i
<
out
->
height
;
i
++
)
{
for
(
j
=
0
;
j
<
out
->
width
;
j
++
)
{
if
(
!
dpd
[
i
*
out
->
linesize
[
pd
]
+
j
])
{
dpx
[
i
*
out
->
linesize
[
px
]
+
j
]
=
j
;
dpy
[
i
*
out
->
linesize
[
py
]
+
j
]
=
i
;
}
}
}
}
break
;
case
COLOR2
:
if
(
s
->
is_yuv
)
{
...
...
@@ -393,6 +383,18 @@ static void vectorscope(VectorscopeContext *s, AVFrame *in, AVFrame *out, int pd
}
envelope
(
s
,
out
);
if
(
s
->
mode
==
COLOR
)
{
for
(
i
=
0
;
i
<
out
->
height
;
i
++
)
{
for
(
j
=
0
;
j
<
out
->
width
;
j
++
)
{
if
(
!
dpd
[
i
*
out
->
linesize
[
pd
]
+
j
])
{
dpx
[
i
*
out
->
linesize
[
px
]
+
j
]
=
j
;
dpy
[
i
*
out
->
linesize
[
py
]
+
j
]
=
i
;
dpd
[
i
*
out
->
linesize
[
pd
]
+
j
]
=
128
;
}
}
}
}
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
...
...
tests/ref/fate/filter-vectorscope_color
View file @
dead1964
#tb 0: 1/25
0, 0, 0, 1, 196608, 0x
9d705c63
0, 1, 1, 1, 196608, 0x
9fbf6f2c
0, 2, 2, 1, 196608, 0x
257b7290
0, 0, 0, 1, 196608, 0x
1890aa30
0, 1, 1, 1, 196608, 0x
a490acf9
0, 2, 2, 1, 196608, 0x
404a775d
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