Projects
Essentials
kvazaar
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
kvazaar.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Sat Jan 16 19:25:59 UTC 2016 - aloisio@gmx.com + +- Update to version 0.8.2 +- Bumped library version to 3 + +------------------------------------------------------------------- Fri Jan 15 12:40:35 UTC 2016 - aloisio@gmx.com - Update to version 0.8.1
View file
kvazaar.spec
Changed
@@ -16,9 +16,9 @@ # %define libname libkvazaar -%define libmver 2 +%define libmver 3 Name: kvazaar -Version: 0.8.1 +Version: 0.8.2 Release: 0 Summary: HEVC encoder License: LGPL-2.1
View file
kvazaar-0.8.1.tar.gz/SConstruct
Deleted
@@ -1,236 +0,0 @@ -""" SConstruct file fore building Kvazaar with Scons. - -This is an additional cross platform way to build the program. -The main way is to use the Makefile and that is always kept up to date. - -This mostly exists so it can be used with a custom SConscript file that -builds any old version of Kvazaar, ensuring that the compilation settings are -the same and any compilation from a specific version of Kvazaar will not -affect the comparison. The SConscript included in git version only compiles -the current version. - -""" - -import os -import platform - - -vars = Variables() - -default_arch = 'amd64' if platform.machine().endswith('64') else 'x86' -vars.Add(EnumVariable('arch', 'Set target arch.', default_arch, - allowed_values=('x86', 'x64', 'amd64', 'ppc'), - map={'x64': 'amd64'})) - -vars.Add(PathVariable('win32pthreads', - 'Path to win32-pthreads dir.', - r'./../pthreads.2')) - -vars.Add(PathVariable('copyto', - 'Copy exe and required DLLs to this dir.', - '', - PathVariable.PathAccept)) - -vars.Add(BoolVariable('dump_env', - 'Dump of construction environment to stdout.', - False)) - -vars.Add(BoolVariable('use_yasm', - 'Use yasm.', - True)) - - -# Visual studio needs the architecture to be set in this stage. It can not be -# modified later. Other tools ignore TARGET_ARCH. -# The variable substitution is done in the environment construction so $arch -# will not work here. Get the value manually. -arch = ARGUMENTS.get('arch', default_arch) -if arch == 'x64': - arch = 'amd64' -env = Environment( - variables=vars, - tools=['msvc', 'mslink', 'nasm'], - ENV={'PATH': os.environ['PATH']}, # to find yasm - TARGET_ARCH=arch, # for Visual Studio - AS='yasm', - ) - - -Help(""" -Example: 'scons arch=x64' to compile for amd64. - 'scons --jobs=8' to compile in parallel. -""" + vars.GenerateHelpText(env)) - -if 'MSVS' in env: - compiler = 'msvs' -elif 'MSYSTEM' in os.environ: - compiler = 'mingw' -else: - compiler = 'gcc' - -env['use_yasm'] = env['use_yasm'] and env['arch'] not in ('ppc',) - -# pthreads_dll location for copyto -pthreads_dll = None - -# Try and deal with all the remaining compiler specific differences that I -# really wish scons would handle. -if compiler in ('msvs',): - arch_dir = {'x86': r'x86', 'amd64': r'x64'}[env['arch']] - pthreads_dll = os.path.join(env['win32pthreads'], 'dll', arch_dir, 'pthreadVC2.dll') - - env.Append( - CCFLAGS=r'/MD /Ox /GL /wd"4028"', - LINKFLAGS=r'/LTCG', - LIBPATH=r'#$win32pthreads\lib\\' + arch_dir, - LIBS=r'pthreadVC2', - CPPPATH=r'#$win32pthreads\include') -else: - env.MergeFlags('-O2 -pthread -lm -lrt -march=native') - if env['arch'] == 'x86': - env.MergeFlags('-m32') - elif env['arch'] == 'amd64': - env.MergeFlags('-m64') - - # platform.system() lies on msys2, so just try to detect msys/mingw. - if 'MSYSTEM' in os.environ: - # __USE_MINGW_ANSI_STDIO required on mingw for printf to function. - env.MergeFlags('-D' + '__USE_MINGW_ANSI_STDIO=1') - - -# VS2010 linker and mingw64 need TMP. -if compiler in ('msvs', 'mingw'): - if 'TMP' in os.environ: - env['ENV']['TMP'] = os.environ['TMP'] - -env.MergeFlags('-I. -Iextras -Istrategies') - -# Take comma separated list from 'D=' and pass them on to -# preprocessor as defines. -preprocessor_defines = ARGUMENTS.get('D', '') -if preprocessor_defines: - for define in preprocessor_defines.split(','): - env.MergeFlags('-D' + define) - -# Declare build targets. -variant_dir = 'scons_build' - - -class EnvinronmentContainer(object): - """Class for initializing and holding optimization environments. - - As far as I know, making a separate environment is the only way to compile - different objects with different flags in scons. So this constructs all - the required environments. - - Yasm is also its own environment although it's not strictly necessary. - It does however allow KVZ_COMPILE_ASM to only those files that require - it, avoiding a complete recompile. - - """ - - def __init__(self, env, compiler, arch): - # If optimization is not supported for arch, use default env. - self.env = env - self.sse2 = env - self.sse41 = env - self.avx = env - self.avx2 = env - self.altivec = env - self.asm = env - - if compiler == 'msvs': - self.avx = env.Clone() - self.avx.Append(CCFLAGS='/arch:AVX') - self.avx2 = env.Clone() - self.avx2.Append(CCFLAGS='/arch:AVX2') - elif compiler in ('gcc',) and arch in ('x86', 'x64'): - self.sse2 = env.Clone() - self.sse2.Append(CCFLAGS='-msse2') - self.sse41 = env.Clone().Append(CCFLAGS='-msse4.1') - self.avx = env.Clone().Append(CCFLAGS='-mavx') - self.avx2 = env.Clone().Append(CCFLAGS='-mavx2') - elif compiler in ('gcc',) and arch in ('ppc'): - self.altivec = env.Clone().Append(CCFLAGS='-maltivec') - - if env['use_yasm']: - self._init_yasm() - - - def _init_yasm(self): - self.asm = env.Clone() - self.asm.MergeFlags('-D' + 'KVZ_COMPILE_ASM') - - # YASM flags for different architectures. The object file format and name - # mangling must be the same as used by the C compiler for that OS. - # Indexed by platform.system(). - yasm_flags = { - 'Windows': { - 'x86': '-f win32 -DPREFIX -DHAVE_ALIGNED_STACK=0 ', - 'amd64': '-f win64 -DHAVE_ALIGNED_STACK=1', - }, - 'Darwin': { - 'x86': '-f macho32 -DPREFIX', - 'amd64': '-f macho64 -DPREFIX', - }, - 'Linux': { # Flags for Unix-like. - 'x86': '-f elf32', - 'amd64': '-f elf64', - }, - 'all': { # Flags for all systems. - 'x86': ' -I./src/extras -DARCH_X86_64=0 -m x86', - 'amd64': ' -I./src/extras -DARCH_X86_64=1 -m amd64', - }, - } - - # Set yasm flags for OS and architecture. - target_yasm_flags = yasm_flags.get(platform.system(), yasm_flags['Linux']) - self.asm.Replace(ASFLAGS=target_yasm_flags[env['arch']]) - self.asm.Append(ASFLAGS=yasm_flags['all'][env['arch']]) - self.asm.Replace(AS='yasm') - - -envs = EnvinronmentContainer(env, compiler, env['arch']) - - -program = SConscript('src/SConscript', - exports={'envs': envs}, - variant_dir=variant_dir, - duplicate=False)
View file
kvazaar-0.8.1.tar.gz/src/SConscript
Deleted
@@ -1,30 +0,0 @@ -""" Build Kvazaa -""" - -import os - -Import('envs') -env = envs.env - -sources = [] -sources += env.Glob('*.c') -sources += env.Glob('extras/*.c') - -sources += env.Glob('strategies/*.c') -sources += env.Glob('strategies/generic/*.c') -sources += envs.sse2.Object(env.Glob('strategies/sse2/*.c')) -sources += envs.sse41.Object(env.Glob('strategies/sse41/*.c')) -sources += envs.avx.Object(env.Glob('strategies/avx/*.c')) -sources += envs.avx2.Object(env.Glob('strategies/avx2/*.c')) -sources += envs.altivec.Object(env.Glob('strategies/altivec/*.c')) - -sources += envs.asm.Object(env.Glob('strategies/x86_asm/*.c')) -if env['use_yasm']: - sources += envs.asm.Object(env.Glob('strategies/x86_asm/*.asm')) - sources += envs.asm.Object(env.Glob('extras/*.asm')) - -prog = env.Program('kvazaar', sources) - -env.Clean(prog, '.') # Remove variant_dir with 'scons -c'. - -Return('prog')
View file
kvazaar-0.8.1.tar.gz/Makefile.am -> kvazaar-0.8.2.tar.gz/Makefile.am
Changed
@@ -9,5 +9,4 @@ doc \ docs.doxy \ greatest \ - SConstruct \ tools
View file
kvazaar-0.8.1.tar.gz/configure.ac -> kvazaar-0.8.2.tar.gz/configure.ac
Changed
@@ -2,9 +2,26 @@ AC_INIT([kvazaar], m4_esyscmd([printf $(awk '/#define KVZ_VERSION/ { print $3 }' src/global.h)])) AC_CONFIG_SRCDIR([src/encmain.c]) -# Library version number -ver_major=2 -ver_minor=4 +# Library version number, modify: +# - When modifying kvazaar.h. +# - Modify either major or minor. +# - When making a new release. +# - If major or minor did not change since last release. +# - Check git history to see if someone forgot to increment major or minor. +# - Increment release. +# +# major: +# - Increment when ABI changes, meaning lib users need to be recompiled. +# - ABI changes when anything existing gets modified, including sizes of structs. +# minor: +# - Increment when only API changes. Because the function pointers are in a struct, that means basically never? +# - If not sure, increment major instead. +# release: +# - Increment when making new releases and major or minor was not changed since last release. +# +# Here is a somewhat sane guide to lib versioning: http://apr.apache.org/versioning.html +ver_major=3 +ver_minor=0 ver_release=0 # not used, but it prevents configure from adding a lot of defines to the CFLAGS
View file
kvazaar-0.8.1.tar.gz/src/Makefile.am -> kvazaar-0.8.2.tar.gz/src/Makefile.am
Changed
@@ -4,8 +4,6 @@ EXTRA_DIST = \ - Makefile-old \ - SConscript \ extras/getopt.c \ extras/getopt.h
View file
kvazaar-0.8.1.tar.gz/src/global.h -> kvazaar-0.8.2.tar.gz/src/global.h
Changed
@@ -173,9 +173,9 @@ #define QUOTE(x) #x #define QUOTE_EXPAND(x) QUOTE(x) -// NOTE: When making a release, remember to also bump library version in -// Makefile, if necessary. -#define KVZ_VERSION 0.8.1 +// NOTE: When making a release, check to see if incrementing libversion in +// configure.ac is necessary. +#define KVZ_VERSION 0.8.2 #define VERSION_STRING QUOTE_EXPAND(KVZ_VERSION) //#define VERBOSE 1
View file
kvazaar-0.8.1.tar.gz/src/kvazaar.h -> kvazaar-0.8.2.tar.gz/src/kvazaar.h
Changed
@@ -496,10 +496,6 @@ kvz_frame_info *info_out); } kvz_api; -// Append API version to the getters name to prevent linking against incompatible versions. -#define KVZ_API_CONCAT(func, version) func ## _apiv ## version -#define KVZ_API_EXPAND_VERSION(func, version) KVZ_API_CONCAT(func, version) -#define kvz_api_get KVZ_API_EXPAND_VERSION(kvz_api_get, KVZ_API_VERSION) KVZ_PUBLIC const kvz_api * kvz_api_get(int bit_depth);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.