Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
37bfeca7
Commit
37bfeca7
authored
Aug 14, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/select: larger pixel sad computation
parent
10d96d8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
f_select.c
libavfilter/f_select.c
+2
-2
filter-metadata-scenedetect
tests/ref/fate/filter-metadata-scenedetect
+4
-4
No files found.
libavfilter/f_select.c
View file @
37bfeca7
...
@@ -259,8 +259,8 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
...
@@ -259,8 +259,8 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
const
int
p1_linesize
=
frame
->
linesize
[
0
];
const
int
p1_linesize
=
frame
->
linesize
[
0
];
const
int
p2_linesize
=
prev_picref
->
linesize
[
0
];
const
int
p2_linesize
=
prev_picref
->
linesize
[
0
];
for
(
y
=
0
;
y
<
frame
->
height
-
8
;
y
+=
8
)
{
for
(
y
=
0
;
y
<
frame
->
height
-
7
;
y
+=
8
)
{
for
(
x
=
0
;
x
<
frame
->
width
*
3
-
8
;
x
+=
8
)
{
for
(
x
=
0
;
x
<
frame
->
width
*
3
-
7
;
x
+=
8
)
{
sad
+=
select
->
sad
(
p1
+
x
,
p1_linesize
,
p2
+
x
,
p2_linesize
);
sad
+=
select
->
sad
(
p1
+
x
,
p1_linesize
,
p2
+
x
,
p2_linesize
);
nb_sad
+=
8
*
8
;
nb_sad
+=
8
*
8
;
}
}
...
...
tests/ref/fate/filter-metadata-scenedetect
View file @
37bfeca7
pkt_pts=1620|tag:lavfi.scene_score=1.000000
pkt_pts=1620|tag:lavfi.scene_score=1.000000
pkt_pts=4140|tag:lavfi.scene_score=0.87
6043
pkt_pts=4140|tag:lavfi.scene_score=0.87
5036
pkt_pts=5800|tag:lavfi.scene_score=1.000000
pkt_pts=5800|tag:lavfi.scene_score=1.000000
pkt_pts=6720|tag:lavfi.scene_score=0.46
3259
pkt_pts=6720|tag:lavfi.scene_score=0.46
1625
pkt_pts=8160|tag:lavfi.scene_score=1.000000
pkt_pts=8160|tag:lavfi.scene_score=1.000000
pkt_pts=9760|tag:lavfi.scene_score=1.000000
pkt_pts=9760|tag:lavfi.scene_score=1.000000
pkt_pts=14080|tag:lavfi.scene_score=0.8
41420
pkt_pts=14080|tag:lavfi.scene_score=0.8
38916
pkt_pts=15700|tag:lavfi.scene_score=1.000000
pkt_pts=15700|tag:lavfi.scene_score=1.000000
pkt_pts=18500|tag:lavfi.scene_score=0.47
173
8
pkt_pts=18500|tag:lavfi.scene_score=0.47
494
8
pkt_pts=21760|tag:lavfi.scene_score=1.000000
pkt_pts=21760|tag:lavfi.scene_score=1.000000
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