mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1214462: P2. Add mozilla build files to build ffvpx. r=glandium
This commit is contained in:
parent
7f036e4994
commit
f266d7b432
@ -5,3 +5,10 @@ All source files match their path from the library's source archive.
|
||||
Currently, we only use the vp8 and vp9 portion of the library, and only on x86
|
||||
based platforms. If this changes, configuration files will most likely
|
||||
need to be updated.
|
||||
|
||||
The configuration files were generated using FFmpeg's configure script using the
|
||||
command:
|
||||
# ./configure --disable-everything --disable-protocols --disable-demuxers --disable-muxers --disable-filters --disable-programs --disable-doc --disable-parsers --enable-parser=vp8 --enable-parser=vp9 --enable-decoder=vp8 --enable-decoder=vp9 --disable-static --enable-shared --disable-debug --disable-sdl --disable-libxcb --disable-securetransport --disable-iconv --disable-swresample --disable-swscale --disable-avdevice --disable-avfilter --disable-avformat --disable-d3d11va --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-videotoolbox --enable-asm --enable-yasm --disable-avx2
|
||||
|
||||
AVX2 was disabled due to the use of yasm 1.1 on the build bots.
|
||||
Once yasm is upgraded to 1.2 or later, AVX2 code could be re-enabled.
|
||||
|
@ -50,3 +50,16 @@ index 9fb8d0a..97ad3b9 100644
|
||||
rgba_color[0] = rgba >> 24;
|
||||
rgba_color[1] = rgba >> 16;
|
||||
rgba_color[2] = rgba >> 8;
|
||||
diff --git a/media/ffvpx/libavutil/internal.h b/media/ffvpx/libavutil/internal.h
|
||||
index 047f742..fe504c3 100644
|
||||
--- a/media/ffvpx/libavutil/internal.h
|
||||
+++ b/media/ffvpx/libavutil/internal.h
|
||||
@@ -237,7 +237,7 @@ void avpriv_request_sample(void *avc,
|
||||
|
||||
#if HAVE_LIBC_MSVCRT
|
||||
#include <crtversion.h>
|
||||
-#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 14
|
||||
+#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 12
|
||||
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_strtod")
|
||||
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_snprintf")
|
||||
#endif
|
||||
|
1976
media/ffvpx/config.asm
Normal file
1976
media/ffvpx/config.asm
Normal file
File diff suppressed because it is too large
Load Diff
25
media/ffvpx/config.h
Normal file
25
media/ffvpx/config.h
Normal file
@ -0,0 +1,25 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef MOZ_FFVPX_CONFIG_H
|
||||
#define MOZ_FFVPX_CONFIG_H
|
||||
#if defined(XP_WIN)
|
||||
#include "config_win.h"
|
||||
#elif defined(XP_DARWIN)
|
||||
#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_darwin64.h"
|
||||
#else
|
||||
#include "config_darwin32.h"
|
||||
#endif
|
||||
#elif defined(XP_UNIX)
|
||||
#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_unix64.h"
|
||||
#else
|
||||
#include "config_unix32.h"
|
||||
#endif
|
||||
#endif
|
||||
#include "config_common.h"
|
||||
#endif // MOZ_FFVPX_CONFIG_H
|
3
media/ffvpx/config_common.h
Normal file
3
media/ffvpx/config_common.h
Normal file
@ -0,0 +1,3 @@
|
||||
#ifndef MOZ_FFVPX_CONFIG_COMMON_H
|
||||
#define MOZ_FFVPX_CONFIG_COMMON_H
|
||||
#endif
|
1993
media/ffvpx/config_darwin32.h
Normal file
1993
media/ffvpx/config_darwin32.h
Normal file
File diff suppressed because it is too large
Load Diff
1976
media/ffvpx/config_darwin64.asm
Normal file
1976
media/ffvpx/config_darwin64.asm
Normal file
File diff suppressed because it is too large
Load Diff
1993
media/ffvpx/config_darwin64.h
Normal file
1993
media/ffvpx/config_darwin64.h
Normal file
File diff suppressed because it is too large
Load Diff
1993
media/ffvpx/config_unix32.h
Normal file
1993
media/ffvpx/config_unix32.h
Normal file
File diff suppressed because it is too large
Load Diff
1976
media/ffvpx/config_unix64.asm
Normal file
1976
media/ffvpx/config_unix64.asm
Normal file
File diff suppressed because it is too large
Load Diff
1993
media/ffvpx/config_unix64.h
Normal file
1993
media/ffvpx/config_unix64.h
Normal file
File diff suppressed because it is too large
Load Diff
1995
media/ffvpx/config_win.asm
Normal file
1995
media/ffvpx/config_win.asm
Normal file
File diff suppressed because it is too large
Load Diff
2017
media/ffvpx/config_win.h
Normal file
2017
media/ffvpx/config_win.h
Normal file
File diff suppressed because it is too large
Load Diff
16
media/ffvpx/cpu_perms.h
Normal file
16
media/ffvpx/cpu_perms.h
Normal file
@ -0,0 +1,16 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// Include file for fixing symbol visibility on Linux.
|
||||
|
||||
#ifndef MOZILLA_AVCPU_PERMS_H
|
||||
#define MOZILLA_AVCPU_PERMS_H
|
||||
|
||||
#pragma GCC visibility push(default)
|
||||
#include "libavutil/cpu.h"
|
||||
#pragma GCC visibility pop
|
||||
|
||||
#endif // MOZILLA_AVCPU_PERMS_H
|
83
media/ffvpx/ffvpxcommon.mozbuild
Normal file
83
media/ffvpx/ffvpxcommon.mozbuild
Normal file
@ -0,0 +1,83 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Add assembler flags and includes
|
||||
ASFLAGS += CONFIG['FFVPX_ASFLAGS']
|
||||
ASFLAGS += ['-I%s/media/ffvpx' % TOPSRCDIR]
|
||||
|
||||
if CONFIG['FFVPX_AS']:
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
# Fix inline symbols and math defines for windows.
|
||||
DEFINES['_USE_MATH_DEFINES'] = True
|
||||
DEFINES['inline'] = "__inline"
|
||||
ASFLAGS += ['-Pconfig_win.asm']
|
||||
# 32-bit windows need to prefix symbols with an underscore.
|
||||
if CONFIG['CPU_ARCH'] == 'x86':
|
||||
ASFLAGS += ['-DPREFIX']
|
||||
# To avoid attempting to link on removed code, use optimised compilation.
|
||||
if not CONFIG['MOZ_OPTIMIZE']:
|
||||
CFLAGS += ['-O1']
|
||||
elif CONFIG['OS_ARCH'] == 'Darwin':
|
||||
# 32/64-bit macosx assemblers need to prefix symbols with an underscore.
|
||||
ASFLAGS += [
|
||||
'-Pconfig_darwin64.asm',
|
||||
'-DPREFIX'
|
||||
]
|
||||
else:
|
||||
# Default to unix, similar to how ASFLAGS setup works in configure.in
|
||||
ASFLAGS += ['-Pconfig_unix64.asm']
|
||||
|
||||
LOCAL_INCLUDES += ['/media/ffvpx']
|
||||
|
||||
# We allow warnings for third-party code that can be updated from upstream.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CC']:
|
||||
CFLAGS += [
|
||||
'-Wno-parentheses',
|
||||
'-Wno-pointer-sign',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-switch',
|
||||
'-Wno-type-limits',
|
||||
]
|
||||
if CONFIG['CLANG_CXX']:
|
||||
CFLAGS += [
|
||||
'-Wno-incompatible-pointer-types-discards-qualifiers',
|
||||
'-Wno-logical-op-parentheses',
|
||||
]
|
||||
# Force visibility of cpu symbols
|
||||
CFLAGS += ['-include', 'cpu_perms.h']
|
||||
elif CONFIG['_MSC_VER']:
|
||||
CFLAGS += [
|
||||
'-wd4090', # 'return' : different 'const' qualifiers
|
||||
'-wd4018', # '>' : signed/unsigned mismatch
|
||||
'-wd4305', # 'initializing' : truncation from '__int64' to 'double'
|
||||
'-wd4554', # '>>' : check operator precedence for possible error
|
||||
'-wd4307', # '+' : integral constant overflow'
|
||||
'-wd4028', # formal parameter 1 different from declaration
|
||||
'-wd4056', # overflow in floating-point constant arithmetic
|
||||
'-wd4756', # overflow in constant arithmetic
|
||||
'-wd4005', #'WIN32_LEAN_AND_MEAN' : macro redefinition
|
||||
'-wd4054', # 'type cast' : from function pointer 'FARPROC' to data pointer 'void *'
|
||||
'-wd4189', # local variable is initialized but not referenced
|
||||
'-wd4133', # 'function' : incompatible types - from 'AVSampleFormat *' to 'int *'
|
||||
'-wd4221', # nonstandard extension used
|
||||
'-wd4206', # nonstandard extension used
|
||||
'-wd4702', # unreachable code
|
||||
'-wd4101', # unreferenced local variable
|
||||
'-wd4245', # conversion from 'int' to 'uint32_t', signed/unsigned mismatch
|
||||
'-wd4703', # potentially uninitialized local pointer
|
||||
'-wd4293', # '<<' : shift count negative or too big, undefined behavior
|
||||
# from FFmpeg configure
|
||||
'-wd4244', '-wd4127', '-wd4018', '-wd4389', '-wd4146', '-wd4701',
|
||||
'-wd4057', '-wd4204', '-wd4706', '-wd4305', '-wd4152', '-wd4324',
|
||||
'-we4013', '-wd4100', '-wd4214', '-wd4307', '-wd4273', '-wd4554',
|
||||
]
|
||||
DEFINES['snprintf'] = "avpriv_snprintf"
|
||||
DEFINES['_snprintf'] = "avpriv_snprintf"
|
||||
DEFINES['vsnprintf'] = "avpriv_vsnprintf"
|
||||
|
||||
DEFINES['HAVE_AV_CONFIG_H'] = True
|
146
media/ffvpx/libavcodec/avcodec-56.symbols
Normal file
146
media/ffvpx/libavcodec/avcodec-56.symbols
Normal file
@ -0,0 +1,146 @@
|
||||
av_bitstream_filter_close
|
||||
av_bitstream_filter_filter
|
||||
av_bitstream_filter_init
|
||||
av_bitstream_filter_next
|
||||
av_codec_ffversion
|
||||
av_codec_get_chroma_intra_matrix
|
||||
av_codec_get_codec_descriptor
|
||||
av_codec_get_codec_properties
|
||||
av_codec_get_lowres
|
||||
av_codec_get_max_lowres
|
||||
av_codec_get_pkt_timebase
|
||||
av_codec_get_seek_preroll
|
||||
av_codec_is_decoder
|
||||
av_codec_is_encoder
|
||||
av_codec_next
|
||||
av_codec_set_chroma_intra_matrix
|
||||
av_codec_set_codec_descriptor
|
||||
av_codec_set_lowres
|
||||
av_codec_set_pkt_timebase
|
||||
av_codec_set_seek_preroll
|
||||
av_copy_packet
|
||||
av_copy_packet_side_data
|
||||
av_destruct_packet
|
||||
av_dup_packet
|
||||
av_fast_padded_malloc
|
||||
av_fast_padded_mallocz
|
||||
av_free_packet
|
||||
av_get_audio_frame_duration
|
||||
av_get_bits_per_sample
|
||||
av_get_codec_tag_string
|
||||
av_get_exact_bits_per_sample
|
||||
av_get_pcm_codec
|
||||
av_get_profile_name
|
||||
av_grow_packet
|
||||
av_hwaccel_next
|
||||
av_init_packet
|
||||
av_lockmgr_register
|
||||
av_log_ask_for_sample
|
||||
av_log_missing_feature
|
||||
av_new_packet
|
||||
av_packet_copy_props
|
||||
av_packet_free_side_data
|
||||
av_packet_from_data
|
||||
av_packet_get_side_data
|
||||
av_packet_merge_side_data
|
||||
av_packet_move_ref
|
||||
av_packet_new_side_data
|
||||
av_packet_pack_dictionary
|
||||
av_packet_ref
|
||||
av_packet_rescale_ts
|
||||
av_packet_shrink_side_data
|
||||
av_packet_side_data_name
|
||||
av_packet_split_side_data
|
||||
av_packet_unpack_dictionary
|
||||
av_packet_unref
|
||||
av_parser_change
|
||||
av_parser_close
|
||||
av_parser_init
|
||||
av_parser_next
|
||||
av_parser_parse2
|
||||
av_picture_copy
|
||||
av_picture_crop
|
||||
av_picture_pad
|
||||
av_qsv_alloc_context
|
||||
av_register_bitstream_filter
|
||||
av_register_codec_parser
|
||||
av_register_hwaccel
|
||||
av_resample
|
||||
av_resample_close
|
||||
av_resample_compensate
|
||||
av_resample_init
|
||||
av_shrink_packet
|
||||
av_vorbis_parse_frame
|
||||
av_vorbis_parse_frame_flags
|
||||
av_vorbis_parse_free
|
||||
av_vorbis_parse_init
|
||||
av_vorbis_parse_reset
|
||||
av_xiphlacing
|
||||
avcodec_align_dimensions
|
||||
avcodec_align_dimensions2
|
||||
avcodec_alloc_context3
|
||||
avcodec_alloc_frame
|
||||
avcodec_chroma_pos_to_enum
|
||||
avcodec_close
|
||||
avcodec_configuration
|
||||
avcodec_copy_context
|
||||
avcodec_dct_alloc
|
||||
avcodec_dct_get_class
|
||||
avcodec_dct_init
|
||||
avcodec_decode_audio3
|
||||
avcodec_decode_audio4
|
||||
avcodec_decode_subtitle2
|
||||
avcodec_decode_video2
|
||||
avcodec_default_execute
|
||||
avcodec_default_execute2
|
||||
avcodec_default_get_buffer
|
||||
avcodec_default_get_buffer2
|
||||
avcodec_default_get_format
|
||||
avcodec_default_reget_buffer
|
||||
avcodec_default_release_buffer
|
||||
avcodec_descriptor_get
|
||||
avcodec_descriptor_get_by_name
|
||||
avcodec_descriptor_next
|
||||
avcodec_encode_audio
|
||||
avcodec_encode_audio2
|
||||
avcodec_encode_subtitle
|
||||
avcodec_encode_video
|
||||
avcodec_encode_video2
|
||||
avcodec_enum_to_chroma_pos
|
||||
avcodec_fill_audio_frame
|
||||
avcodec_find_best_pix_fmt2
|
||||
avcodec_find_best_pix_fmt_of_2
|
||||
avcodec_find_best_pix_fmt_of_list
|
||||
avcodec_find_decoder
|
||||
avcodec_find_decoder_by_name
|
||||
avcodec_find_encoder
|
||||
avcodec_find_encoder_by_name
|
||||
avcodec_flush_buffers
|
||||
avcodec_free_context
|
||||
avcodec_free_frame
|
||||
avcodec_get_chroma_sub_sample
|
||||
avcodec_get_class
|
||||
avcodec_get_context_defaults3
|
||||
avcodec_get_edge_width
|
||||
avcodec_get_frame_class
|
||||
avcodec_get_frame_defaults
|
||||
avcodec_get_name
|
||||
avcodec_get_pix_fmt_loss
|
||||
avcodec_get_subtitle_rect_class
|
||||
avcodec_get_type
|
||||
avcodec_is_open
|
||||
avcodec_license
|
||||
avcodec_open2
|
||||
avcodec_pix_fmt_to_codec_tag
|
||||
avcodec_register
|
||||
avcodec_register_all
|
||||
avcodec_set_dimensions
|
||||
avcodec_string
|
||||
avcodec_version
|
||||
avpicture_alloc
|
||||
avpicture_deinterlace
|
||||
avpicture_fill
|
||||
avpicture_free
|
||||
avpicture_get_size
|
||||
avpicture_layout
|
||||
avsubtitle_free
|
59
media/ffvpx/libavcodec/moz.build
Normal file
59
media/ffvpx/libavcodec/moz.build
Normal file
@ -0,0 +1,59 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Due to duplicate file names, we compile libavutil/x86 in its own
|
||||
# moz.build file.
|
||||
if CONFIG['FFVPX_AS']:
|
||||
DIRS += ['x86']
|
||||
|
||||
SharedLibrary('mozavcodec')
|
||||
SOURCES += [
|
||||
'allcodecs.c',
|
||||
'audioconvert.c',
|
||||
'avdct.c',
|
||||
'avpacket.c',
|
||||
'avpicture.c',
|
||||
'bitstream.c',
|
||||
'bitstream_filter.c',
|
||||
'codec_desc.c',
|
||||
'h264pred.c',
|
||||
'imgconvert.c',
|
||||
'log2_tab.c',
|
||||
'mathtables.c',
|
||||
'options.c',
|
||||
'parser.c',
|
||||
'pthread.c',
|
||||
'pthread_frame.c',
|
||||
'pthread_slice.c',
|
||||
'qsv_api.c',
|
||||
'raw.c',
|
||||
'resample.c',
|
||||
'resample2.c',
|
||||
'reverse.c',
|
||||
'utils.c',
|
||||
'videodsp.c',
|
||||
'vorbis_parser.c',
|
||||
'vp56rac.c',
|
||||
'vp8.c',
|
||||
'vp8_parser.c',
|
||||
'vp8dsp.c',
|
||||
'vp9.c',
|
||||
'vp9_parser.c',
|
||||
'vp9dsp.c',
|
||||
'vp9dsp_10bpp.c',
|
||||
'vp9dsp_12bpp.c',
|
||||
'vp9dsp_8bpp.c',
|
||||
'xiph.c'
|
||||
]
|
||||
|
||||
SYMBOLS_FILE = 'avcodec-56.symbols'
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
USE_LIBS += [
|
||||
'mozavutil'
|
||||
]
|
||||
|
||||
include("../ffvpxcommon.mozbuild")
|
7
media/ffvpx/libavcodec/x86/Makefile.in
Normal file
7
media/ffvpx/libavcodec/x86/Makefile.in
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
AS=$(FFVPX_AS)
|
||||
ASM_SUFFIX=asm
|
28
media/ffvpx/libavcodec/x86/moz.build
Normal file
28
media/ffvpx/libavcodec/x86/moz.build
Normal file
@ -0,0 +1,28 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
SOURCES += [
|
||||
'constants.c',
|
||||
'deinterlace.asm',
|
||||
'h264_intrapred.asm',
|
||||
'h264_intrapred_10bit.asm',
|
||||
'h264_intrapred_init.c',
|
||||
'videodsp.asm',
|
||||
'videodsp_init.c',
|
||||
'vp8dsp.asm',
|
||||
'vp8dsp_init.c',
|
||||
'vp8dsp_loopfilter.asm',
|
||||
'vp9dsp_init.c',
|
||||
'vp9intrapred.asm',
|
||||
'vp9itxfm.asm',
|
||||
'vp9lpf.asm',
|
||||
'vp9mc.asm'
|
||||
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'mozavcodec'
|
||||
|
||||
include('/media/ffvpx/ffvpxcommon.mozbuild')
|
355
media/ffvpx/libavutil/avutil-54.symbols
Normal file
355
media/ffvpx/libavutil/avutil-54.symbols
Normal file
@ -0,0 +1,355 @@
|
||||
av_add_q
|
||||
av_add_stable
|
||||
av_adler32_update
|
||||
av_append_path_component
|
||||
av_asprintf
|
||||
av_base64_decode
|
||||
av_base64_encode
|
||||
av_basename
|
||||
av_bprint_append_data
|
||||
av_bprint_channel_layout
|
||||
av_bprint_chars
|
||||
av_bprint_clear
|
||||
av_bprint_escape
|
||||
av_bprint_finalize
|
||||
av_bprint_get_buffer
|
||||
av_bprint_init
|
||||
av_bprint_init_for_buffer
|
||||
av_bprint_strftime
|
||||
av_bprintf
|
||||
av_buffer_alloc
|
||||
av_buffer_allocz
|
||||
av_buffer_create
|
||||
av_buffer_default_free
|
||||
av_buffer_get_opaque
|
||||
av_buffer_get_ref_count
|
||||
av_buffer_is_writable
|
||||
av_buffer_make_writable
|
||||
av_buffer_pool_get
|
||||
av_buffer_pool_init
|
||||
av_buffer_pool_uninit
|
||||
av_buffer_realloc
|
||||
av_buffer_ref
|
||||
av_buffer_unref
|
||||
av_calloc
|
||||
av_channel_layout_extract_channel
|
||||
av_chroma_location_name
|
||||
av_color_primaries_name
|
||||
av_color_range_name
|
||||
av_color_space_name
|
||||
av_color_transfer_name
|
||||
av_compare_mod
|
||||
av_compare_ts
|
||||
av_cpu_count
|
||||
av_crc
|
||||
av_crc_get_table
|
||||
av_crc_init
|
||||
av_ctz
|
||||
av_d2q
|
||||
av_d2str
|
||||
av_default_get_category
|
||||
av_default_item_name
|
||||
av_dict_copy
|
||||
av_dict_count
|
||||
av_dict_free
|
||||
av_dict_get
|
||||
av_dict_get_string
|
||||
av_dict_parse_string
|
||||
av_dict_set
|
||||
av_dict_set_int
|
||||
av_dirname
|
||||
av_display_matrix_flip
|
||||
av_display_rotation_get
|
||||
av_display_rotation_set
|
||||
av_div_q
|
||||
av_dynarray2_add
|
||||
av_dynarray_add
|
||||
av_dynarray_add_nofree
|
||||
av_escape
|
||||
av_expr_eval
|
||||
av_expr_free
|
||||
av_expr_parse
|
||||
av_expr_parse_and_eval
|
||||
av_fast_malloc
|
||||
av_fast_realloc
|
||||
av_fifo_alloc
|
||||
av_fifo_alloc_array
|
||||
av_fifo_drain
|
||||
av_fifo_free
|
||||
av_fifo_freep
|
||||
av_fifo_generic_peek
|
||||
av_fifo_generic_read
|
||||
av_fifo_generic_write
|
||||
av_fifo_grow
|
||||
av_fifo_realloc2
|
||||
av_fifo_reset
|
||||
av_fifo_size
|
||||
av_fifo_space
|
||||
av_find_best_pix_fmt_of_2
|
||||
av_find_info_tag
|
||||
av_find_nearest_q_idx
|
||||
av_force_cpu_flags
|
||||
av_frame_alloc
|
||||
av_frame_clone
|
||||
av_frame_copy
|
||||
av_frame_copy_props
|
||||
av_frame_free
|
||||
av_frame_get_best_effort_timestamp
|
||||
av_frame_get_buffer
|
||||
av_frame_get_channel_layout
|
||||
av_frame_get_channels
|
||||
av_frame_get_color_range
|
||||
av_frame_get_colorspace
|
||||
av_frame_get_decode_error_flags
|
||||
av_frame_get_metadata
|
||||
av_frame_get_pkt_duration
|
||||
av_frame_get_pkt_pos
|
||||
av_frame_get_pkt_size
|
||||
av_frame_get_plane_buffer
|
||||
av_frame_get_qp_table
|
||||
av_frame_get_sample_rate
|
||||
av_frame_get_side_data
|
||||
av_frame_is_writable
|
||||
av_frame_make_writable
|
||||
av_frame_move_ref
|
||||
av_frame_new_side_data
|
||||
av_frame_ref
|
||||
av_frame_remove_side_data
|
||||
av_frame_set_best_effort_timestamp
|
||||
av_frame_set_channel_layout
|
||||
av_frame_set_channels
|
||||
av_frame_set_color_range
|
||||
av_frame_set_colorspace
|
||||
av_frame_set_decode_error_flags
|
||||
av_frame_set_metadata
|
||||
av_frame_set_pkt_duration
|
||||
av_frame_set_pkt_pos
|
||||
av_frame_set_pkt_size
|
||||
av_frame_set_qp_table
|
||||
av_frame_set_sample_rate
|
||||
av_frame_side_data_name
|
||||
av_frame_unref
|
||||
av_free
|
||||
av_freep
|
||||
av_gcd
|
||||
av_get_alt_sample_fmt
|
||||
av_get_bits_per_pixel
|
||||
av_get_bytes_per_sample
|
||||
av_get_channel_description
|
||||
av_get_channel_layout
|
||||
av_get_channel_layout_channel_index
|
||||
av_get_channel_layout_nb_channels
|
||||
av_get_channel_layout_string
|
||||
av_get_channel_name
|
||||
av_get_colorspace_name
|
||||
av_get_cpu_flags
|
||||
av_get_default_channel_layout
|
||||
av_get_double
|
||||
av_get_int
|
||||
av_get_known_color_name
|
||||
av_get_media_type_string
|
||||
av_get_packed_sample_fmt
|
||||
av_get_padded_bits_per_pixel
|
||||
av_get_picture_type_char
|
||||
av_get_pix_fmt
|
||||
av_get_pix_fmt_loss
|
||||
av_get_pix_fmt_name
|
||||
av_get_pix_fmt_string
|
||||
av_get_planar_sample_fmt
|
||||
av_get_q
|
||||
av_get_sample_fmt
|
||||
av_get_sample_fmt_name
|
||||
av_get_sample_fmt_string
|
||||
av_get_standard_channel_layout
|
||||
av_get_string
|
||||
av_get_time_base_q
|
||||
av_get_token
|
||||
av_gettime
|
||||
av_gettime_relative
|
||||
av_gettime_relative_is_monotonic
|
||||
av_image_alloc
|
||||
av_image_check_sar
|
||||
av_image_check_size
|
||||
av_image_copy
|
||||
av_image_copy_plane
|
||||
av_image_copy_to_buffer
|
||||
av_image_fill_arrays
|
||||
av_image_fill_linesizes
|
||||
av_image_fill_max_pixsteps
|
||||
av_image_fill_pointers
|
||||
av_image_get_buffer_size
|
||||
av_image_get_linesize
|
||||
av_int_list_length_for_size
|
||||
av_isdigit
|
||||
av_isgraph
|
||||
av_isspace
|
||||
av_isxdigit
|
||||
av_log
|
||||
av_log2
|
||||
av_log2_16bit
|
||||
av_log_default_callback
|
||||
av_log_format_line
|
||||
av_log_get_flags
|
||||
av_log_get_level
|
||||
av_log_set_callback
|
||||
av_log_set_flags
|
||||
av_log_set_level
|
||||
av_malloc
|
||||
av_mallocz
|
||||
av_match_list
|
||||
av_match_name
|
||||
av_max_alloc
|
||||
av_memcpy_backptr
|
||||
av_memdup
|
||||
av_mul_q
|
||||
av_nearer_q
|
||||
av_next_option
|
||||
av_opt_child_class_next
|
||||
av_opt_child_next
|
||||
av_opt_copy
|
||||
av_opt_eval_double
|
||||
av_opt_eval_flags
|
||||
av_opt_eval_float
|
||||
av_opt_eval_int
|
||||
av_opt_eval_int64
|
||||
av_opt_eval_q
|
||||
av_opt_find
|
||||
av_opt_find2
|
||||
av_opt_flag_is_set
|
||||
av_opt_free
|
||||
av_opt_freep_ranges
|
||||
av_opt_get
|
||||
av_opt_get_channel_layout
|
||||
av_opt_get_dict_val
|
||||
av_opt_get_double
|
||||
av_opt_get_image_size
|
||||
av_opt_get_int
|
||||
av_opt_get_key_value
|
||||
av_opt_get_pixel_fmt
|
||||
av_opt_get_q
|
||||
av_opt_get_sample_fmt
|
||||
av_opt_get_video_rate
|
||||
av_opt_is_set_to_default
|
||||
av_opt_is_set_to_default_by_name
|
||||
av_opt_next
|
||||
av_opt_ptr
|
||||
av_opt_query_ranges
|
||||
av_opt_query_ranges_default
|
||||
av_opt_serialize
|
||||
av_opt_set
|
||||
av_opt_set_bin
|
||||
av_opt_set_channel_layout
|
||||
av_opt_set_defaults
|
||||
av_opt_set_defaults2
|
||||
av_opt_set_dict
|
||||
av_opt_set_dict2
|
||||
av_opt_set_dict_val
|
||||
av_opt_set_double
|
||||
av_opt_set_from_string
|
||||
av_opt_set_image_size
|
||||
av_opt_set_int
|
||||
av_opt_set_pixel_fmt
|
||||
av_opt_set_q
|
||||
av_opt_set_sample_fmt
|
||||
av_opt_set_video_rate
|
||||
av_opt_show2
|
||||
av_parse_color
|
||||
av_parse_cpu_caps
|
||||
av_parse_cpu_flags
|
||||
av_parse_ratio
|
||||
av_parse_time
|
||||
av_parse_video_rate
|
||||
av_parse_video_size
|
||||
av_pix_fmt_count_planes
|
||||
av_pix_fmt_desc_get
|
||||
av_pix_fmt_desc_get_id
|
||||
av_pix_fmt_desc_next
|
||||
av_pix_fmt_descriptors
|
||||
av_pix_fmt_get_chroma_sub_sample
|
||||
av_pix_fmt_swap_endianness
|
||||
av_pixelutils_get_sad_fn
|
||||
av_q2intfloat
|
||||
av_read_image_line
|
||||
av_realloc
|
||||
av_realloc_array
|
||||
av_realloc_f
|
||||
av_reallocp
|
||||
av_reallocp_array
|
||||
av_reduce
|
||||
av_rescale
|
||||
av_rescale_delta
|
||||
av_rescale_q
|
||||
av_rescale_q_rnd
|
||||
av_rescale_rnd
|
||||
av_reverse
|
||||
av_sample_fmt_is_planar
|
||||
av_samples_alloc
|
||||
av_samples_alloc_array_and_samples
|
||||
av_samples_copy
|
||||
av_samples_fill_arrays
|
||||
av_samples_get_buffer_size
|
||||
av_samples_set_silence
|
||||
av_set_cpu_flags_mask
|
||||
av_set_double
|
||||
av_set_int
|
||||
av_set_options_string
|
||||
av_set_q
|
||||
av_set_string3
|
||||
av_small_strptime
|
||||
av_strcasecmp
|
||||
av_strdup
|
||||
av_strerror
|
||||
av_stristart
|
||||
av_stristr
|
||||
av_strlcat
|
||||
av_strlcatf
|
||||
av_strlcpy
|
||||
av_strncasecmp
|
||||
av_strndup
|
||||
av_strnstr
|
||||
av_strstart
|
||||
av_strtod
|
||||
av_strtok
|
||||
av_sub_q
|
||||
av_thread_message_queue_alloc
|
||||
av_thread_message_queue_free
|
||||
av_thread_message_queue_recv
|
||||
av_thread_message_queue_send
|
||||
av_thread_message_queue_set_err_recv
|
||||
av_thread_message_queue_set_err_send
|
||||
av_timecode_adjust_ntsc_framenum2
|
||||
av_timecode_check_frame_rate
|
||||
av_timecode_get_smpte_from_framenum
|
||||
av_timecode_init
|
||||
av_timecode_init_from_string
|
||||
av_timecode_make_mpeg_tc_string
|
||||
av_timecode_make_smpte_tc_string
|
||||
av_timecode_make_string
|
||||
av_timegm
|
||||
av_usleep
|
||||
av_utf8_decode
|
||||
av_util_ffversion
|
||||
av_vbprintf
|
||||
av_version_info
|
||||
av_vlog
|
||||
av_write_image_line
|
||||
avpriv_alloc_fixed_dsp
|
||||
avpriv_float_dsp_alloc
|
||||
avpriv_float_dsp_init
|
||||
avpriv_frame_get_metadatap
|
||||
avpriv_get_gamma_from_trc
|
||||
avpriv_init_lls
|
||||
avpriv_report_missing_feature
|
||||
avpriv_request_sample
|
||||
avpriv_scalarproduct_float_c
|
||||
avpriv_set_systematic_pal2
|
||||
avpriv_solve_lls
|
||||
avutil_configuration
|
||||
avutil_license
|
||||
avutil_version
|
||||
#ifdef XP_WIN
|
||||
avpriv_emms_yasm
|
||||
avpriv_snprintf
|
||||
avpriv_strtod
|
||||
avpriv_vsnprintf
|
||||
#endif
|
@ -237,7 +237,7 @@ void avpriv_request_sample(void *avc,
|
||||
|
||||
#if HAVE_LIBC_MSVCRT
|
||||
#include <crtversion.h>
|
||||
#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 14
|
||||
#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 12
|
||||
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_strtod")
|
||||
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_snprintf")
|
||||
#endif
|
||||
|
64
media/ffvpx/libavutil/moz.build
Normal file
64
media/ffvpx/libavutil/moz.build
Normal file
@ -0,0 +1,64 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Due to duplicate file names, we compile libavutil/x86 in its own
|
||||
# moz.build file.
|
||||
if CONFIG['FFVPX_AS']:
|
||||
DIRS += ['x86']
|
||||
|
||||
SharedLibrary('mozavutil')
|
||||
SOURCES += [
|
||||
'adler32.c',
|
||||
'atomic.c',
|
||||
'avstring.c',
|
||||
'base64.c',
|
||||
'bprint.c',
|
||||
'buffer.c',
|
||||
'channel_layout.c',
|
||||
'color_utils.c',
|
||||
'cpu.c',
|
||||
'crc.c',
|
||||
'dict.c',
|
||||
'display.c',
|
||||
'error.c',
|
||||
'eval.c',
|
||||
'fifo.c',
|
||||
'fixed_dsp.c',
|
||||
'float_dsp.c',
|
||||
'frame.c',
|
||||
'imgutils.c',
|
||||
'integer.c',
|
||||
'intmath.c',
|
||||
'lls.c',
|
||||
'log.c',
|
||||
'log2_tab.c',
|
||||
'mathematics.c',
|
||||
'mem.c',
|
||||
'opt.c',
|
||||
'parseutils.c',
|
||||
'pixdesc.c',
|
||||
'pixelutils.c',
|
||||
'rational.c',
|
||||
'reverse.c',
|
||||
'samplefmt.c',
|
||||
'threadmessage.c',
|
||||
'time.c',
|
||||
'timecode.c',
|
||||
'utils.c',
|
||||
]
|
||||
|
||||
if CONFIG['_MSC_VER']:
|
||||
SOURCES += [
|
||||
'../compat/msvcrt/snprintf.c',
|
||||
'../compat/strtod.c'
|
||||
]
|
||||
|
||||
SYMBOLS_FILE = 'avutil-54.symbols'
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
OS_LIBS += CONFIG['REALTIME_LIBS']
|
||||
|
||||
include("../ffvpxcommon.mozbuild")
|
7
media/ffvpx/libavutil/x86/Makefile.in
Normal file
7
media/ffvpx/libavutil/x86/Makefile.in
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
AS=$(FFVPX_AS)
|
||||
ASM_SUFFIX=asm
|
19
media/ffvpx/libavutil/x86/moz.build
Normal file
19
media/ffvpx/libavutil/x86/moz.build
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
SOURCES += [
|
||||
'cpu.c',
|
||||
'cpuid.asm',
|
||||
'emms.asm',
|
||||
'float_dsp.asm',
|
||||
'float_dsp_init.c',
|
||||
'lls.asm',
|
||||
'lls_init.c'
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'mozavutil'
|
||||
|
||||
include('/media/ffvpx/ffvpxcommon.mozbuild')
|
10
media/ffvpx/moz.build
Normal file
10
media/ffvpx/moz.build
Normal file
@ -0,0 +1,10 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIRS += [
|
||||
'libavutil',
|
||||
'libavcodec'
|
||||
]
|
Loading…
Reference in New Issue
Block a user