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
7af5ae2d
Commit
7af5ae2d
authored
Mar 18, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_hflip: use the name 's' for the pointer to the private context
This is shorter and consistent across filters.
parent
05fab553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
vf_hflip.c
libavfilter/vf_hflip.c
+8
-8
No files found.
libavfilter/vf_hflip.c
View file @
7af5ae2d
...
...
@@ -74,12 +74,12 @@ static int query_formats(AVFilterContext *ctx)
static
int
config_props
(
AVFilterLink
*
inlink
)
{
FlipContext
*
flip
=
inlink
->
dst
->
priv
;
FlipContext
*
s
=
inlink
->
dst
->
priv
;
const
AVPixFmtDescriptor
*
pix_desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
av_image_fill_max_pixsteps
(
flip
->
max_step
,
NULL
,
pix_desc
);
flip
->
hsub
=
pix_desc
->
log2_chroma_w
;
flip
->
vsub
=
pix_desc
->
log2_chroma_h
;
av_image_fill_max_pixsteps
(
s
->
max_step
,
NULL
,
pix_desc
);
s
->
hsub
=
pix_desc
->
log2_chroma_w
;
s
->
vsub
=
pix_desc
->
log2_chroma_h
;
return
0
;
}
...
...
@@ -87,7 +87,7 @@ static int config_props(AVFilterLink *inlink)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
FlipContext
*
flip
=
ctx
->
priv
;
FlipContext
*
s
=
ctx
->
priv
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFrame
*
out
;
uint8_t
*
inrow
,
*
outrow
;
...
...
@@ -101,9 +101,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
av_frame_copy_props
(
out
,
in
);
for
(
plane
=
0
;
plane
<
4
&&
in
->
data
[
plane
];
plane
++
)
{
step
=
flip
->
max_step
[
plane
];
hsub
=
(
plane
==
1
||
plane
==
2
)
?
flip
->
hsub
:
0
;
vsub
=
(
plane
==
1
||
plane
==
2
)
?
flip
->
vsub
:
0
;
step
=
s
->
max_step
[
plane
];
hsub
=
(
plane
==
1
||
plane
==
2
)
?
s
->
hsub
:
0
;
vsub
=
(
plane
==
1
||
plane
==
2
)
?
s
->
vsub
:
0
;
outrow
=
out
->
data
[
plane
];
inrow
=
in
->
data
[
plane
]
+
((
inlink
->
w
>>
hsub
)
-
1
)
*
step
;
...
...
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