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
45f2908d
Commit
45f2908d
authored
Jan 18, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: Rename ffsink to avsink.
parent
0184bbe2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
avconv.c
avconv.c
+3
-3
avplay.c
avplay.c
+3
-3
cmdutils.c
cmdutils.c
+10
-10
cmdutils.h
cmdutils.h
+2
-2
ffmpeg.c
ffmpeg.c
+3
-3
No files found.
avconv.c
View file @
45f2908d
...
@@ -550,7 +550,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
...
@@ -550,7 +550,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
/** filter graph containing all filters including input & output */
/** filter graph containing all filters including input & output */
AVCodecContext
*
codec
=
ost
->
st
->
codec
;
AVCodecContext
*
codec
=
ost
->
st
->
codec
;
AVCodecContext
*
icodec
=
ist
->
st
->
codec
;
AVCodecContext
*
icodec
=
ist
->
st
->
codec
;
FFSinkContext
ff
sink_ctx
=
{
.
pix_fmt
=
codec
->
pix_fmt
};
AVSinkContext
av
sink_ctx
=
{
.
pix_fmt
=
codec
->
pix_fmt
};
AVRational
sample_aspect_ratio
;
AVRational
sample_aspect_ratio
;
char
args
[
255
];
char
args
[
255
];
int
ret
;
int
ret
;
...
@@ -570,8 +570,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
...
@@ -570,8 +570,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
"src"
,
args
,
NULL
,
ost
->
graph
);
"src"
,
args
,
NULL
,
ost
->
graph
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
ret
=
avfilter_graph_create_filter
(
&
ost
->
output_video_filter
,
&
ff
sink
,
ret
=
avfilter_graph_create_filter
(
&
ost
->
output_video_filter
,
&
av
sink
,
"out"
,
NULL
,
&
ff
sink_ctx
,
ost
->
graph
);
"out"
,
NULL
,
&
av
sink_ctx
,
ost
->
graph
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
last_filter
=
ost
->
input_video_filter
;
last_filter
=
ost
->
input_video_filter
;
...
...
avplay.c
View file @
45f2908d
...
@@ -1707,7 +1707,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
...
@@ -1707,7 +1707,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
{
{
char
sws_flags_str
[
128
];
char
sws_flags_str
[
128
];
int
ret
;
int
ret
;
FFSinkContext
ff
sink_ctx
=
{
.
pix_fmt
=
PIX_FMT_YUV420P
};
AVSinkContext
av
sink_ctx
=
{
.
pix_fmt
=
PIX_FMT_YUV420P
};
AVFilterContext
*
filt_src
=
NULL
,
*
filt_out
=
NULL
;
AVFilterContext
*
filt_src
=
NULL
,
*
filt_out
=
NULL
;
snprintf
(
sws_flags_str
,
sizeof
(
sws_flags_str
),
"flags=%d"
,
sws_flags
);
snprintf
(
sws_flags_str
,
sizeof
(
sws_flags_str
),
"flags=%d"
,
sws_flags
);
graph
->
scale_sws_opts
=
av_strdup
(
sws_flags_str
);
graph
->
scale_sws_opts
=
av_strdup
(
sws_flags_str
);
...
@@ -1715,8 +1715,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
...
@@ -1715,8 +1715,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
if
((
ret
=
avfilter_graph_create_filter
(
&
filt_src
,
&
input_filter
,
"src"
,
if
((
ret
=
avfilter_graph_create_filter
(
&
filt_src
,
&
input_filter
,
"src"
,
NULL
,
is
,
graph
))
<
0
)
NULL
,
is
,
graph
))
<
0
)
return
ret
;
return
ret
;
if
((
ret
=
avfilter_graph_create_filter
(
&
filt_out
,
&
ff
sink
,
"out"
,
if
((
ret
=
avfilter_graph_create_filter
(
&
filt_out
,
&
av
sink
,
"out"
,
NULL
,
&
ff
sink_ctx
,
graph
))
<
0
)
NULL
,
&
av
sink_ctx
,
graph
))
<
0
)
return
ret
;
return
ret
;
if
(
vfilters
)
{
if
(
vfilters
)
{
...
...
cmdutils.c
View file @
45f2908d
...
@@ -1031,34 +1031,34 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s,
...
@@ -1031,34 +1031,34 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s,
#if CONFIG_AVFILTER
#if CONFIG_AVFILTER
static
int
ff
sink_init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
void
*
opaque
)
static
int
av
sink_init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
void
*
opaque
)
{
{
FF
SinkContext
*
priv
=
ctx
->
priv
;
AV
SinkContext
*
priv
=
ctx
->
priv
;
if
(
!
opaque
)
if
(
!
opaque
)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
*
priv
=
*
(
FF
SinkContext
*
)
opaque
;
*
priv
=
*
(
AV
SinkContext
*
)
opaque
;
return
0
;
return
0
;
}
}
static
void
null_end_frame
(
AVFilterLink
*
inlink
)
{
}
static
void
null_end_frame
(
AVFilterLink
*
inlink
)
{
}
static
int
ff
sink_query_formats
(
AVFilterContext
*
ctx
)
static
int
av
sink_query_formats
(
AVFilterContext
*
ctx
)
{
{
FF
SinkContext
*
priv
=
ctx
->
priv
;
AV
SinkContext
*
priv
=
ctx
->
priv
;
enum
PixelFormat
pix_fmts
[]
=
{
priv
->
pix_fmt
,
PIX_FMT_NONE
};
enum
PixelFormat
pix_fmts
[]
=
{
priv
->
pix_fmt
,
PIX_FMT_NONE
};
avfilter_set_common_formats
(
ctx
,
avfilter_make_format_list
(
pix_fmts
));
avfilter_set_common_formats
(
ctx
,
avfilter_make_format_list
(
pix_fmts
));
return
0
;
return
0
;
}
}
AVFilter
ff
sink
=
{
AVFilter
av
sink
=
{
.
name
=
"
ff
sink"
,
.
name
=
"
av
sink"
,
.
priv_size
=
sizeof
(
FF
SinkContext
),
.
priv_size
=
sizeof
(
AV
SinkContext
),
.
init
=
ff
sink_init
,
.
init
=
av
sink_init
,
.
query_formats
=
ff
sink_query_formats
,
.
query_formats
=
av
sink_query_formats
,
.
inputs
=
(
AVFilterPad
[])
{{
.
name
=
"default"
,
.
inputs
=
(
AVFilterPad
[])
{{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
...
...
cmdutils.h
View file @
45f2908d
...
@@ -363,9 +363,9 @@ FILE *get_preset_file(char *filename, size_t filename_size,
...
@@ -363,9 +363,9 @@ FILE *get_preset_file(char *filename, size_t filename_size,
typedef
struct
{
typedef
struct
{
enum
PixelFormat
pix_fmt
;
enum
PixelFormat
pix_fmt
;
}
FF
SinkContext
;
}
AV
SinkContext
;
extern
AVFilter
ff
sink
;
extern
AVFilter
av
sink
;
/**
/**
* Extract a frame from sink.
* Extract a frame from sink.
...
...
ffmpeg.c
View file @
45f2908d
...
@@ -338,7 +338,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
...
@@ -338,7 +338,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
/** filter graph containing all filters including input & output */
/** filter graph containing all filters including input & output */
AVCodecContext
*
codec
=
ost
->
st
->
codec
;
AVCodecContext
*
codec
=
ost
->
st
->
codec
;
AVCodecContext
*
icodec
=
ist
->
st
->
codec
;
AVCodecContext
*
icodec
=
ist
->
st
->
codec
;
FFSinkContext
ff
sink_ctx
=
{
.
pix_fmt
=
codec
->
pix_fmt
};
AVSinkContext
av
sink_ctx
=
{
.
pix_fmt
=
codec
->
pix_fmt
};
AVRational
sample_aspect_ratio
;
AVRational
sample_aspect_ratio
;
char
args
[
255
];
char
args
[
255
];
int
ret
;
int
ret
;
...
@@ -358,8 +358,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
...
@@ -358,8 +358,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
"src"
,
args
,
NULL
,
ost
->
graph
);
"src"
,
args
,
NULL
,
ost
->
graph
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
ret
=
avfilter_graph_create_filter
(
&
ost
->
output_video_filter
,
&
ff
sink
,
ret
=
avfilter_graph_create_filter
(
&
ost
->
output_video_filter
,
&
av
sink
,
"out"
,
NULL
,
&
ff
sink_ctx
,
ost
->
graph
);
"out"
,
NULL
,
&
av
sink_ctx
,
ost
->
graph
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
last_filter
=
ost
->
input_video_filter
;
last_filter
=
ost
->
input_video_filter
;
...
...
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