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
06edef3d
Commit
06edef3d
authored
Mar 20, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate the lists of enabled protocols/bsfs from configure.
parent
a0f469da
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
147 deletions
+23
-147
.gitignore
.gitignore
+2
-0
Makefile
Makefile
+2
-1
configure
configure
+17
-0
bitstream_filters.c
libavcodec/bitstream_filters.c
+1
-39
protocols.c
libavformat/protocols.c
+1
-107
No files found.
.gitignore
View file @
06edef3d
...
@@ -39,9 +39,11 @@
...
@@ -39,9 +39,11 @@
/doc/examples/transcode_aac
/doc/examples/transcode_aac
/doc/print_options
/doc/print_options
/lcov/
/lcov/
/libavformat/protocol_list.c
/libavcodec/*_tablegen
/libavcodec/*_tablegen
/libavcodec/*_tables.c
/libavcodec/*_tables.c
/libavcodec/*_tables.h
/libavcodec/*_tables.h
/libavcodec/bsf_list.c
/libavutil/avconfig.h
/libavutil/avconfig.h
/tests/audiogen
/tests/audiogen
/tests/base64
/tests/base64
...
...
Makefile
View file @
06edef3d
...
@@ -217,7 +217,8 @@ clean::
...
@@ -217,7 +217,8 @@ clean::
distclean
::
distclean
::
$(RM)
$(DISTCLEANSUFFIXES)
$(RM)
$(DISTCLEANSUFFIXES)
$(RM)
config.
*
.config libavutil/avconfig.h .version avversion.h
$(RM)
config.
*
.config libavutil/avconfig.h .version avversion.h
\
libavcodec/bsf_list.c libavformat/protocol_list.c
config
:
config
:
$(SRC_PATH)
/configure
$
(
value LIBAV_CONFIGURATION
)
$(SRC_PATH)
/configure
$
(
value LIBAV_CONFIGURATION
)
...
...
configure
View file @
06edef3d
...
@@ -5310,6 +5310,23 @@ cp_if_changed $TMPH libavutil/avconfig.h
...
@@ -5310,6 +5310,23 @@ cp_if_changed $TMPH libavutil/avconfig.h
test
-n
"
$WARNINGS
"
&&
printf
"
\n
$WARNINGS
"
test
-n
"
$WARNINGS
"
&&
printf
"
\n
$WARNINGS
"
# generate the lists of enabled components
print_enabled_components
(){
file
=
$1
struct_name
=
$2
name
=
$3
shift
3
echo
"static const
$struct_name
*
$name
[] = {"
>
$TMPH
for
c
in
$*
;
do
enabled
$c
&&
printf
" &ff_%s,
\n
"
$c
>>
$TMPH
done
echo
" NULL };"
>>
$TMPH
cp_if_changed
$TMPH
$file
}
print_enabled_components libavcodec/bsf_list.c AVBitStreamFilter bitstream_filters
$BSF_LIST
print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols
$PROTOCOL_LIST
# build pkg-config files
# build pkg-config files
lib_version
(){
lib_version
(){
...
...
libavcodec/bitstream_filters.c
View file @
06edef3d
...
@@ -37,45 +37,7 @@ extern const AVBitStreamFilter ff_text2movsub_bsf;
...
@@ -37,45 +37,7 @@ extern const AVBitStreamFilter ff_text2movsub_bsf;
extern
const
AVBitStreamFilter
ff_noise_bsf
;
extern
const
AVBitStreamFilter
ff_noise_bsf
;
extern
const
AVBitStreamFilter
ff_remove_extradata_bsf
;
extern
const
AVBitStreamFilter
ff_remove_extradata_bsf
;
static
const
AVBitStreamFilter
*
bitstream_filters
[]
=
{
#include "libavcodec/bsf_list.c"
#if CONFIG_AAC_ADTSTOASC_BSF
&
ff_aac_adtstoasc_bsf
,
#endif
#if CONFIG_CHOMP_BSF
&
ff_chomp_bsf
,
#endif
#if CONFIG_DUMP_EXTRADATA_BSF
&
ff_dump_extradata_bsf
,
#endif
#if CONFIG_H264_MP4TOANNEXB_BSF
&
ff_h264_mp4toannexb_bsf
,
#endif
#if CONFIG_HEVC_MP4TOANNEXB_BSF
&
ff_hevc_mp4toannexb_bsf
,
#endif
#if CONFIG_IMX_DUMP_HEADER_BSF
&
ff_imx_dump_header_bsf
,
#endif
#if CONFIG_MJPEG2JPEG_BSF
&
ff_mjpeg2jpeg_bsf
,
#endif
#if CONFIG_MJPEGA_DUMP_HEADER_BSF
&
ff_mjpeg2jpeg_bsf
,
#endif
#if CONFIG_MOV2TEXTSUB_BSF
&
ff_mov2textsub_bsf
,
#endif
#if CONFIG_TEXT2MOVSUB_BSF
&
ff_text2movsub_bsf
,
#endif
#if CONFIG_NOISE_BSF
&
ff_noise_bsf
,
#endif
#if CONFIG_REMOVE_EXTRADATA_BSF
&
ff_remove_extradata_bsf
,
#endif
NULL
,
};
const
AVBitStreamFilter
*
av_bsf_next
(
void
**
opaque
)
const
AVBitStreamFilter
*
av_bsf_next
(
void
**
opaque
)
{
{
...
...
libavformat/protocols.c
View file @
06edef3d
...
@@ -58,113 +58,7 @@ extern const URLProtocol ff_librtmps_protocol;
...
@@ -58,113 +58,7 @@ extern const URLProtocol ff_librtmps_protocol;
extern
const
URLProtocol
ff_librtmpt_protocol
;
extern
const
URLProtocol
ff_librtmpt_protocol
;
extern
const
URLProtocol
ff_librtmpte_protocol
;
extern
const
URLProtocol
ff_librtmpte_protocol
;
static
const
URLProtocol
*
url_protocols
[]
=
{
#include "libavformat/protocol_list.c"
#if CONFIG_CONCAT_PROTOCOL
&
ff_concat_protocol
,
#endif
#if CONFIG_CRYPTO_PROTOCOL
&
ff_crypto_protocol
,
#endif
#if CONFIG_FFRTMPCRYPT_PROTOCOL
&
ff_ffrtmpcrypt_protocol
,
#endif
#if CONFIG_FFRTMPHTTP_PROTOCOL
&
ff_ffrtmphttp_protocol
,
#endif
#if CONFIG_FILE_PROTOCOL
&
ff_file_protocol
,
#endif
#if CONFIG_GOPHER_PROTOCOL
&
ff_gopher_protocol
,
#endif
#if CONFIG_HLS_PROTOCOL
&
ff_hls_protocol
,
#endif
#if CONFIG_HTTP_PROTOCOL
&
ff_http_protocol
,
#endif
#if CONFIG_HTTPPROXY_PROTOCOL
&
ff_httpproxy_protocol
,
#endif
#if CONFIG_HTTPS_PROTOCOL
&
ff_https_protocol
,
#endif
#if CONFIG_ICECAST_PROTOCOL
&
ff_icecast_protocol
,
#endif
#if CONFIG_MMSH_PROTOCOL
&
ff_mmsh_protocol
,
#endif
#if CONFIG_MMST_PROTOCOL
&
ff_mmst_protocol
,
#endif
#if CONFIG_MD5_PROTOCOL
&
ff_md5_protocol
,
#endif
#if CONFIG_PIPE_PROTOCOL
&
ff_pipe_protocol
,
#endif
#if CONFIG_RTMP_PROTOCOL
&
ff_rtmp_protocol
,
#endif
#if CONFIG_RTMPE_PROTOCOL
&
ff_rtmpe_protocol
,
#endif
#if CONFIG_RTMPS_PROTOCOL
&
ff_rtmps_protocol
,
#endif
#if CONFIG_RTMPT_PROTOCOL
&
ff_rtmpt_protocol
,
#endif
#if CONFIG_RTMPTE_PROTOCOL
&
ff_rtmpte_protocol
,
#endif
#if CONFIG_RTMPTS_PROTOCOL
&
ff_rtmpts_protocol
,
#endif
#if CONFIG_RTP_PROTOCOL
&
ff_rtp_protocol
,
#endif
#if CONFIG_SCTP_PROTOCOL
&
ff_sctp_protocol
,
#endif
#if CONFIG_SRTP_PROTOCOL
&
ff_srtp_protocol
,
#endif
#if CONFIG_TCP_PROTOCOL
&
ff_tcp_protocol
,
#endif
#if CONFIG_TLS_GNUTLS_PROTOCOL
&
ff_tls_gnutls_protocol
,
#endif
#if CONFIG_TLS_OPENSSL_PROTOCOL
&
ff_tls_openssl_protocol
,
#endif
#if CONFIG_UDP_PROTOCOL
&
ff_udp_protocol
,
#endif
#if CONFIG_UNIX_PROTOCOL
&
ff_unix_protocol
,
#endif
/* external libraries */
#if CONFIG_LIBRTMP_PROTOCOL
&
ff_librtmp_protocol
,
#endif
#if CONFIG_LIBRTMPE_PROTOCOL
&
ff_librtmpe_protocol
,
#endif
#if CONFIG_LIBRTMPS_PROTOCOL
&
ff_librtmps_protocol
,
#endif
#if CONFIG_LIBRTMPT_PROTOCOL
&
ff_librtmpt_protocol
,
#endif
#if CONFIG_LIBRTMPTE_PROTOCOL
&
ff_librtmpte_protocol
,
#endif
NULL
,
};
const
AVClass
*
ff_urlcontext_child_class_next
(
const
AVClass
*
prev
)
const
AVClass
*
ff_urlcontext_child_class_next
(
const
AVClass
*
prev
)
{
{
...
...
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