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
54b298fe
Commit
54b298fe
authored
Mar 03, 2013
by
Ronald S. Bultje
Committed by
Martin Storsjö
Mar 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Deprecate the deinterlace functions in libavcodec
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
64e43869
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
0 deletions
+20
-0
avconv.c
avconv.c
+4
-0
avconv_opt.c
avconv_opt.c
+4
-0
avcodec.h
libavcodec/avcodec.h
+5
-0
imgconvert.c
libavcodec/imgconvert.c
+4
-0
version.h
libavcodec/version.h
+3
-0
No files found.
avconv.c
View file @
54b298fe
...
...
@@ -404,6 +404,7 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
}
}
#if FF_API_DEINTERLACE
static
void
pre_process_video_frame
(
InputStream
*
ist
,
AVPicture
*
picture
,
void
**
bufp
)
{
AVCodecContext
*
dec
;
...
...
@@ -442,6 +443,7 @@ static void pre_process_video_frame(InputStream *ist, AVPicture *picture, void *
*
picture
=
*
picture2
;
*
bufp
=
buf
;
}
#endif
static
void
do_subtitle_out
(
AVFormatContext
*
s
,
OutputStream
*
ost
,
...
...
@@ -1181,7 +1183,9 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
decoded_frame
->
pts
=
guess_correct_pts
(
&
ist
->
pts_ctx
,
decoded_frame
->
pkt_pts
,
decoded_frame
->
pkt_dts
);
pkt
->
size
=
0
;
#if FF_API_DEINTERLACE
pre_process_video_frame
(
ist
,
(
AVPicture
*
)
decoded_frame
,
&
buffer_to_free
);
#endif
rate_emu_sleep
(
ist
);
...
...
avconv_opt.c
View file @
54b298fe
...
...
@@ -1715,12 +1715,14 @@ static int opt_vsync(void *optctx, const char *opt, const char *arg)
return
0
;
}
#if FF_API_DEINTERLACE
static
int
opt_deinterlace
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"-%s is deprecated, use -filter:v yadif instead
\n
"
,
opt
);
do_deinterlace
=
1
;
return
0
;
}
#endif
int
opt_cpuflags
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
...
...
@@ -2057,8 +2059,10 @@ const OptionDef options[] = {
"select the pass number (1 or 2)"
,
"n"
},
{
"passlogfile"
,
OPT_VIDEO
|
HAS_ARG
|
OPT_STRING
|
OPT_EXPERT
|
OPT_SPEC
,
{
.
off
=
OFFSET
(
passlogfiles
)
},
"select two pass log file name prefix"
,
"prefix"
},
#if FF_API_DEINTERLACE
{
"deinterlace"
,
OPT_VIDEO
|
OPT_EXPERT
,
{
.
func_arg
=
opt_deinterlace
},
"this option is deprecated, use the yadif filter instead"
},
#endif
{
"vstats"
,
OPT_VIDEO
|
OPT_EXPERT
,
{
&
opt_vstats
},
"dump video coding statistics to file"
},
{
"vstats_file"
,
OPT_VIDEO
|
HAS_ARG
|
OPT_EXPERT
,
{
opt_vstats_file
},
...
...
libavcodec/avcodec.h
View file @
54b298fe
...
...
@@ -4267,11 +4267,16 @@ int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt,
*/
int
avpicture_get_size
(
enum
AVPixelFormat
pix_fmt
,
int
width
,
int
height
);
#if FF_API_DEINTERLACE
/**
* deinterlace - if not supported return -1
*
* @deprecated - use yadif (in libavfilter) instead
*/
attribute_deprecated
int
avpicture_deinterlace
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
AVPixelFormat
pix_fmt
,
int
width
,
int
height
);
#endif
/**
* Copy image src to dst. Wraps av_picture_data_copy() above.
*/
...
...
libavcodec/imgconvert.c
View file @
54b298fe
...
...
@@ -366,6 +366,8 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width,
return
0
;
}
#if FF_API_DEINTERLACE
#if !HAVE_MMX_EXTERNAL
/* filter parameters: [-1 4 2 4 -1] // 8 */
static
void
deinterlace_line_c
(
uint8_t
*
dst
,
...
...
@@ -524,3 +526,5 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
emms_c
();
return
0
;
}
#endif
/* FF_API_DEINTERLACE */
libavcodec/version.h
View file @
54b298fe
...
...
@@ -97,5 +97,8 @@
#ifndef FF_API_IDCT
#define FF_API_IDCT (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_DEINTERLACE
#define FF_API_DEINTERLACE (LIBAVCODEC_VERSION_MAJOR < 56)
#endif
#endif
/* AVCODEC_VERSION_H */
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