Built SDL2_image and _mixer static
This commit is contained in:
56
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.am
vendored
Normal file
56
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.am
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
# test_libFLAC - Unit tester for libFLAC
|
||||
# Copyright (C) 2000-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
EXTRA_DIST = \
|
||||
Makefile.lite \
|
||||
test_libFLAC.vcproj \
|
||||
test_libFLAC.vcxproj \
|
||||
test_libFLAC.vcxproj.filters
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src/libFLAC/include
|
||||
|
||||
noinst_PROGRAMS = test_libFLAC
|
||||
|
||||
test_libFLAC_LDADD = \
|
||||
$(top_builddir)/src/share/grabbag/libgrabbag.la \
|
||||
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
|
||||
$(top_builddir)/src/test_libs_common/libtest_libs_common.la \
|
||||
$(top_builddir)/src/libFLAC/libFLAC-static.la \
|
||||
@OGG_LIBS@ \
|
||||
-lm
|
||||
|
||||
test_libFLAC_SOURCES = \
|
||||
bitwriter.c \
|
||||
decoders.c \
|
||||
encoders.c \
|
||||
endswap.c \
|
||||
format.c \
|
||||
main.c \
|
||||
metadata.c \
|
||||
metadata_manip.c \
|
||||
metadata_object.c \
|
||||
md5.c \
|
||||
bitwriter.h \
|
||||
decoders.h \
|
||||
encoders.h \
|
||||
endswap.h \
|
||||
format.h \
|
||||
metadata.h \
|
||||
md5.h
|
||||
|
||||
CLEANFILES = test_libFLAC.exe
|
698
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.in
vendored
Normal file
698
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.in
vendored
Normal file
@ -0,0 +1,698 @@
|
||||
# Makefile.in generated by automake 1.15 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# test_libFLAC - Unit tester for libFLAC
|
||||
# Copyright (C) 2000-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
noinst_PROGRAMS = test_libFLAC$(EXEEXT)
|
||||
subdir = src/test_libFLAC
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/add_cflags.m4 \
|
||||
$(top_srcdir)/m4/add_cxxflags.m4 $(top_srcdir)/m4/bswap.m4 \
|
||||
$(top_srcdir)/m4/clang.m4 $(top_srcdir)/m4/codeset.m4 \
|
||||
$(top_srcdir)/m4/gcc_version.m4 $(top_srcdir)/m4/iconv.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/really_gcc.m4 \
|
||||
$(top_srcdir)/m4/stack_protect.m4 $(top_srcdir)/m4/xmms.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_test_libFLAC_OBJECTS = bitwriter.$(OBJEXT) decoders.$(OBJEXT) \
|
||||
encoders.$(OBJEXT) endswap.$(OBJEXT) format.$(OBJEXT) \
|
||||
main.$(OBJEXT) metadata.$(OBJEXT) metadata_manip.$(OBJEXT) \
|
||||
metadata_object.$(OBJEXT) md5.$(OBJEXT)
|
||||
test_libFLAC_OBJECTS = $(am_test_libFLAC_OBJECTS)
|
||||
test_libFLAC_DEPENDENCIES = \
|
||||
$(top_builddir)/src/share/grabbag/libgrabbag.la \
|
||||
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
|
||||
$(top_builddir)/src/test_libs_common/libtest_libs_common.la \
|
||||
$(top_builddir)/src/libFLAC/libFLAC-static.la
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(test_libFLAC_SOURCES)
|
||||
DIST_SOURCES = $(test_libFLAC_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCAS = @CCAS@
|
||||
CCASDEPMODE = @CCASDEPMODE@
|
||||
CCASFLAGS = @CCASFLAGS@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DOCBOOK_TO_MAN = @DOCBOOK_TO_MAN@
|
||||
DOXYGEN = @DOXYGEN@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_64_BIT_WORDS = @ENABLE_64_BIT_WORDS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FLAC__HAS_OGG = @FLAC__HAS_OGG@
|
||||
FLAC__TEST_LEVEL = @FLAC__TEST_LEVEL@
|
||||
FLAC__TEST_WITH_VALGRIND = @FLAC__TEST_WITH_VALGRIND@
|
||||
GCC_MAJOR_VERSION = @GCC_MAJOR_VERSION@
|
||||
GCC_MINOR_VERSION = @GCC_MINOR_VERSION@
|
||||
GCC_VERSION = @GCC_VERSION@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NASM = @NASM@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OBJ_FORMAT = @OBJ_FORMAT@
|
||||
OGG_CFLAGS = @OGG_CFLAGS@
|
||||
OGG_LIBS = @OGG_LIBS@
|
||||
OGG_PACKAGE = @OGG_PACKAGE@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XMMS_CFLAGS = @XMMS_CFLAGS@
|
||||
XMMS_CONFIG = @XMMS_CONFIG@
|
||||
XMMS_DATA_DIR = @XMMS_DATA_DIR@
|
||||
XMMS_EFFECT_PLUGIN_DIR = @XMMS_EFFECT_PLUGIN_DIR@
|
||||
XMMS_GENERAL_PLUGIN_DIR = @XMMS_GENERAL_PLUGIN_DIR@
|
||||
XMMS_INPUT_PLUGIN_DIR = @XMMS_INPUT_PLUGIN_DIR@
|
||||
XMMS_LIBS = @XMMS_LIBS@
|
||||
XMMS_OUTPUT_PLUGIN_DIR = @XMMS_OUTPUT_PLUGIN_DIR@
|
||||
XMMS_PLUGIN_DIR = @XMMS_PLUGIN_DIR@
|
||||
XMMS_VERSION = @XMMS_VERSION@
|
||||
XMMS_VISUALIZATION_PLUGIN_DIR = @XMMS_VISUALIZATION_PLUGIN_DIR@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
EXTRA_DIST = \
|
||||
Makefile.lite \
|
||||
test_libFLAC.vcproj \
|
||||
test_libFLAC.vcxproj \
|
||||
test_libFLAC.vcxproj.filters
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src/libFLAC/include
|
||||
test_libFLAC_LDADD = \
|
||||
$(top_builddir)/src/share/grabbag/libgrabbag.la \
|
||||
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
|
||||
$(top_builddir)/src/test_libs_common/libtest_libs_common.la \
|
||||
$(top_builddir)/src/libFLAC/libFLAC-static.la \
|
||||
@OGG_LIBS@ \
|
||||
-lm
|
||||
|
||||
test_libFLAC_SOURCES = \
|
||||
bitwriter.c \
|
||||
decoders.c \
|
||||
encoders.c \
|
||||
endswap.c \
|
||||
format.c \
|
||||
main.c \
|
||||
metadata.c \
|
||||
metadata_manip.c \
|
||||
metadata_object.c \
|
||||
md5.c \
|
||||
bitwriter.h \
|
||||
decoders.h \
|
||||
encoders.h \
|
||||
endswap.h \
|
||||
format.h \
|
||||
metadata.h \
|
||||
md5.h
|
||||
|
||||
CLEANFILES = test_libFLAC.exe
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/test_libFLAC/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/test_libFLAC/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list || exit $$?; \
|
||||
test -n "$(EXEEXT)" || exit 0; \
|
||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list
|
||||
|
||||
test_libFLAC$(EXEEXT): $(test_libFLAC_OBJECTS) $(test_libFLAC_DEPENDENCIES) $(EXTRA_test_libFLAC_DEPENDENCIES)
|
||||
@rm -f test_libFLAC$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(test_libFLAC_OBJECTS) $(test_libFLAC_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bitwriter.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decoders.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoders.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/endswap.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metadata.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metadata_manip.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metadata_object.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \
|
||||
ctags-am distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
52
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.lite
vendored
Normal file
52
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/Makefile.lite
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
# test_libFLAC - Unit tester for libFLAC
|
||||
# Copyright (C) 2000-2009 Josh Coalson
|
||||
# Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
#
|
||||
# GNU makefile
|
||||
#
|
||||
|
||||
topdir = ../..
|
||||
|
||||
include $(topdir)/build/config.mk
|
||||
libdir = $(topdir)/objs/$(BUILD)/lib
|
||||
|
||||
PROGRAM_NAME = test_libFLAC
|
||||
|
||||
INCLUDES = -I../libFLAC/include -I$(topdir)/include
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
|
||||
else
|
||||
LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC $(OGG_LIBS) -lm
|
||||
endif
|
||||
|
||||
SRCS_C = \
|
||||
bitwriter.c \
|
||||
decoders.c \
|
||||
encoders.c \
|
||||
endswap.c \
|
||||
format.c \
|
||||
main.c \
|
||||
md5.c \
|
||||
metadata.c \
|
||||
metadata_manip.c \
|
||||
metadata_object.c
|
||||
|
||||
include $(topdir)/build/exe.mk
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
670
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/bitwriter.c
vendored
Normal file
670
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/bitwriter.c
vendored
Normal file
@ -0,0 +1,670 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2000-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "FLAC/assert.h"
|
||||
#include "share/compat.h"
|
||||
#include "private/bitwriter.h" /* from the libFLAC private include area */
|
||||
#include "bitwriter.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h> /* for memcmp() */
|
||||
|
||||
/*
|
||||
* WATCHOUT! Since FLAC__BitWriter is a private structure, we use a copy of
|
||||
* the definition here to get at the internals. Make sure this is kept up
|
||||
* to date with what is in ../libFLAC/bitwriter.c
|
||||
*/
|
||||
#if (ENABLE_64_BIT_WORDS == 0)
|
||||
|
||||
typedef FLAC__uint32 bwword;
|
||||
#define FLAC__BYTES_PER_WORD 4
|
||||
#define FLAC__BITS_PER_WORD 32
|
||||
#define PRI_BWWORD "08x"
|
||||
|
||||
#else
|
||||
|
||||
typedef FLAC__uint64 bwword;
|
||||
#define FLAC__BYTES_PER_WORD 8
|
||||
#define FLAC__BITS_PER_WORD 64
|
||||
#define PRI_BWWORD "016" PRIx64
|
||||
|
||||
#endif
|
||||
|
||||
struct FLAC__BitWriter {
|
||||
bwword *buffer;
|
||||
bwword accum; /* accumulator; bits are right-justified; when full, accum is appended to buffer */
|
||||
unsigned capacity; /* capacity of buffer in words */
|
||||
unsigned words; /* # of complete words in buffer */
|
||||
unsigned bits; /* # of used bits in accum */
|
||||
};
|
||||
|
||||
#define WORDS_TO_BITS(words) ((words) * FLAC__BITS_PER_WORD)
|
||||
#define TOTAL_BITS(bw) (WORDS_TO_BITS((bw)->words) + (bw)->bits)
|
||||
|
||||
|
||||
FLAC__bool test_bitwriter(void)
|
||||
{
|
||||
FLAC__BitWriter *bw;
|
||||
FLAC__bool ok;
|
||||
unsigned i, j;
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
static bwword test_pattern1[5] = { 0xaaf0aabe, 0xaaaaaaa8, 0x300aaaaa, 0xaaadeadb, 0x00eeface };
|
||||
#else
|
||||
static bwword test_pattern1[5] = { 0xbeaaf0aa, 0xa8aaaaaa, 0xaaaa0a30, 0xdbeaadaa, 0x00eeface };
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
#if WORDS_BIGENDIAN
|
||||
static bwword test_pattern1[3] = { FLAC__U64L(0xaaf0aabeaaaaaaa8), FLAC__U64L(0x300aaaaaaaadeadb), FLAC__U64L(0x0000000000eeface) };
|
||||
#else
|
||||
static bwword test_pattern1[3] = { FLAC__U64L(0xa8aaaaaabeaaf0aa), FLAC__U64L(0xdbeaadaaaaaa0a30), FLAC__U64L(0x0000000000eeface) };
|
||||
#endif
|
||||
#else
|
||||
#error FLAC__BYTES_PER_WORD is neither 4 nor 8 -- not implemented
|
||||
#endif
|
||||
unsigned words, bits; /* what we think bw->words and bw->bits should be */
|
||||
|
||||
printf("\n+++ libFLAC unit test: bitwriter\n\n");
|
||||
|
||||
/*
|
||||
* test new -> delete
|
||||
*/
|
||||
printf("testing new... ");
|
||||
bw = FLAC__bitwriter_new();
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing delete... ");
|
||||
FLAC__bitwriter_delete(bw);
|
||||
printf("OK\n");
|
||||
|
||||
/*
|
||||
* test new -> init -> delete
|
||||
*/
|
||||
printf("testing new... ");
|
||||
bw = FLAC__bitwriter_new();
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing init... ");
|
||||
FLAC__bitwriter_init(bw);
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing delete... ");
|
||||
FLAC__bitwriter_delete(bw);
|
||||
printf("OK\n");
|
||||
|
||||
/*
|
||||
* test new -> init -> clear -> delete
|
||||
*/
|
||||
printf("testing new... ");
|
||||
bw = FLAC__bitwriter_new();
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing init... ");
|
||||
FLAC__bitwriter_init(bw);
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing clear... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing delete... ");
|
||||
FLAC__bitwriter_delete(bw);
|
||||
printf("OK\n");
|
||||
|
||||
/*
|
||||
* test normal usage
|
||||
*/
|
||||
printf("testing new... ");
|
||||
bw = FLAC__bitwriter_new();
|
||||
if(0 == bw) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing init... ");
|
||||
ok = FLAC__bitwriter_init(bw);
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok)
|
||||
return false;
|
||||
|
||||
printf("testing clear... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
printf("OK\n");
|
||||
|
||||
words = bits = 0;
|
||||
|
||||
printf("capacity = %u\n", bw->capacity);
|
||||
|
||||
printf("testing zeroes, raw_uint32*... ");
|
||||
ok =
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0x1, 1) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0x1, 2) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xa, 5) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xf0, 8) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0x2aa, 10) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xf, 4) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xaaaaaaaa, 32) &&
|
||||
FLAC__bitwriter_write_zeroes(bw, 4) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0x3, 2) &&
|
||||
FLAC__bitwriter_write_zeroes(bw, 8) &&
|
||||
FLAC__bitwriter_write_raw_uint64(bw, FLAC__U64L(0xaaaaaaaadeadbeef), 64) &&
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xace, 12)
|
||||
;
|
||||
if(!ok) {
|
||||
printf("FAILED\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
/* we wrote 152 bits (=19 bytes) to the bitwriter */
|
||||
words = 152 / FLAC__BITS_PER_WORD;
|
||||
bits = 152 - words*FLAC__BITS_PER_WORD;
|
||||
|
||||
if(bw->words != words) {
|
||||
printf("FAILED byte count %u != %u\n", bw->words, words);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if(bw->bits != bits) {
|
||||
printf("FAILED bit count %u != %u\n", bw->bits, bits);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if(memcmp(bw->buffer, test_pattern1, sizeof(bwword)*words) != 0) {
|
||||
printf("FAILED pattern match (buffer)\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if((bw->accum & 0x00ffffff) != test_pattern1[words]) {
|
||||
printf("FAILED pattern match (bw->accum=%" PRI_BWWORD " != %" PRI_BWWORD ")\n", bw->accum&0x00ffffff, test_pattern1[words]);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
|
||||
printf("testing raw_uint32 some more... ");
|
||||
ok = FLAC__bitwriter_write_raw_uint32(bw, 0x3d, 6);
|
||||
if(!ok) {
|
||||
printf("FAILED\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
bits += 6;
|
||||
test_pattern1[words] <<= 6;
|
||||
test_pattern1[words] |= 0x3d;
|
||||
if(bw->words != words) {
|
||||
printf("FAILED byte count %u != %u\n", bw->words, words);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if(bw->bits != bits) {
|
||||
printf("FAILED bit count %u != %u\n", bw->bits, bits);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if(memcmp(bw->buffer, test_pattern1, sizeof(bwword)*words) != 0) {
|
||||
printf("FAILED pattern match (buffer)\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
if((bw->accum & 0x3fffffff) != test_pattern1[words]) {
|
||||
printf("FAILED pattern match (bw->accum=%" PRI_BWWORD " != %" PRI_BWWORD ")\n", bw->accum&0x3fffffff, test_pattern1[words]);
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
|
||||
printf("testing utf8_uint32(0x00000000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x00000000);
|
||||
ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x0000007F)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x0000007F);
|
||||
ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x00000080)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x00000080);
|
||||
ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xC280;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x000007FF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x000007FF);
|
||||
ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xDFBF;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x00000800)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x00000800);
|
||||
ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xE0A080;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x0000FFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x0000FFFF);
|
||||
ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xEFBFBF;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x00010000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x00010000);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF0908080;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0x808090F0;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF0908080;
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x001FFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x001FFFFF);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF7BFBFBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xBFBFBFF7;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF7BFBFBF;
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x00200000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x00200000);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xF8888080 && (bw->accum & 0xff) == 0x80;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0x808088F8 && (bw->accum & 0xff) == 0x80;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xF888808080);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x03FFFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x03FFFFFF);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xFBBFBFBF && (bw->accum & 0xff) == 0xBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xBFBFBFFB && (bw->accum & 0xff) == 0xBF;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xFBBFBFBFBF);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x04000000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x04000000);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFC848080 && (bw->accum & 0xffff) == 0x8080;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0x808084FC && (bw->accum & 0xffff) == 0x8080;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFC8480808080);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint32(0x7FFFFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint32(bw, 0x7FFFFFFF);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFDBFBFBF && (bw->accum & 0xffff) == 0xBFBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xBFBFBFFD && (bw->accum & 0xffff) == 0xBFBF;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFDBFBFBFBFBF);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000000000000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000000000000));
|
||||
ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x000000000000007F)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x000000000000007F));
|
||||
ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000000000080)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000000000080));
|
||||
ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xC280;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x00000000000007FF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x00000000000007FF));
|
||||
ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xDFBF;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000000000800)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000000000800));
|
||||
ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xE0A080;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x000000000000FFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x000000000000FFFF));
|
||||
ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xEFBFBF;
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000000010000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000000010000));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF0908080;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0x808090F0;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF0908080;
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x00000000001FFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x00000000001FFFFF));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF7BFBFBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xBFBFBFF7;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF7BFBFBF;
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000000200000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000000200000));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xF8888080 && (bw->accum & 0xff) == 0x80;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0x808088F8 && (bw->accum & 0xff) == 0x80;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xF888808080);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000003FFFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000003FFFFFF));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xFBBFBFBF && (bw->accum & 0xff) == 0xBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xBFBFBFFB && (bw->accum & 0xff) == 0xBF;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xFBBFBFBFBF);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000004000000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000004000000));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFC848080 && (bw->accum & 0xffff) == 0x8080;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0x808084FC && (bw->accum & 0xffff) == 0x8080;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFC8480808080);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x000000007FFFFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x000000007FFFFFFF));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFDBFBFBF && (bw->accum & 0xffff) == 0xBFBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xBFBFBFFD && (bw->accum & 0xffff) == 0xBFBF;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFDBFBFBFBFBF);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000080000000)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000080000000));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xFE828080 && (bw->accum & 0xffffff) == 0x808080;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0x808082FE && (bw->accum & 0xffffff) == 0x808080;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 56 && (bw->accum & FLAC__U64L(0xffffffffffffff)) == FLAC__U64L(0xFE828080808080);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing utf8_uint64(0x0000000FFFFFFFFF)... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_utf8_uint64(bw, FLAC__U64L(0x0000000FFFFFFFFF));
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xFEBFBFBF && (bw->accum & 0xffffff) == 0xBFBFBF;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xBFBFBFFE && (bw->accum & 0xffffff) == 0xBFBFBF;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
ok = TOTAL_BITS(bw) == 56 && (bw->accum & FLAC__U64L(0xffffffffffffff)) == FLAC__U64L(0xFEBFBFBFBFBFBF);
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("testing grow... ");
|
||||
FLAC__bitwriter_clear(bw);
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0x5, 4);
|
||||
j = bw->capacity;
|
||||
for(i = 0; i < j; i++)
|
||||
FLAC__bitwriter_write_raw_uint32(bw, 0xaaaaaaaa, 32);
|
||||
#if FLAC__BYTES_PER_WORD == 4
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == 0x5aaaaaaa && (bw->accum & 0xf) == 0xa;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == 0xaaaaaa5a && (bw->accum & 0xf) == 0xa;
|
||||
#endif
|
||||
#elif FLAC__BYTES_PER_WORD == 8
|
||||
#if WORDS_BIGENDIAN
|
||||
ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == FLAC__U64L(0x5aaaaaaaaaaaaaaa) && (bw->accum & 0xf) == 0xa;
|
||||
#else
|
||||
ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == FLAC__U64L(0xaaaaaaaaaaaaaa5a) && (bw->accum & 0xf) == 0xa;
|
||||
#endif
|
||||
#endif
|
||||
printf("%s\n", ok?"OK":"FAILED");
|
||||
if(!ok) {
|
||||
FLAC__bitwriter_dump(bw, stdout);
|
||||
return false;
|
||||
}
|
||||
printf("capacity = %u\n", bw->capacity);
|
||||
|
||||
printf("testing free... ");
|
||||
FLAC__bitwriter_free(bw);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing delete... ");
|
||||
FLAC__bitwriter_delete(bw);
|
||||
printf("OK\n");
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
return true;
|
||||
}
|
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/bitwriter.h
vendored
Normal file
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/bitwriter.h
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2000-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_BITBUFFER_H
|
||||
#define FLAC__TEST_LIBFLAC_BITBUFFER_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_bitwriter(void);
|
||||
|
||||
#endif
|
1058
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/decoders.c
vendored
Normal file
1058
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/decoders.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/decoders.h
vendored
Normal file
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/decoders.h
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2002-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_DECODERS_H
|
||||
#define FLAC__TEST_LIBFLAC_DECODERS_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_decoders(void);
|
||||
|
||||
#endif
|
519
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/encoders.c
vendored
Normal file
519
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/encoders.c
vendored
Normal file
@ -0,0 +1,519 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2002-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "encoders.h"
|
||||
#include "FLAC/assert.h"
|
||||
#include "FLAC/stream_encoder.h"
|
||||
#include "share/grabbag.h"
|
||||
#include "share/compat.h"
|
||||
#include "test_libs_common/file_utils_flac.h"
|
||||
#include "test_libs_common/metadata_utils.h"
|
||||
|
||||
typedef enum {
|
||||
LAYER_STREAM = 0, /* FLAC__stream_encoder_init_[ogg_]stream() without seeking */
|
||||
LAYER_SEEKABLE_STREAM, /* FLAC__stream_encoder_init_[ogg_]stream() with seeking */
|
||||
LAYER_FILE, /* FLAC__stream_encoder_init_[ogg_]FILE() */
|
||||
LAYER_FILENAME /* FLAC__stream_encoder_init_[ogg_]file() */
|
||||
} Layer;
|
||||
|
||||
static const char * const LayerString[] = {
|
||||
"Stream",
|
||||
"Seekable Stream",
|
||||
"FILE*",
|
||||
"Filename"
|
||||
};
|
||||
|
||||
static FLAC__StreamMetadata streaminfo_, padding_, seektable_, application1_, application2_, vorbiscomment_, cuesheet_, picture_, unknown_;
|
||||
static FLAC__StreamMetadata *metadata_sequence_[] = { &vorbiscomment_, &padding_, &seektable_, &application1_, &application2_, &cuesheet_, &picture_, &unknown_ };
|
||||
static const unsigned num_metadata_ = sizeof(metadata_sequence_) / sizeof(metadata_sequence_[0]);
|
||||
|
||||
static const char *flacfilename(FLAC__bool is_ogg)
|
||||
{
|
||||
return is_ogg? "metadata.oga" : "metadata.flac";
|
||||
}
|
||||
|
||||
static FLAC__bool die_(const char *msg)
|
||||
{
|
||||
printf("ERROR: %s\n", msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
static FLAC__bool die_s_(const char *msg, const FLAC__StreamEncoder *encoder)
|
||||
{
|
||||
FLAC__StreamEncoderState state = FLAC__stream_encoder_get_state(encoder);
|
||||
|
||||
if(msg)
|
||||
printf("FAILED, %s", msg);
|
||||
else
|
||||
printf("FAILED");
|
||||
|
||||
printf(", state = %u (%s)\n", (unsigned)state, FLAC__StreamEncoderStateString[state]);
|
||||
if(state == FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR) {
|
||||
FLAC__StreamDecoderState dstate = FLAC__stream_encoder_get_verify_decoder_state(encoder);
|
||||
printf(" verify decoder state = %u (%s)\n", (unsigned)dstate, FLAC__StreamDecoderStateString[dstate]);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void init_metadata_blocks_(void)
|
||||
{
|
||||
mutils__init_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
|
||||
}
|
||||
|
||||
static void free_metadata_blocks_(void)
|
||||
{
|
||||
mutils__free_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
|
||||
}
|
||||
|
||||
static FLAC__StreamEncoderReadStatus stream_encoder_read_callback_(const FLAC__StreamEncoder *encoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
|
||||
{
|
||||
FILE *f = (FILE*)client_data;
|
||||
(void)encoder;
|
||||
if(*bytes > 0) {
|
||||
*bytes = fread(buffer, sizeof(FLAC__byte), *bytes, f);
|
||||
if(ferror(f))
|
||||
return FLAC__STREAM_ENCODER_READ_STATUS_ABORT;
|
||||
else if(*bytes == 0)
|
||||
return FLAC__STREAM_ENCODER_READ_STATUS_END_OF_STREAM;
|
||||
else
|
||||
return FLAC__STREAM_ENCODER_READ_STATUS_CONTINUE;
|
||||
}
|
||||
else
|
||||
return FLAC__STREAM_ENCODER_READ_STATUS_ABORT;
|
||||
}
|
||||
|
||||
static FLAC__StreamEncoderWriteStatus stream_encoder_write_callback_(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data)
|
||||
{
|
||||
FILE *f = (FILE*)client_data;
|
||||
(void)encoder, (void)samples, (void)current_frame;
|
||||
if(fwrite(buffer, 1, bytes, f) != bytes)
|
||||
return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
|
||||
else
|
||||
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
|
||||
}
|
||||
|
||||
static FLAC__StreamEncoderSeekStatus stream_encoder_seek_callback_(const FLAC__StreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data)
|
||||
{
|
||||
FILE *f = (FILE*)client_data;
|
||||
(void)encoder;
|
||||
if(fseeko(f, (long)absolute_byte_offset, SEEK_SET) < 0)
|
||||
return FLAC__STREAM_ENCODER_SEEK_STATUS_ERROR;
|
||||
else
|
||||
return FLAC__STREAM_ENCODER_SEEK_STATUS_OK;
|
||||
}
|
||||
|
||||
static FLAC__StreamEncoderTellStatus stream_encoder_tell_callback_(const FLAC__StreamEncoder *encoder, FLAC__uint64 *absolute_byte_offset, void *client_data)
|
||||
{
|
||||
FILE *f = (FILE*)client_data;
|
||||
FLAC__off_t pos;
|
||||
(void)encoder;
|
||||
if((pos = ftello(f)) < 0)
|
||||
return FLAC__STREAM_ENCODER_TELL_STATUS_ERROR;
|
||||
else {
|
||||
*absolute_byte_offset = (FLAC__uint64)pos;
|
||||
return FLAC__STREAM_ENCODER_TELL_STATUS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
static void stream_encoder_metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data)
|
||||
{
|
||||
(void)encoder, (void)metadata, (void)client_data;
|
||||
}
|
||||
|
||||
static void stream_encoder_progress_callback_(const FLAC__StreamEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data)
|
||||
{
|
||||
(void)encoder, (void)bytes_written, (void)samples_written, (void)frames_written, (void)total_frames_estimate, (void)client_data;
|
||||
}
|
||||
|
||||
static FLAC__bool test_stream_encoder(Layer layer, FLAC__bool is_ogg)
|
||||
{
|
||||
FLAC__StreamEncoder *encoder;
|
||||
FLAC__StreamEncoderInitStatus init_status;
|
||||
FLAC__StreamEncoderState state;
|
||||
FLAC__StreamDecoderState dstate;
|
||||
FILE *file = 0;
|
||||
FLAC__int32 samples[1024];
|
||||
FLAC__int32 *samples_array[1];
|
||||
unsigned i;
|
||||
|
||||
samples_array[0] = samples;
|
||||
|
||||
printf("\n+++ libFLAC unit test: FLAC__StreamEncoder (layer: %s, format: %s)\n\n", LayerString[layer], is_ogg? "Ogg FLAC":"FLAC");
|
||||
|
||||
printf("testing FLAC__stream_encoder_new()... ");
|
||||
encoder = FLAC__stream_encoder_new();
|
||||
if(0 == encoder) {
|
||||
printf("FAILED, returned NULL\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
if(is_ogg) {
|
||||
printf("testing FLAC__stream_encoder_set_ogg_serial_number()... ");
|
||||
if(!FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_verify()... ");
|
||||
if(!FLAC__stream_encoder_set_verify(encoder, true))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_streamable_subset()... ");
|
||||
if(!FLAC__stream_encoder_set_streamable_subset(encoder, true))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_channels()... ");
|
||||
if(!FLAC__stream_encoder_set_channels(encoder, streaminfo_.data.stream_info.channels))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_bits_per_sample()... ");
|
||||
if(!FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo_.data.stream_info.bits_per_sample))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_sample_rate()... ");
|
||||
if(!FLAC__stream_encoder_set_sample_rate(encoder, streaminfo_.data.stream_info.sample_rate))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_compression_level()... ");
|
||||
if(!FLAC__stream_encoder_set_compression_level(encoder, (unsigned)(-1)))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_blocksize()... ");
|
||||
if(!FLAC__stream_encoder_set_blocksize(encoder, streaminfo_.data.stream_info.min_blocksize))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_do_mid_side_stereo()... ");
|
||||
if(!FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_loose_mid_side_stereo()... ");
|
||||
if(!FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_max_lpc_order()... ");
|
||||
if(!FLAC__stream_encoder_set_max_lpc_order(encoder, 0))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_qlp_coeff_precision()... ");
|
||||
if(!FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_do_qlp_coeff_prec_search()... ");
|
||||
if(!FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_do_escape_coding()... ");
|
||||
if(!FLAC__stream_encoder_set_do_escape_coding(encoder, false))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_do_exhaustive_model_search()... ");
|
||||
if(!FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_min_residual_partition_order()... ");
|
||||
if(!FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_max_residual_partition_order()... ");
|
||||
if(!FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_rice_parameter_search_dist()... ");
|
||||
if(!FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_total_samples_estimate()... ");
|
||||
if(!FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo_.data.stream_info.total_samples))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_set_metadata()... ");
|
||||
if(!FLAC__stream_encoder_set_metadata(encoder, metadata_sequence_, num_metadata_))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
if(layer < LAYER_FILENAME) {
|
||||
printf("opening file for FLAC output... ");
|
||||
file = flac_fopen(flacfilename(is_ogg), "w+b");
|
||||
if(0 == file) {
|
||||
printf("ERROR (%s)\n", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
switch(layer) {
|
||||
case LAYER_STREAM:
|
||||
printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
|
||||
init_status = is_ogg?
|
||||
FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file) :
|
||||
FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file);
|
||||
break;
|
||||
case LAYER_SEEKABLE_STREAM:
|
||||
printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
|
||||
init_status = is_ogg?
|
||||
FLAC__stream_encoder_init_ogg_stream(encoder, stream_encoder_read_callback_, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file) :
|
||||
FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file);
|
||||
break;
|
||||
case LAYER_FILE:
|
||||
printf("testing FLAC__stream_encoder_init_%sFILE()... ", is_ogg? "ogg_":"");
|
||||
init_status = is_ogg?
|
||||
FLAC__stream_encoder_init_ogg_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0) :
|
||||
FLAC__stream_encoder_init_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0);
|
||||
break;
|
||||
case LAYER_FILENAME:
|
||||
printf("testing FLAC__stream_encoder_init_%sfile()... ", is_ogg? "ogg_":"");
|
||||
init_status = is_ogg?
|
||||
FLAC__stream_encoder_init_ogg_file(encoder, flacfilename(is_ogg), stream_encoder_progress_callback_, /*client_data=*/0) :
|
||||
FLAC__stream_encoder_init_file(encoder, flacfilename(is_ogg), stream_encoder_progress_callback_, /*client_data=*/0);
|
||||
break;
|
||||
default:
|
||||
die_("internal error 001");
|
||||
return false;
|
||||
}
|
||||
if(init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK)
|
||||
return die_s_(0, encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_state()... ");
|
||||
state = FLAC__stream_encoder_get_state(encoder);
|
||||
printf("returned state = %u (%s)... OK\n", (unsigned)state, FLAC__StreamEncoderStateString[state]);
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_verify_decoder_state()... ");
|
||||
dstate = FLAC__stream_encoder_get_verify_decoder_state(encoder);
|
||||
printf("returned state = %u (%s)... OK\n", (unsigned)dstate, FLAC__StreamDecoderStateString[dstate]);
|
||||
|
||||
{
|
||||
FLAC__uint64 absolute_sample;
|
||||
unsigned frame_number;
|
||||
unsigned channel;
|
||||
unsigned sample;
|
||||
FLAC__int32 expected;
|
||||
FLAC__int32 got;
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_verify_decoder_error_stats()... ");
|
||||
FLAC__stream_encoder_get_verify_decoder_error_stats(encoder, &absolute_sample, &frame_number, &channel, &sample, &expected, &got);
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_verify()... ");
|
||||
if(FLAC__stream_encoder_get_verify(encoder) != true) {
|
||||
printf("FAILED, expected true, got false\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_streamable_subset()... ");
|
||||
if(FLAC__stream_encoder_get_streamable_subset(encoder) != true) {
|
||||
printf("FAILED, expected true, got false\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_do_mid_side_stereo()... ");
|
||||
if(FLAC__stream_encoder_get_do_mid_side_stereo(encoder) != false) {
|
||||
printf("FAILED, expected false, got true\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_loose_mid_side_stereo()... ");
|
||||
if(FLAC__stream_encoder_get_loose_mid_side_stereo(encoder) != false) {
|
||||
printf("FAILED, expected false, got true\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_channels()... ");
|
||||
if(FLAC__stream_encoder_get_channels(encoder) != streaminfo_.data.stream_info.channels) {
|
||||
printf("FAILED, expected %u, got %u\n", streaminfo_.data.stream_info.channels, FLAC__stream_encoder_get_channels(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_bits_per_sample()... ");
|
||||
if(FLAC__stream_encoder_get_bits_per_sample(encoder) != streaminfo_.data.stream_info.bits_per_sample) {
|
||||
printf("FAILED, expected %u, got %u\n", streaminfo_.data.stream_info.bits_per_sample, FLAC__stream_encoder_get_bits_per_sample(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_sample_rate()... ");
|
||||
if(FLAC__stream_encoder_get_sample_rate(encoder) != streaminfo_.data.stream_info.sample_rate) {
|
||||
printf("FAILED, expected %u, got %u\n", streaminfo_.data.stream_info.sample_rate, FLAC__stream_encoder_get_sample_rate(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_blocksize()... ");
|
||||
if(FLAC__stream_encoder_get_blocksize(encoder) != streaminfo_.data.stream_info.min_blocksize) {
|
||||
printf("FAILED, expected %u, got %u\n", streaminfo_.data.stream_info.min_blocksize, FLAC__stream_encoder_get_blocksize(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_max_lpc_order()... ");
|
||||
if(FLAC__stream_encoder_get_max_lpc_order(encoder) != 0) {
|
||||
printf("FAILED, expected %u, got %u\n", 0, FLAC__stream_encoder_get_max_lpc_order(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_qlp_coeff_precision()... ");
|
||||
(void)FLAC__stream_encoder_get_qlp_coeff_precision(encoder);
|
||||
/* we asked the encoder to auto select this so we accept anything */
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_do_qlp_coeff_prec_search()... ");
|
||||
if(FLAC__stream_encoder_get_do_qlp_coeff_prec_search(encoder) != false) {
|
||||
printf("FAILED, expected false, got true\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_do_escape_coding()... ");
|
||||
if(FLAC__stream_encoder_get_do_escape_coding(encoder) != false) {
|
||||
printf("FAILED, expected false, got true\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_do_exhaustive_model_search()... ");
|
||||
if(FLAC__stream_encoder_get_do_exhaustive_model_search(encoder) != false) {
|
||||
printf("FAILED, expected false, got true\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_min_residual_partition_order()... ");
|
||||
if(FLAC__stream_encoder_get_min_residual_partition_order(encoder) != 0) {
|
||||
printf("FAILED, expected %u, got %u\n", 0, FLAC__stream_encoder_get_min_residual_partition_order(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_max_residual_partition_order()... ");
|
||||
if(FLAC__stream_encoder_get_max_residual_partition_order(encoder) != 0) {
|
||||
printf("FAILED, expected %u, got %u\n", 0, FLAC__stream_encoder_get_max_residual_partition_order(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_rice_parameter_search_dist()... ");
|
||||
if(FLAC__stream_encoder_get_rice_parameter_search_dist(encoder) != 0) {
|
||||
printf("FAILED, expected %u, got %u\n", 0, FLAC__stream_encoder_get_rice_parameter_search_dist(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_get_total_samples_estimate()... ");
|
||||
if(FLAC__stream_encoder_get_total_samples_estimate(encoder) != streaminfo_.data.stream_info.total_samples) {
|
||||
printf("FAILED, expected %" PRIu64 ", got %" PRIu64 "\n", streaminfo_.data.stream_info.total_samples, FLAC__stream_encoder_get_total_samples_estimate(encoder));
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
/* init the dummy sample buffer */
|
||||
for(i = 0; i < sizeof(samples) / sizeof(FLAC__int32); i++)
|
||||
samples[i] = i & 7;
|
||||
|
||||
printf("testing FLAC__stream_encoder_process()... ");
|
||||
if(!FLAC__stream_encoder_process(encoder, (const FLAC__int32 * const *)samples_array, sizeof(samples) / sizeof(FLAC__int32)))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_process_interleaved()... ");
|
||||
if(!FLAC__stream_encoder_process_interleaved(encoder, samples, sizeof(samples) / sizeof(FLAC__int32)))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing FLAC__stream_encoder_finish()... ");
|
||||
if(!FLAC__stream_encoder_finish(encoder))
|
||||
return die_s_("returned false", encoder);
|
||||
printf("OK\n");
|
||||
|
||||
if(layer < LAYER_FILE)
|
||||
fclose(file);
|
||||
|
||||
printf("testing FLAC__stream_encoder_delete()... ");
|
||||
FLAC__stream_encoder_delete(encoder);
|
||||
printf("OK\n");
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
FLAC__bool test_encoders(void)
|
||||
{
|
||||
FLAC__bool is_ogg = false;
|
||||
|
||||
while(1) {
|
||||
init_metadata_blocks_();
|
||||
|
||||
if(!test_stream_encoder(LAYER_STREAM, is_ogg))
|
||||
return false;
|
||||
|
||||
if(!test_stream_encoder(LAYER_SEEKABLE_STREAM, is_ogg))
|
||||
return false;
|
||||
|
||||
if(!test_stream_encoder(LAYER_FILE, is_ogg))
|
||||
return false;
|
||||
|
||||
if(!test_stream_encoder(LAYER_FILENAME, is_ogg))
|
||||
return false;
|
||||
|
||||
(void) grabbag__file_remove_file(flacfilename(is_ogg));
|
||||
|
||||
free_metadata_blocks_();
|
||||
|
||||
if(!FLAC_API_SUPPORTS_OGG_FLAC || is_ogg)
|
||||
break;
|
||||
is_ogg = true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/encoders.h
vendored
Normal file
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/encoders.h
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2002-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_ENCODERS_H
|
||||
#define FLAC__TEST_LIBFLAC_ENCODERS_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_encoders(void);
|
||||
|
||||
#endif
|
111
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/endswap.c
vendored
Normal file
111
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/endswap.c
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2014-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "share/compat.h"
|
||||
#include "FLAC/assert.h"
|
||||
#include "share/endswap.h"
|
||||
#include "private/md5.h"
|
||||
#include "endswap.h"
|
||||
|
||||
|
||||
FLAC__bool test_endswap(void)
|
||||
{
|
||||
int16_t i16 = 0x1234;
|
||||
uint16_t u16 = 0xabcd;
|
||||
int32_t i32 = 0x12345678;
|
||||
uint32_t u32 = 0xabcdef01;
|
||||
|
||||
union {
|
||||
unsigned char bytes[4];
|
||||
uint16_t u16;
|
||||
uint32_t u32;
|
||||
} data;
|
||||
|
||||
printf("\n+++ libFLAC unit test: endswap (%s endian host)\n\n", CPU_IS_LITTLE_ENDIAN ? "little" : "big");
|
||||
|
||||
printf("testing ENDSWAP_16 on int16_t ... ");
|
||||
if (((int16_t) ENDSWAP_16(i16)) == i16) {
|
||||
printf("\nFAILED, ENDSWAP_16(0x%04x) -> 0x%04x == 0x%04x\n", i16, ENDSWAP_16(i16), i16);
|
||||
return false;
|
||||
}
|
||||
if (((int16_t) ENDSWAP_16(ENDSWAP_16(i16))) != i16) {
|
||||
printf("\nFAILED, ENDSWAP_16(ENDSWAP_16(0x%04x)) -> 0x%04x != 0x%04x\n", i16, ENDSWAP_16(ENDSWAP_16(i16)), i16);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("testing ENDSWAP_16 on uint16_t ... ");
|
||||
if (((uint16_t) ENDSWAP_16(u16)) == u16) {
|
||||
printf("\nFAILED, ENDSWAP_16(0x%04x) -> 0x%04x == 0x%04x\n", u16, ENDSWAP_16(u16), u16);
|
||||
return false;
|
||||
}
|
||||
if (((uint16_t) ENDSWAP_16(ENDSWAP_16(u16))) != u16) {
|
||||
printf("\nFAILED, ENDSWAP_16(ENDSWAP_16(0x%04x)) -> 0x%04x != 0x%04x\n", u16, ENDSWAP_16(ENDSWAP_16(u16)), u16);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("testing ENDSWAP_32 on int32_t ... ");
|
||||
if (((int32_t) ENDSWAP_32 (i32)) == i32) {
|
||||
printf("\nFAILED, ENDSWAP_32(0x%08x) -> 0x%08x == 0x%08x\n", i32, (unsigned) ENDSWAP_32 (i32), i32);
|
||||
return false;
|
||||
}
|
||||
if (((int32_t) ENDSWAP_32 (ENDSWAP_32 (i32))) != i32) {
|
||||
printf("\nFAILED, ENDSWAP_32(ENDSWAP_32(0x%08x)) -> 0x%08x != 0x%08x\n", i32, (unsigned) ENDSWAP_32(ENDSWAP_32 (i32)), i32);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("testing ENDSWAP_32 on uint32_t ... ");
|
||||
if (((uint32_t) ENDSWAP_32(u32)) == u32) {
|
||||
printf("\nFAILED, ENDSWAP_32(0x%08x) -> 0x%08x == 0x%08x\n", u32, (unsigned) ENDSWAP_32(u32), u32);
|
||||
return false;
|
||||
}
|
||||
if (((uint32_t) ENDSWAP_32 (ENDSWAP_32(u32))) != u32) {
|
||||
printf("\nFAILED, ENDSWAP_32(ENDSWAP_32(0x%08x)) -> 0x%08x != 0%08x\n", u32, (unsigned) ENDSWAP_32(ENDSWAP_32(u32)), u32);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("testing H2LE_16 on uint16_t ... ");
|
||||
data.u16 = H2LE_16(0x1234);
|
||||
if (data.bytes [0] != 0x34 || data.bytes [1] != 0x12) {
|
||||
printf("\nFAILED, H2LE_16(0x%04x) -> { 0x%02x, 0x%02x }\n", data.u16, data.bytes [0] & 0xff, data.bytes [1] & 0xff);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("testing H2LE_32 on uint32_t ... ");
|
||||
data.u32 = H2LE_32(0x12345678);
|
||||
if (data.bytes [0] != 0x78 || data.bytes [1] != 0x56 || data.bytes [2] != 0x34 || data.bytes [3] != 0x12) {
|
||||
printf("\nFAILED, H2LE_32(0x%08x) -> { 0x%02x, 0x%02x, 0x%02x, 0x%02x }\n",
|
||||
data.u32, data.bytes [0] & 0xff, data.bytes [1] & 0xff, data.bytes [2] & 0xff, data.bytes [3] & 0xff);
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
return true;
|
||||
}
|
26
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/endswap.h
vendored
Normal file
26
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/endswap.h
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2014-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_ENDSWAP_H
|
||||
#define FLAC__TEST_LIBFLAC_ENDSWAP_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_endswap(void);
|
||||
|
||||
#endif
|
257
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/format.c
vendored
Normal file
257
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/format.c
vendored
Normal file
@ -0,0 +1,257 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2004-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "FLAC/assert.h"
|
||||
#include "FLAC/format.h"
|
||||
#include "format.h"
|
||||
#include <stdio.h>
|
||||
|
||||
static const char *true_false_string_[2] = { "false", "true" };
|
||||
|
||||
static struct {
|
||||
unsigned rate;
|
||||
FLAC__bool valid;
|
||||
FLAC__bool subset;
|
||||
} SAMPLE_RATES[] = {
|
||||
{ 0 , false, false },
|
||||
{ 1 , true , true },
|
||||
{ 9 , true , true },
|
||||
{ 10 , true , true },
|
||||
{ 4000 , true , true },
|
||||
{ 8000 , true , true },
|
||||
{ 11025 , true , true },
|
||||
{ 12000 , true , true },
|
||||
{ 16000 , true , true },
|
||||
{ 22050 , true , true },
|
||||
{ 24000 , true , true },
|
||||
{ 32000 , true , true },
|
||||
{ 32768 , true , true },
|
||||
{ 44100 , true , true },
|
||||
{ 48000 , true , true },
|
||||
{ 65000 , true , true },
|
||||
{ 65535 , true , true },
|
||||
{ 65536 , true , false },
|
||||
{ 65540 , true , true },
|
||||
{ 65550 , true , true },
|
||||
{ 65555 , true , false },
|
||||
{ 66000 , true , true },
|
||||
{ 66001 , true , false },
|
||||
{ 96000 , true , true },
|
||||
{ 100000 , true , true },
|
||||
{ 100001 , true , false },
|
||||
{ 192000 , true , true },
|
||||
{ 500000 , true , true },
|
||||
{ 500001 , true , false },
|
||||
{ 500010 , true , true },
|
||||
{ 655349 , true , false },
|
||||
{ 655350 , true , true },
|
||||
{ 655351 , false, false },
|
||||
{ 655360 , false, false },
|
||||
{ 700000 , false, false },
|
||||
{ 700010 , false, false },
|
||||
{ 1000000, false, false },
|
||||
{ 1100000, false, false }
|
||||
};
|
||||
|
||||
static struct {
|
||||
const char *string;
|
||||
FLAC__bool valid;
|
||||
} VCENTRY_NAMES[] = {
|
||||
{ "" , true },
|
||||
{ "a" , true },
|
||||
{ "=" , false },
|
||||
{ "a=" , false },
|
||||
{ "\x01", false },
|
||||
{ "\x1f", false },
|
||||
{ "\x7d", true },
|
||||
{ "\x7e", false },
|
||||
{ "\xff", false }
|
||||
};
|
||||
|
||||
static struct {
|
||||
unsigned length;
|
||||
const FLAC__byte *string;
|
||||
FLAC__bool valid;
|
||||
} VCENTRY_VALUES[] = {
|
||||
{ 0, (const FLAC__byte*)"" , true },
|
||||
{ 1, (const FLAC__byte*)"" , true },
|
||||
{ 1, (const FLAC__byte*)"\x01" , true },
|
||||
{ 1, (const FLAC__byte*)"\x7f" , true },
|
||||
{ 1, (const FLAC__byte*)"\x80" , false },
|
||||
{ 1, (const FLAC__byte*)"\x81" , false },
|
||||
{ 1, (const FLAC__byte*)"\xc0" , false },
|
||||
{ 1, (const FLAC__byte*)"\xe0" , false },
|
||||
{ 1, (const FLAC__byte*)"\xf0" , false },
|
||||
{ 2, (const FLAC__byte*)"\xc0\x41" , false },
|
||||
{ 2, (const FLAC__byte*)"\xc1\x41" , false },
|
||||
{ 2, (const FLAC__byte*)"\xc0\x85" , false }, /* non-shortest form */
|
||||
{ 2, (const FLAC__byte*)"\xc1\x85" , false }, /* non-shortest form */
|
||||
{ 2, (const FLAC__byte*)"\xc2\x85" , true },
|
||||
{ 2, (const FLAC__byte*)"\xe0\x41" , false },
|
||||
{ 2, (const FLAC__byte*)"\xe1\x41" , false },
|
||||
{ 2, (const FLAC__byte*)"\xe0\x85" , false },
|
||||
{ 2, (const FLAC__byte*)"\xe1\x85" , false },
|
||||
{ 3, (const FLAC__byte*)"\xe0\x85\x41", false },
|
||||
{ 3, (const FLAC__byte*)"\xe1\x85\x41", false },
|
||||
{ 3, (const FLAC__byte*)"\xe0\x85\x80", false }, /* non-shortest form */
|
||||
{ 3, (const FLAC__byte*)"\xe0\x95\x80", false }, /* non-shortest form */
|
||||
{ 3, (const FLAC__byte*)"\xe0\xa5\x80", true },
|
||||
{ 3, (const FLAC__byte*)"\xe1\x85\x80", true },
|
||||
{ 3, (const FLAC__byte*)"\xe1\x95\x80", true },
|
||||
{ 3, (const FLAC__byte*)"\xe1\xa5\x80", true }
|
||||
};
|
||||
|
||||
static struct {
|
||||
const FLAC__byte *string;
|
||||
FLAC__bool valid;
|
||||
} VCENTRY_VALUES_NT[] = {
|
||||
{ (const FLAC__byte*)"" , true },
|
||||
{ (const FLAC__byte*)"\x01" , true },
|
||||
{ (const FLAC__byte*)"\x7f" , true },
|
||||
{ (const FLAC__byte*)"\x80" , false },
|
||||
{ (const FLAC__byte*)"\x81" , false },
|
||||
{ (const FLAC__byte*)"\xc0" , false },
|
||||
{ (const FLAC__byte*)"\xe0" , false },
|
||||
{ (const FLAC__byte*)"\xf0" , false },
|
||||
{ (const FLAC__byte*)"\xc0\x41" , false },
|
||||
{ (const FLAC__byte*)"\xc1\x41" , false },
|
||||
{ (const FLAC__byte*)"\xc0\x85" , false }, /* non-shortest form */
|
||||
{ (const FLAC__byte*)"\xc1\x85" , false }, /* non-shortest form */
|
||||
{ (const FLAC__byte*)"\xc2\x85" , true },
|
||||
{ (const FLAC__byte*)"\xe0\x41" , false },
|
||||
{ (const FLAC__byte*)"\xe1\x41" , false },
|
||||
{ (const FLAC__byte*)"\xe0\x85" , false },
|
||||
{ (const FLAC__byte*)"\xe1\x85" , false },
|
||||
{ (const FLAC__byte*)"\xe0\x85\x41", false },
|
||||
{ (const FLAC__byte*)"\xe1\x85\x41", false },
|
||||
{ (const FLAC__byte*)"\xe0\x85\x80", false }, /* non-shortest form */
|
||||
{ (const FLAC__byte*)"\xe0\x95\x80", false }, /* non-shortest form */
|
||||
{ (const FLAC__byte*)"\xe0\xa5\x80", true },
|
||||
{ (const FLAC__byte*)"\xe1\x85\x80", true },
|
||||
{ (const FLAC__byte*)"\xe1\x95\x80", true },
|
||||
{ (const FLAC__byte*)"\xe1\xa5\x80", true }
|
||||
};
|
||||
|
||||
static struct {
|
||||
unsigned length;
|
||||
const FLAC__byte *string;
|
||||
FLAC__bool valid;
|
||||
} VCENTRIES[] = {
|
||||
{ 0, (const FLAC__byte*)"" , false },
|
||||
{ 1, (const FLAC__byte*)"a" , false },
|
||||
{ 1, (const FLAC__byte*)"=" , true },
|
||||
{ 2, (const FLAC__byte*)"a=" , true },
|
||||
{ 2, (const FLAC__byte*)"\x01=" , false },
|
||||
{ 2, (const FLAC__byte*)"\x1f=" , false },
|
||||
{ 2, (const FLAC__byte*)"\x7d=" , true },
|
||||
{ 2, (const FLAC__byte*)"\x7e=" , false },
|
||||
{ 2, (const FLAC__byte*)"\xff=" , false },
|
||||
{ 3, (const FLAC__byte*)"a=\x01" , true },
|
||||
{ 3, (const FLAC__byte*)"a=\x7f" , true },
|
||||
{ 3, (const FLAC__byte*)"a=\x80" , false },
|
||||
{ 3, (const FLAC__byte*)"a=\x81" , false },
|
||||
{ 3, (const FLAC__byte*)"a=\xc0" , false },
|
||||
{ 3, (const FLAC__byte*)"a=\xe0" , false },
|
||||
{ 3, (const FLAC__byte*)"a=\xf0" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xc0\x41" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xc1\x41" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xc0\x85" , false }, /* non-shortest form */
|
||||
{ 4, (const FLAC__byte*)"a=\xc1\x85" , false }, /* non-shortest form */
|
||||
{ 4, (const FLAC__byte*)"a=\xc2\x85" , true },
|
||||
{ 4, (const FLAC__byte*)"a=\xe0\x41" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xe1\x41" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xe0\x85" , false },
|
||||
{ 4, (const FLAC__byte*)"a=\xe1\x85" , false },
|
||||
{ 5, (const FLAC__byte*)"a=\xe0\x85\x41", false },
|
||||
{ 5, (const FLAC__byte*)"a=\xe1\x85\x41", false },
|
||||
{ 5, (const FLAC__byte*)"a=\xe0\x85\x80", false }, /* non-shortest form */
|
||||
{ 5, (const FLAC__byte*)"a=\xe0\x95\x80", false }, /* non-shortest form */
|
||||
{ 5, (const FLAC__byte*)"a=\xe0\xa5\x80", true },
|
||||
{ 5, (const FLAC__byte*)"a=\xe1\x85\x80", true },
|
||||
{ 5, (const FLAC__byte*)"a=\xe1\x95\x80", true },
|
||||
{ 5, (const FLAC__byte*)"a=\xe1\xa5\x80", true }
|
||||
};
|
||||
|
||||
FLAC__bool test_format(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
printf("\n+++ libFLAC unit test: format\n\n");
|
||||
|
||||
for(i = 0; i < sizeof(SAMPLE_RATES)/sizeof(SAMPLE_RATES[0]); i++) {
|
||||
printf("testing FLAC__format_sample_rate_is_valid(%u)... ", SAMPLE_RATES[i].rate);
|
||||
if(FLAC__format_sample_rate_is_valid(SAMPLE_RATES[i].rate) != SAMPLE_RATES[i].valid) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[SAMPLE_RATES[i].valid], true_false_string_[!SAMPLE_RATES[i].valid]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
for(i = 0; i < sizeof(SAMPLE_RATES)/sizeof(SAMPLE_RATES[0]); i++) {
|
||||
printf("testing FLAC__format_sample_rate_is_subset(%u)... ", SAMPLE_RATES[i].rate);
|
||||
if(FLAC__format_sample_rate_is_subset(SAMPLE_RATES[i].rate) != SAMPLE_RATES[i].subset) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[SAMPLE_RATES[i].subset], true_false_string_[!SAMPLE_RATES[i].subset]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
for(i = 0; i < sizeof(VCENTRY_NAMES)/sizeof(VCENTRY_NAMES[0]); i++) {
|
||||
printf("testing FLAC__format_vorbiscomment_entry_name_is_legal(\"%s\")... ", VCENTRY_NAMES[i].string);
|
||||
if(FLAC__format_vorbiscomment_entry_name_is_legal(VCENTRY_NAMES[i].string) != VCENTRY_NAMES[i].valid) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[VCENTRY_NAMES[i].valid], true_false_string_[!VCENTRY_NAMES[i].valid]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
for(i = 0; i < sizeof(VCENTRY_VALUES)/sizeof(VCENTRY_VALUES[0]); i++) {
|
||||
printf("testing FLAC__format_vorbiscomment_entry_value_is_legal(\"%s\", %u)... ", VCENTRY_VALUES[i].string, VCENTRY_VALUES[i].length);
|
||||
if(FLAC__format_vorbiscomment_entry_value_is_legal(VCENTRY_VALUES[i].string, VCENTRY_VALUES[i].length) != VCENTRY_VALUES[i].valid) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[VCENTRY_VALUES[i].valid], true_false_string_[!VCENTRY_VALUES[i].valid]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
for(i = 0; i < sizeof(VCENTRY_VALUES_NT)/sizeof(VCENTRY_VALUES_NT[0]); i++) {
|
||||
printf("testing FLAC__format_vorbiscomment_entry_value_is_legal(\"%s\", -1)... ", VCENTRY_VALUES_NT[i].string);
|
||||
if(FLAC__format_vorbiscomment_entry_value_is_legal(VCENTRY_VALUES_NT[i].string, (unsigned)(-1)) != VCENTRY_VALUES_NT[i].valid) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[VCENTRY_VALUES_NT[i].valid], true_false_string_[!VCENTRY_VALUES_NT[i].valid]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
for(i = 0; i < sizeof(VCENTRIES)/sizeof(VCENTRIES[0]); i++) {
|
||||
printf("testing FLAC__format_vorbiscomment_entry_is_legal(\"%s\", %u)... ", VCENTRIES[i].string, VCENTRIES[i].length);
|
||||
if(FLAC__format_vorbiscomment_entry_is_legal(VCENTRIES[i].string, VCENTRIES[i].length) != VCENTRIES[i].valid) {
|
||||
printf("FAILED, expected %s, got %s\n", true_false_string_[VCENTRIES[i].valid], true_false_string_[!VCENTRIES[i].valid]);
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
return true;
|
||||
}
|
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/format.h
vendored
Normal file
27
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/format.h
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2004-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_FORMAT_H
|
||||
#define FLAC__TEST_LIBFLAC_FORMAT_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_format(void);
|
||||
|
||||
#endif
|
56
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/main.c
vendored
Normal file
56
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/main.c
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2000-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "bitwriter.h"
|
||||
#include "decoders.h"
|
||||
#include "encoders.h"
|
||||
#include "endswap.h"
|
||||
#include "format.h"
|
||||
#include "metadata.h"
|
||||
#include "md5.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
if(!test_endswap())
|
||||
return 1;
|
||||
|
||||
if(!test_md5())
|
||||
return 1;
|
||||
|
||||
if(!test_bitwriter())
|
||||
return 1;
|
||||
|
||||
if(!test_format())
|
||||
return 1;
|
||||
|
||||
if(!test_encoders())
|
||||
return 1;
|
||||
|
||||
if(!test_decoders())
|
||||
return 1;
|
||||
|
||||
if(!test_metadata())
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
221
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/md5.c
vendored
Normal file
221
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/md5.c
vendored
Normal file
@ -0,0 +1,221 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2014-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "FLAC/assert.h"
|
||||
#include "share/compat.h"
|
||||
#include "private/md5.h"
|
||||
#include "md5.h"
|
||||
|
||||
|
||||
static FLAC__bool test_md5_clear_context(void);
|
||||
static FLAC__bool test_md5_codec(void);
|
||||
static FLAC__bool test_md5_accumulate(const FLAC__int32 * const * signal,unsigned channels, unsigned samples, unsigned bytes_per_sample, const FLAC__byte target_digest [16]);
|
||||
|
||||
FLAC__bool test_md5(void)
|
||||
{
|
||||
printf("\n+++ libFLAC unit test: md5\n\n");
|
||||
|
||||
if (! test_md5_clear_context())
|
||||
return false;
|
||||
|
||||
if (! test_md5_codec())
|
||||
return false;
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
static FLAC__bool test_md5_clear_context(void)
|
||||
{
|
||||
FLAC__MD5Context ctx;
|
||||
FLAC__byte digest[16];
|
||||
FLAC__byte target[16] = { 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e };
|
||||
unsigned k ;
|
||||
char * cptr;
|
||||
|
||||
printf("testing FLAC__MD5Init ... ");
|
||||
FLAC__MD5Init (&ctx);
|
||||
if (ctx.buf[0] != 0x67452301) {
|
||||
printf("FAILED!\n");
|
||||
return false;
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing that FLAC__MD5Final clears the MD5Context ... ");
|
||||
FLAC__MD5Final(digest, &ctx);
|
||||
cptr = (char*) &ctx ;
|
||||
for (k = 0 ; k < sizeof (ctx) ; k++) {
|
||||
if (cptr [k]) {
|
||||
printf("FAILED, MD5 ctx has not been cleared after FLAC__MD5Final\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
printf("OK\n");
|
||||
|
||||
printf("testing digest correct for zero data ... ");
|
||||
if (memcmp(digest, target, sizeof (digest))) {
|
||||
printf("\nFAILED, expected MD5 sum ");
|
||||
for (k = 0 ; k < 16 ; k++)
|
||||
printf("%02x", (target [k] & 0xff));
|
||||
printf (" but got ");
|
||||
for (k = 0 ; k < 16 ; k++)
|
||||
printf("%02x", (digest [k] & 0xff));
|
||||
puts("\n");
|
||||
return false;
|
||||
}
|
||||
puts("OK");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static FLAC__byte target_digests [8][4][16] =
|
||||
{ /* 1 channel */
|
||||
{ /* 1 byte per sample */
|
||||
{ 0xc1, 0x9a, 0x5b, 0xeb, 0x57, 0x8f, 0x26, 0xeb, 0xfb, 0x34, 0x7c, 0xef, 0x04, 0x31, 0x6d, 0x7d },
|
||||
/* 2 bytes per sample */
|
||||
{ 0xd4, 0x78, 0x90, 0xd3, 0xa9, 0x17, 0x4e, 0x76, 0xca, 0x4d, 0x27, 0x20, 0x98, 0x36, 0x8b, 0x2e },
|
||||
/* 3 bytes per sample */
|
||||
{ 0x5a, 0x4b, 0xd6, 0xac, 0xa1, 0x70, 0x84, 0x19, 0x7c, 0x0d, 0xfb, 0x5b, 0xa9, 0x7b, 0xcb, 0x54 },
|
||||
/* 4 bytes per sample */
|
||||
{ 0x79, 0xd5, 0x7a, 0x32, 0x06, 0x0b, 0xfe, 0x46, 0xa3, 0xe7, 0xba, 0xc5, 0xf7, 0x48, 0x6f, 0x50 }
|
||||
},
|
||||
|
||||
/* 2 channels */
|
||||
{
|
||||
{ 0x89, 0xac, 0xcf, 0x91, 0xf1, 0x8c, 0xea, 0xab, 0x46, 0x12, 0x74, 0xbc, 0x4e, 0x82, 0xbe, 0x7d },
|
||||
{ 0xb9, 0x17, 0x16, 0x5b, 0xd8, 0x1c, 0xc8, 0x4e, 0x5a, 0x28, 0xfb, 0xba, 0x87, 0x74, 0x76, 0x44 },
|
||||
{ 0xec, 0x63, 0x92, 0xca, 0x4f, 0x6b, 0x9e, 0xb1, 0x9f, 0xec, 0x3b, 0x2c, 0x15, 0x30, 0xfd, 0x2a },
|
||||
{ 0x05, 0x4d, 0xfd, 0xb8, 0x9d, 0x8a, 0xa2, 0xdd, 0x26, 0x47, 0xc6, 0xfb, 0x4f, 0x23, 0x67, 0x6d }
|
||||
},
|
||||
|
||||
/* 3 channels */
|
||||
{
|
||||
{ 0xad, 0x05, 0xda, 0xf3, 0x7a, 0xa1, 0x94, 0xdb, 0x0c, 0x61, 0x06, 0xb2, 0x94, 0x39, 0x6c, 0xa9 },
|
||||
{ 0x8b, 0xcc, 0x41, 0x4d, 0xe9, 0xe3, 0xc2, 0x61, 0x61, 0x8a, 0x8b, 0x22, 0xc6, 0x4e, 0xac, 0xa7 },
|
||||
{ 0x8a, 0xce, 0x97, 0xc1, 0x86, 0xae, 0xbc, 0x73, 0x88, 0x8b, 0x35, 0x5a, 0x37, 0x33, 0xf9, 0xcf },
|
||||
{ 0x69, 0x59, 0xe8, 0x38, 0x29, 0x80, 0x80, 0x21, 0xb1, 0xd2, 0xba, 0xf6, 0x28, 0xd6, 0x6a, 0x83 }
|
||||
},
|
||||
|
||||
/* 4 channels */
|
||||
{
|
||||
{ 0x61, 0x40, 0x75, 0xef, 0x22, 0xf1, 0x0f, 0xa6, 0x08, 0x6c, 0x88, 0xff, 0x2c, 0x4e, 0x98, 0x0b },
|
||||
{ 0xa0, 0x77, 0x3a, 0x59, 0x4a, 0xbf, 0xd0, 0x5c, 0xcc, 0xe3, 0xb9, 0x83, 0x2b, 0xf3, 0xdf, 0x1a },
|
||||
{ 0xdb, 0xd7, 0xf1, 0x82, 0x13, 0x60, 0x42, 0x7c, 0x84, 0xe6, 0xcf, 0x30, 0xab, 0xa2, 0x64, 0xf1 },
|
||||
{ 0x4a, 0x9a, 0xad, 0x53, 0x05, 0x74, 0xb1, 0x1c, 0xb8, 0xd4, 0xae, 0x78, 0x13, 0xf6, 0x2a, 0x11 }
|
||||
},
|
||||
|
||||
/* 5 channels */
|
||||
{
|
||||
{ 0xcc, 0xca, 0x44, 0xc0, 0x54, 0xe2, 0xc9, 0xba, 0x99, 0x32, 0xc9, 0x65, 0xf3, 0x3e, 0x44, 0x34},
|
||||
{ 0x40, 0x38, 0x6a, 0xdd, 0xde, 0x89, 0x10, 0x3c, 0x8e, 0xec, 0xdf, 0x15, 0x53, 0x4c, 0x2c, 0x92 },
|
||||
{ 0xc8, 0x95, 0x0a, 0x7c, 0x17, 0x30, 0xc0, 0xac, 0x8e, 0x34, 0xdb, 0x79, 0x76, 0x64, 0x7c, 0x6e },
|
||||
{ 0x3f, 0x06, 0x11, 0x8a, 0x8d, 0x80, 0xb5, 0x4f, 0x8b, 0xb5, 0x8e, 0xb3, 0x27, 0x3e, 0x41, 0xe8 }
|
||||
},
|
||||
|
||||
/* 6 channels */
|
||||
{
|
||||
{ 0x61, 0xe4, 0xbd, 0xb1, 0xc0, 0x2f, 0xf4, 0x4c, 0x6e, 0x09, 0x5a, 0xbd, 0x90, 0x18, 0x8b, 0x62 },
|
||||
{ 0x47, 0xe7, 0x6e, 0x3b, 0x18, 0x86, 0x60, 0x1b, 0x09, 0x62, 0xc6, 0xc9, 0x7c, 0x4c, 0x03, 0xb5 },
|
||||
{ 0x70, 0x57, 0xbf, 0x67, 0x66, 0x0f, 0xe3, 0x0a, 0x6c, 0xd2, 0x97, 0x66, 0xa2, 0xd2, 0xe4, 0x79 },
|
||||
{ 0xaa, 0x3f, 0xc7, 0xf5, 0x7a, 0xa5, 0x46, 0xf7, 0xea, 0xe3, 0xd5, 0x1a, 0xa4, 0x62, 0xbe, 0xfa }
|
||||
},
|
||||
|
||||
/* 7 channels */
|
||||
{
|
||||
{ 0x7c, 0x8d, 0xd2, 0x8c, 0xfd, 0x91, 0xbb, 0x77, 0x6f, 0x0e, 0xf0, 0x39, 0x1f, 0x39, 0xc4, 0xac },
|
||||
{ 0xfb, 0xab, 0x18, 0x3f, 0x1e, 0x1d, 0xa5, 0x77, 0xe0, 0x5c, 0xea, 0x45, 0x6f, 0x64, 0xa4, 0x64 },
|
||||
{ 0xe3, 0xac, 0x33, 0x50, 0xc1, 0xb1, 0x93, 0xfb, 0xca, 0x4b, 0x15, 0xcb, 0x2d, 0xcd, 0xd5, 0xef },
|
||||
{ 0x10, 0xfb, 0x02, 0x83, 0x76, 0x0d, 0xe5, 0xd2, 0x3b, 0xb1, 0x4c, 0x78, 0x3b, 0x73, 0xf7, 0x1a }
|
||||
},
|
||||
|
||||
/* 8 channels */
|
||||
{
|
||||
{ 0x65, 0x7b, 0xe5, 0x92, 0xe2, 0x1c, 0x95, 0x3e, 0xd7, 0x2f, 0x64, 0xa0, 0x86, 0xec, 0x1a, 0xed },
|
||||
{ 0x9d, 0x04, 0x8f, 0xa4, 0xea, 0x10, 0xec, 0xb8, 0xa3, 0x88, 0xe2, 0x5d, 0x3c, 0xe2, 0xfb, 0x94 },
|
||||
{ 0x5a, 0xd3, 0xd2, 0x75, 0x6a, 0xfa, 0xa7, 0x42, 0xf3, 0xbf, 0x0e, 0xbc, 0x90, 0x2a, 0xf8, 0x5f },
|
||||
{ 0x76, 0xe1, 0xe5, 0xf6, 0xe3, 0x44, 0x08, 0x29, 0xae, 0x79, 0x19, 0xeb, 0xa8, 0x57, 0x16, 0x2a }
|
||||
}
|
||||
};
|
||||
|
||||
#define MAX_CHANNEL_COUNT 8
|
||||
#define MD5_SAMPLE_COUNT 64
|
||||
|
||||
static FLAC__bool test_md5_codec(void)
|
||||
{
|
||||
FLAC__int32 arrays[MAX_CHANNEL_COUNT][MD5_SAMPLE_COUNT], *pointer[MAX_CHANNEL_COUNT], **signal;
|
||||
unsigned chan, byte_size, seed = 0x12345679;
|
||||
|
||||
/* Set up signal data using a trival Linear Congruent PRNG. */
|
||||
signal = &pointer[0];
|
||||
for (chan = 0 ; chan < MAX_CHANNEL_COUNT ; chan ++) {
|
||||
unsigned k;
|
||||
pointer[chan] = arrays [chan];
|
||||
for (k = 0 ; k < MD5_SAMPLE_COUNT ; k++) {
|
||||
seed = seed * 1103515245 + 12345;
|
||||
arrays[chan][k] = seed;
|
||||
}
|
||||
}
|
||||
|
||||
for (chan = 1 ; chan <= MAX_CHANNEL_COUNT ; chan ++) {
|
||||
for (byte_size = 1 ; byte_size <= 4 ; byte_size ++) {
|
||||
if (! test_md5_accumulate((const FLAC__int32 * const *) signal, chan, MD5_SAMPLE_COUNT, byte_size, target_digests[chan-1][byte_size-1]))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static FLAC__bool test_md5_accumulate(const FLAC__int32 * const * signal, unsigned channels, unsigned samples, unsigned bytes_per_sample, const FLAC__byte target_digest [16])
|
||||
{
|
||||
FLAC__MD5Context ctx;
|
||||
FLAC__byte digest[16];
|
||||
|
||||
memset(&ctx, 0, sizeof (ctx));
|
||||
|
||||
printf("testing FLAC__MD5Accumulate (samples=%u, channels=%u, bytes_per_sample=%u) ... ", samples, channels, bytes_per_sample);
|
||||
|
||||
FLAC__MD5Init(&ctx);
|
||||
FLAC__MD5Accumulate(&ctx, signal, channels, samples, bytes_per_sample);
|
||||
FLAC__MD5Final(digest, &ctx);
|
||||
|
||||
if (memcmp(digest, target_digest, sizeof (digest))) {
|
||||
int k ;
|
||||
|
||||
printf("\nFAILED, expected MD5 sum ");
|
||||
for (k = 0 ; k < 16 ; k++)
|
||||
printf("%02x", (target_digest [k] & 0xff));
|
||||
printf (" but got ");
|
||||
for (k = 0 ; k < 16 ; k++)
|
||||
printf("%02x", (digest [k] & 0xff));
|
||||
puts("\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
printf("OK\n");
|
||||
return true;
|
||||
}
|
26
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/md5.h
vendored
Normal file
26
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/md5.h
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2014-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_MD5_H
|
||||
#define FLAC__TEST_LIBFLAC_MD5_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_md5(void);
|
||||
|
||||
#endif
|
41
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata.c
vendored
Normal file
41
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata.c
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2002-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "metadata.h"
|
||||
#include <stdio.h>
|
||||
|
||||
extern FLAC__bool test_metadata_object(void);
|
||||
extern FLAC__bool test_metadata_file_manipulation(void);
|
||||
|
||||
FLAC__bool test_metadata(void)
|
||||
{
|
||||
if(!test_metadata_object())
|
||||
return false;
|
||||
|
||||
if(!test_metadata_file_manipulation())
|
||||
return false;
|
||||
|
||||
printf("\nPASSED!\n");
|
||||
|
||||
return true;
|
||||
}
|
29
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata.h
vendored
Normal file
29
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata.h
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/* test_libFLAC - Unit tester for libFLAC
|
||||
* Copyright (C) 2002-2009 Josh Coalson
|
||||
* Copyright (C) 2011-2016 Xiph.Org Foundation
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FLAC__TEST_LIBFLAC_METADATA_H
|
||||
#define FLAC__TEST_LIBFLAC_METADATA_H
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_metadata(void);
|
||||
FLAC__bool test_metadata_file_manipulation(void);
|
||||
FLAC__bool test_metadata_object(void);
|
||||
|
||||
#endif
|
2133
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata_manip.c
vendored
Normal file
2133
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata_manip.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2285
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata_object.c
vendored
Normal file
2285
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/metadata_object.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
263
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcproj
vendored
Normal file
263
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcproj
vendored
Normal file
@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="test_libFLAC"
|
||||
ProjectGUID="{4cefbc8c-c215-11db-8314-0800200c9a66}"
|
||||
RootNamespace="test_libFLAC"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=".;..\libFLAC\include;..\..\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;FLAC__NO_DLL;DEBUG;CPU_IS_LITTLE_ENDIAN=1"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="$(SolutionDir)objs\$(ConfigurationName)\lib\libogg_static.lib"
|
||||
LinkIncremental="2"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
WholeProgramOptimization="true"
|
||||
AdditionalIncludeDirectories=".;..\libFLAC\include;..\..\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;FLAC__NO_DLL;CPU_IS_LITTLE_ENDIAN=1"
|
||||
RuntimeLibrary="0"
|
||||
BufferSecurityCheck="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
DisableSpecificWarnings="4267;4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="$(SolutionDir)objs\$(ConfigurationName)\lib\libogg_static.lib"
|
||||
LinkIncremental="1"
|
||||
IgnoreDefaultLibraryNames="uuid.lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
LinkTimeCodeGeneration="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\bitwriter.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\decoders.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\encoders.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\endswap.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\format.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\md5.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\metadata.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\bitwriter.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\decoders.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\encoders.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\endswap.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\format.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\main.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\md5.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\metadata.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\metadata_manip.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\metadata_object.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
205
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcxproj
vendored
Normal file
205
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcxproj
vendored
Normal file
@ -0,0 +1,205 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{4cefbc8c-c215-11db-8314-0800200c9a66}</ProjectGuid>
|
||||
<RootNamespace>test_libFLAC</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>12.0.30501.0</_ProjectFileVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)objs\$(Configuration)\bin\</OutDir>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)objs\$(Platform)\$(Configuration)\bin\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)objs\$(Configuration)\bin\</OutDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)objs\$(Platform)\$(Configuration)\bin\</OutDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;..\libFLAC\include;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;FLAC__NO_DLL;DEBUG;CPU_IS_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>$(SolutionDir)objs\$(Configuration)\lib\libogg_static.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>uuid.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;..\libFLAC\include;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;FLAC__NO_DLL;DEBUG;ENABLE_64_BIT_WORDS;CPU_IS_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>$(SolutionDir)objs\$(Platform)\$(Configuration)\lib\libogg_static.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>uuid.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>.;..\libFLAC\include;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;FLAC__NO_DLL;CPU_IS_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>$(SolutionDir)objs\$(Configuration)\lib\libogg_static.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>uuid.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>.;..\libFLAC\include;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;FLAC__NO_DLL;ENABLE_64_BIT_WORDS;CPU_IS_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>$(SolutionDir)objs\$(Platform)\$(Configuration)\lib\libogg_static.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>uuid.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="bitwriter.h" />
|
||||
<ClInclude Include="decoders.h" />
|
||||
<ClInclude Include="encoders.h" />
|
||||
<ClInclude Include="endswap.h" />
|
||||
<ClInclude Include="format.h" />
|
||||
<ClInclude Include="md5.h" />
|
||||
<ClInclude Include="metadata.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="bitwriter.c" />
|
||||
<ClCompile Include="decoders.c" />
|
||||
<ClCompile Include="encoders.c" />
|
||||
<ClCompile Include="endswap.c" />
|
||||
<ClCompile Include="format.c" />
|
||||
<ClCompile Include="main.c" />
|
||||
<ClCompile Include="md5.c" />
|
||||
<ClCompile Include="metadata.c" />
|
||||
<ClCompile Include="metadata_manip.c" />
|
||||
<ClCompile Include="metadata_object.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\libFLAC\libFLAC_static.vcxproj">
|
||||
<Project>{4cefbc84-c215-11db-8314-0800200c9a66}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\share\grabbag\grabbag_static.vcxproj">
|
||||
<Project>{4cefbc81-c215-11db-8314-0800200c9a66}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\test_libs_common\test_libs_common_static.vcxproj">
|
||||
<Project>{4cefbc8e-c215-11db-8314-0800200c9a66}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
68
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcxproj.filters
vendored
Normal file
68
libsdl2_mixer/external/flac-1.3.2/src/test_libFLAC/test_libFLAC.vcxproj.filters
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="bitwriter.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="decoders.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="encoders.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="endswap.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="format.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="md5.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="metadata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="bitwriter.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="decoders.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="encoders.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="endswap.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="format.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="main.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="md5.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="metadata.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="metadata_manip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="metadata_object.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user