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
064a2376
Commit
064a2376
authored
Nov 10, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_xbr: Uppercase first letter of context type for consistency
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
19d0949d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vf_xbr.c
libavfilter/vf_xbr.c
+6
-6
No files found.
libavfilter/vf_xbr.c
View file @
064a2376
...
...
@@ -44,9 +44,9 @@ typedef struct {
const
AVClass
*
class
;
int
n
;
uint32_t
rgbtoyuv
[
1
<<
24
];
}
x
BRContext
;
}
X
BRContext
;
#define OFFSET(x) offsetof(
x
BRContext, x)
#define OFFSET(x) offsetof(
X
BRContext, x)
static
const
AVOption
xbr_options
[]
=
{
{
"n"
,
"set scale factor"
,
OFFSET
(
n
),
AV_OPT_TYPE_INT
,
{.
i64
=
3
},
2
,
4
,
},
{
NULL
}
...
...
@@ -658,7 +658,7 @@ static void xbr4x(AVFrame * input, AVFrame * output, const uint32_t * r2y)
static
int
config_output
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
x
BRContext
*
xbr
=
ctx
->
priv
;
X
BRContext
*
xbr
=
ctx
->
priv
;
AVFilterLink
*
inlink
=
ctx
->
inputs
[
0
];
outlink
->
w
=
inlink
->
w
*
xbr
->
n
;
...
...
@@ -680,7 +680,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
x
BRContext
*
xbr
=
ctx
->
priv
;
X
BRContext
*
xbr
=
ctx
->
priv
;
const
uint32_t
*
r2y
=
xbr
->
rgbtoyuv
;
AVFrame
*
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
...
...
@@ -706,7 +706,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static
int
init
(
AVFilterContext
*
ctx
)
{
x
BRContext
*
xbr
=
ctx
->
priv
;
X
BRContext
*
xbr
=
ctx
->
priv
;
uint32_t
c
;
int
bg
,
rg
,
g
;
...
...
@@ -752,7 +752,7 @@ AVFilter ff_vf_xbr = {
.
inputs
=
xbr_inputs
,
.
outputs
=
xbr_outputs
,
.
query_formats
=
query_formats
,
.
priv_size
=
sizeof
(
x
BRContext
),
.
priv_size
=
sizeof
(
X
BRContext
),
.
priv_class
=
&
xbr_class
,
.
init
=
init
,
};
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