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
76cac7ed
Commit
76cac7ed
authored
Sep 05, 2015
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: remove deprecated old video encode API
parent
64c33f96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
65 deletions
+0
-65
avcodec.h
libavcodec/avcodec.h
+0
-20
utils.c
libavcodec/utils.c
+0
-42
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
76cac7ed
...
@@ -4600,26 +4600,6 @@ AVCodec *avcodec_find_encoder_by_name(const char *name);
...
@@ -4600,26 +4600,6 @@ AVCodec *avcodec_find_encoder_by_name(const char *name);
int
avcodec_encode_audio2
(
AVCodecContext
*
avctx
,
AVPacket
*
avpkt
,
int
avcodec_encode_audio2
(
AVCodecContext
*
avctx
,
AVPacket
*
avpkt
,
const
AVFrame
*
frame
,
int
*
got_packet_ptr
);
const
AVFrame
*
frame
,
int
*
got_packet_ptr
);
#if FF_API_OLD_ENCODE_VIDEO
/**
* @deprecated use avcodec_encode_video2() instead.
*
* Encode a video frame from pict into buf.
* The input picture should be
* stored using a specific format, namely avctx.pix_fmt.
*
* @param avctx the codec context
* @param[out] buf the output buffer for the bitstream of encoded frame
* @param[in] buf_size the size of the output buffer in bytes
* @param[in] pict the input picture to encode
* @return On error a negative value is returned, on success zero or the number
* of bytes used from the output buffer.
*/
attribute_deprecated
int
avcodec_encode_video
(
AVCodecContext
*
avctx
,
uint8_t
*
buf
,
int
buf_size
,
const
AVFrame
*
pict
);
#endif
/**
/**
* Encode a frame of video.
* Encode a frame of video.
*
*
...
...
libavcodec/utils.c
View file @
76cac7ed
...
@@ -1813,48 +1813,6 @@ end:
...
@@ -1813,48 +1813,6 @@ end:
return
ret
;
return
ret
;
}
}
#if FF_API_OLD_ENCODE_VIDEO
int
attribute_align_arg
avcodec_encode_video
(
AVCodecContext
*
avctx
,
uint8_t
*
buf
,
int
buf_size
,
const
AVFrame
*
pict
)
{
AVPacket
pkt
;
int
ret
,
got_packet
=
0
;
if
(
buf_size
<
AV_INPUT_BUFFER_MIN_SIZE
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller than minimum size
\n
"
);
return
-
1
;
}
av_init_packet
(
&
pkt
);
pkt
.
data
=
buf
;
pkt
.
size
=
buf_size
;
ret
=
avcodec_encode_video2
(
avctx
,
&
pkt
,
pict
,
&
got_packet
);
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
if
(
!
ret
&&
got_packet
&&
avctx
->
coded_frame
)
{
avctx
->
coded_frame
->
pts
=
pkt
.
pts
;
avctx
->
coded_frame
->
key_frame
=
!!
(
pkt
.
flags
&
AV_PKT_FLAG_KEY
);
if
(
avctx
->
codec
->
capabilities
&
AV_CODEC_CAP_INTRA_ONLY
)
avctx
->
coded_frame
->
pict_type
=
AV_PICTURE_TYPE_I
;
}
FF_ENABLE_DEPRECATION_WARNINGS
#endif
/* free any side data since we cannot return it */
if
(
pkt
.
side_data_elems
>
0
)
{
int
i
;
for
(
i
=
0
;
i
<
pkt
.
side_data_elems
;
i
++
)
av_free
(
pkt
.
side_data
[
i
].
data
);
av_freep
(
&
pkt
.
side_data
);
pkt
.
side_data_elems
=
0
;
}
return
ret
?
ret
:
pkt
.
size
;
}
#endif
int
attribute_align_arg
avcodec_encode_video2
(
AVCodecContext
*
avctx
,
int
attribute_align_arg
avcodec_encode_video2
(
AVCodecContext
*
avctx
,
AVPacket
*
avpkt
,
AVPacket
*
avpkt
,
const
AVFrame
*
frame
,
const
AVFrame
*
frame
,
...
...
libavcodec/version.h
View file @
76cac7ed
...
@@ -55,9 +55,6 @@
...
@@ -55,9 +55,6 @@
#ifndef FF_API_VIMA_DECODER
#ifndef FF_API_VIMA_DECODER
#define FF_API_VIMA_DECODER (LIBAVCODEC_VERSION_MAJOR < 57)
#define FF_API_VIMA_DECODER (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#endif
#ifndef FF_API_OLD_ENCODE_VIDEO
#define FF_API_OLD_ENCODE_VIDEO (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#ifndef FF_API_CODEC_ID
#ifndef FF_API_CODEC_ID
#define FF_API_CODEC_ID (LIBAVCODEC_VERSION_MAJOR < 57)
#define FF_API_CODEC_ID (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#endif
...
...
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