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
c8428a0d
Commit
c8428a0d
authored
Jun 10, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_tile: update deprecated functions.
parent
7b993c4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
vf_tile.c
libavfilter/vf_tile.c
+6
-4
No files found.
libavfilter/vf_tile.c
View file @
c8428a0d
...
...
@@ -26,6 +26,8 @@
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "video.h"
typedef
struct
{
unsigned
w
,
h
;
...
...
@@ -57,7 +59,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
avfilter_set_common_pixel
_formats
(
ctx
,
ff_draw_supported_pixel_formats
(
0
));
ff_set_common
_formats
(
ctx
,
ff_draw_supported_pixel_formats
(
0
));
return
0
;
}
...
...
@@ -106,7 +108,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
avfilter_copy_buffer_ref_props
(
outlink
->
out_buf
,
picref
);
outlink
->
out_buf
->
video
->
w
=
outlink
->
w
;
outlink
->
out_buf
->
video
->
h
=
outlink
->
h
;
avfilter
_start_frame
(
outlink
,
outlink
->
out_buf
);
ff
_start_frame
(
outlink
,
outlink
->
out_buf
);
}
static
void
draw_slice
(
AVFilterLink
*
inlink
,
int
y
,
int
h
,
int
slice_dir
)
...
...
@@ -145,8 +147,8 @@ static void end_last_frame(AVFilterContext *ctx)
while
(
tile
->
current
<
tile
->
w
*
tile
->
h
)
draw_blank_frame
(
ctx
);
avfilter
_draw_slice
(
outlink
,
0
,
outlink
->
out_buf
->
video
->
h
,
1
);
avfilter
_end_frame
(
outlink
);
ff
_draw_slice
(
outlink
,
0
,
outlink
->
out_buf
->
video
->
h
,
1
);
ff
_end_frame
(
outlink
);
tile
->
current
=
0
;
}
...
...
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