Projects
Essentials
libde265
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
libde265.changes
Changed
@@ -1,4 +1,20 @@ ------------------------------------------------------------------- +Mon Apr 20 21:17:43 UTC 2020 - zaitor@opensuse.org + +- Update to version 1.0.5: + + Fixes in the CMake build system (NOMINMAX). + + Support stdin/stdout as input/output in dec265. + + More input stream error checking (vps_num_hrd_parameters). +- Changes from version 1.0.4: + + Fix decoding of monochrome streams (needed for depth images in + heif images). + + Improved cmake build script. +- Drop libde265-use_new_FFMPEG_enum_names.patch and + libde265-only_export_decoder_api.patch: Fixed upstream. +- Rebase libde265-disable_tools.patch. +- Pass --disable-encoder to configure, do not build binary encoder. + +------------------------------------------------------------------- Tue May 8 20:49:06 UTC 2018 - zaitor@opensuse.org - Update to version 1.0.3:
View file
libde265.spec
Changed
@@ -15,7 +15,7 @@ %define so_ver 0 Name: libde265 -Version: 1.0.3 +Version: 1.0.5 Release: 0 Summary: Open H.265 video codec implementation License: LGPL-3.0 @@ -23,14 +23,11 @@ Url: http://www.libde265.org/ Source0: https://github.com/strukturag/libde265/releases/download/v%{version}/%{name}-%{version}.tar.gz Source99: baselibs.conf - -Patch0: libde265-only_export_decoder_api.patch -Patch1: libde265-disable_tools.patch -Patch2: libde265-use_new_FFMPEG_enum_names.patch +Patch0: libde265-disable_tools.patch BuildRequires: autoconf BuildRequires: automake -BuildRequires: gcc-c++ +BuildRequires: c++_compiler BuildRequires: libtool BuildRequires: pkgconfig @@ -71,10 +68,11 @@ %configure \ --disable-static \ --enable-shared \ + --disable-encoder \ --disable-dec265 \ --disable-sherlock265 \ %{nil} -make %{?_smp_mflags} +%make_build %install %make_install
View file
libde265-disable_tools.patch
Changed
@@ -1,38 +1,15 @@ -Description: Disable building of some internal tools that no longer link - because internal symbols are not exported. -Author: Joachim Bauch <bauch@struktur.de> ---- a/Makefile.am -+++ b/Makefile.am -@@ -8,10 +8,6 @@ - SUBDIRS+=dec265 - endif +--- libde265-orig/Makefile.am 2020-04-06 17:52:29.260908356 +0200 ++++ libde265-patched/Makefile.am 2020-04-06 17:53:20.796824123 +0200 +@@ -10,10 +10,9 @@ --SUBDIRS+=enc265 --SUBDIRS+=tools --SUBDIRS+=acceleration-speed + if ENABLE_ENCODER + SUBDIRS+=enc265 +-endif - + SUBDIRS+=tools + SUBDIRS+=acceleration-speed ++endif + if ENABLE_SHERLOCK265 SUBDIRS+=sherlock265 - endif ---- a/dec265/Makefile.am -+++ b/dec265/Makefile.am -@@ -1,5 +1,5 @@ - --bin_PROGRAMS = dec265 hdrcopy -+bin_PROGRAMS = dec265 - - AM_CPPFLAGS = -I../libde265 - -@@ -9,12 +9,6 @@ - dec265_LDADD = ../libde265/libde265.la -lstdc++ - dec265_SOURCES = dec265.cc - --hdrcopy_DEPENDENCIES = ../libde265/libde265.la --hdrcopy_CXXFLAGS = --hdrcopy_LDFLAGS = --hdrcopy_LDADD = ../libde265/libde265.la -lstdc++ --hdrcopy_SOURCES = hdrcopy.cc -- - if HAVE_VIDEOGFX - dec265_CXXFLAGS += $(VIDEOGFX_CFLAGS) - dec265_LDFLAGS += $(VIDEOGFX_LIBS) +
View file
libde265-only_export_decoder_api.patch
Deleted
@@ -1,286 +0,0 @@ -Description: Only export symbols defined in the decoder API. - The encoder API is not final yet, so upstream exports all symbols to make - development easier. For packaging we only want to expose the public API. -Author: Joachim Bauch <bauch@struktur.de> ---- a/libde265/encoder/Makefile.am -+++ b/libde265/encoder/Makefile.am -@@ -10,6 +10,18 @@ - encpicbuf.h encpicbuf.cc \ - sop.h sop.cc - -+libde265_encoder_la_CFLAGS = \ -+ $(CFLAG_VISIBILITY) \ -+ -DLIBDE265_EXPORTS -+libde265_encoder_la_CXXFLAGS += \ -+ $(CFLAG_VISIBILITY) \ -+ -DLIBDE265_EXPORTS -+ -+if HAVE_VISIBILITY -+ libde265_encoder_la_CFLAGS += -DHAVE_VISIBILITY -+ libde265_encoder_la_CXXFLAGS += -DHAVE_VISIBILITY -+endif -+ - SUBDIRS=algo - libde265_encoder_la_LIBADD = algo/libde265_encoder_algo.la - ---- a/libde265/encoder/algo/Makefile.am -+++ b/libde265/encoder/algo/Makefile.am -@@ -17,5 +17,13 @@ - tb-rateestim.h tb-rateestim.cc \ - pb-mv.h pb-mv.cc - -+libde265_encoder_algo_la_CXXFLAGS += \ -+ $(CFLAG_VISIBILITY) \ -+ -DLIBDE265_EXPORTS -+ -+if HAVE_VISIBILITY -+ libde265_encoder_algo_la_CXXFLAGS += -DHAVE_VISIBILITY -+endif -+ - EXTRA_DIST = \ - CMakeLists.txt ---- a/configure.ac -+++ b/configure.ac -@@ -50,9 +50,7 @@ - fi - changequote([,])dnl - --dnl gl_VISIBILITY --dnl : In encoder branch, we still export all library symbols : --HAVE_VISIBILITY=0 -+gl_VISIBILITY - AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" != "x0"]) - - # Checks for header files. ---- a/libde265/image-io.cc -+++ b/libde265/image-io.cc -@@ -183,7 +183,7 @@ - } - - --LIBDE265_API PacketSink_File::~PacketSink_File() -+PacketSink_File::~PacketSink_File() - { - if (mFH) { - fclose(mFH); -@@ -191,7 +191,7 @@ - } - - --LIBDE265_API void PacketSink_File::set_filename(const char* filename) -+void PacketSink_File::set_filename(const char* filename) - { - assert(mFH==NULL); - -@@ -199,7 +199,7 @@ - } - - --LIBDE265_API void PacketSink_File::send_packet(const uint8_t* data, int n) -+void PacketSink_File::send_packet(const uint8_t* data, int n) - { - uint8_t startCode[3]; - startCode[0] = 0; ---- a/libde265/image-io.h -+++ b/libde265/image-io.h -@@ -30,17 +30,17 @@ - class ImageSource - { - public: -- LIBDE265_API ImageSource(); -- virtual LIBDE265_API ~ImageSource() { } -+ ImageSource(); -+ virtual ~ImageSource() { } - - //enum ImageStatus { Available, Waiting, EndOfVideo }; - - //virtual ImageStatus get_status() = 0; -- virtual LIBDE265_API de265_image* get_image(bool block=true) = 0; -- virtual LIBDE265_API void skip_frames(int n) = 0; -+ virtual de265_image* get_image(bool block=true) = 0; -+ virtual void skip_frames(int n) = 0; - -- virtual LIBDE265_API int get_width() const = 0; -- virtual LIBDE265_API int get_height() const = 0; -+ virtual int get_width() const = 0; -+ virtual int get_height() const = 0; - }; - - -@@ -48,17 +48,17 @@ - class ImageSource_YUV : public ImageSource - { - public: -- LIBDE265_API ImageSource_YUV(); -- virtual LIBDE265_API ~ImageSource_YUV(); -+ ImageSource_YUV(); -+ virtual ~ImageSource_YUV(); - -- bool LIBDE265_API set_input_file(const char* filename, int w,int h); -+ bool set_input_file(const char* filename, int w,int h); - - //virtual ImageStatus get_status(); -- virtual LIBDE265_API de265_image* get_image(bool block=true); -- virtual LIBDE265_API void skip_frames(int n); -+ virtual de265_image* get_image(bool block=true); -+ virtual void skip_frames(int n); - -- virtual LIBDE265_API int get_width() const { return width; } -- virtual LIBDE265_API int get_height() const { return height; } -+ virtual int get_width() const { return width; } -+ virtual int get_height() const { return height; } - - private: - FILE* mFH; -@@ -74,20 +74,20 @@ - class ImageSink - { - public: -- virtual LIBDE265_API ~ImageSink() { } -+ virtual ~ImageSink() { } - -- virtual LIBDE265_API void send_image(const de265_image* img) = 0; -+ virtual void send_image(const de265_image* img) = 0; - }; - - class ImageSink_YUV : public ImageSink - { - public: -- LIBDE265_API ImageSink_YUV() : mFH(NULL) { } -- LIBDE265_API ~ImageSink_YUV(); -+ ImageSink_YUV() : mFH(NULL) { } -+ ~ImageSink_YUV(); - -- bool LIBDE265_API set_filename(const char* filename); -+ bool set_filename(const char* filename); - -- virtual LIBDE265_API void send_image(const de265_image* img); -+ virtual void send_image(const de265_image* img); - - private: - FILE* mFH; -@@ -98,21 +98,21 @@ - class PacketSink - { - public: -- virtual LIBDE265_API ~PacketSink() { } -+ virtual ~PacketSink() { } - -- virtual LIBDE265_API void send_packet(const uint8_t* data, int n) = 0; -+ virtual void send_packet(const uint8_t* data, int n) = 0; - }; - - - class PacketSink_File : public PacketSink - { - public: -- LIBDE265_API PacketSink_File(); -- virtual LIBDE265_API ~PacketSink_File(); -+ PacketSink_File(); -+ virtual ~PacketSink_File(); - -- LIBDE265_API void set_filename(const char* filename); -+ void set_filename(const char* filename); - -- virtual LIBDE265_API void send_packet(const uint8_t* data, int n); -+ virtual void send_packet(const uint8_t* data, int n); - - private: - FILE* mFH; ---- a/libde265/configparam.h -+++ b/libde265/configparam.h -@@ -95,7 +95,7 @@ - bool hasLongOption() const { return true; } //mLongOption!=NULL; } - std::string getLongOption() const { return mLongOption ? std::string(mLongOption) : get_name(); } - -- virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx) { return false; } -+ virtual bool processCmdLineArguments(char** argv, int* argc, int idx) { return false; } - - - -@@ -132,7 +132,7 @@ - virtual std::string get_default_string() const { return default_value ? "true":"false"; } - - virtual std::string getTypeDescr() const { return "(boolean)"; } -- virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx) { set(true); return true; } -+ virtual bool processCmdLineArguments(char** argv, int* argc, int idx) { set(true); return true; } - - bool set(bool v) { value_set=true; value=v; return true; } - -@@ -162,10 +162,10 @@ - virtual bool has_default() const { return default_set; } - - void set_default(std::string v) { default_value=v; default_set=true; } -- virtual LIBDE265_API std::string get_default_string() const { return default_value; } -+ virtual std::string get_default_string() const { return default_value; } - -- virtual LIBDE265_API std::string getTypeDescr() const { return "(string)"; } -- virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx); -+ virtual std::string getTypeDescr() const { return "(string)"; } -+ virtual bool processCmdLineArguments(char** argv, int* argc, int idx); - - bool set(std::string v) { value_set=true; value=v; return true; } - -@@ -201,10 +201,10 @@ - virtual bool has_default() const { return default_set; } - - void set_default(int v) { default_value=v; default_set=true; } -- virtual LIBDE265_API std::string get_default_string() const; -+ virtual std::string get_default_string() const; - -- virtual LIBDE265_API std::string getTypeDescr() const; -- virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx); -+ virtual std::string getTypeDescr() const; -+ virtual bool processCmdLineArguments(char** argv, int* argc, int idx); - - bool set(int v) { - if (is_valid(v)) { value_set=true; value=v; return true; } -@@ -239,7 +239,7 @@ - virtual std::vector<std::string> get_choice_names() const = 0; - - virtual std::string getTypeDescr() const; -- virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx); -+ virtual bool processCmdLineArguments(char** argv, int* argc, int idx); - - const char** get_choices_string_table() const; - -@@ -368,10 +368,10 @@ - config_parameters() : param_string_table(NULL) { } - ~config_parameters() { delete[] param_string_table; } - -- void LIBDE265_API add_option(option_base* o); -+ void add_option(option_base* o); - -- void LIBDE265_API print_params() const; -- bool LIBDE265_API parse_command_line_params(int* argc, char** argv, int* first_idx=NULL, -+ void print_params() const; -+ bool parse_command_line_params(int* argc, char** argv, int* first_idx=NULL, - bool ignore_unknown_options=false); - - ---- a/libde265/quality.h -+++ b/libde265/quality.h -@@ -26,11 +26,11 @@ - #include <libde265/image.h> - - --LIBDE265_API uint32_t SSD(const uint8_t* img, int imgStride, -+uint32_t SSD(const uint8_t* img, int imgStride, - const uint8_t* ref, int refStride, - int width, int height); - --LIBDE265_API uint32_t SAD(const uint8_t* img, int imgStride, -+uint32_t SAD(const uint8_t* img, int imgStride, - const uint8_t* ref, int refStride, - int width, int height); - -@@ -41,7 +41,7 @@ - LIBDE265_API double PSNR(double mse); - - --LIBDE265_API uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2, -+uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2, - int x0, int y0, int log2size, int cIdx); - - #endif -
View file
libde265-use_new_FFMPEG_enum_names.patch
Deleted
@@ -1,23 +0,0 @@ -From e5b8e2e703d608777afadc54955bd396e4211da0 Mon Sep 17 00:00:00 2001 -From: Dirk Farin <farin@struktur.de> -Date: Thu, 19 Apr 2018 13:15:18 +0200 -Subject: [PATCH] use new FFMPEG enum names - ---- - sherlock265/VideoDecoder.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/sherlock265/VideoDecoder.cc b/sherlock265/VideoDecoder.cc -index 119f6152..b829e1c7 100644 ---- a/sherlock265/VideoDecoder.cc -+++ b/sherlock265/VideoDecoder.cc -@@ -237,7 +237,7 @@ void VideoDecoder::convert_frame_swscale(const de265_image* img, QImage & qimg) - } - width = img->get_width(); - height = img->get_height(); -- sws = sws_getContext(width, height, PIX_FMT_YUV420P, width, height, PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); -+ sws = sws_getContext(width, height, AV_PIX_FMT_YUV420P, width, height, AV_PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); - } - - int stride[3]; -
View file
libde265-1.0.3.tar.gz/libde265-1.0.2
Deleted
-(directory)
View file
libde265-1.0.3.tar.gz/libde265-1.0.2/COPYING
Deleted
@@ -1,853 +0,0 @@ -The library `libde265` is distributed under the terms of the GNU Lesser -General Public License. The sample applications are distributed under -the terms of the GNU General Public License. - -License texts below and in the `COPYING` files of the corresponding -subfolders. - ----------------------------------------------------------------------- - - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. - ----------------------------------------------------------------------- - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - 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 3 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, see <http://www.gnu.org/licenses/>. - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - <program> Copyright (C) <year> <name of author> - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -<http://www.gnu.org/licenses/>. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -<http://www.gnu.org/philosophy/why-not-lgpl.html>. - -----------------------------------------------------------------------
View file
libde265-1.0.3.tar.gz/.travis.yml -> libde265-1.0.5.tar.gz/.travis.yml
Changed
@@ -3,6 +3,11 @@ language: cpp compiler: - gcc +dist: trusty +cache: ccache +addons: + apt: + update: true env: - HOST= WINE= DECODESTREAMS= - HOST=i686-w64-mingw32 WINE=wine DECODESTREAMS= @@ -28,6 +33,15 @@ include: - compiler: clang env: HOST= WINE= DECODESTREAMS= + - os: osx + compiler: clang + env: HOST= WINE= DECODESTREAMS= + - os: osx + compiler: gcc + env: HOST= WINE= DECODESTREAMS= + - os: osx + compiler: gcc + env: HOST=cmake WINE= DECODESTREAMS= allow_failures: - env: HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING= - env: HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING=--single-threaded @@ -45,45 +59,13 @@ - env: HOST= WINE= DECODESTREAMS=libde265-teststreams-wpp-nolf THREADING=--single-threaded before_install: - - sh -c "if [ ! -z '$DECODESTREAMS' ]; then sudo add-apt-repository -y ppa:strukturag/libde265; fi" - - sudo apt-get update -qq - - sh -c "if [ -z '$HOST' ]; then sudo apt-get install -qq valgrind libsdl-dev libqt4-dev libswscale-dev; fi" - - sh -c "if [ -z '$HOST' ] && [ -z '$DECODESTREAMS' ]; then sudo apt-get install -qq devscripts; fi" - - sh -c "if [ ! -z '$WINE' ]; then sudo apt-get install -qq wine; fi" - - sh -c "if [ '$WINE' = 'wine' ]; then sudo apt-get install -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-i686-dev; fi" - - sh -c "if [ '$WINE' = 'wine64' ]; then sudo apt-get install -qq gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev; fi" - - sh -c "if ( echo '$HOST' | grep -q '^arm' ); then sudo apt-get install -qq g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf qemu-user; fi" - - sh -c "if [ ! -z '$DECODESTREAMS' ]; then sudo apt-get install $DECODESTREAMS; fi" - - sudo apt-get install cmake + - ./scripts/ci-before-install-$TRAVIS_OS_NAME.sh install: - git clone https://github.com/strukturag/libde265-data.git before_script: - - if [ "$HOST" != "cmake" ]; then ./autogen.sh; fi - - if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then unset CC; fi - - if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then unset CXX; fi - - if [ "$HOST" != "cmake" ]; then ./configure --host=$HOST; fi - - if [ "$HOST" = "cmake" ]; then cmake .; fi - -# inter-streams are valgrinded without SSE, because it gives too many false positives in put_hevc_qpel() -# intra-streams use SSE, because they run fine in valgrind + - ./scripts/ci-before-script.sh script: - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then ./scripts/check_licenses.sh; fi" - - make - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then make dist && mkdir dist-test && cd dist-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && ./configure && make; fi" - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then make dist && mkdir dist-cmake-test && cd dist-cmake-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && cmake . && make; fi" - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 --gen-suppressions=all --suppressions=valgrind.supp ./dec265/.libs/dec265 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 --gen-suppressions=all --suppressions=valgrind.supp ./dec265/.libs/dec265 -t 4 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 --gen-suppressions=all --suppressions=valgrind.supp ./dec265/.libs/dec265 -0 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - - sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 --gen-suppressions=all --suppressions=valgrind.supp ./dec265/.libs/dec265 -0 -t 4 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - - sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=\"/usr/lib/gcc/$HOST/4.8/\;/usr/$HOST/lib\" $WINE ./dec265/dec265.exe -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - - sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=\"/usr/lib/gcc/$HOST/4.8/\;/usr/$HOST/lib\" $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - - sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=\"/usr/lib/gcc/$HOST/4.8/\;/usr/$HOST/lib\" $WINE ./dec265/dec265.exe -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - - sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=\"/usr/lib/gcc/$HOST/4.8/\;/usr/$HOST/lib\" $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - - sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - #- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi" - - sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - #- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi" - - sh -c "if [ ! -z '$DECODESTREAMS' ]; then python scripts/decodestreams.py $THREADING /var/lib/libde265-teststreams; fi" + - ./scripts/ci-run.sh
View file
libde265-1.0.3.tar.gz/CMakeLists.txt -> libde265-1.0.5.tar.gz/CMakeLists.txt
Changed
@@ -1,18 +1,32 @@ -project (libde265) -cmake_minimum_required (VERSION 2.8.8) +cmake_minimum_required (VERSION 3.3.2) + +project (libde265 + LANGUAGES C CXX + VERSION 1.0.5 +) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) # The version number. -set (NUMERIC_VERSION 0x01000000) -set (PACKAGE_VERSION 1.0.0) +set (NUMERIC_VERSION 0x01000500) +set (PACKAGE_VERSION ${PROJECT_VERSION}) include (${CMAKE_ROOT}/Modules/CheckCCompilerFlag.cmake) include (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) -include (${CMAKE_ROOT}/Modules/FindSDL.cmake) -include (${CMAKE_ROOT}/Modules/FindThreads.cmake) + +include(GNUInstallDirs) +include(CheckFunctionExists) + +find_package(SDL) +find_package(Threads REQUIRED) CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H) CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H) CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H) +CHECK_FUNCTION_EXISTS(posix_memalign HAVE_POSIX_MEMALIGN) if (HAVE_MALLOC_H) add_definitions(-DHAVE_MALLOC_H) @@ -23,19 +37,14 @@ if (HAVE_STDBOOL_H) add_definitions(-DHAVE_STDBOOL_H) endif() +if (HAVE_POSIX_MEMALIGN) + add_definitions(-DHAVE_POSIX_MEMALIGN) +endif() -configure_file ( - "${PROJECT_SOURCE_DIR}/libde265/de265-version.h.in" - "${PROJECT_BINARY_DIR}/libde265/de265-version.h" -) +configure_file (libde265/de265-version.h.in libde265/de265-version.h) -if(CMAKE_COMPILER_IS_GNUCXX) - set(GCC 1) - add_definitions(-Wall) - set(CMAKE_CXX_FLAGS "-std=gnu++0x ${CMAKE_CXX_FLAGS}") -elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") +if(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES Clang) add_definitions(-Wall) - set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") endif() option(DISABLE_SSE "Disable SSE optimizations") @@ -54,13 +63,6 @@ include_directories ("${PROJECT_SOURCE_DIR}/extra") add_definitions(-DHAVE_STDINT_H) add_definitions(-DHAVE_STDBOOL_H) - add_definitions(-DNOMINMAX) -endif() - -if(UNIX) - set(LIBDE265_LIBRARY_NAME de265) -else() - set(LIBDE265_LIBRARY_NAME libde265) endif() add_subdirectory (libde265)
View file
libde265-1.0.3.tar.gz/COPYING -> libde265-1.0.5.tar.gz/COPYING
Changed
@@ -1,9 +1,7 @@ -The library `libde265` is distributed under the terms of the GNU Lesser -General Public License. The sample applications are distributed under -the terms of the GNU General Public License. +* The library `libde265` is distributed under the terms of the GNU Lesser General Public License. +* The sample applications are distributed under the terms of the MIT license. -License texts below and in the `COPYING` files of the corresponding -subfolders. +License texts below and in the `COPYING` files of the corresponding subfolders. ---------------------------------------------------------------------- @@ -851,3 +849,23 @@ <http://www.gnu.org/philosophy/why-not-lgpl.html>. ---------------------------------------------------------------------- + + MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
View file
libde265-1.0.3.tar.gz/INSTALL -> libde265-1.0.5.tar.gz/INSTALL
Changed
@@ -1,8 +1,8 @@ Installation Instructions ************************* -Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, -Inc. + Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software +Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -12,97 +12,96 @@ Basic Installation ================== - Briefly, the shell command `./configure && make && make install' + Briefly, the shell command './configure && make && make install' should configure, build, and install this package. The following -more-detailed instructions are generic; see the `README' file for +more-detailed instructions are generic; see the 'README' file for instructions specific to this package. Some packages provide this -`INSTALL' file but do not implement all of the features documented +'INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. - The `configure' shell script attempts to guess correct values for + The 'configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that +those values to create a 'Makefile' in each directory of the package. +It may also create one or more '.h' files containing system-dependent +definitions. Finally, it creates a shell script 'config.status' that you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). +file 'config.log' containing compiler output (useful mainly for +debugging 'configure'). - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. Caching is -disabled by default to prevent problems with accidental use of stale -cache files. + It can also use an optional file (typically called 'config.cache' and +enabled with '--cache-file=config.cache' or simply '-C') that saves the +results of its tests to speed up reconfiguring. Caching is disabled by +default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can +to figure out how 'configure' could check whether to do them, and mail +diffs or instructions to the address given in the 'README' so they can be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you +some point 'config.cache' contains results you don't want to keep, you may remove or edit it. - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You need `configure.ac' if -you want to change it or regenerate `configure' using a newer version -of `autoconf'. + The file 'configure.ac' (or 'configure.in') is used to create +'configure' by a program called 'autoconf'. You need 'configure.ac' if +you want to change it or regenerate 'configure' using a newer version of +'autoconf'. The simplest way to compile this package is: - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. + 1. 'cd' to the directory containing the package's source code and type + './configure' to configure the package for your system. - Running `configure' might take a while. While running, it prints + Running 'configure' might take a while. While running, it prints some messages telling which features it is checking for. - 2. Type `make' to compile the package. + 2. Type 'make' to compile the package. - 3. Optionally, type `make check' to run any self-tests that come with + 3. Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. - 4. Type `make install' to install the programs and any data files and + 4. Type 'make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular - user, and only the `make install' phase executed with root + user, and only the 'make install' phase executed with root privileges. - 5. Optionally, type `make installcheck' to repeat any self-tests, but + 5. Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a - regular user, particularly if the prior `make install' required + regular user, particularly if the prior 'make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly + source code directory by typing 'make clean'. To also remove the + files that 'configure' created (so you can compile the package for + a different kind of computer), type 'make distclean'. There is + also a 'make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. - 7. Often, you can also type `make uninstall' to remove the installed + 7. Often, you can also type 'make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. - 8. Some packages, particularly those that use Automake, provide `make + 8. Some packages, particularly those that use Automake, provide 'make distcheck', which can by used by developers to test that all other - targets like `make install' and `make uninstall' work correctly. + targets like 'make install' and 'make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that -the `configure' script does not know about. Run `./configure --help' +the 'configure' script does not know about. Run './configure --help' for details on some of the pertinent environment variables. - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: + You can give 'configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here is +an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix @@ -113,21 +112,21 @@ You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their -own directory. To do this, you can use GNU `make'. `cd' to the +own directory. To do this, you can use GNU 'make'. 'cd' to the directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. This -is known as a "VPATH" build. +the 'configure' script. 'configure' automatically checks for the source +code in the directory that 'configure' is in and in '..'. This is known +as a "VPATH" build. - With a non-GNU `make', it is safer to compile the package for one + With a non-GNU 'make', it is safer to compile the package for one architecture at a time in the source code directory. After you have -installed the package for one architecture, use `make distclean' before +installed the package for one architecture, use 'make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or -"universal" binaries--by specifying multiple `-arch' options to the -compiler but only a single `-arch' option to the preprocessor. Like +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ @@ -136,105 +135,104 @@ This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results -using the `lipo' tool if you have problems. +using the 'lipo' tool if you have problems. Installation Names ================== - By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX', where PREFIX must be an + By default, 'make install' installs the package's commands under +'/usr/local/bin', include files under '/usr/local/include', etc. You +can specify an installation prefix other than '/usr/local' by giving +'configure' the option '--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses +pass the option '--exec-prefix=PREFIX' to 'configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. In general, the -default for these options is expressed in terms of `${prefix}', so that -specifying just `--prefix' will affect all of the other directory +options like '--bindir=DIR' to specify different values for particular +kinds of files. Run 'configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the default +for these options is expressed in terms of '${prefix}', so that +specifying just '--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the -correct locations to `configure'; however, many packages provide one or +correct locations to 'configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the -`make install' command line to change installation locations without +'make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each -affected directory. For example, `make install +affected directory. For example, 'make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of -`${prefix}'. Any directories that were specified during `configure', -but not in terms of `${prefix}', must each be overridden at install -time for the entire installation to be relocated. The approach of -makefile variable overrides for each directory variable is required by -the GNU Coding Standards, and ideally causes no recompilation. -However, some platforms have known limitations with the semantics of -shared libraries that end up requiring recompilation when using this -method, particularly noticeable in packages that use GNU Libtool. - - The second method involves providing the `DESTDIR' variable. For -example, `make install DESTDIR=/alternate/directory' will prepend -`/alternate/directory' before all installation names. The approach of -`DESTDIR' overrides is not required by the GNU Coding Standards, and +'${prefix}'. Any directories that were specified during 'configure', +but not in terms of '${prefix}', must each be overridden at install time +for the entire installation to be relocated. The approach of makefile +variable overrides for each directory variable is required by the GNU +Coding Standards, and ideally causes no recompilation. However, some +platforms have known limitations with the semantics of shared libraries +that end up requiring recompilation when using this method, particularly +noticeable in packages that use GNU Libtool. + + The second method involves providing the 'DESTDIR' variable. For +example, 'make install DESTDIR=/alternate/directory' will prepend +'/alternate/directory' before all installation names. The approach of +'DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even -when some directory options were not specified in terms of `${prefix}' -at `configure' time. +when some directory options were not specified in terms of '${prefix}' +at 'configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the +with an extra prefix or suffix on their names by giving 'configure' the +option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. + + Some packages pay attention to '--enable-FEATURE' options to +'configure', where FEATURE indicates an optional part of the package. +They may also pay attention to '--with-PACKAGE' options, where PACKAGE +is something like 'gnu-as' or 'x' (for the X Window System). The +'README' should mention any '--enable-' and '--with-' options that the package recognizes. - For packages that use the X Window System, `configure' can usually + For packages that use the X Window System, 'configure' can usually find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. +you can use the 'configure' options '--x-includes=DIR' and +'--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the -execution of `make' will be. For these packages, running `./configure +execution of 'make' will be. For these packages, running './configure --enable-silent-rules' sets the default to minimal output, which can be -overridden with `make V=1'; while running `./configure +overridden with 'make V=1'; while running './configure --disable-silent-rules' sets the default to verbose, which can be -overridden with `make V=0'. +overridden with 'make V=0'. Particular systems ================== - On HP-UX, the default C compiler is not ANSI C compatible. If GNU -CC is not installed, it is recommended to use the following options in + On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC +is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. - HP-UX `make' updates targets which have the same time stamps as -their prerequisites, which makes it generally unusable when shipped -generated files such as `configure' are involved. Use GNU `make' -instead. + HP-UX 'make' updates targets which have the same time stamps as their +prerequisites, which makes it generally unusable when shipped generated +files such as 'configure' are involved. Use GNU 'make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot -parse its `<wchar.h>' header file. The option `-nodtk' can be used as -a workaround. If GNU CC is not installed, it is therefore recommended -to try +parse its '<wchar.h>' header file. The option '-nodtk' can be used as a +workaround. If GNU CC is not installed, it is therefore recommended to +try ./configure CC="cc" @@ -242,26 +240,26 @@ ./configure CC="cc -nodtk" - On Solaris, don't put `/usr/ucb' early in your `PATH'. This + On Solaris, don't put '/usr/ucb' early in your 'PATH'. This directory contains several dysfunctional programs; working variants of -these programs are available in `/usr/bin'. So, if you need `/usr/ucb' -in your `PATH', put it _after_ `/usr/bin'. +these programs are available in '/usr/bin'. So, if you need '/usr/ucb' +in your 'PATH', put it _after_ '/usr/bin'. - On Haiku, software installed for all users goes in `/boot/common', -not `/usr/local'. It is recommended to use the following options: + On Haiku, software installed for all users goes in '/boot/common', +not '/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== - There may be some features `configure' cannot figure out + There may be some features 'configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the -_same_ architectures, `configure' can figure that out, but if it prints +_same_ architectures, 'configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: +'--build=TYPE' option. TYPE can either be a short name for the system +type, such as 'sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM @@ -270,101 +268,101 @@ OS KERNEL-OS - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't + See the file 'config.sub' for the possible values of each field. If +'config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will +use the option '--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. +eventually be run) with '--host=TYPE'. Sharing Defaults ================ - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. + If you want to set default values for 'configure' scripts to share, +you can create a site shell script called 'config.site' that gives +default values for variables like 'CC', 'cache_file', and 'prefix'. +'configure' looks for 'PREFIX/share/config.site' if it exists, then +'PREFIX/etc/config.site' if it exists. Or, you can set the +'CONFIG_SITE' environment variable to the location of the site script. +A warning: not all 'configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run +environment passed to 'configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: +them in the 'configure' command line, using 'VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc -causes the specified `gcc' to be used as the C compiler (unless it is +causes the specified 'gcc' to be used as the C compiler (unless it is overridden in the site shell script). -Unfortunately, this technique does not work for `CONFIG_SHELL' due to -an Autoconf limitation. Until the limitation is lifted, you can use -this workaround: +Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an +Autoconf limitation. Until the limitation is lifted, you can use this +workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash -`configure' Invocation +'configure' Invocation ====================== - `configure' recognizes the following options to control how it + 'configure' recognizes the following options to control how it operates. -`--help' -`-h' - Print a summary of all of the options to `configure', and exit. +'--help' +'-h' + Print a summary of all of the options to 'configure', and exit. -`--help=short' -`--help=recursive' +'--help=short' +'--help=recursive' Print a summary of the options unique to this package's - `configure', and exit. The `short' variant lists options used - only in the top level, while the `recursive' variant lists options - also present in any nested packages. + 'configure', and exit. The 'short' variant lists options used only + in the top level, while the 'recursive' variant lists options also + present in any nested packages. -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' +'--version' +'-V' + Print the version of Autoconf used to generate the 'configure' script, and exit. -`--cache-file=FILE' +'--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to + traditionally 'config.cache'. FILE defaults to '/dev/null' to disable caching. -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. +'--config-cache' +'-C' + Alias for '--cache-file=config.cache'. -`--quiet' -`--silent' -`-q' +'--quiet' +'--silent' +'-q' Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error + suppress all normal output, redirect it to '/dev/null' (any error messages will still be shown). -`--srcdir=DIR' +'--srcdir=DIR' Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. + 'configure' can determine that directory automatically. -`--prefix=DIR' - Use DIR as the installation prefix. *note Installation Names:: - for more details, including other options available for fine-tuning - the installation locations. +'--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: for + more details, including other options available for fine-tuning the + installation locations. -`--no-create' -`-n' +'--no-create' +'-n' Run the configure checks, but stop before creating any output files. -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. +'configure' also accepts some other, not widely useful, options. Run +'configure --help' for more details.
View file
libde265-1.0.3.tar.gz/Makefile.am -> libde265-1.0.5.tar.gz/Makefile.am
Changed
@@ -8,7 +8,10 @@ SUBDIRS+=dec265 endif +if ENABLE_ENCODER SUBDIRS+=enc265 +endif + SUBDIRS+=tools SUBDIRS+=acceleration-speed
View file
libde265-1.0.3.tar.gz/Makefile.in -> libde265-1.0.5.tar.gz/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -90,7 +90,8 @@ host_triplet = @host@ target_triplet = @target@ @ENABLE_DEC265_TRUE@am__append_1 = dec265 -@ENABLE_SHERLOCK265_TRUE@am__append_2 = sherlock265 +@ENABLE_ENCODER_TRUE@am__append_2 = enc265 +@ENABLE_SHERLOCK265_TRUE@am__append_3 = sherlock265 subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \ @@ -390,8 +391,8 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -SUBDIRS = libde265 $(am__append_1) enc265 tools acceleration-speed \ - $(am__append_2) +SUBDIRS = libde265 $(am__append_1) $(am__append_2) tools \ + acceleration-speed $(am__append_3) ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = .travis.yml \ autogen.sh \ @@ -661,7 +662,7 @@ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir @@ -687,7 +688,7 @@ @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir @@ -705,7 +706,7 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ @@ -715,7 +716,7 @@ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac
View file
libde265-1.0.3.tar.gz/README.md -> libde265-1.0.5.tar.gz/README.md
Changed
@@ -135,7 +135,7 @@ The library `libde265` is distributed under the terms of the GNU Lesser General Public License. The sample applications are distributed under -the terms of the GNU General Public License. +the terms of the MIT license. See `COPYING` for more details.
View file
libde265-1.0.3.tar.gz/acceleration-speed/Makefile.am -> libde265-1.0.5.tar.gz/acceleration-speed/Makefile.am
Changed
@@ -1,7 +1,7 @@ bin_PROGRAMS = acceleration_speed -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) acceleration_speed_DEPENDENCIES = ../libde265/libde265.la acceleration_speed_CXXFLAGS =
View file
libde265-1.0.3.tar.gz/acceleration-speed/Makefile.in -> libde265-1.0.5.tar.gz/acceleration-speed/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -354,7 +354,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) acceleration_speed_DEPENDENCIES = ../libde265/libde265.la acceleration_speed_CXXFLAGS = acceleration_speed_LDFLAGS =
View file
libde265-1.0.3.tar.gz/aclocal.m4 -> libde265-1.0.5.tar.gz/aclocal.m4
Changed
@@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.15 -*- Autoconf -*- +# generated automatically by aclocal 1.15.1 -*- Autoconf -*- -# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# Copyright (C) 1996-2017 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -296,7 +296,7 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR -# Copyright (C) 2002-2014 Free Software Foundation, Inc. +# Copyright (C) 2002-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -311,7 +311,7 @@ [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15], [], +m4_if([$1], [1.15.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -327,14 +327,14 @@ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15])dnl +[AM_AUTOMAKE_VERSION([1.15.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # Figure out how to run the assembler. -*- Autoconf -*- -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -354,7 +354,7 @@ # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -406,7 +406,7 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2014 Free Software Foundation, Inc. +# Copyright (C) 1997-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -437,7 +437,7 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -628,7 +628,7 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -704,7 +704,7 @@ # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# Copyright (C) 1996-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -901,7 +901,7 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -922,7 +922,7 @@ fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2014 Free Software Foundation, Inc. +# Copyright (C) 2003-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -943,7 +943,7 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -993,7 +993,7 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2014 Free Software Foundation, Inc. +# Copyright (C) 1997-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1032,7 +1032,7 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1061,7 +1061,7 @@ AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Copyright (C) 1999-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1108,7 +1108,7 @@ # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1127,7 +1127,7 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# Copyright (C) 1996-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1208,7 +1208,7 @@ rm -f conftest.file ]) -# Copyright (C) 2009-2014 Free Software Foundation, Inc. +# Copyright (C) 2009-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1268,7 +1268,7 @@ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# Copyright (C) 2001-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1296,7 +1296,7 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2014 Free Software Foundation, Inc. +# Copyright (C) 2006-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1315,7 +1315,7 @@ # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2014 Free Software Foundation, Inc. +# Copyright (C) 2004-2017 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it,
View file
libde265-1.0.3.tar.gz/config.guess -> libde265-1.0.5.tar.gz/config.guess
Changed
@@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2015 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2015-08-20' +timestamp='2018-02-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. +# along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -27,7 +27,7 @@ # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to <config-patches@gnu.org>. @@ -39,7 +39,7 @@ Output the configuration name of the system \`$me' is run on. -Operation modes: +Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit @@ -50,7 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2015 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -107,9 +107,9 @@ dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; + ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; @@ -132,14 +132,14 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "${UNAME_SYSTEM}" in +case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu - eval $set_cc_for_build - cat <<-EOF > $dummy.c + eval "$set_cc_for_build" + cat <<-EOF > "$dummy.c" #include <features.h> #if defined(__UCLIBC__) LIBC=uclibc @@ -149,13 +149,20 @@ LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + + # If ldd exists, use it to detect musl libc. + if command -v ldd >/dev/null && \ + ldd --version 2>&1 | grep -q ^musl + then + LIBC=musl + fi ;; esac # Note: order is significant - the case branches are not exclusive. -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, @@ -169,27 +176,30 @@ # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - /sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || \ + "/sbin/$sysctl" 2>/dev/null || \ + "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` - machine=${arch}${endian}-unknown + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine="${arch}${endian}"-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build + # to ELF recently (or will in the future) and ABI. + case "$UNAME_MACHINE_ARCH" in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then @@ -205,10 +215,10 @@ ;; esac # Determine ABI tags. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release @@ -216,42 +226,55 @@ # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in + case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) - release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}${abi}" + echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" + exit ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" + exit ;; + *:MidnightBSD:*:*) + echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} + echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) - echo ${UNAME_MACHINE}-unknown-sortix + echo "$UNAME_MACHINE"-unknown-sortix exit ;; + *:Redox:*:*) + echo "$UNAME_MACHINE"-unknown-redox + exit ;; + mips:OSF1:*.*) + echo mips-dec-osf1 + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -268,63 +291,54 @@ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") - UNAME_MACHINE="alpha" ;; + UNAME_MACHINE=alpha ;; "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; + UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; + UNAME_MACHINE=alpha ;; "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; + UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; + UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; + UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; + UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; + UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; + UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; + UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; + UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; + UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; + UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; + UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; + UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos + echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos + echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition @@ -336,7 +350,7 @@ echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} + echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos @@ -363,38 +377,38 @@ sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} + echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" + eval "$set_cc_for_build" + SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then - SUN_ARCH="x86_64" + SUN_ARCH=x86_64 fi fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in @@ -403,25 +417,25 @@ ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) - echo sparc-sun-sunos${UNAME_RELEASE} + echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} + echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not @@ -432,44 +446,44 @@ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} + echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} + echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} + echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} + echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} + echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} + echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} + echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} + echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { @@ -478,23 +492,23 @@ #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} + echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax @@ -520,17 +534,17 @@ AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] + if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ + [ "$TARGET_BINARY_INTERFACE"x = x ] then - echo m88k-dg-dgux${UNAME_RELEASE} + echo m88k-dg-dgux"$UNAME_RELEASE" else - echo m88k-dg-dguxbcs${UNAME_RELEASE} + echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else - echo i586-dg-dgux${UNAME_RELEASE} + echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) @@ -547,7 +561,7 @@ echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id @@ -559,14 +573,14 @@ if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include <sys/systemcfg.h> main() @@ -577,7 +591,7 @@ exit(0); } EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else @@ -591,7 +605,7 @@ exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc @@ -600,18 +614,18 @@ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} + echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) + ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx @@ -626,28 +640,28 @@ echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + case "$UNAME_MACHINE" in + 9000/31?) HP_ARCH=m68000 ;; + 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + case "$sc_cpu_version" in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + case "$sc_kernel_bits" in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + if [ "$HP_ARCH" = "" ]; then + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include <stdlib.h> @@ -680,13 +694,13 @@ exit (0); } EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ ${HP_ARCH} = "hppa2.0w" ] + if [ "$HP_ARCH" = hppa2.0w ] then - eval $set_cc_for_build + eval "$set_cc_for_build" # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler @@ -697,23 +711,23 @@ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then - HP_ARCH="hppa2.0w" + HP_ARCH=hppa2.0w else - HP_ARCH="hppa64" + HP_ARCH=hppa64 fi fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} + echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include <unistd.h> int main () @@ -738,11 +752,11 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) @@ -751,7 +765,7 @@ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) @@ -759,9 +773,9 @@ exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk + echo "$UNAME_MACHINE"-unknown-osf1mk else - echo ${UNAME_MACHINE}-unknown-osf1 + echo "$UNAME_MACHINE"-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) @@ -786,127 +800,109 @@ echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} + echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in + case "$UNAME_PROCESSOR" in amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; esac + echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin + echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 + echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 + echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 + echo "$UNAME_MACHINE"-pc-msys exit ;; i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 + echo "$UNAME_MACHINE"-pc-pw32 exit ;; *:Interix*:*) - case ${UNAME_MACHINE} in + case "$UNAME_MACHINE" in x86) - echo i586-pc-interix${UNAME_RELEASE} + echo i586-pc-interix"$UNAME_RELEASE" exit ;; authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} + echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; IA64) - echo ia64-unknown-interix${UNAME_RELEASE} + echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin + echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix + echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -919,61 +915,64 @@ EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="gnulibc1" ; fi - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; + k1om:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el @@ -987,64 +986,74 @@ #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" + test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; + mips64el:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} + echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} + echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} + echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; + PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; + PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; + *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} + echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} + echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} + echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} + echo powerpcle-unknown-linux-"$LIBC" + exit ;; + riscv32:Linux:*:* | riscv64:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} + echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + if objdump -f /bin/sh | grep -q elf32-x86-64; then + echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 + else + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + fi exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. @@ -1058,34 +1067,34 @@ # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx + echo "$UNAME_MACHINE"-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop + echo "$UNAME_MACHINE"-unknown-stop exit ;; i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos + echo "$UNAME_MACHINE"-unknown-atheos exit ;; i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable + echo "$UNAME_MACHINE"-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} + echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp + echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + i*86:*:4.*:*) + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) @@ -1095,12 +1104,12 @@ *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL + echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" elif /bin/uname -X 2>/dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 @@ -1110,9 +1119,9 @@ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv32 + echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) @@ -1120,7 +1129,7 @@ # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that + # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; @@ -1132,9 +1141,9 @@ exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) @@ -1154,9 +1163,9 @@ test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; @@ -1165,28 +1174,28 @@ test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} + echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} + echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} + echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} + echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} + echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 @@ -1197,7 +1206,7 @@ *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 + echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi @@ -1217,23 +1226,23 @@ exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos + echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} + echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv"$UNAME_RELEASE" else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. @@ -1252,46 +1261,56 @@ echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} + echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} + echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} + echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} + echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} + echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} + echo sx8r-nec-superux"$UNAME_RELEASE" + exit ;; + SX-ACE:SUPER-UX:*:*) + echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} + echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build + eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub @@ -1302,27 +1321,33 @@ # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then + if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; - NEO-?:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} + NEO-*:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} + echo nse-tandem-nsk"$UNAME_RELEASE" + exit ;; + NSR-*:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk"$UNAME_RELEASE" exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} + NSV-*:NONSTOP_KERNEL:*:*) + echo nsv-tandem-nsk"$UNAME_RELEASE" + exit ;; + NSX-*:NONSTOP_KERNEL:*:*) + echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux @@ -1331,18 +1356,18 @@ echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. - if test "$cputype" = "386"; then + if test "$cputype" = 386; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi - echo ${UNAME_MACHINE}-unknown-plan9 + echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 @@ -1363,14 +1388,14 @@ echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} + echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in + case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; @@ -1379,34 +1404,48 @@ echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos + echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros + echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx + echo "$UNAME_MACHINE"-unknown-esx + exit ;; + amd64:Isilon\ OneFS:*:*) + echo x86_64-unknown-onefs exit ;; esac +echo "$0: unable to guess system type" >&2 + +case "$UNAME_MACHINE:$UNAME_SYSTEM" in + mips:Linux | mips64:Linux) + # If we got here on MIPS GNU/Linux, output extra information. + cat >&2 <<EOF + +NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize +the system type. Please install a C compiler and try again. +EOF + ;; +esac + cat >&2 <<EOF -$0: unable to guess system type -This script, last modified $timestamp, has failed to recognize -the operating system you are using. It is advised that you -download the most up to date version of the config scripts from +This script (version $timestamp), has failed to recognize the +operating system you are using. If your script is old, overwrite *all* +copies of config.guess and config.sub with the latest versions from: - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess and - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub -If the version you run ($0) is already up to date, please -send the following data and any information you think might be -pertinent to <config-patches@gnu.org> in order to provide the needed -information to handle your system. +If $0 has already been updated, send the following data and any +information you think might be pertinent to config-patches@gnu.org to +provide the necessary information to handle your system. config.guess timestamp = $timestamp @@ -1425,16 +1464,16 @@ /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" EOF exit 1 # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'write-file-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'"
View file
libde265-1.0.3.tar.gz/config.sub -> libde265-1.0.5.tar.gz/config.sub
Changed
@@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2015 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2015-08-20' +timestamp='2018-02-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. +# along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -33,7 +33,7 @@ # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD +# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases @@ -53,12 +53,11 @@ me=`echo "$0" | sed -e 's,.*/,,'` usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. -Operation modes: +Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit @@ -68,7 +67,7 @@ version="\ GNU config.sub ($timestamp) -Copyright 1992-2015 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -95,7 +94,7 @@ *local*) # First pass through any local machine types. - echo $1 + echo "$1" exit ;; * ) @@ -113,24 +112,24 @@ # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ - kopensolaris*-gnu* | \ + kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` + basic_machine=`echo "$1" | sed 's/-[^-]*$//'` + if [ "$basic_machine" != "$1" ] + then os=`echo "$1" | sed 's/.*-/-/'` else os=; fi ;; esac @@ -179,44 +178,44 @@ ;; -sco6) os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 @@ -228,10 +227,7 @@ os=-lynxos ;; -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` ;; -psos*) os=-psos @@ -264,7 +260,7 @@ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ - | i370 | i860 | i960 | ia64 \ + | i370 | i860 | i960 | ia16 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ @@ -300,8 +296,9 @@ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ + | pdp10 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pru \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ @@ -315,7 +312,7 @@ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ - | we32k \ + | wasm32 \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown @@ -336,7 +333,7 @@ basic_machine=$basic_machine-unknown os=-none ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; ms1) basic_machine=mt-unknown @@ -365,7 +362,7 @@ ;; # Object if more than one company name word. *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. @@ -388,7 +385,7 @@ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ - | i*86-* | i860-* | i960-* | ia64-* \ + | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ @@ -429,6 +426,7 @@ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ @@ -445,6 +443,7 @@ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ + | wasm32-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ @@ -458,7 +457,7 @@ # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) - basic_machine=i386-unknown + basic_machine=i386-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) @@ -492,7 +491,7 @@ basic_machine=x86_64-pc ;; amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl @@ -521,7 +520,7 @@ basic_machine=i386-pc os=-aros ;; - asmjs) + asmjs) basic_machine=asmjs-unknown ;; aux) @@ -537,7 +536,7 @@ os=-linux ;; blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) @@ -545,13 +544,13 @@ os=-cnk ;; c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray @@ -640,10 +639,18 @@ basic_machine=rs6000-bull os=-bosx ;; - dpx2* | dpx2*-bull) + dpx2*) basic_machine=m68k-bull os=-sysv3 ;; + e500v[12]) + basic_machine=powerpc-unknown + os=$os"spe" + ;; + e500v[12]-*) + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` + os=$os"spe" + ;; ebmon29k) basic_machine=a29k-amd os=-ebmon @@ -733,9 +740,6 @@ hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; - hppa-next) - os=-nextstep3 - ;; hppaosf) basic_machine=hppa1.1-hp os=-osf @@ -748,26 +752,26 @@ basic_machine=i370-ibm ;; i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; - i386-vsta | vsta) + vsta) basic_machine=i386-unknown os=-vsta ;; @@ -786,19 +790,16 @@ os=-sysv ;; leon-*|leon[3-9]-*) - basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; - m88k-omron*) - basic_machine=m88k-omron - ;; magnum | m3230) basic_machine=mips-mips os=-sysv @@ -830,10 +831,10 @@ os=-mint ;; mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k @@ -852,7 +853,7 @@ os=-msdos ;; ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc @@ -894,7 +895,7 @@ basic_machine=v70-nec os=-sysv ;; - next | m*-next ) + next | m*-next) basic_machine=m68k-next case $os in -nextstep* ) @@ -939,6 +940,12 @@ nsr-tandem) basic_machine=nsr-tandem ;; + nsv-tandem) + basic_machine=nsv-tandem + ;; + nsx-tandem) + basic_machine=nsx-tandem + ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf @@ -971,7 +978,7 @@ os=-linux ;; parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) @@ -987,7 +994,7 @@ basic_machine=i386-pc ;; pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc @@ -1002,16 +1009,16 @@ basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould @@ -1021,23 +1028,23 @@ ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; - ppcle | powerpclittle | ppc-le | powerpc-little) + ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) + ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm @@ -1091,17 +1098,10 @@ sequent) basic_machine=i386-sequent ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; sh5el) basic_machine=sh5le-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) + simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -1120,7 +1120,7 @@ os=-sysv4 ;; strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun @@ -1242,6 +1242,9 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + x64) + basic_machine=x86_64-pc + ;; xbox) basic_machine=i686-pc os=-mingw32 @@ -1250,20 +1253,12 @@ basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; none) basic_machine=none-none os=-none @@ -1292,10 +1287,6 @@ vax) basic_machine=vax-dec ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; pdp11) basic_machine=pdp11-dec ;; @@ -1305,9 +1296,6 @@ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; cydra) basic_machine=cydra-cydrome ;; @@ -1327,7 +1315,7 @@ # Make sure to match an already-canonicalized machine name. ;; *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; esac @@ -1335,10 +1323,10 @@ # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` ;; *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` ;; *) ;; @@ -1349,8 +1337,8 @@ if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases that might get confused + # with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux @@ -1361,18 +1349,19 @@ -solaris) os=-solaris2 ;; - -svr4*) - os=-sysv4 - ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; - # First accept the basic system types. + # es1800 is here to avoid being matched by es* (a different OS) + -es1800*) + os=-ose + ;; + # Now accept the basic system types. # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. + # Each alternative MUST end in a * to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ @@ -1382,24 +1371,26 @@ | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -bitrig* | -openbsd* | -solidbsd* \ + | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ + | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ + | -midnightbsd*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1416,12 +1407,12 @@ -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + -sim | -xray | -os68k* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) - os=`echo $os | sed -e 's|mac|macos|'` + os=`echo "$os" | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc @@ -1430,10 +1421,10 @@ os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` + os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` + os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition @@ -1444,12 +1435,6 @@ -wince*) os=-wince ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; -utek*) os=-bsd ;; @@ -1474,7 +1459,7 @@ -nova*) os=-rtmk-nova ;; - -ns2 ) + -ns2) os=-nextstep2 ;; -nsk*) @@ -1496,7 +1481,7 @@ -oss*) os=-sysv3 ;; - -svr4) + -svr4*) os=-sysv4 ;; -svr3) @@ -1511,32 +1496,38 @@ -ose*) os=-ose ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; - -aros*) - os=-aros - ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; + -pikeos*) + # Until real need of OS specific support for + # particular features comes up, bare metal + # configurations are quite functional. + case $basic_machine in + arm*) + os=-eabi + ;; + *) + os=-elf + ;; + esac + ;; -nacl*) ;; + -ios) + ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac @@ -1626,12 +1617,12 @@ sparc-* | *-sun) os=-sunos4.1.1 ;; + pru-*) + os=-elf + ;; *-be) os=-beos ;; - *-haiku) - os=-haiku - ;; *-ibm) os=-aix ;; @@ -1671,7 +1662,7 @@ m88k-omron*) os=-luna ;; - *-next ) + *-next) os=-nextstep ;; *-sequent) @@ -1686,9 +1677,6 @@ i370-*) os=-mvs ;; - *-next) - os=-nextstep3 - ;; *-gould) os=-sysv ;; @@ -1798,15 +1786,15 @@ vendor=stratus ;; esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac -echo $basic_machine$os +echo "$basic_machine$os" exit # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'write-file-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'"
View file
libde265-1.0.3.tar.gz/configure -> libde265-1.0.5.tar.gz/configure
Changed
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libde265 1.0.3. +# Generated by GNU Autoconf 2.69 for libde265 1.0.5. # # Report bugs to <farin@struktur.de>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libde265' PACKAGE_TARNAME='libde265' -PACKAGE_VERSION='1.0.3' -PACKAGE_STRING='libde265 1.0.3' +PACKAGE_VERSION='1.0.5' +PACKAGE_STRING='libde265 1.0.5' PACKAGE_BUGREPORT='farin@struktur.de' PACKAGE_URL='' @@ -668,6 +668,8 @@ ENABLE_ARM_OPT_TRUE ENABLE_SSE_OPT_FALSE ENABLE_SSE_OPT_TRUE +ENABLE_ENCODER_FALSE +ENABLE_ENCODER_TRUE MINGW_FALSE MINGW_TRUE LIBOBJS @@ -822,6 +824,7 @@ enable_libtool_lock enable_dependency_tracking enable_silent_rules +enable_encoder enable_sse enable_arm enable_thumb @@ -1409,7 +1412,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libde265 1.0.3 to adapt to many kinds of systems. +\`configure' configures libde265 1.0.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1481,7 +1484,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libde265 1.0.3:";; + short | recursive ) echo "Configuration of libde265 1.0.5:";; esac cat <<\_ACEOF @@ -1500,6 +1503,7 @@ speeds up one-time build --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") + --disable-encoder Do not build encoder. --disable-sse disable SSE optimizations (default=no) --disable-arm disable ARM optimizations (default=no) --enable-thumb disable ARM THUMB instructions (default=no) @@ -1622,7 +1626,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libde265 configure 1.0.3 +libde265 configure 1.0.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2387,7 +2391,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libde265 $as_me 1.0.3, which was +It was created by libde265 $as_me 1.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2742,11 +2746,17 @@ ac_config_headers="$ac_config_headers config.h" -NUMERIC_VERSION=0x01000300 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD) +NUMERIC_VERSION=0x01000500 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD) +# From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html: +# If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). +# If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. +# If any interfaces have been added since the last public release, then increment age. +# If any interfaces have been removed or changed since the last public release, then set age to 0. + LIBDE265_CURRENT=0 -LIBDE265_REVISION=10 +LIBDE265_REVISION=12 LIBDE265_AGE=0 # --------------------------------------------------------------------------- @@ -16704,7 +16714,7 @@ # Define the identity of the package. PACKAGE='libde265' - VERSION='1.0.3' + VERSION='1.0.5' cat >>confdefs.h <<_ACEOF @@ -18434,7 +18444,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Check if "std::move" is available +# Check if "std::move" is available (assume always available with clang) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::move" >&5 $as_echo_n "checking for std::move... " >&6; } ac_ext=cpp @@ -18452,9 +18462,11 @@ main () { +#if !defined(__clang__) class A {}; A* a = new A(); A* b = std::move(a); +#endif ; return 0; @@ -18524,6 +18536,25 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_nullptr" >&5 $as_echo "$has_nullptr" >&6; } + + +# Check whether --enable-encoder was given. +if test "${enable_encoder+set}" = set; then : + enableval=$enable_encoder; +fi + +if eval "test x$enable_encoder = x" ; then enable_encoder=yes ; fi + + if test x"$enable_encoder" = x"yes"; then + ENABLE_ENCODER_TRUE= + ENABLE_ENCODER_FALSE='#' +else + ENABLE_ENCODER_TRUE='#' + ENABLE_ENCODER_FALSE= +fi + + + # --- machine dependent optimizations --- #AX_EXT @@ -19492,6 +19523,8 @@ $as_echo "$as_me: Building dec265 example: $enable_dec265" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Building sherlock265 example: $enable_sherlock265" >&5 $as_echo "$as_me: Building sherlock265 example: $enable_sherlock265" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: Building encoder: $enable_encoder" >&5 +$as_echo "$as_me: Building encoder: $enable_encoder" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------------------------" >&5 $as_echo "$as_me: ---------------------------------------" >&6;} @@ -19670,6 +19703,10 @@ as_fn_error $? "conditional \"MINGW\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${ENABLE_ENCODER_TRUE}" && test -z "${ENABLE_ENCODER_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_ENCODER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${ENABLE_SSE_OPT_TRUE}" && test -z "${ENABLE_SSE_OPT_FALSE}"; then as_fn_error $? "conditional \"ENABLE_SSE_OPT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -20103,7 +20140,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libde265 $as_me 1.0.3, which was +This file was extended by libde265 $as_me 1.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -20169,7 +20206,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libde265 config.status 1.0.3 +libde265 config.status 1.0.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -21305,7 +21342,6 @@ cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services.
View file
libde265-1.0.3.tar.gz/configure.ac -> libde265-1.0.5.tar.gz/configure.ac
Changed
@@ -2,15 +2,21 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.68]) -AC_INIT([libde265], [1.0.3], [farin@struktur.de]) +AC_INIT([libde265], [1.0.5], [farin@struktur.de]) AC_CONFIG_SRCDIR([libde265/de265.cc]) AC_CONFIG_HEADERS([config.h]) -NUMERIC_VERSION=0x01000300 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD) +NUMERIC_VERSION=0x01000500 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD) AC_SUBST(NUMERIC_VERSION) +# From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html: +# If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). +# If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. +# If any interfaces have been added since the last public release, then increment age. +# If any interfaces have been removed or changed since the last public release, then set age to 0. + LIBDE265_CURRENT=0 -LIBDE265_REVISION=10 +LIBDE265_REVISION=12 LIBDE265_AGE=0 # --------------------------------------------------------------------------- @@ -138,15 +144,17 @@ fi AC_LANG_POP(C++) -# Check if "std::move" is available +# Check if "std::move" is available (assume always available with clang) AC_MSG_CHECKING([for std::move]) AC_LANG_PUSH(C++) AC_TRY_COMPILE([ #include <utility> ],[ +#if !defined(__clang__) class A {}; A* a = new A(); A* b = std::move(a); +#endif ],[has_std_move=yes],[has_std_move=no]); AC_LANG_POP(C++) if eval "test x$has_std_move = xno"; then @@ -168,6 +176,14 @@ fi AC_MSG_RESULT([$has_nullptr]) + + +AC_ARG_ENABLE([encoder], AS_HELP_STRING([--disable-encoder], [Do not build encoder.])) +if eval "test x$enable_encoder = x" ; then enable_encoder=yes ; fi + +AM_CONDITIONAL([ENABLE_ENCODER], [test x"$enable_encoder" = x"yes"]) + + # --- machine dependent optimizations --- #AX_EXT @@ -355,6 +371,7 @@ AC_MSG_NOTICE([---------------------------------------]) AC_MSG_NOTICE([Building dec265 example: $enable_dec265]) AC_MSG_NOTICE([Building sherlock265 example: $enable_sherlock265]) +AC_MSG_NOTICE([Building encoder: $enable_encoder]) AC_MSG_NOTICE([---------------------------------------]) AC_CONFIG_FILES([Makefile])
View file
libde265-1.0.3.tar.gz/dec265/CMakeLists.txt -> libde265-1.0.5.tar.gz/dec265/CMakeLists.txt
Changed
@@ -1,41 +1,24 @@ -set (dec265_sources - dec265.cc -) +add_executable (dec265 dec265.cc) -set (hdrcopy_sources - hdrcopy.cc -) +target_link_libraries (dec265 PRIVATE ${PROJECT_NAME}) + +if(SDL_FOUND) + target_sources(dec265 PRIVATE sdl.cc) + target_compile_definitions(dec265 PRIVATE HAVE_SDL) + target_include_directories (dec265 PRIVATE "${SDL_INCLUDE_DIR}") + target_link_libraries (dec265 PRIVATE ${SDL_LIBRARY}) +endif() if(MSVC) - set (dec265_sources - ${dec265_sources} - ../extra/getopt.c - ../extra/getopt_long.c - ) - set (hdrcopy_sources - ${hdrcopy_sources} + target_sources(dec265 PRIVATE ../extra/getopt.c ../extra/getopt_long.c ) endif() -if(SDL_FOUND) - add_definitions(-DHAVE_SDL) - include_directories ("${SDL_INCLUDE_DIR}") - set (dec265_sources - ${dec265_sources} - sdl.cc - ) -endif() - -add_executable (dec265 ${dec265_sources}) - -target_link_libraries (dec265 ${LIBDE265_LIBRARY_NAME} ${SDL_LIBRARY}) - - if(NOT MSVC) # hdrcopy uses internal APIs that are not available when compiled for Windows - add_executable (hdrcopy ${hdrcopy_sources}) + add_executable (hdrcopy hdrcopy.cc) - target_link_libraries (hdrcopy ${LIBDE265_LIBRARY_NAME}) + target_link_libraries (hdrcopy PRIVATE ${PROJECT_NAME}) endif()
View file
libde265-1.0.3.tar.gz/dec265/COPYING -> libde265-1.0.5.tar.gz/dec265/COPYING
Changed
@@ -1,674 +1,20 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - 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 3 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, see <http://www.gnu.org/licenses/>. - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - <program> Copyright (C) <year> <name of author> - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -<http://www.gnu.org/licenses/>. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -<http://www.gnu.org/philosophy/why-not-lgpl.html>. + MIT License + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE.
View file
libde265-1.0.3.tar.gz/dec265/Makefile.am -> libde265-1.0.5.tar.gz/dec265/Makefile.am
Changed
@@ -1,7 +1,7 @@ bin_PROGRAMS = dec265 hdrcopy -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) dec265_DEPENDENCIES = ../libde265/libde265.la dec265_CXXFLAGS =
View file
libde265-1.0.3.tar.gz/dec265/Makefile.in -> libde265-1.0.5.tar.gz/dec265/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -357,7 +357,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) dec265_DEPENDENCIES = ../libde265/libde265.la dec265_CXXFLAGS = $(am__append_1) $(am__append_3) dec265_LDFLAGS = $(am__append_2) $(am__append_4) $(am__append_6)
View file
libde265-1.0.3.tar.gz/dec265/dec265.cc -> libde265-1.0.5.tar.gz/dec265/dec265.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "dec265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of dec265, an example application using libde265. - * - * dec265 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 3 of the License, or - * (at your option) any later version. - * - * dec265 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 dec265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "dec265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #define DO_MEMORY_LOGGING 0 @@ -106,9 +112,13 @@ static void write_picture(const de265_image* img) { static FILE* fh = NULL; - if (fh==NULL) { fh = fopen(output_filename, "wb"); } - - + if (fh==NULL) { + if (strcmp(output_filename, "-") == 0) { + fh = stdout; + } else { + fh = fopen(output_filename, "wb"); + } + } for (int c=0;c<3;c++) { int stride; @@ -659,9 +669,16 @@ } - FILE* fh = fopen(argv[optind], "rb"); + FILE* fh; + if (strcmp(argv[optind],"-")==0) { + fh = stdin; + } + else { + fh = fopen(argv[optind], "rb"); + } + if (fh==NULL) { - fprintf(stderr,"cannot open file %s!\n", argv[1]); + fprintf(stderr,"cannot open file %s!\n", argv[optind]); exit(10); }
View file
libde265-1.0.3.tar.gz/dec265/hdrcopy.cc -> libde265-1.0.5.tar.gz/dec265/hdrcopy.cc
Changed
@@ -1,22 +1,28 @@ /* - * H.265 video codec. - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of libde265. - * - * libde265 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 3 of the License, or - * (at your option) any later version. - * - * libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application. + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "libde265/nal-parser.h"
View file
libde265-1.0.3.tar.gz/dec265/sdl.cc -> libde265-1.0.5.tar.gz/dec265/sdl.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "dec265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of dec265, an example application using libde265. - * - * dec265 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 3 of the License, or - * (at your option) any later version. - * - * dec265 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 dec265. If not, see <http://www.gnu.org/licenses/>. - */ + This file is part of dec265, an example application using libde265. + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "sdl.hh" #include <assert.h>
View file
libde265-1.0.3.tar.gz/dec265/sdl.hh -> libde265-1.0.5.tar.gz/dec265/sdl.hh
Changed
@@ -1,21 +1,27 @@ /* - * libde265 example application "dec265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of dec265, an example application using libde265. - * - * dec265 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 3 of the License, or - * (at your option) any later version. - * - * dec265 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 dec265. If not, see <http://www.gnu.org/licenses/>. + This file is part of dec265, an example application using libde265. + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. */ #include <SDL.h>
View file
libde265-1.0.3.tar.gz/depcomp -> libde265-1.0.5.tar.gz/depcomp
Changed
@@ -1,9 +1,9 @@ #! /bin/sh # depcomp - compile a program generating dependencies as side-effects -scriptversion=2013-05-30.07; # UTC +scriptversion=2016-01-11.22; # UTC -# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Copyright (C) 1999-2017 Free Software Foundation, Inc. # 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 @@ -786,6 +786,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" +# time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End:
View file
libde265-1.0.3.tar.gz/enc265/CMakeLists.txt -> libde265-1.0.5.tar.gz/enc265/CMakeLists.txt
Changed
@@ -1,16 +1,13 @@ -set (enc265_sources +add_executable (enc265 enc265.cc image-io-png.cc ) if(MSVC) - set (enc265_sources - ${enc265_sources} + target_sources(enc265 PRIVATE ../extra/getopt.c ../extra/getopt_long.c ) endif() -add_executable (enc265 ${enc265_sources}) - -target_link_libraries (enc265 ${LIBDE265_LIBRARY_NAME}) +target_link_libraries (enc265 PRIVATE ${PROJECT_NAME})
View file
libde265-1.0.5.tar.gz/enc265/COPYING
Added
@@ -0,0 +1,20 @@ + + MIT License + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE.
View file
libde265-1.0.3.tar.gz/enc265/Makefile.am -> libde265-1.0.5.tar.gz/enc265/Makefile.am
Changed
@@ -1,7 +1,7 @@ bin_PROGRAMS = enc265 -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) enc265_DEPENDENCIES = ../libde265/libde265.la enc265_CXXFLAGS =
View file
libde265-1.0.3.tar.gz/enc265/Makefile.in -> libde265-1.0.5.tar.gz/enc265/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -198,7 +198,7 @@ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp COPYING DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ @@ -347,7 +347,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) enc265_DEPENDENCIES = ../libde265/libde265.la enc265_CXXFLAGS = $(am__append_1) enc265_LDFLAGS = $(am__append_2)
View file
libde265-1.0.3.tar.gz/enc265/enc265.cc -> libde265-1.0.5.tar.gz/enc265/enc265.cc
Changed
@@ -1,22 +1,28 @@ /* - * H.265 video codec. - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of libde265. - * - * libde265 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 3 of the License, or - * (at your option) any later version. - * - * libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "enc265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "libde265/en265.h" #ifdef HAVE_CONFIG_H
View file
libde265-1.0.3.tar.gz/enc265/image-io-png.cc -> libde265-1.0.5.tar.gz/enc265/image-io-png.cc
Changed
@@ -1,24 +1,28 @@ /* - * H.265 video codec. - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * Authors: struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of libde265. - * - * libde265 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * libde265 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 Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with libde265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "enc265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "image-io-png.h" #include <assert.h> @@ -75,7 +79,7 @@ de265_image* img = new de265_image; img->alloc_image(mWidth,mHeight,de265_chroma_444, NULL, false, - NULL, NULL, 0, NULL, false); + NULL, /*NULL,*/ 0, NULL, false); assert(img); // TODO: error handling
View file
libde265-1.0.3.tar.gz/enc265/image-io-png.h -> libde265-1.0.5.tar.gz/enc265/image-io-png.h
Changed
@@ -1,23 +1,27 @@ /* - * H.265 video codec. - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * Authors: struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of libde265. - * - * libde265 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * libde265 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 Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with libde265. If not, see <http://www.gnu.org/licenses/>. + libde265 example application "enc265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. */ #ifndef IMAGE_IO_PNG_H
View file
libde265-1.0.3.tar.gz/libde265/CMakeLists.txt -> libde265-1.0.5.tar.gz/libde265/CMakeLists.txt
Changed
@@ -1,58 +1,76 @@ +include(CMakePackageConfigHelpers) + set (libde265_sources + alloc_pool.cc bitstream.cc cabac.cc + configparam.cc + contextmodel.cc de265.cc deblock.cc decctx.cc - nal-parser.cc - nal-parser.h dpb.cc - dpb.h + en265.cc + fallback-dct.cc + fallback-motion.cc + fallback.cc + image-io.cc image.cc intrapred.cc md5.cc + motion.cc + nal-parser.cc nal.cc pps.cc - transform.cc + quality.cc refpic.cc sao.cc scan.cc sei.cc slice.cc sps.cc + threads.cc + transform.cc util.cc + visualize.cc vps.cc + vui.cc +) + +set (libde265_headers + acceleration.h + alloc_pool.h bitstream.h cabac.h + configparam.h deblock.h decctx.h + dpb.h + en265.h + fallback-dct.h + fallback-motion.h + fallback.h + image-io.h image.h intrapred.h md5.h + motion.h + nal-parser.h nal.h pps.h - transform.h + quality.h refpic.h sao.h scan.h sei.h slice.h sps.h + threads.h + transform.h util.h + visualize.h vps.h - vui.h vui.cc - motion.cc motion.h - threads.cc threads.h - visualize.cc visualize.h - acceleration.h - fallback.cc fallback.h fallback-motion.cc fallback-motion.h - fallback-dct.h fallback-dct.cc - quality.cc quality.h - configparam.cc configparam.h - image-io.h image-io.cc - alloc_pool.h alloc_pool.cc - en265.h en265.cc - contextmodel.cc + vui.h ) if(MSVC) @@ -72,9 +90,20 @@ add_subdirectory (x86) endif() -add_library(${LIBDE265_LIBRARY_NAME} SHARED ${libde265_sources} ${ENCODER_OBJECTS} ${X86_OBJECTS}) -target_link_libraries(${LIBDE265_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT}) +add_library(${PROJECT_NAME} SHARED ${libde265_sources} ${ENCODER_OBJECTS} ${X86_OBJECTS}) +target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads) + +write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake COMPATIBILITY ExactVersion) + +install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +) + +install(FILES ${libde265_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}) + +install(EXPORT ${PROJECT_NAME}Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") -if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - SET_TARGET_PROPERTIES(${LIBDE265_LIBRARY_NAME} PROPERTIES COMPILE_FLAGS "-fPIC") -endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake DESTINATION + "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
View file
libde265-1.0.3.tar.gz/libde265/Makefile.am -> libde265-1.0.5.tar.gz/libde265/Makefile.am
Changed
@@ -11,7 +11,8 @@ -DLIBDE265_EXPORTS libde265_la_CXXFLAGS = \ $(CFLAG_VISIBILITY) \ - -DLIBDE265_EXPORTS + -DLIBDE265_EXPORTS \ + -I$(top_srcdir) if HAVE_VISIBILITY libde265_la_CFLAGS += -DHAVE_VISIBILITY @@ -37,8 +38,6 @@ deblock.h \ decctx.cc \ decctx.h \ - en265.h \ - en265.cc \ fallback.cc \ fallback.h \ fallback-dct.h \ @@ -90,8 +89,14 @@ vui.cc \ vui.h -SUBDIRS = encoder -libde265_la_LIBADD = encoder/libde265_encoder.la +SUBDIRS = +libde265_la_LIBADD = + +if ENABLE_ENCODER + libde265_la_SOURCES += en265.h en265.cc + SUBDIRS += encoder + libde265_la_LIBADD += encoder/libde265_encoder.la +endif if ENABLE_SSE_OPT SUBDIRS += x86
View file
libde265-1.0.3.tar.gz/libde265/Makefile.in -> libde265-1.0.5.tar.gz/libde265/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -92,12 +92,15 @@ target_triplet = @target@ @HAVE_VISIBILITY_TRUE@am__append_1 = -DHAVE_VISIBILITY @HAVE_VISIBILITY_TRUE@am__append_2 = -DHAVE_VISIBILITY -@ENABLE_SSE_OPT_TRUE@am__append_3 = x86 -@ENABLE_SSE_OPT_TRUE@am__append_4 = x86/libde265_x86.la -@ENABLE_ARM_OPT_TRUE@am__append_5 = arm -@ENABLE_ARM_OPT_TRUE@am__append_6 = arm/libde265_arm.la -@MINGW_TRUE@am__append_7 = ../extra/win32cond.c ../extra/win32cond.h -@MINGW_TRUE@am__append_8 = -no-undefined -static-libgcc -static-libstdc++ +@ENABLE_ENCODER_TRUE@am__append_3 = en265.h en265.cc +@ENABLE_ENCODER_TRUE@am__append_4 = encoder +@ENABLE_ENCODER_TRUE@am__append_5 = encoder/libde265_encoder.la +@ENABLE_SSE_OPT_TRUE@am__append_6 = x86 +@ENABLE_SSE_OPT_TRUE@am__append_7 = x86/libde265_x86.la +@ENABLE_ARM_OPT_TRUE@am__append_8 = arm +@ENABLE_ARM_OPT_TRUE@am__append_9 = arm/libde265_arm.la +@MINGW_TRUE@am__append_10 = ../extra/win32cond.c ../extra/win32cond.h +@MINGW_TRUE@am__append_11 = -no-undefined -static-libgcc -static-libstdc++ subdir = libde265 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \ @@ -144,40 +147,40 @@ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libde265_ladir)" LTLIBRARIES = $(lib_LTLIBRARIES) -libde265_la_DEPENDENCIES = encoder/libde265_encoder.la $(am__append_4) \ - $(am__append_6) +libde265_la_DEPENDENCIES = $(am__append_5) $(am__append_7) \ + $(am__append_9) am__libde265_la_SOURCES_DIST = acceleration.h alloc_pool.h \ alloc_pool.cc bitstream.cc bitstream.h cabac.cc cabac.h \ configparam.cc configparam.h contextmodel.cc contextmodel.h \ - de265.cc deblock.cc deblock.h decctx.cc decctx.h en265.h \ - en265.cc fallback.cc fallback.h fallback-dct.h fallback-dct.cc \ - fallback-motion.cc fallback-motion.h dpb.cc dpb.h image.cc \ - image.h image-io.h image-io.cc intrapred.cc intrapred.h md5.cc \ - md5.h motion.cc motion.h nal.cc nal.h nal-parser.cc \ - nal-parser.h pps.cc pps.h quality.cc quality.h refpic.cc \ - refpic.h sao.cc sao.h scan.cc scan.h sei.cc sei.h slice.cc \ - slice.h sps.cc sps.h threads.cc threads.h transform.cc \ - transform.h util.cc util.h visualize.cc visualize.h vps.cc \ - vps.h vui.cc vui.h ../extra/win32cond.c ../extra/win32cond.h + de265.cc deblock.cc deblock.h decctx.cc decctx.h fallback.cc \ + fallback.h fallback-dct.h fallback-dct.cc fallback-motion.cc \ + fallback-motion.h dpb.cc dpb.h image.cc image.h image-io.h \ + image-io.cc intrapred.cc intrapred.h md5.cc md5.h motion.cc \ + motion.h nal.cc nal.h nal-parser.cc nal-parser.h pps.cc pps.h \ + quality.cc quality.h refpic.cc refpic.h sao.cc sao.h scan.cc \ + scan.h sei.cc sei.h slice.cc slice.h sps.cc sps.h threads.cc \ + threads.h transform.cc transform.h util.cc util.h visualize.cc \ + visualize.h vps.cc vps.h vui.cc vui.h en265.h en265.cc \ + ../extra/win32cond.c ../extra/win32cond.h +@ENABLE_ENCODER_TRUE@am__objects_1 = libde265_la-en265.lo am__dirstamp = $(am__leading_dot)dirstamp -@MINGW_TRUE@am__objects_1 = ../extra/libde265_la-win32cond.lo +@MINGW_TRUE@am__objects_2 = ../extra/libde265_la-win32cond.lo am_libde265_la_OBJECTS = libde265_la-alloc_pool.lo \ libde265_la-bitstream.lo libde265_la-cabac.lo \ libde265_la-configparam.lo libde265_la-contextmodel.lo \ libde265_la-de265.lo libde265_la-deblock.lo \ - libde265_la-decctx.lo libde265_la-en265.lo \ - libde265_la-fallback.lo libde265_la-fallback-dct.lo \ - libde265_la-fallback-motion.lo libde265_la-dpb.lo \ - libde265_la-image.lo libde265_la-image-io.lo \ - libde265_la-intrapred.lo libde265_la-md5.lo \ - libde265_la-motion.lo libde265_la-nal.lo \ + libde265_la-decctx.lo libde265_la-fallback.lo \ + libde265_la-fallback-dct.lo libde265_la-fallback-motion.lo \ + libde265_la-dpb.lo libde265_la-image.lo \ + libde265_la-image-io.lo libde265_la-intrapred.lo \ + libde265_la-md5.lo libde265_la-motion.lo libde265_la-nal.lo \ libde265_la-nal-parser.lo libde265_la-pps.lo \ libde265_la-quality.lo libde265_la-refpic.lo \ libde265_la-sao.lo libde265_la-scan.lo libde265_la-sei.lo \ libde265_la-slice.lo libde265_la-sps.lo libde265_la-threads.lo \ libde265_la-transform.lo libde265_la-util.lo \ libde265_la-visualize.lo libde265_la-vps.lo libde265_la-vui.lo \ - $(am__objects_1) + $(am__objects_1) $(am__objects_2) libde265_la_OBJECTS = $(am_libde265_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) @@ -466,26 +469,25 @@ libde265_la_CFLAGS = $(CFLAG_VISIBILITY) -DLIBDE265_EXPORTS \ $(am__append_1) libde265_la_CXXFLAGS = $(CFLAG_VISIBILITY) -DLIBDE265_EXPORTS \ - $(am__append_2) + -I$(top_srcdir) $(am__append_2) libde265_la_LDFLAGS = -version-info \ $(LIBDE265_CURRENT):$(LIBDE265_REVISION):$(LIBDE265_AGE) \ - $(am__append_8) + $(am__append_11) libde265_la_SOURCES = acceleration.h alloc_pool.h alloc_pool.cc \ bitstream.cc bitstream.h cabac.cc cabac.h configparam.cc \ configparam.h contextmodel.cc contextmodel.h de265.cc \ - deblock.cc deblock.h decctx.cc decctx.h en265.h en265.cc \ - fallback.cc fallback.h fallback-dct.h fallback-dct.cc \ - fallback-motion.cc fallback-motion.h dpb.cc dpb.h image.cc \ - image.h image-io.h image-io.cc intrapred.cc intrapred.h md5.cc \ - md5.h motion.cc motion.h nal.cc nal.h nal-parser.cc \ - nal-parser.h pps.cc pps.h quality.cc quality.h refpic.cc \ - refpic.h sao.cc sao.h scan.cc scan.h sei.cc sei.h slice.cc \ - slice.h sps.cc sps.h threads.cc threads.h transform.cc \ - transform.h util.cc util.h visualize.cc visualize.h vps.cc \ - vps.h vui.cc vui.h $(am__append_7) -SUBDIRS = encoder $(am__append_3) $(am__append_5) -libde265_la_LIBADD = encoder/libde265_encoder.la $(am__append_4) \ - $(am__append_6) + deblock.cc deblock.h decctx.cc decctx.h fallback.cc fallback.h \ + fallback-dct.h fallback-dct.cc fallback-motion.cc \ + fallback-motion.h dpb.cc dpb.h image.cc image.h image-io.h \ + image-io.cc intrapred.cc intrapred.h md5.cc md5.h motion.cc \ + motion.h nal.cc nal.h nal-parser.cc nal-parser.h pps.cc pps.h \ + quality.cc quality.h refpic.cc refpic.h sao.cc sao.h scan.cc \ + scan.h sei.cc sei.h slice.cc slice.h sps.cc sps.h threads.cc \ + threads.h transform.cc transform.h util.cc util.h visualize.cc \ + visualize.h vps.cc vps.h vui.cc vui.h $(am__append_3) \ + $(am__append_10) +SUBDIRS = $(am__append_4) $(am__append_6) $(am__append_8) +libde265_la_LIBADD = $(am__append_5) $(am__append_7) $(am__append_9) EXTRA_DIST = Makefile.vc7 \ CMakeLists.txt \ ../extra/stdbool.h \ @@ -732,13 +734,6 @@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-decctx.lo `test -f 'decctx.cc' || echo '$(srcdir)/'`decctx.cc -libde265_la-en265.lo: en265.cc -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-en265.lo -MD -MP -MF $(DEPDIR)/libde265_la-en265.Tpo -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-en265.Tpo $(DEPDIR)/libde265_la-en265.Plo -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='en265.cc' object='libde265_la-en265.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc - libde265_la-fallback.lo: fallback.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-fallback.lo -MD -MP -MF $(DEPDIR)/libde265_la-fallback.Tpo -c -o libde265_la-fallback.lo `test -f 'fallback.cc' || echo '$(srcdir)/'`fallback.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-fallback.Tpo $(DEPDIR)/libde265_la-fallback.Plo @@ -914,6 +909,13 @@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-vui.lo `test -f 'vui.cc' || echo '$(srcdir)/'`vui.cc +libde265_la-en265.lo: en265.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-en265.lo -MD -MP -MF $(DEPDIR)/libde265_la-en265.Tpo -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-en265.Tpo $(DEPDIR)/libde265_la-en265.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='en265.cc' object='libde265_la-en265.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc + mostlyclean-libtool: -rm -f *.lo
View file
libde265-1.0.3.tar.gz/libde265/Makefile.vc7 -> libde265-1.0.5.tar.gz/libde265/Makefile.vc7
Changed
@@ -4,7 +4,7 @@ CFLAGS=/I..\extra /I.. /I. CC=cl /nologo LINK=link /nologo /subsystem:console -DEFINES=/DWIN32 /D_WIN32_WINNT=0x0400 /DNDEBUG /DLIBDE265_EXPORTS /D_CRT_SECURE_NO_WARNINGS /DHAVE_SSE4_1 /DNOMINMAX /DHAVE_STDINT_H +DEFINES=/DWIN32 /D_WIN32_WINNT=0x0400 /DNDEBUG /DLIBDE265_EXPORTS /D_CRT_SECURE_NO_WARNINGS /DHAVE_SSE4_1 /DHAVE_STDINT_H CFLAGS=$(CFLAGS) /MT /Ox /Ob2 /Oi /TP /W4 /GL /EHsc @@ -69,6 +69,8 @@ encoder\encoder-context.obj \ encoder\encoder-params.obj \ encoder\encoder-syntax.obj \ + encoder\encoder-intrapred.obj \ + encoder\encoder-motion.obj \ encoder\encpicbuf.obj \ encoder\sop.obj \ encoder\algo\algo.obj \
View file
libde265-1.0.3.tar.gz/libde265/arm/Makefile.in -> libde265-1.0.5.tar.gz/libde265/arm/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it,
View file
libde265-1.0.3.tar.gz/libde265/de265-version.h -> libde265-1.0.5.tar.gz/libde265/de265-version.h
Changed
@@ -28,9 +28,9 @@ #define LIBDE265_VERSION_H /* Numeric representation of the version */ -#define LIBDE265_NUMERIC_VERSION 0x01000300 +#define LIBDE265_NUMERIC_VERSION 0x01000500 /* Version string */ -#define LIBDE265_VERSION "1.0.3" +#define LIBDE265_VERSION "1.0.5" #endif
View file
libde265-1.0.3.tar.gz/libde265/de265.cc -> libde265-1.0.5.tar.gz/libde265/de265.cc
Changed
@@ -31,6 +31,7 @@ #include <assert.h> #include <string.h> #include <stdlib.h> +#include <mutex> // TODO: should be in some vps.c related header @@ -168,12 +169,18 @@ -static std::atomic<int> de265_init_count; +static int de265_init_count; + +static std::mutex de265_init_mutex; + LIBDE265_API de265_error de265_init() { - int cnt = std::atomic_fetch_add(&de265_init_count,1); - if (cnt>0) { + std::lock_guard<std::mutex> lock(de265_init_mutex); + + de265_init_count++; + + if (de265_init_count > 1) { // we are not the first -> already initialized return DE265_OK; @@ -185,7 +192,7 @@ init_scan_orders(); if (!alloc_and_init_significant_coeff_ctxIdx_lookupTable()) { - std::atomic_fetch_sub(&de265_init_count,1); + de265_init_count--; return DE265_ERROR_LIBRARY_INITIALIZATION_FAILED; } @@ -194,13 +201,15 @@ LIBDE265_API de265_error de265_free() { - int cnt = std::atomic_fetch_sub(&de265_init_count,1); - if (cnt<=0) { - std::atomic_fetch_add(&de265_init_count,1); + std::lock_guard<std::mutex> lock(de265_init_mutex); + + if (de265_init_count<=0) { return DE265_ERROR_LIBRARY_NOT_INITIALIZED; } - if (cnt==1) { + de265_init_count--; + + if (de265_init_count==0) { free_significant_coeff_ctxIdx_lookupTable(); }
View file
libde265-1.0.3.tar.gz/libde265/decctx.cc -> libde265-1.0.5.tar.gz/libde265/decctx.cc
Changed
@@ -1648,9 +1648,8 @@ PocStCurrBefore[i], false); RefPicSetStCurrBefore[i] = k = concealedPicture; - if (concealedPicture < picInAnyList.size()) { - picInAnyList[concealedPicture] = true; - } + picInAnyList.resize(dpb.size(), false); // adjust size of array to hold new picture + picInAnyList[concealedPicture] = true; //printf(" concealed: %d\n", concealedPicture); } @@ -1671,6 +1670,9 @@ int concealedPicture = generate_unavailable_reference_picture(current_sps.get(), PocStCurrAfter[i], false); RefPicSetStCurrAfter[i] = k = concealedPicture; + + + picInAnyList.resize(dpb.size(), false); // adjust size of array to hold new picture picInAnyList[concealedPicture]=true; //printf(" concealed: %d\n", concealedPicture);
View file
libde265-1.0.3.tar.gz/libde265/decctx.h -> libde265-1.0.5.tar.gz/libde265/decctx.h
Changed
@@ -301,6 +301,9 @@ bool has_sps(int id) const { return (bool)sps[id]; } bool has_pps(int id) const { return (bool)pps[id]; } + std::shared_ptr<const seq_parameter_set> get_shared_sps(int id) { return sps[id]; } + std::shared_ptr<const pic_parameter_set> get_shared_pps(int id) { return pps[id]; } + /* */ seq_parameter_set* get_sps(int id) { return sps[id].get(); } const seq_parameter_set* get_sps(int id) const { return sps[id].get(); } /* */ pic_parameter_set* get_pps(int id) { return pps[id].get(); }
View file
libde265-1.0.3.tar.gz/libde265/dpb.cc -> libde265-1.0.5.tar.gz/libde265/dpb.cc
Changed
@@ -259,7 +259,7 @@ default: chroma = de265_chroma_420; assert(0); break; // should never happen } - img->alloc_image(w,h, chroma, sps, true, decctx, NULL, pts, user_data, isOutputImage); + img->alloc_image(w,h, chroma, sps, true, decctx, /*NULL,*/ pts, user_data, isOutputImage); img->integrity = INTEGRITY_CORRECT;
View file
libde265-1.0.3.tar.gz/libde265/en265.cc -> libde265-1.0.5.tar.gz/libde265/en265.cc
Changed
@@ -46,6 +46,7 @@ } +/* LIBDE265_API void en265_set_image_release_function(en265_encoder_context* e, void (*release_func)(en265_encoder_context*, de265_image*, @@ -58,6 +59,7 @@ ectx->param_image_allocation_userdata = alloc_userdata; ectx->release_func = release_func; } +*/ // ========== encoder parameters ========== @@ -180,7 +182,7 @@ de265_image* img = new de265_image; if (img->alloc_image(width,height,de265_chroma_420, NULL, false, - NULL,ectx, pts, image_userdata, true) != DE265_OK) { + NULL, /*ectx,*/ pts, image_userdata, true) != DE265_OK) { delete img; return NULL; } @@ -317,4 +319,3 @@ return ectx->output_packets.size(); } -
View file
libde265-1.0.3.tar.gz/libde265/en265.h -> libde265-1.0.5.tar.gz/libde265/en265.h
Changed
@@ -32,7 +32,7 @@ // ========== encoder context ========== -typedef void en265_encoder_context; // private structure +struct en265_encoder_context; // private structure /* Get a new encoder context. Must be freed with en265_free_encoder(). */ LIBDE265_API en265_encoder_context* en265_new_encoder(void); @@ -41,11 +41,13 @@ LIBDE265_API de265_error en265_free_encoder(en265_encoder_context*); /* The alloc_userdata pointer will be given to the release_func(). */ +/* LIBDE265_API void en265_set_image_release_function(en265_encoder_context*, void (*release_func)(en265_encoder_context*, struct de265_image*, void* userdata), void* alloc_userdata); +*/ // ========== encoder parameters ==========
View file
libde265-1.0.3.tar.gz/libde265/encoder/CMakeLists.txt -> libde265-1.0.5.tar.gz/libde265/encoder/CMakeLists.txt
Changed
@@ -4,6 +4,8 @@ encoder-params.h encoder-params.cc encoder-context.h encoder-context.cc encoder-syntax.h encoder-syntax.cc + encoder-intrapred.h encoder-intrapred.cc + encoder-motion.h encoder-motion.cc encpicbuf.h encpicbuf.cc sop.h sop.cc ) @@ -11,7 +13,3 @@ add_subdirectory (algo) add_library(encoder OBJECT ${encoder_sources}) set(ENCODER_OBJECTS $<TARGET_OBJECTS:encoder> ${ALGO_OBJECTS} PARENT_SCOPE) - -if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - SET_TARGET_PROPERTIES(encoder PROPERTIES COMPILE_FLAGS "-fPIC") -endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
View file
libde265-1.0.3.tar.gz/libde265/encoder/Makefile.am -> libde265-1.0.5.tar.gz/libde265/encoder/Makefile.am
Changed
@@ -1,12 +1,14 @@ noinst_LTLIBRARIES = libde265_encoder.la -libde265_encoder_la_CXXFLAGS = -I.. +libde265_encoder_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libde265 libde265_encoder_la_SOURCES = \ encoder-core.cc encoder-core.h \ encoder-types.h encoder-types.cc \ encoder-params.h encoder-params.cc \ encoder-context.h encoder-context.cc \ encoder-syntax.h encoder-syntax.cc \ + encoder-intrapred.h encoder-intrapred.cc \ + encoder-motion.h encoder-motion.cc \ encpicbuf.h encpicbuf.cc \ sop.h sop.cc
View file
libde265-1.0.3.tar.gz/libde265/encoder/Makefile.in -> libde265-1.0.5.tar.gz/libde265/encoder/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -112,6 +112,8 @@ libde265_encoder_la-encoder-params.lo \ libde265_encoder_la-encoder-context.lo \ libde265_encoder_la-encoder-syntax.lo \ + libde265_encoder_la-encoder-intrapred.lo \ + libde265_encoder_la-encoder-motion.lo \ libde265_encoder_la-encpicbuf.lo libde265_encoder_la-sop.lo libde265_encoder_la_OBJECTS = $(am_libde265_encoder_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) @@ -392,13 +394,15 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libde265_encoder.la -libde265_encoder_la_CXXFLAGS = -I.. +libde265_encoder_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libde265 libde265_encoder_la_SOURCES = \ encoder-core.cc encoder-core.h \ encoder-types.h encoder-types.cc \ encoder-params.h encoder-params.cc \ encoder-context.h encoder-context.cc \ encoder-syntax.h encoder-syntax.cc \ + encoder-intrapred.h encoder-intrapred.cc \ + encoder-motion.h encoder-motion.cc \ encpicbuf.h encpicbuf.cc \ sop.h sop.cc @@ -463,6 +467,8 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-context.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-core.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-intrapred.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-motion.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-params.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-syntax.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-types.Plo@am__quote@ @@ -525,6 +531,20 @@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-syntax.lo `test -f 'encoder-syntax.cc' || echo '$(srcdir)/'`encoder-syntax.cc +libde265_encoder_la-encoder-intrapred.lo: encoder-intrapred.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-intrapred.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Tpo -c -o libde265_encoder_la-encoder-intrapred.lo `test -f 'encoder-intrapred.cc' || echo '$(srcdir)/'`encoder-intrapred.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Tpo $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-intrapred.cc' object='libde265_encoder_la-encoder-intrapred.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-intrapred.lo `test -f 'encoder-intrapred.cc' || echo '$(srcdir)/'`encoder-intrapred.cc + +libde265_encoder_la-encoder-motion.lo: encoder-motion.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-motion.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-motion.Tpo -c -o libde265_encoder_la-encoder-motion.lo `test -f 'encoder-motion.cc' || echo '$(srcdir)/'`encoder-motion.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-motion.Tpo $(DEPDIR)/libde265_encoder_la-encoder-motion.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-motion.cc' object='libde265_encoder_la-encoder-motion.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-motion.lo `test -f 'encoder-motion.cc' || echo '$(srcdir)/'`encoder-motion.cc + libde265_encoder_la-encpicbuf.lo: encpicbuf.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encpicbuf.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encpicbuf.Tpo -c -o libde265_encoder_la-encpicbuf.lo `test -f 'encpicbuf.cc' || echo '$(srcdir)/'`encpicbuf.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encpicbuf.Tpo $(DEPDIR)/libde265_encoder_la-encpicbuf.Plo
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/CMakeLists.txt -> libde265-1.0.5.tar.gz/libde265/encoder/algo/CMakeLists.txt
Changed
@@ -17,7 +17,3 @@ add_library(algo OBJECT ${algo_sources}) set(ALGO_OBJECTS $<TARGET_OBJECTS:algo> PARENT_SCOPE) - -if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - SET_TARGET_PROPERTIES(algo PROPERTIES COMPILE_FLAGS "-fPIC") -endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/Makefile.am -> libde265-1.0.5.tar.gz/libde265/encoder/algo/Makefile.am
Changed
@@ -1,6 +1,6 @@ noinst_LTLIBRARIES = libde265_encoder_algo.la -libde265_encoder_algo_la_CXXFLAGS = -I../.. +libde265_encoder_algo_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) libde265_encoder_algo_la_SOURCES = \ algo.h algo.cc \ coding-options.h coding-options.cc \
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/Makefile.in -> libde265-1.0.5.tar.gz/libde265/encoder/algo/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -360,7 +360,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libde265_encoder_algo.la -libde265_encoder_algo_la_CXXFLAGS = -I../.. +libde265_encoder_algo_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) libde265_encoder_algo_la_SOURCES = \ algo.h algo.cc \ coding-options.h coding-options.cc \
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/cb-mergeindex.cc -> libde265-1.0.5.tar.gz/libde265/encoder/algo/cb-mergeindex.cc
Changed
@@ -24,6 +24,7 @@ #include "libde265/encoder/algo/cb-mergeindex.h" #include "libde265/encoder/encoder-context.h" #include "libde265/encoder/encoder-syntax.h" +#include "libde265/encoder/encoder-motion.h" #include <assert.h> #include <limits> #include <math.h>
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/tb-intrapredmode.cc -> libde265-1.0.5.tar.gz/libde265/encoder/algo/tb-intrapredmode.cc
Changed
@@ -24,6 +24,7 @@ #include "libde265/encoder/encoder-context.h" #include "libde265/encoder/algo/tb-split.h" #include "libde265/encoder/algo/coding-options.h" +#include "libde265/encoder/encoder-intrapred.h" #include <assert.h> #include <limits> #include <math.h>
View file
libde265-1.0.3.tar.gz/libde265/encoder/algo/tb-split.cc -> libde265-1.0.5.tar.gz/libde265/encoder/algo/tb-split.cc
Changed
@@ -24,6 +24,7 @@ #include "libde265/encoder/encoder-core.h" #include "libde265/encoder/encoder-context.h" #include "libde265/encoder/encoder-syntax.h" +#include "libde265/encoder/encoder-intrapred.h" #include "libde265/encoder/algo/coding-options.h" #include <assert.h> #include <limits>
View file
libde265-1.0.3.tar.gz/libde265/encoder/encoder-context.cc -> libde265-1.0.5.tar.gz/libde265/encoder/encoder-context.cc
Changed
@@ -43,7 +43,7 @@ headers_have_been_sent = false; param_image_allocation_userdata = NULL; - release_func = NULL; + //release_func = NULL; use_adaptive_context = true; //false; @@ -60,7 +60,7 @@ encoder_context::~encoder_context() { while (!output_packets.empty()) { - en265_free_packet(this, output_packets.front()); + en265_free_packet((en265_encoder_context*)this, output_packets.front()); output_packets.pop_front(); } } @@ -112,7 +112,7 @@ pck->nuh_layer_id = 0; pck->nuh_temporal_id = 0; - pck->encoder_context = this; + pck->encoder_context = (en265_encoder_context*)this; pck->input_image = NULL; pck->reconstruction = NULL; @@ -156,7 +156,7 @@ // PPS pps->set_defaults(); - pps->sps = sps.get(); + pps->sps = sps; //sps.get(); pps->pic_init_qp = algo.getPPS_QP(); // turn off deblocking filter @@ -267,7 +267,7 @@ imgdata->shdr.slice_loop_filter_across_slices_enabled_flag = false; imgdata->shdr.compute_derived_values(pps.get()); - imgdata->shdr.pps = &get_pps(); + imgdata->shdr.pps = pps; //shdr.slice_pic_order_cnt_lsb = poc & 0xFF;
View file
libde265-1.0.3.tar.gz/libde265/encoder/encoder-context.h -> libde265-1.0.5.tar.gz/libde265/encoder/encoder-context.h
Changed
@@ -60,9 +60,11 @@ bool image_spec_is_defined; // whether we know the input image size void* param_image_allocation_userdata; + /* void (*release_func)(en265_encoder_context*, de265_image*, void* userdata); + */ //error_queue errqueue; //acceleration_functions accel;
View file
libde265-1.0.3.tar.gz/libde265/encoder/encoder-core.cc -> libde265-1.0.5.tar.gz/libde265/encoder/encoder-core.cc
Changed
@@ -139,7 +139,7 @@ ectx->img->PicOrderCntVal = input->PicOrderCntVal; ectx->img->alloc_image(w,h, input->get_chroma_format(), ectx->get_shared_sps(), true, - NULL /* no decctx */, ectx, 0,NULL,false); + NULL /* no decctx */, /*ectx,*/ 0,NULL,false); //ectx->img->alloc_encoder_data(&ectx->sps); ectx->img->clear_metadata();
View file
libde265-1.0.5.tar.gz/libde265/encoder/encoder-intrapred.cc
Added
@@ -0,0 +1,340 @@ +/* + * H.265 video codec. + * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + * + * This file is part of libde265. + * + * libde265 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * libde265 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libde265. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "intrapred.h" +#include "encoder/encoder-intrapred.h" +#include "encoder/encoder-types.h" +#include "transform.h" +#include "util.h" +#include <assert.h> + + +#include <sys/types.h> +#include <string.h> + + +void fillIntraPredModeCandidates(enum IntraPredMode candModeList[3], + int x,int y, + bool availableA, // left + bool availableB, // top + const CTBTreeMatrix& ctbs, + const seq_parameter_set* sps) +{ + + // block on left side + + enum IntraPredMode candIntraPredModeA, candIntraPredModeB; + + if (availableA==false) { + candIntraPredModeA=INTRA_DC; + } + else { + const enc_cb* cbL = ctbs.getCB(x-1,y); + assert(cbL != NULL); + + if (cbL->PredMode != MODE_INTRA || + cbL->pcm_flag) { + candIntraPredModeA=INTRA_DC; + } + else { + const enc_tb* tbL = cbL->getTB(x-1,y); + assert(tbL); + candIntraPredModeA = tbL->intra_mode; + } + } + + // block above + + if (availableB==false) { + candIntraPredModeB=INTRA_DC; + } + else { + const enc_cb* cbA = ctbs.getCB(x,y-1); + assert(cbA != NULL); + + if (cbA->PredMode != MODE_INTRA || + cbA->pcm_flag) { + candIntraPredModeB=INTRA_DC; + } + else if (y-1 < ((y >> sps->Log2CtbSizeY) << sps->Log2CtbSizeY)) { + candIntraPredModeB=INTRA_DC; + } + else { + const enc_tb* tbA = cbA->getTB(x,y-1); + assert(tbA); + + candIntraPredModeB = tbA->intra_mode; + } + } + + + logtrace(LogSlice,"%d;%d candA:%d / candB:%d\n", x,y, + availableA ? candIntraPredModeA : -999, + availableB ? candIntraPredModeB : -999); + + + fillIntraPredModeCandidates(candModeList, + candIntraPredModeA, + candIntraPredModeB); +} + + +template <class pixel_t> +class intra_border_computer_ctbtree : public intra_border_computer<pixel_t> +{ +public: + void fill_from_ctbtree(const enc_tb* tb, + const CTBTreeMatrix& ctbs); +}; + + +template <class pixel_t> +void intra_border_computer_ctbtree<pixel_t>::fill_from_ctbtree(const enc_tb* blkTb, + const CTBTreeMatrix& ctbs) +{ + int xBLuma = this->xB * this->SubWidth; + int yBLuma = this->yB * this->SubHeight; + + int currBlockAddr = this->pps->MinTbAddrZS[ (xBLuma >> this->sps->Log2MinTrafoSize) + + (yBLuma >> this->sps->Log2MinTrafoSize) * this->sps->PicWidthInTbsY ]; + + + // copy pixels at left column + + for (int y=this->nBottom-1 ; y>=0 ; y-=4) + if (this->availableLeft) + { + int NBlockAddr = this->pps->MinTbAddrZS[ (((this->xB-1)*this->SubWidth )>>this->sps->Log2MinTrafoSize) + + (((this->yB+y)*this->SubHeight)>>this->sps->Log2MinTrafoSize) + * this->sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + int xN = this->xB-1; + int yN = this->yB+y; + + const enc_cb* cb = ctbs.getCB(xN*this->SubWidth, yN*this->SubHeight); + + if (this->pps->constrained_intra_pred_flag) { + if (cb->PredMode != MODE_INTRA) + availableN = false; + } + + if (availableN) { + PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, this->cIdx, *this->sps); + + if (!this->nAvail) this->firstValue = pa[this->yB+y][this->xB-1]; + + for (int i=0;i<4;i++) { + this->available[-y+i-1] = availableN; + this->out_border[-y+i-1] = pa[this->yB+y-i][this->xB-1]; + } + + this->nAvail+=4; + } + } + + // copy pixel at top-left position + + if (this->availableTopLeft) + { + int NBlockAddr = this->pps->MinTbAddrZS[ (((this->xB-1)*this->SubWidth )>>this->sps->Log2MinTrafoSize) + + (((this->yB-1)*this->SubHeight)>>this->sps->Log2MinTrafoSize) + * this->sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + int xN = this->xB-1; + int yN = this->yB-1; + + const enc_cb* cb = ctbs.getCB(xN*this->SubWidth, yN*this->SubHeight); + + if (this->pps->constrained_intra_pred_flag) { + if (cb->PredMode!=MODE_INTRA) { + availableN = false; + } + } + + if (availableN) { + PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, this->cIdx, *this->sps); + + this->out_border[0] = pa[this->yB-1][this->xB-1]; + this->available[0] = availableN; + + if (!this->nAvail) this->firstValue = this->out_border[0]; + this->nAvail++; + } + } + + + // copy pixels at top row + + for (int x=0 ; x<this->nRight ; x+=4) { + bool borderAvailable; + if (x<this->nT) borderAvailable = this->availableTop; + else borderAvailable = this->availableTopRight; + + if (borderAvailable) + { + int NBlockAddr = this->pps->MinTbAddrZS[ (((this->xB+x)*this->SubWidth )>>this->sps->Log2MinTrafoSize) + + (((this->yB-1)*this->SubHeight)>>this->sps->Log2MinTrafoSize) + * this->sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + int xN = this->xB+x; + int yN = this->yB-1; + + const enc_cb* cb = ctbs.getCB(xN*this->SubWidth, yN*this->SubHeight); + + if (this->pps->constrained_intra_pred_flag) { + if (cb->PredMode!=MODE_INTRA) { + availableN = false; + } + } + + + if (availableN) { + PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, this->cIdx, *this->sps); + + if (!this->nAvail) this->firstValue = pa[this->yB-1][this->xB+x]; + + for (int i=0;i<4;i++) { + this->out_border[x+i+1] = pa[this->yB-1][this->xB+x+i]; + this->available[x+i+1] = availableN; + } + + this->nAvail+=4; + } + } + } +} + + +// (8.4.4.2.2) +template <class pixel_t> +void fill_border_samples_from_tree(const de265_image* img, + const enc_tb* tb, + const CTBTreeMatrix& ctbs, + int cIdx, + pixel_t* out_border) +{ + intra_border_computer_ctbtree<pixel_t> c; + + // xB,yB in component specific resolution + int xB,yB; + int nT = 1<<tb->log2Size; + + xB = tb->x; + yB = tb->y; + + if (img->get_sps().chroma_format_idc == CHROMA_444) { + } + else if (cIdx > 0) { + // TODO: proper chroma handling + xB >>= 1; + yB >>= 1; + nT >>= 1; + + if (tb->log2Size==2) { + xB = tb->parent->x >> 1; + yB = tb->parent->y >> 1; + nT = 4; + } + } + + c.init(out_border, img, nT, cIdx, xB, yB); + c.preproc(); + c.fill_from_ctbtree(tb, ctbs); + c.reference_sample_substitution(); +} + + + +template <class pixel_t> +void decode_intra_prediction_from_tree_internal(const de265_image* img, + const enc_tb* tb, + const CTBTreeMatrix& ctbs, + const seq_parameter_set& sps, + int cIdx) +{ + enum IntraPredMode intraPredMode; + if (cIdx==0) intraPredMode = tb->intra_mode; + else intraPredMode = tb->intra_mode_chroma; + + pixel_t* dst = tb->intra_prediction[cIdx]->get_buffer<pixel_t>(); + int dstStride = tb->intra_prediction[cIdx]->getStride(); + + pixel_t border_pixels_mem[4*MAX_INTRA_PRED_BLOCK_SIZE+1]; + pixel_t* border_pixels = &border_pixels_mem[2*MAX_INTRA_PRED_BLOCK_SIZE]; + + fill_border_samples_from_tree(img, tb, ctbs, cIdx, border_pixels); + + if (cIdx==0) { + // memcpy(tb->debug_intra_border, border_pixels_mem, 2*64+1); + } + + int nT = 1<<tb->log2Size; + if (cIdx>0 && tb->log2Size>2 && sps.chroma_format_idc == CHROMA_420) { + nT >>= 1; // TODO: 4:2:2 + } + + + if (sps.range_extension.intra_smoothing_disabled_flag == 0 && + (cIdx==0 || sps.ChromaArrayType==CHROMA_444)) + { + intra_prediction_sample_filtering(sps, border_pixels, nT, cIdx, intraPredMode); + } + + + switch (intraPredMode) { + case INTRA_PLANAR: + intra_prediction_planar(dst,dstStride, nT, cIdx, border_pixels); + break; + case INTRA_DC: + intra_prediction_DC(dst,dstStride, nT, cIdx, border_pixels); + break; + default: + { + //int bit_depth = img->get_bit_depth(cIdx); + int bit_depth = 8; // TODO + + bool disableIntraBoundaryFilter = + (sps.range_extension.implicit_rdpcm_enabled_flag && + tb->cb->cu_transquant_bypass_flag); + + intra_prediction_angular(dst,dstStride, bit_depth,disableIntraBoundaryFilter, + tb->x,tb->y,intraPredMode,nT,cIdx, border_pixels); + } + break; + } +} + + +void decode_intra_prediction_from_tree(const de265_image* img, + const enc_tb* tb, + const CTBTreeMatrix& ctbs, + const seq_parameter_set& sps, + int cIdx) +{ + // TODO: high bit depths + + decode_intra_prediction_from_tree_internal<uint8_t>(img ,tb, ctbs, sps, cIdx); +}
View file
libde265-1.0.5.tar.gz/libde265/encoder/encoder-intrapred.h
Added
@@ -0,0 +1,40 @@ +/* + * H.265 video codec. + * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + * + * This file is part of libde265. + * + * libde265 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * libde265 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libde265. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef DE265_ENCODER_INTRAPRED_H +#define DE265_ENCODER_INTRAPRED_H + +#include "libde265/decctx.h" + + +void fillIntraPredModeCandidates(enum IntraPredMode candModeList[3], + int x,int y, + bool availableA, // left + bool availableB, // top + const class CTBTreeMatrix& ctbs, + const seq_parameter_set* sps); + +void decode_intra_prediction_from_tree(const de265_image* img, + const class enc_tb* tb, + const class CTBTreeMatrix& ctbs, + const class seq_parameter_set& sps, + int cIdx); + +#endif
View file
libde265-1.0.5.tar.gz/libde265/encoder/encoder-motion.cc
Added
@@ -0,0 +1,80 @@ +/* + * H.265 video codec. + * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + * + * This file is part of libde265. + * + * libde265 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * libde265 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libde265. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "encoder/encoder-motion.h" +#include "encoder/encoder-context.h" +#include "decctx.h" +#include "util.h" +#include "dpb.h" +#include "motion.h" + +#include <assert.h> + + +#include <sys/types.h> +#include <signal.h> +#include <string.h> + +#if defined(_MSC_VER) || defined(__MINGW32__) +# include <malloc.h> +#elif defined(HAVE_ALLOCA_H) +# include <alloca.h> +#endif + + +class MotionVectorAccess_encoder_context : public MotionVectorAccess +{ +public: + MotionVectorAccess_encoder_context(const encoder_context* e) : ectx(e) { } + + enum PartMode get_PartMode(int x,int y) const override { return ectx->ctbs.getCB(x,y)->PartMode; } + const PBMotion& get_mv_info(int x,int y) const override { return ectx->ctbs.getPB(x,y)->motion; } + +private: + const encoder_context* ectx; +}; + + + +void get_merge_candidate_list_from_tree(encoder_context* ectx, + const slice_segment_header* shdr, + int xC,int yC, int xP,int yP, + int nCS, int nPbW,int nPbH, int partIdx, + PBMotion* mergeCandList) +{ + int max_merge_idx = 5-shdr->five_minus_max_num_merge_cand -1; + + get_merge_candidate_list_without_step_9(ectx, shdr, + MotionVectorAccess_encoder_context(ectx), ectx->img, + xC,yC,xP,yP,nCS,nPbW,nPbH, partIdx, + max_merge_idx, mergeCandList); + + // 9. for encoder: modify all merge candidates + + for (int i=0;i<=max_merge_idx;i++) { + if (mergeCandList[i].predFlag[0] && + mergeCandList[i].predFlag[1] && + nPbW+nPbH==12) + { + mergeCandList[i].refIdx[1] = -1; + mergeCandList[i].predFlag[1] = 0; + } + } +}
View file
libde265-1.0.5.tar.gz/libde265/encoder/encoder-motion.h
Added
@@ -0,0 +1,32 @@ +/* + * H.265 video codec. + * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + * + * This file is part of libde265. + * + * libde265 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * libde265 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libde265. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef DE265_ENCODER_MOTION_H +#define DE265_ENCODER_MOTION_H + +#include "libde265/motion.h" + +void get_merge_candidate_list_from_tree(class encoder_context* ectx, + const slice_segment_header* shdr, + int xC,int yC, int xP,int yP, + int nCS, int nPbW,int nPbH, int partIdx, + PBMotion* mergeCandList); + +#endif
View file
libde265-1.0.3.tar.gz/libde265/encoder/encoder-syntax.cc -> libde265-1.0.5.tar.gz/libde265/encoder/encoder-syntax.cc
Changed
@@ -22,6 +22,7 @@ #include "encoder-syntax.h" #include "encoder-context.h" +#include "encoder-intrapred.h" #include "slice.h" #include "scan.h" #include "intrapred.h"
View file
libde265-1.0.3.tar.gz/libde265/encoder/sop.h -> libde265-1.0.5.tar.gz/libde265/encoder/sop.h
Changed
@@ -23,8 +23,9 @@ #include "libde265/image.h" #include "libde265/sps.h" -#include "libde265/encoder/encpicbuf.h" #include "libde265/configparam.h" +//#include "libde265/encoder/encoder-context.h" +#include "libde265/encoder/encpicbuf.h" #include <deque> #include <vector> @@ -37,6 +38,9 @@ }; */ +class encoder_context; + + class pic_order_counter { public:
View file
libde265-1.0.3.tar.gz/libde265/image-io.cc -> libde265-1.0.5.tar.gz/libde265/image-io.cc
Changed
@@ -67,7 +67,7 @@ de265_image* img = new de265_image; img->alloc_image(width,height,de265_chroma_420, NULL, false, - NULL, NULL, 0, NULL, false); + NULL, /*NULL,*/ 0, NULL, false); assert(img); // TODO: error handling // --- load image --- @@ -161,17 +161,20 @@ p = img->get_image_plane(0); stride = img->get_image_stride(0); for (int y=0;y<height;y++) { - fwrite(p+y*stride,1,width,mFH); + size_t n = fwrite(p+y*stride,1,width,mFH); + (void)n; } p = img->get_image_plane(1); stride = img->get_image_stride(1); for (int y=0;y<height/2;y++) { - fwrite(p+y*stride,1,width/2,mFH); + size_t n = fwrite(p+y*stride,1,width/2,mFH); + (void)n; } p = img->get_image_plane(2); stride = img->get_image_stride(2); for (int y=0;y<height/2;y++) { - fwrite(p+y*stride,1,width/2,mFH); + size_t n = fwrite(p+y*stride,1,width/2,mFH); + (void)n; } } @@ -206,7 +209,12 @@ startCode[1] = 0; startCode[2] = 1; - fwrite(startCode,1,3,mFH); - fwrite(data,1,n,mFH); + size_t dummy; + dummy = fwrite(startCode,1,3,mFH); + (void)dummy; + + dummy = fwrite(data,1,n,mFH); + (void)dummy; + fflush(mFH); }
View file
libde265-1.0.3.tar.gz/libde265/image.cc -> libde265-1.0.5.tar.gz/libde265/image.cc
Changed
@@ -20,7 +20,6 @@ #include "image.h" #include "decctx.h" -#include "encoder/encoder-context.h" #include <stdlib.h> #include <string.h> @@ -34,7 +33,9 @@ #endif #ifdef HAVE_SSE4_1 -#define MEMORY_PADDING 8 +// SSE code processes 128bit per iteration and thus might read more data +// than is later actually used. +#define MEMORY_PADDING 16 #else #define MEMORY_PADDING 0 #endif @@ -191,9 +192,9 @@ removed_at_picture_id = 0; // picture not used, so we can assume it has been removed decctx = NULL; - encctx = NULL; + //encctx = NULL; - encoder_image_release_func = NULL; + //encoder_image_release_func = NULL; //alloc_functions.get_buffer = NULL; //alloc_functions.release_buffer = NULL; @@ -232,7 +233,7 @@ de265_error de265_image::alloc_image(int w,int h, enum de265_chroma c, std::shared_ptr<const seq_parameter_set> sps, bool allocMetadata, decoder_context* dctx, - encoder_context* ectx, + //encoder_context* ectx, de265_PTS pts, void* user_data, bool useCustomAllocFunc) { @@ -249,7 +250,7 @@ removed_at_picture_id = std::numeric_limits<int32_t>::max(); decctx = dctx; - encctx = ectx; + //encctx = ectx; // --- allocate image buffer --- @@ -311,7 +312,7 @@ break; } - if (sps) { + if (chroma_format != de265_chroma_mono && sps) { assert(sps->SubWidthC == SubWidthC); assert(sps->SubHeightC == SubHeightC); } @@ -354,8 +355,9 @@ void* alloc_userdata = NULL; if (decctx) alloc_userdata = decctx->param_image_allocation_userdata; - if (encctx) alloc_userdata = encctx->param_image_allocation_userdata; // actually not needed + // if (encctx) alloc_userdata = encctx->param_image_allocation_userdata; // actually not needed + /* if (encctx && useCustomAllocFunc) { encoder_image_release_func = encctx->release_func; @@ -369,7 +371,7 @@ image_allocation_functions.release_buffer = NULL; } } - else if (decctx && useCustomAllocFunc) { + else*/ if (decctx && useCustomAllocFunc) { image_allocation_functions = decctx->param_image_allocation_functions; } else { @@ -383,9 +385,15 @@ alloc_userdata); pixels_confwin[0] = pixels[0] + left*WinUnitX + top*WinUnitY*stride; - pixels_confwin[1] = pixels[1] + left + top*chroma_stride; - pixels_confwin[2] = pixels[2] + left + top*chroma_stride; + if (chroma_format != de265_chroma_mono) { + pixels_confwin[1] = pixels[1] + left + top*chroma_stride; + pixels_confwin[2] = pixels[2] + left + top*chroma_stride; + } + else { + pixels_confwin[1] = NULL; + pixels_confwin[2] = NULL; + } // check for memory shortage @@ -480,13 +488,14 @@ if (pixels[0]) { + /* if (encoder_image_release_func != NULL) { encoder_image_release_func(encctx, this, encctx->param_image_allocation_userdata); } - else { + else*/ { image_allocation_functions.release_buffer(decctx, this, - decctx ? + decctx ? decctx->param_image_allocation_userdata : NULL); } @@ -532,7 +541,7 @@ */ de265_error err = alloc_image(src->width, src->height, src->chroma_format, src->sps, false, - src->decctx, src->encctx, src->pts, src->user_data, false); + src->decctx, /*src->encctx,*/ src->pts, src->user_data, false); if (err != DE265_OK) { return err; }
View file
libde265-1.0.3.tar.gz/libde265/image.h -> libde265-1.0.5.tar.gz/libde265/image.h
Changed
@@ -35,7 +35,6 @@ #endif #include "libde265/de265.h" -#include "libde265/en265.h" #include "libde265/sps.h" #include "libde265/pps.h" #include "libde265/motion.h" @@ -43,6 +42,8 @@ #include "libde265/slice.h" #include "libde265/nal.h" +struct en265_encoder_context; + enum PictureState { UnusedForReference, UsedForShortTermReference, @@ -227,7 +228,7 @@ std::shared_ptr<const seq_parameter_set> sps, bool allocMetadata, decoder_context* dctx, - class encoder_context* ectx, + //class encoder_context* ectx, de265_PTS pts, void* user_data, bool useCustomAllocFunctions); @@ -396,7 +397,7 @@ //std::shared_ptr<const pic_parameter_set> get_shared_pps() const { return pps; } decoder_context* decctx; - class encoder_context* encctx; + //class encoder_context* encctx; int number_of_ctbs() const { return ctb_info.size(); } @@ -423,9 +424,12 @@ void* user_data; void* plane_user_data[3]; // this is logically attached to the pixel data pointers de265_image_allocation image_allocation_functions; // the functions used for memory allocation + + /* void (*encoder_image_release_func)(en265_encoder_context*, de265_image*, void* userdata); + */ uint8_t integrity; /* Whether an error occured while the image was decoded. When generated, this is initialized to INTEGRITY_CORRECT,
View file
libde265-1.0.3.tar.gz/libde265/intrapred.cc -> libde265-1.0.5.tar.gz/libde265/intrapred.cc
Changed
@@ -21,42 +21,12 @@ #include "intrapred.h" #include "transform.h" #include "util.h" -#include "encoder/encoder-types.h" #include <assert.h> #include <sys/types.h> #include <string.h> -// Actually, the largest TB block can only be 32, but in some intra-pred-mode algorithms -// (e.g. min-residual), we may call intra prediction on the maximum CTB size (64). -static const int MAX_INTRA_PRED_BLOCK_SIZE = 64; - - - -#ifdef DE265_LOG_TRACE -template <class pixel_t> -void print_border(pixel_t* data, uint8_t* available, int nT) -{ - for (int i=-2*nT ; i<=2*nT ; i++) { - if (i==0 || i==1 || i==-nT || i==nT+1) { - logtrace(LogIntraPred,"|"); - } else { - logtrace(LogIntraPred," "); - } - - if (available==NULL || available[i]) { - logtrace(LogIntraPred,"%02x",data[i]); - } - else { - logtrace(LogIntraPred,"--"); - } - } -} -#else -#define print_border(data, available, nT) -#endif - void fillIntraPredModeCandidates(enum IntraPredMode candModeList[3], @@ -153,72 +123,6 @@ } -void fillIntraPredModeCandidates(enum IntraPredMode candModeList[3], - int x,int y, - bool availableA, // left - bool availableB, // top - const CTBTreeMatrix& ctbs, - const seq_parameter_set* sps) -{ - - // block on left side - - enum IntraPredMode candIntraPredModeA, candIntraPredModeB; - - if (availableA==false) { - candIntraPredModeA=INTRA_DC; - } - else { - const enc_cb* cbL = ctbs.getCB(x-1,y); - assert(cbL != NULL); - - if (cbL->PredMode != MODE_INTRA || - cbL->pcm_flag) { - candIntraPredModeA=INTRA_DC; - } - else { - const enc_tb* tbL = cbL->getTB(x-1,y); - assert(tbL); - candIntraPredModeA = tbL->intra_mode; - } - } - - // block above - - if (availableB==false) { - candIntraPredModeB=INTRA_DC; - } - else { - const enc_cb* cbA = ctbs.getCB(x,y-1); - assert(cbA != NULL); - - if (cbA->PredMode != MODE_INTRA || - cbA->pcm_flag) { - candIntraPredModeB=INTRA_DC; - } - else if (y-1 < ((y >> sps->Log2CtbSizeY) << sps->Log2CtbSizeY)) { - candIntraPredModeB=INTRA_DC; - } - else { - const enc_tb* tbA = cbA->getTB(x,y-1); - assert(tbA); - - candIntraPredModeB = tbA->intra_mode; - } - } - - - logtrace(LogSlice,"%d;%d candA:%d / candB:%d\n", x,y, - availableA ? candIntraPredModeA : -999, - availableB ? candIntraPredModeB : -999); - - - fillIntraPredModeCandidates(candModeList, - candIntraPredModeA, - candIntraPredModeB); -} - - int find_intra_pred_mode(enum IntraPredMode mode, enum IntraPredMode candModeList[3]) { @@ -341,190 +245,6 @@ } -template <class pixel_t> -struct intra_border_computer -{ - pixel_t* out_border; - - const de265_image* img; - int nT; - int cIdx; - - int xB,yB; - - const seq_parameter_set* sps; - const pic_parameter_set* pps; - - uint8_t available_data[4*MAX_INTRA_PRED_BLOCK_SIZE + 1]; - uint8_t* available; - - int SubWidth; - int SubHeight; - - bool availableLeft; // is CTB at left side available? - bool availableTop; // is CTB at top side available? - bool availableTopRight; // is CTB at top-right side available? - bool availableTopLeft; // if CTB at top-left pixel available? - - int nBottom; - int nRight; - int nAvail; - pixel_t firstValue; - - void init(pixel_t* _out_border, - const de265_image* _img, int _nT, int _cIdx, int _xB, int _yB) { - img=_img; nT=_nT; cIdx=_cIdx; - out_border=_out_border; xB=_xB; yB=_yB; - - assert(nT <= MAX_INTRA_PRED_BLOCK_SIZE); - - availableLeft=true; - availableTop=true; - availableTopRight=true; - availableTopLeft=true; - } - void preproc(); - void fill_from_image(); - void fill_from_ctbtree(const enc_tb* tb, - const CTBTreeMatrix& ctbs); - void reference_sample_substitution(); -}; - - -template <class pixel_t> -void intra_border_computer<pixel_t>::reference_sample_substitution() -{ - // reference sample substitution - - const int bit_depth = img->get_bit_depth(cIdx); - - if (nAvail!=4*nT+1) { - if (nAvail==0) { - if (sizeof(pixel_t)==1) { - memset(out_border-2*nT, 1<<(bit_depth-1), 4*nT+1); - } - else { - for (int i = -2*nT; i <= 2*nT ; i++) { - out_border[i] = 1<<(bit_depth-1); - } - } - } - else { - if (!available[-2*nT]) { - out_border[-2*nT] = firstValue; - } - - for (int i=-2*nT+1; i<=2*nT; i++) - if (!available[i]) { - out_border[i]=out_border[i-1]; - } - } - } - - logtrace(LogIntraPred,"availableN: "); - print_border(available,NULL,nT); - logtrace(LogIntraPred,"\n"); - - logtrace(LogIntraPred,"output: "); - print_border(out_border,NULL,nT); - logtrace(LogIntraPred,"\n"); -} - - - - -template <class pixel_t> -void intra_border_computer<pixel_t>::preproc() -{ - sps = &img->get_sps(); - pps = &img->get_pps(); - - SubWidth = (cIdx==0) ? 1 : sps->SubWidthC; - SubHeight = (cIdx==0) ? 1 : sps->SubHeightC; - - // --- check for CTB boundaries --- - - int xBLuma = xB * SubWidth; - int yBLuma = yB * SubHeight; - - int log2CtbSize = sps->Log2CtbSizeY; - int picWidthInCtbs = sps->PicWidthInCtbsY; - - - //printf("xB/yB: %d %d\n",xB,yB); - - // are we at left image border - - if (xBLuma == 0) { - availableLeft = false; - availableTopLeft = false; - xBLuma = 0; // fake value, available flags are already set to false - } - - - // are we at top image border - - if (yBLuma == 0) { - availableTop = false; - availableTopLeft = false; - availableTopRight = false; - yBLuma = 0; // fake value, available flags are already set to false - } - - if (xBLuma+nT*SubWidth >= sps->pic_width_in_luma_samples) { - availableTopRight=false; - } - - // check for tile and slice boundaries - - int xCurrCtb = xBLuma >> log2CtbSize; - int yCurrCtb = yBLuma >> log2CtbSize; - int xLeftCtb = (xBLuma-1) >> log2CtbSize; - int xRightCtb = (xBLuma+nT*SubWidth) >> log2CtbSize; - int yTopCtb = (yBLuma-1) >> log2CtbSize; - - int currCTBSlice = img->get_SliceAddrRS(xCurrCtb,yCurrCtb); - int leftCTBSlice = availableLeft ? img->get_SliceAddrRS(xLeftCtb, yCurrCtb) : -1; - int topCTBSlice = availableTop ? img->get_SliceAddrRS(xCurrCtb, yTopCtb) : -1; - int toprightCTBSlice = availableTopRight ? img->get_SliceAddrRS(xRightCtb, yTopCtb) : -1; - int topleftCTBSlice = availableTopLeft ? img->get_SliceAddrRS(xLeftCtb, yTopCtb) : -1; - - /* - printf("size: %d\n",pps->TileIdRS.size()); - printf("curr: %d left: %d top: %d\n", - xCurrCtb+yCurrCtb*picWidthInCtbs, - availableLeft ? xLeftCtb+yCurrCtb*picWidthInCtbs : 9999, - availableTop ? xCurrCtb+yTopCtb*picWidthInCtbs : 9999); - */ - int currCTBTileID = pps->TileIdRS[xCurrCtb+yCurrCtb*picWidthInCtbs]; - int leftCTBTileID = availableLeft ? pps->TileIdRS[xLeftCtb+yCurrCtb*picWidthInCtbs] : -1; - int topCTBTileID = availableTop ? pps->TileIdRS[xCurrCtb+yTopCtb*picWidthInCtbs] : -1; - int topleftCTBTileID = availableTopLeft ? pps->TileIdRS[xLeftCtb+yTopCtb*picWidthInCtbs] : -1; - int toprightCTBTileID= availableTopRight? pps->TileIdRS[xRightCtb+yTopCtb*picWidthInCtbs] : -1; - - if (leftCTBSlice != currCTBSlice || leftCTBTileID != currCTBTileID ) availableLeft = false; - if (topCTBSlice != currCTBSlice || topCTBTileID != currCTBTileID ) availableTop = false; - if (topleftCTBSlice !=currCTBSlice||topleftCTBTileID!=currCTBTileID ) availableTopLeft = false; - if (toprightCTBSlice!=currCTBSlice||toprightCTBTileID!=currCTBTileID) availableTopRight= false; - - - // number of pixels that are in the valid image area to the right and to the bottom - - nBottom = sps->pic_height_in_luma_samples - yB*SubHeight; - nBottom=(nBottom+SubHeight-1)/SubHeight; - if (nBottom>2*nT) nBottom=2*nT; - - nRight = sps->pic_width_in_luma_samples - xB*SubWidth; - nRight =(nRight +SubWidth-1)/SubWidth; - if (nRight >2*nT) nRight=2*nT; - - nAvail=0; - - available = &available_data[2*MAX_INTRA_PRED_BLOCK_SIZE]; - - memset(available-2*nT, 0, 4*nT+1); -} - // (8.4.4.2.2) @@ -542,534 +262,15 @@ } -// (8.4.4.2.2) -template <class pixel_t> -void fill_border_samples_from_tree(const de265_image* img, - const enc_tb* tb, - const CTBTreeMatrix& ctbs, - int cIdx, - pixel_t* out_border) -{ - intra_border_computer<pixel_t> c; - - // xB,yB in component specific resolution - int xB,yB; - int nT = 1<<tb->log2Size; - - xB = tb->x; - yB = tb->y; - - if (img->get_sps().chroma_format_idc == CHROMA_444) { - } - else if (cIdx > 0) { - // TODO: proper chroma handling - xB >>= 1; - yB >>= 1; - nT >>= 1; - - if (tb->log2Size==2) { - xB = tb->parent->x >> 1; - yB = tb->parent->y >> 1; - nT = 4; - } - } - - c.init(out_border, img, nT, cIdx, xB, yB); - c.preproc(); - c.fill_from_ctbtree(tb, ctbs); - c.reference_sample_substitution(); -} - - -template <class pixel_t> -void intra_border_computer<pixel_t>::fill_from_image() -{ - assert(nT<=32); - - pixel_t* image; - int stride; - image = (pixel_t*)img->get_image_plane(cIdx); - stride = img->get_image_stride(cIdx); - - int xBLuma = xB * SubWidth; - int yBLuma = yB * SubHeight; - - int currBlockAddr = pps->MinTbAddrZS[ (xBLuma>>sps->Log2MinTrafoSize) + - (yBLuma>>sps->Log2MinTrafoSize) * sps->PicWidthInTbsY ]; - - - // copy pixels at left column - - for (int y=nBottom-1 ; y>=0 ; y-=4) - if (availableLeft) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB+y)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - if (pps->constrained_intra_pred_flag) { - if (img->get_pred_mode((xB-1)*SubWidth,(yB+y)*SubHeight)!=MODE_INTRA) - availableN = false; - } - - if (availableN) { - if (!nAvail) firstValue = image[xB-1 + (yB+y)*stride]; - - for (int i=0;i<4;i++) { - available[-y+i-1] = availableN; - out_border[-y+i-1] = image[xB-1 + (yB+y-i)*stride]; - } - - nAvail+=4; - } - } - - // copy pixel at top-left position - - if (availableTopLeft) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - if (pps->constrained_intra_pred_flag) { - if (img->get_pred_mode((xB-1)*SubWidth,(yB-1)*SubHeight)!=MODE_INTRA) { - availableN = false; - } - } - - if (availableN) { - if (!nAvail) firstValue = image[xB-1 + (yB-1)*stride]; - - out_border[0] = image[xB-1 + (yB-1)*stride]; - available[0] = availableN; - nAvail++; - } - } - - // copy pixels at top row - - for (int x=0 ; x<nRight ; x+=4) { - bool borderAvailable; - if (x<nT) borderAvailable=availableTop; - else borderAvailable=availableTopRight; - - if (borderAvailable) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB+x)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - if (pps->constrained_intra_pred_flag) { - if (img->get_pred_mode((xB+x)*SubWidth,(yB-1)*SubHeight)!=MODE_INTRA) { - availableN = false; - } - } - - - if (availableN) { - if (!nAvail) firstValue = image[xB+x + (yB-1)*stride]; - - for (int i=0;i<4;i++) { - out_border[x+i+1] = image[xB+x+i + (yB-1)*stride]; - available[x+i+1] = availableN; - } - - nAvail+=4; - } - } - } -} - - -template <class pixel_t> -void intra_border_computer<pixel_t>::fill_from_ctbtree(const enc_tb* blkTb, - const CTBTreeMatrix& ctbs) -{ - int xBLuma = xB * SubWidth; - int yBLuma = yB * SubHeight; - - int currBlockAddr = pps->MinTbAddrZS[ (xBLuma>>sps->Log2MinTrafoSize) + - (yBLuma>>sps->Log2MinTrafoSize) * sps->PicWidthInTbsY ]; - - - // copy pixels at left column - - for (int y=nBottom-1 ; y>=0 ; y-=4) - if (availableLeft) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB+y)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - int xN = xB-1; - int yN = yB+y; - - const enc_cb* cb = ctbs.getCB(xN*SubWidth, yN*SubHeight); - - if (pps->constrained_intra_pred_flag) { - if (cb->PredMode != MODE_INTRA) - availableN = false; - } - - if (availableN) { - PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, cIdx, *sps); - - if (!nAvail) firstValue = pa[yB+y][xB-1]; - - for (int i=0;i<4;i++) { - available[-y+i-1] = availableN; - out_border[-y+i-1] = pa[yB+y-i][xB-1]; - } - - nAvail+=4; - } - } - - // copy pixel at top-left position - - if (availableTopLeft) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - int xN = xB-1; - int yN = yB-1; - - const enc_cb* cb = ctbs.getCB(xN*SubWidth, yN*SubHeight); - - if (pps->constrained_intra_pred_flag) { - if (cb->PredMode!=MODE_INTRA) { - availableN = false; - } - } - - if (availableN) { - PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, cIdx, *sps); - - out_border[0] = pa[yB-1][xB-1]; - available[0] = availableN; - - if (!nAvail) firstValue = out_border[0]; - nAvail++; - } - } - - - // copy pixels at top row - - for (int x=0 ; x<nRight ; x+=4) { - bool borderAvailable; - if (x<nT) borderAvailable=availableTop; - else borderAvailable=availableTopRight; - - if (borderAvailable) - { - int NBlockAddr = pps->MinTbAddrZS[ (((xB+x)*SubWidth )>>sps->Log2MinTrafoSize) + - (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) - * sps->PicWidthInTbsY ]; - - bool availableN = NBlockAddr <= currBlockAddr; - - int xN = xB+x; - int yN = yB-1; - - const enc_cb* cb = ctbs.getCB(xN*SubWidth, yN*SubHeight); - - if (pps->constrained_intra_pred_flag) { - if (cb->PredMode!=MODE_INTRA) { - availableN = false; - } - } - - - if (availableN) { - PixelAccessor pa = cb->transform_tree->getPixels(xN,yN, cIdx, *sps); - - if (!nAvail) firstValue = pa[yB-1][xB+x]; - - for (int i=0;i<4;i++) { - out_border[x+i+1] = pa[yB-1][xB+x+i]; - available[x+i+1] = availableN; - } - - nAvail+=4; - } - } - } -} - - -// (8.4.4.2.3) -template <class pixel_t> -void intra_prediction_sample_filtering(const seq_parameter_set& sps, - pixel_t* p, - int nT, int cIdx, - enum IntraPredMode intraPredMode) -{ - int filterFlag; - - //printf("filtering, mode: %d\n",intraPredMode); - - if (intraPredMode==INTRA_DC || nT==4) { - filterFlag = 0; - } else { - // int-cast below prevents a typing problem that leads to wrong results when abs_value is a macro - int minDistVerHor = libde265_min( abs_value((int)intraPredMode-26), - abs_value((int)intraPredMode-10) ); - - //printf("mindist: %d\n",minDistVerHor); - - switch (nT) { - case 8: filterFlag = (minDistVerHor>7) ? 1 : 0; break; - case 16: filterFlag = (minDistVerHor>1) ? 1 : 0; break; - case 32: filterFlag = (minDistVerHor>0) ? 1 : 0; break; - // there is no official 64x64 TB block, but we call this for some intra-pred mode algorithms - // on the whole CB (2Nx2N mode for the whole CTB) - case 64: filterFlag = 0; break; - default: filterFlag = -1; assert(false); break; // should never happen - } - } - - - if (filterFlag) { - int biIntFlag = (sps.strong_intra_smoothing_enable_flag && - cIdx==0 && - nT==32 && - abs_value(p[0]+p[ 64]-2*p[ 32]) < (1<<(sps.bit_depth_luma-5)) && - abs_value(p[0]+p[-64]-2*p[-32]) < (1<<(sps.bit_depth_luma-5))) - ? 1 : 0; - - pixel_t pF_mem[4*32+1]; - pixel_t* pF = &pF_mem[2*32]; - - if (biIntFlag) { - pF[-2*nT] = p[-2*nT]; - pF[ 2*nT] = p[ 2*nT]; - pF[ 0] = p[ 0]; - - for (int i=1;i<=63;i++) { - pF[-i] = p[0] + ((i*(p[-64]-p[0])+32)>>6); - pF[ i] = p[0] + ((i*(p[ 64]-p[0])+32)>>6); - } - } else { - pF[-2*nT] = p[-2*nT]; - pF[ 2*nT] = p[ 2*nT]; - - for (int i=-(2*nT-1) ; i<=2*nT-1 ; i++) - { - pF[i] = (p[i+1] + 2*p[i] + p[i-1] + 2) >> 2; - } - } - - - // copy back to original array - - memcpy(p-2*nT, pF-2*nT, (4*nT+1) * sizeof(pixel_t)); - } - else { - // do nothing ? - } - - - logtrace(LogIntraPred,"post filtering: "); - print_border(p,NULL,nT); - logtrace(LogIntraPred,"\n"); -} - - const int intraPredAngle_table[1+34] = { 0, 0,32,26,21,17,13, 9, 5, 2, 0,-2,-5,-9,-13,-17,-21,-26, -32,-26,-21,-17,-13,-9,-5,-2,0,2,5,9,13,17,21,26,32 }; -static const int invAngle_table[25-10] = +const int invAngle_table[25-10] = { -4096,-1638,-910,-630,-482,-390,-315,-256, -315,-390,-482,-630,-910,-1638,-4096 }; -// (8.4.4.2.6) -template <class pixel_t> -void intra_prediction_angular(pixel_t* dst, int dstStride, - int bit_depth, bool disableIntraBoundaryFilter, - int xB0,int yB0, - enum IntraPredMode intraPredMode, - int nT,int cIdx, - pixel_t* border) -{ - pixel_t ref_mem[4*MAX_INTRA_PRED_BLOCK_SIZE+1]; // TODO: what is the required range here ? - pixel_t* ref=&ref_mem[2*MAX_INTRA_PRED_BLOCK_SIZE]; - - assert(intraPredMode<35); - assert(intraPredMode>=2); - - int intraPredAngle = intraPredAngle_table[intraPredMode]; - - if (intraPredMode >= 18) { - - for (int x=0;x<=nT;x++) - { ref[x] = border[x]; } - - if (intraPredAngle<0) { - int invAngle = invAngle_table[intraPredMode-11]; - - if ((nT*intraPredAngle)>>5 < -1) { - for (int x=(nT*intraPredAngle)>>5; x<=-1; x++) { - ref[x] = border[0-((x*invAngle+128)>>8)]; - } - } - } else { - for (int x=nT+1; x<=2*nT;x++) { - ref[x] = border[x]; - } - } - - for (int y=0;y<nT;y++) - for (int x=0;x<nT;x++) - { - int iIdx = ((y+1)*intraPredAngle)>>5; - int iFact= ((y+1)*intraPredAngle)&31; - - if (iFact != 0) { - dst[x+y*dstStride] = ((32-iFact)*ref[x+iIdx+1] + iFact*ref[x+iIdx+2] + 16)>>5; - } else { - dst[x+y*dstStride] = ref[x+iIdx+1]; - } - } - - if (intraPredMode==26 && cIdx==0 && nT<32 && !disableIntraBoundaryFilter) { - for (int y=0;y<nT;y++) { - dst[0+y*dstStride] = Clip_BitDepth(border[1] + ((border[-1-y] - border[0])>>1), bit_depth); - } - } - } - else { // intraPredAngle < 18 - - for (int x=0;x<=nT;x++) - { ref[x] = border[-x]; } // DIFF (neg) - - if (intraPredAngle<0) { - int invAngle = invAngle_table[intraPredMode-11]; - - if ((nT*intraPredAngle)>>5 < -1) { - for (int x=(nT*intraPredAngle)>>5; x<=-1; x++) { - ref[x] = border[((x*invAngle+128)>>8)]; // DIFF (neg) - } - } - } else { - for (int x=nT+1; x<=2*nT;x++) { - ref[x] = border[-x]; // DIFF (neg) - } - } - - for (int y=0;y<nT;y++) - for (int x=0;x<nT;x++) - { - int iIdx = ((x+1)*intraPredAngle)>>5; // DIFF (x<->y) - int iFact= ((x+1)*intraPredAngle)&31; // DIFF (x<->y) - - if (iFact != 0) { - dst[x+y*dstStride] = ((32-iFact)*ref[y+iIdx+1] + iFact*ref[y+iIdx+2] + 16)>>5; // DIFF (x<->y) - } else { - dst[x+y*dstStride] = ref[y+iIdx+1]; // DIFF (x<->y) - } - } - - if (intraPredMode==10 && cIdx==0 && nT<32 && !disableIntraBoundaryFilter) { // DIFF 26->10 - for (int x=0;x<nT;x++) { // DIFF (x<->y) - dst[x] = Clip_BitDepth(border[-1] + ((border[1+x] - border[0])>>1), bit_depth); // DIFF (x<->y && neg) - } - } - } - - - logtrace(LogIntraPred,"result of angular intra prediction (mode=%d):\n",intraPredMode); - - for (int y=0;y<nT;y++) - { - for (int x=0;x<nT;x++) - logtrace(LogIntraPred,"%02x ", dst[x+y*dstStride]); - - logtrace(LogIntraPred,"\n"); - } -} - - -template <class pixel_t> -void intra_prediction_planar(pixel_t* dst, int dstStride, - int nT,int cIdx, - pixel_t* border) -{ - int Log2_nT = Log2(nT); - - for (int y=0;y<nT;y++) - for (int x=0;x<nT;x++) - { - dst[x+y*dstStride] = ((nT-1-x)*border[-1-y] + (x+1)*border[ 1+nT] + - (nT-1-y)*border[ 1+x] + (y+1)*border[-1-nT] + nT) >> (Log2_nT+1); - } - - - logtrace(LogIntraPred,"result of planar prediction\n"); - - for (int y=0;y<nT;y++) - { - for (int x=0;x<nT;x++) - logtrace(LogIntraPred,"%02x ", dst[x+y*dstStride]); - - logtrace(LogIntraPred,"\n"); - } -} - - -template <class pixel_t> -void intra_prediction_DC(pixel_t* dst, int dstStride, - int nT,int cIdx, - pixel_t* border) -{ - int Log2_nT = Log2(nT); - - int dcVal = 0; - for (int i=0;i<nT;i++) - { - dcVal += border[ i+1]; - dcVal += border[-i-1]; - } - - dcVal += nT; - dcVal >>= Log2_nT+1; - - if (cIdx==0 && nT<32) { - dst[0] = (border[-1] + 2*dcVal + border[1] +2) >> 2; - - for (int x=1;x<nT;x++) { dst[x] = (border[ x+1] + 3*dcVal+2)>>2; } - for (int y=1;y<nT;y++) { dst[y*dstStride] = (border[-y-1] + 3*dcVal+2)>>2; } - for (int y=1;y<nT;y++) - for (int x=1;x<nT;x++) - { - dst[x+y*dstStride] = dcVal; - } - } else { - for (int y=0;y<nT;y++) - for (int x=0;x<nT;x++) - { - dst[x+y*dstStride] = dcVal; - } - } -} - - - template <class pixel_t> void decode_intra_prediction_internal(de265_image* img, int xB0,int yB0, @@ -1161,75 +362,3 @@ dst,nT, nT,cIdx); } - - -template <class pixel_t> -void decode_intra_prediction_from_tree_internal(const de265_image* img, - const enc_tb* tb, - const CTBTreeMatrix& ctbs, - const seq_parameter_set& sps, - int cIdx) -{ - enum IntraPredMode intraPredMode; - if (cIdx==0) intraPredMode = tb->intra_mode; - else intraPredMode = tb->intra_mode_chroma; - - pixel_t* dst = tb->intra_prediction[cIdx]->get_buffer<pixel_t>(); - int dstStride = tb->intra_prediction[cIdx]->getStride(); - - pixel_t border_pixels_mem[4*MAX_INTRA_PRED_BLOCK_SIZE+1]; - pixel_t* border_pixels = &border_pixels_mem[2*MAX_INTRA_PRED_BLOCK_SIZE]; - - fill_border_samples_from_tree(img, tb, ctbs, cIdx, border_pixels); - - if (cIdx==0) { - // memcpy(tb->debug_intra_border, border_pixels_mem, 2*64+1); - } - - int nT = 1<<tb->log2Size; - if (cIdx>0 && tb->log2Size>2 && sps.chroma_format_idc == CHROMA_420) { - nT >>= 1; // TODO: 4:2:2 - } - - - if (sps.range_extension.intra_smoothing_disabled_flag == 0 && - (cIdx==0 || sps.ChromaArrayType==CHROMA_444)) - { - intra_prediction_sample_filtering(sps, border_pixels, nT, cIdx, intraPredMode); - } - - - switch (intraPredMode) { - case INTRA_PLANAR: - intra_prediction_planar(dst,dstStride, nT, cIdx, border_pixels); - break; - case INTRA_DC: - intra_prediction_DC(dst,dstStride, nT, cIdx, border_pixels); - break; - default: - { - //int bit_depth = img->get_bit_depth(cIdx); - int bit_depth = 8; // TODO - - bool disableIntraBoundaryFilter = - (sps.range_extension.implicit_rdpcm_enabled_flag && - tb->cb->cu_transquant_bypass_flag); - - intra_prediction_angular(dst,dstStride, bit_depth,disableIntraBoundaryFilter, - tb->x,tb->y,intraPredMode,nT,cIdx, border_pixels); - } - break; - } -} - - -void decode_intra_prediction_from_tree(const de265_image* img, - const enc_tb* tb, - const CTBTreeMatrix& ctbs, - const seq_parameter_set& sps, - int cIdx) -{ - // TODO: high bit depths - - decode_intra_prediction_from_tree_internal<uint8_t>(img ,tb, ctbs, sps, cIdx); -}
View file
libde265-1.0.3.tar.gz/libde265/intrapred.h -> libde265-1.0.5.tar.gz/libde265/intrapred.h
Changed
@@ -47,14 +47,9 @@ fillIntraPredModeCandidates(candModeList, x,y, PUidx, availableA,availableB, img); } - void fillIntraPredModeCandidates(enum IntraPredMode candModeList[3], - int x,int y, - bool availableA, // left - bool availableB, // top - const class CTBTreeMatrix& ctbs, - const seq_parameter_set* sps); - + enum IntraPredMode candIntraPredModeA, + enum IntraPredMode candIntraPredModeB); /* Return value >= 0 -> use mpm_idx(return value) @@ -96,16 +91,588 @@ enum IntraPredMode intraPredMode, int nT, int cIdx); -void decode_intra_prediction_from_tree(const de265_image* img, - const class enc_tb* tb, - const class CTBTreeMatrix& ctbs, - const class seq_parameter_set& sps, - int cIdx); - // TODO: remove this template <class pixel_t> void decode_intra_prediction(de265_image* img, int xB0,int yB0, enum IntraPredMode intraPredMode, pixel_t* dst, int nT, int cIdx); + + + +// --- internal use only --- + +// Actually, the largest TB block can only be 32, but in some intra-pred-mode algorithms +// (e.g. min-residual), we may call intra prediction on the maximum CTB size (64). +static const int MAX_INTRA_PRED_BLOCK_SIZE = 64; + + +template <class pixel_t> +class intra_border_computer +{ + public: + pixel_t* out_border; + + const de265_image* img; + int nT; + int cIdx; + + int xB,yB; + + const seq_parameter_set* sps; + const pic_parameter_set* pps; + + uint8_t available_data[4*MAX_INTRA_PRED_BLOCK_SIZE + 1]; + uint8_t* available; + + int SubWidth; + int SubHeight; + + bool availableLeft; // is CTB at left side available? + bool availableTop; // is CTB at top side available? + bool availableTopRight; // is CTB at top-right side available? + bool availableTopLeft; // if CTB at top-left pixel available? + + int nBottom; + int nRight; + int nAvail; + pixel_t firstValue; + + void init(pixel_t* _out_border, + const de265_image* _img, int _nT, int _cIdx, int _xB, int _yB) { + img=_img; nT=_nT; cIdx=_cIdx; + out_border=_out_border; xB=_xB; yB=_yB; + + assert(nT <= MAX_INTRA_PRED_BLOCK_SIZE); + + availableLeft=true; + availableTop=true; + availableTopRight=true; + availableTopLeft=true; + } + void preproc(); + void fill_from_image(); + + void reference_sample_substitution(); +}; + + +#ifdef DE265_LOG_TRACE +template <class pixel_t> +void print_border(pixel_t* data, uint8_t* available, int nT) +{ + for (int i=-2*nT ; i<=2*nT ; i++) { + if (i==0 || i==1 || i==-nT || i==nT+1) { + logtrace(LogIntraPred,"|"); + } else { + logtrace(LogIntraPred," "); + } + + if (available==NULL || available[i]) { + logtrace(LogIntraPred,"%02x",data[i]); + } + else { + logtrace(LogIntraPred,"--"); + } + } +} +#else +#define print_border(data, available, nT) +#endif + + +// (8.4.4.2.3) +template <class pixel_t> +void intra_prediction_sample_filtering(const seq_parameter_set& sps, + pixel_t* p, + int nT, int cIdx, + enum IntraPredMode intraPredMode) +{ + int filterFlag; + + //printf("filtering, mode: %d\n",intraPredMode); + + if (intraPredMode==INTRA_DC || nT==4) { + filterFlag = 0; + } else { + // int-cast below prevents a typing problem that leads to wrong results when abs_value is a macro + int minDistVerHor = libde265_min( abs_value((int)intraPredMode-26), + abs_value((int)intraPredMode-10) ); + + //printf("mindist: %d\n",minDistVerHor); + + switch (nT) { + case 8: filterFlag = (minDistVerHor>7) ? 1 : 0; break; + case 16: filterFlag = (minDistVerHor>1) ? 1 : 0; break; + case 32: filterFlag = (minDistVerHor>0) ? 1 : 0; break; + // there is no official 64x64 TB block, but we call this for some intra-pred mode algorithms + // on the whole CB (2Nx2N mode for the whole CTB) + case 64: filterFlag = 0; break; + default: filterFlag = -1; assert(false); break; // should never happen + } + } + + + if (filterFlag) { + int biIntFlag = (sps.strong_intra_smoothing_enable_flag && + cIdx==0 && + nT==32 && + abs_value(p[0]+p[ 64]-2*p[ 32]) < (1<<(sps.bit_depth_luma-5)) && + abs_value(p[0]+p[-64]-2*p[-32]) < (1<<(sps.bit_depth_luma-5))) + ? 1 : 0; + + pixel_t pF_mem[4*32+1]; + pixel_t* pF = &pF_mem[2*32]; + + if (biIntFlag) { + pF[-2*nT] = p[-2*nT]; + pF[ 2*nT] = p[ 2*nT]; + pF[ 0] = p[ 0]; + + for (int i=1;i<=63;i++) { + pF[-i] = p[0] + ((i*(p[-64]-p[0])+32)>>6); + pF[ i] = p[0] + ((i*(p[ 64]-p[0])+32)>>6); + } + } else { + pF[-2*nT] = p[-2*nT]; + pF[ 2*nT] = p[ 2*nT]; + + for (int i=-(2*nT-1) ; i<=2*nT-1 ; i++) + { + pF[i] = (p[i+1] + 2*p[i] + p[i-1] + 2) >> 2; + } + } + + + // copy back to original array + + memcpy(p-2*nT, pF-2*nT, (4*nT+1) * sizeof(pixel_t)); + } + else { + // do nothing ? + } + + + logtrace(LogIntraPred,"post filtering: "); + print_border(p,NULL,nT); + logtrace(LogIntraPred,"\n"); +} + + +template <class pixel_t> +void intra_prediction_planar(pixel_t* dst, int dstStride, + int nT,int cIdx, + pixel_t* border) +{ + int Log2_nT = Log2(nT); + + for (int y=0;y<nT;y++) + for (int x=0;x<nT;x++) + { + dst[x+y*dstStride] = ((nT-1-x)*border[-1-y] + (x+1)*border[ 1+nT] + + (nT-1-y)*border[ 1+x] + (y+1)*border[-1-nT] + nT) >> (Log2_nT+1); + } + + + logtrace(LogIntraPred,"result of planar prediction\n"); + + for (int y=0;y<nT;y++) + { + for (int x=0;x<nT;x++) + logtrace(LogIntraPred,"%02x ", dst[x+y*dstStride]); + + logtrace(LogIntraPred,"\n"); + } +} + + +template <class pixel_t> +void intra_prediction_DC(pixel_t* dst, int dstStride, + int nT,int cIdx, + pixel_t* border) +{ + int Log2_nT = Log2(nT); + + int dcVal = 0; + for (int i=0;i<nT;i++) + { + dcVal += border[ i+1]; + dcVal += border[-i-1]; + } + + dcVal += nT; + dcVal >>= Log2_nT+1; + + if (cIdx==0 && nT<32) { + dst[0] = (border[-1] + 2*dcVal + border[1] +2) >> 2; + + for (int x=1;x<nT;x++) { dst[x] = (border[ x+1] + 3*dcVal+2)>>2; } + for (int y=1;y<nT;y++) { dst[y*dstStride] = (border[-y-1] + 3*dcVal+2)>>2; } + for (int y=1;y<nT;y++) + for (int x=1;x<nT;x++) + { + dst[x+y*dstStride] = dcVal; + } + } else { + for (int y=0;y<nT;y++) + for (int x=0;x<nT;x++) + { + dst[x+y*dstStride] = dcVal; + } + } +} + + +extern const int intraPredAngle_table[1+34]; +extern const int invAngle_table[25-10]; + + +// (8.4.4.2.6) +template <class pixel_t> +void intra_prediction_angular(pixel_t* dst, int dstStride, + int bit_depth, bool disableIntraBoundaryFilter, + int xB0,int yB0, + enum IntraPredMode intraPredMode, + int nT,int cIdx, + pixel_t* border) +{ + pixel_t ref_mem[4*MAX_INTRA_PRED_BLOCK_SIZE+1]; // TODO: what is the required range here ? + pixel_t* ref=&ref_mem[2*MAX_INTRA_PRED_BLOCK_SIZE]; + + assert(intraPredMode<35); + assert(intraPredMode>=2); + + int intraPredAngle = intraPredAngle_table[intraPredMode]; + + if (intraPredMode >= 18) { + + for (int x=0;x<=nT;x++) + { ref[x] = border[x]; } + + if (intraPredAngle<0) { + int invAngle = invAngle_table[intraPredMode-11]; + + if ((nT*intraPredAngle)>>5 < -1) { + for (int x=(nT*intraPredAngle)>>5; x<=-1; x++) { + ref[x] = border[0-((x*invAngle+128)>>8)]; + } + } + } else { + for (int x=nT+1; x<=2*nT;x++) { + ref[x] = border[x]; + } + } + + for (int y=0;y<nT;y++) + for (int x=0;x<nT;x++) + { + int iIdx = ((y+1)*intraPredAngle)>>5; + int iFact= ((y+1)*intraPredAngle)&31; + + if (iFact != 0) { + dst[x+y*dstStride] = ((32-iFact)*ref[x+iIdx+1] + iFact*ref[x+iIdx+2] + 16)>>5; + } else { + dst[x+y*dstStride] = ref[x+iIdx+1]; + } + } + + if (intraPredMode==26 && cIdx==0 && nT<32 && !disableIntraBoundaryFilter) { + for (int y=0;y<nT;y++) { + dst[0+y*dstStride] = Clip_BitDepth(border[1] + ((border[-1-y] - border[0])>>1), bit_depth); + } + } + } + else { // intraPredAngle < 18 + + for (int x=0;x<=nT;x++) + { ref[x] = border[-x]; } // DIFF (neg) + + if (intraPredAngle<0) { + int invAngle = invAngle_table[intraPredMode-11]; + + if ((nT*intraPredAngle)>>5 < -1) { + for (int x=(nT*intraPredAngle)>>5; x<=-1; x++) { + ref[x] = border[((x*invAngle+128)>>8)]; // DIFF (neg) + } + } + } else { + for (int x=nT+1; x<=2*nT;x++) { + ref[x] = border[-x]; // DIFF (neg) + } + } + + for (int y=0;y<nT;y++) + for (int x=0;x<nT;x++) + { + int iIdx = ((x+1)*intraPredAngle)>>5; // DIFF (x<->y) + int iFact= ((x+1)*intraPredAngle)&31; // DIFF (x<->y) + + if (iFact != 0) { + dst[x+y*dstStride] = ((32-iFact)*ref[y+iIdx+1] + iFact*ref[y+iIdx+2] + 16)>>5; // DIFF (x<->y) + } else { + dst[x+y*dstStride] = ref[y+iIdx+1]; // DIFF (x<->y) + } + } + + if (intraPredMode==10 && cIdx==0 && nT<32 && !disableIntraBoundaryFilter) { // DIFF 26->10 + for (int x=0;x<nT;x++) { // DIFF (x<->y) + dst[x] = Clip_BitDepth(border[-1] + ((border[1+x] - border[0])>>1), bit_depth); // DIFF (x<->y && neg) + } + } + } + + + logtrace(LogIntraPred,"result of angular intra prediction (mode=%d):\n",intraPredMode); + + for (int y=0;y<nT;y++) + { + for (int x=0;x<nT;x++) + logtrace(LogIntraPred,"%02x ", dst[x+y*dstStride]); + + logtrace(LogIntraPred,"\n"); + } +} + + +template <class pixel_t> +void intra_border_computer<pixel_t>::preproc() +{ + sps = &img->get_sps(); + pps = &img->get_pps(); + + SubWidth = (cIdx==0) ? 1 : sps->SubWidthC; + SubHeight = (cIdx==0) ? 1 : sps->SubHeightC; + + // --- check for CTB boundaries --- + + int xBLuma = xB * SubWidth; + int yBLuma = yB * SubHeight; + + int log2CtbSize = sps->Log2CtbSizeY; + int picWidthInCtbs = sps->PicWidthInCtbsY; + + + //printf("xB/yB: %d %d\n",xB,yB); + + // are we at left image border + + if (xBLuma == 0) { + availableLeft = false; + availableTopLeft = false; + xBLuma = 0; // fake value, available flags are already set to false + } + + + // are we at top image border + + if (yBLuma == 0) { + availableTop = false; + availableTopLeft = false; + availableTopRight = false; + yBLuma = 0; // fake value, available flags are already set to false + } + + if (xBLuma+nT*SubWidth >= sps->pic_width_in_luma_samples) { + availableTopRight=false; + } + + // check for tile and slice boundaries + + int xCurrCtb = xBLuma >> log2CtbSize; + int yCurrCtb = yBLuma >> log2CtbSize; + int xLeftCtb = (xBLuma-1) >> log2CtbSize; + int xRightCtb = (xBLuma+nT*SubWidth) >> log2CtbSize; + int yTopCtb = (yBLuma-1) >> log2CtbSize; + + int currCTBSlice = img->get_SliceAddrRS(xCurrCtb,yCurrCtb); + int leftCTBSlice = availableLeft ? img->get_SliceAddrRS(xLeftCtb, yCurrCtb) : -1; + int topCTBSlice = availableTop ? img->get_SliceAddrRS(xCurrCtb, yTopCtb) : -1; + int toprightCTBSlice = availableTopRight ? img->get_SliceAddrRS(xRightCtb, yTopCtb) : -1; + int topleftCTBSlice = availableTopLeft ? img->get_SliceAddrRS(xLeftCtb, yTopCtb) : -1; + + /* + printf("size: %d\n",pps->TileIdRS.size()); + printf("curr: %d left: %d top: %d\n", + xCurrCtb+yCurrCtb*picWidthInCtbs, + availableLeft ? xLeftCtb+yCurrCtb*picWidthInCtbs : 9999, + availableTop ? xCurrCtb+yTopCtb*picWidthInCtbs : 9999); + */ + int currCTBTileID = pps->TileIdRS[xCurrCtb+yCurrCtb*picWidthInCtbs]; + int leftCTBTileID = availableLeft ? pps->TileIdRS[xLeftCtb+yCurrCtb*picWidthInCtbs] : -1; + int topCTBTileID = availableTop ? pps->TileIdRS[xCurrCtb+yTopCtb*picWidthInCtbs] : -1; + int topleftCTBTileID = availableTopLeft ? pps->TileIdRS[xLeftCtb+yTopCtb*picWidthInCtbs] : -1; + int toprightCTBTileID= availableTopRight? pps->TileIdRS[xRightCtb+yTopCtb*picWidthInCtbs] : -1; + + if (leftCTBSlice != currCTBSlice || leftCTBTileID != currCTBTileID ) availableLeft = false; + if (topCTBSlice != currCTBSlice || topCTBTileID != currCTBTileID ) availableTop = false; + if (topleftCTBSlice !=currCTBSlice||topleftCTBTileID!=currCTBTileID ) availableTopLeft = false; + if (toprightCTBSlice!=currCTBSlice||toprightCTBTileID!=currCTBTileID) availableTopRight= false; + + + // number of pixels that are in the valid image area to the right and to the bottom + + nBottom = sps->pic_height_in_luma_samples - yB*SubHeight; + nBottom=(nBottom+SubHeight-1)/SubHeight; + if (nBottom>2*nT) nBottom=2*nT; + + nRight = sps->pic_width_in_luma_samples - xB*SubWidth; + nRight =(nRight +SubWidth-1)/SubWidth; + if (nRight >2*nT) nRight=2*nT; + + nAvail=0; + + available = &available_data[2*MAX_INTRA_PRED_BLOCK_SIZE]; + + memset(available-2*nT, 0, 4*nT+1); +} + + +template <class pixel_t> +void intra_border_computer<pixel_t>::fill_from_image() +{ + assert(nT<=32); + + pixel_t* image; + int stride; + image = (pixel_t*)img->get_image_plane(cIdx); + stride = img->get_image_stride(cIdx); + + int xBLuma = xB * SubWidth; + int yBLuma = yB * SubHeight; + + int currBlockAddr = pps->MinTbAddrZS[ (xBLuma>>sps->Log2MinTrafoSize) + + (yBLuma>>sps->Log2MinTrafoSize) * sps->PicWidthInTbsY ]; + + + // copy pixels at left column + + for (int y=nBottom-1 ; y>=0 ; y-=4) + if (availableLeft) + { + int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + + (((yB+y)*SubHeight)>>sps->Log2MinTrafoSize) + * sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + if (pps->constrained_intra_pred_flag) { + if (img->get_pred_mode((xB-1)*SubWidth,(yB+y)*SubHeight)!=MODE_INTRA) + availableN = false; + } + + if (availableN) { + if (!nAvail) firstValue = image[xB-1 + (yB+y)*stride]; + + for (int i=0;i<4;i++) { + available[-y+i-1] = availableN; + out_border[-y+i-1] = image[xB-1 + (yB+y-i)*stride]; + } + + nAvail+=4; + } + } + + // copy pixel at top-left position + + if (availableTopLeft) + { + int NBlockAddr = pps->MinTbAddrZS[ (((xB-1)*SubWidth )>>sps->Log2MinTrafoSize) + + (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) + * sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + if (pps->constrained_intra_pred_flag) { + if (img->get_pred_mode((xB-1)*SubWidth,(yB-1)*SubHeight)!=MODE_INTRA) { + availableN = false; + } + } + + if (availableN) { + if (!nAvail) firstValue = image[xB-1 + (yB-1)*stride]; + + out_border[0] = image[xB-1 + (yB-1)*stride]; + available[0] = availableN; + nAvail++; + } + } + + // copy pixels at top row + + for (int x=0 ; x<nRight ; x+=4) { + bool borderAvailable; + if (x<nT) borderAvailable=availableTop; + else borderAvailable=availableTopRight; + + if (borderAvailable) + { + int NBlockAddr = pps->MinTbAddrZS[ (((xB+x)*SubWidth )>>sps->Log2MinTrafoSize) + + (((yB-1)*SubHeight)>>sps->Log2MinTrafoSize) + * sps->PicWidthInTbsY ]; + + bool availableN = NBlockAddr <= currBlockAddr; + + if (pps->constrained_intra_pred_flag) { + if (img->get_pred_mode((xB+x)*SubWidth,(yB-1)*SubHeight)!=MODE_INTRA) { + availableN = false; + } + } + + + if (availableN) { + if (!nAvail) firstValue = image[xB+x + (yB-1)*stride]; + + for (int i=0;i<4;i++) { + out_border[x+i+1] = image[xB+x+i + (yB-1)*stride]; + available[x+i+1] = availableN; + } + + nAvail+=4; + } + } + } +} + + + +template <class pixel_t> +void intra_border_computer<pixel_t>::reference_sample_substitution() +{ + // reference sample substitution + + const int bit_depth = img->get_bit_depth(cIdx); + + if (nAvail!=4*nT+1) { + if (nAvail==0) { + if (sizeof(pixel_t)==1) { + memset(out_border-2*nT, 1<<(bit_depth-1), 4*nT+1); + } + else { + for (int i = -2*nT; i <= 2*nT ; i++) { + out_border[i] = 1<<(bit_depth-1); + } + } + } + else { + if (!available[-2*nT]) { + out_border[-2*nT] = firstValue; + } + + for (int i=-2*nT+1; i<=2*nT; i++) + if (!available[i]) { + out_border[i]=out_border[i-1]; + } + } + } + + logtrace(LogIntraPred,"availableN: "); + print_border(available,NULL,nT); + logtrace(LogIntraPred,"\n"); + + logtrace(LogIntraPred,"output: "); + print_border(out_border,NULL,nT); + logtrace(LogIntraPred,"\n"); +} + + #endif
View file
libde265-1.0.3.tar.gz/libde265/motion.cc -> libde265-1.0.5.tar.gz/libde265/motion.cc
Changed
@@ -22,7 +22,6 @@ #include "decctx.h" #include "util.h" #include "dpb.h" -#include "encoder/encoder-context.h" #include <assert.h> @@ -290,8 +289,8 @@ void* pixels[3]; int stride[3]; - const pic_parameter_set* pps = shdr->pps; - const seq_parameter_set* sps = pps->sps; + const pic_parameter_set* pps = shdr->pps.get(); + const seq_parameter_set* sps = pps->sps.get(); const int SubWidthC = sps->SubWidthC; const int SubHeightC = sps->SubHeightC; @@ -349,7 +348,7 @@ logtrace(LogMotion, "refIdx: %d -> dpb[%d]\n", vi->refIdx[l], shdr->RefPicList[l][vi->refIdx[l]]); - if (refPic->PicState == UnusedForReference) { + if (!refPic || refPic->PicState == UnusedForReference) { img->integrity = INTEGRITY_DECODING_ERRORS; ctx->add_warning(DE265_WARNING_NONEXISTING_REFERENCE_PICTURE_ACCESSED, false); @@ -698,42 +697,19 @@ } -// TODO: add specializations for de265_image and encoder_context -template <class T> class MotionVectorAccess +class MotionVectorAccess_de265_image : public MotionVectorAccess { public: - enum PartMode get_PartMode(int x,int y); - const PBMotion& get_mv_info(int x,int y); -}; - - -template <> class MotionVectorAccess<de265_image> -{ -public: - MotionVectorAccess(const de265_image* i) : img(i) { } + MotionVectorAccess_de265_image(const de265_image* i) : img(i) { } - enum PartMode get_PartMode(int x,int y) { return img->get_PartMode(x,y); } - const PBMotion& get_mv_info(int x,int y) { return img->get_mv_info(x,y); } + enum PartMode get_PartMode(int x,int y) const override { return img->get_PartMode(x,y); } + const PBMotion& get_mv_info(int x,int y) const override { return img->get_mv_info(x,y); } private: const de265_image* img; }; -template <> class MotionVectorAccess<encoder_context> -{ -public: - MotionVectorAccess(const encoder_context* e) : ectx(e) { } - - enum PartMode get_PartMode(int x,int y) { return ectx->ctbs.getCB(x,y)->PartMode; } - const PBMotion& get_mv_info(int x,int y) { - return ectx->ctbs.getPB(x,y)->motion; - } - -private: - const encoder_context* ectx; -}; - /* +--+ +--+--+ @@ -778,9 +754,8 @@ second part to the parameters of the first part, since then, we could use 2Nx2N right away. -> Exclude this candidate. */ -template <class MVAccessType> int derive_spatial_merging_candidates(//const de265_image* img, - MotionVectorAccess<MVAccessType> mvaccess, + const MotionVectorAccess& mvaccess, const de265_image* img, int xC, int yC, int nCS, int xP, int yP, uint8_t singleMCLFlag, @@ -1449,10 +1424,9 @@ // 8.5.3.1.1 -template <class MVAccess> void get_merge_candidate_list_without_step_9(base_context* ctx, const slice_segment_header* shdr, - MotionVectorAccess<MVAccess> mvaccess, + const MotionVectorAccess& mvaccess, de265_image* img, int xC,int yC, int xP,int yP, int nCS, int nPbW,int nPbH, int partIdx, @@ -1562,7 +1536,7 @@ int max_merge_idx = 5-shdr->five_minus_max_num_merge_cand -1; get_merge_candidate_list_without_step_9(ctx, shdr, - MotionVectorAccess<de265_image>(img), img, + MotionVectorAccess_de265_image(img), img, xC,yC,xP,yP,nCS,nPbW,nPbH, partIdx, max_merge_idx, mergeCandList); @@ -1580,34 +1554,6 @@ } -void get_merge_candidate_list_from_tree(encoder_context* ectx, - const slice_segment_header* shdr, - int xC,int yC, int xP,int yP, - int nCS, int nPbW,int nPbH, int partIdx, - PBMotion* mergeCandList) -{ - int max_merge_idx = 5-shdr->five_minus_max_num_merge_cand -1; - - get_merge_candidate_list_without_step_9(ectx, shdr, - MotionVectorAccess<encoder_context>(ectx), ectx->img, - xC,yC,xP,yP,nCS,nPbW,nPbH, partIdx, - max_merge_idx, mergeCandList); - - // 9. for encoder: modify all merge candidates - - for (int i=0;i<=max_merge_idx;i++) { - if (mergeCandList[i].predFlag[0] && - mergeCandList[i].predFlag[1] && - nPbW+nPbH==12) - { - mergeCandList[i].refIdx[1] = -1; - mergeCandList[i].predFlag[1] = 0; - } - } -} - - - void derive_luma_motion_merge_mode(base_context* ctx, const slice_segment_header* shdr, de265_image* img, @@ -1619,7 +1565,7 @@ PBMotion mergeCandList[5]; get_merge_candidate_list_without_step_9(ctx, shdr, - MotionVectorAccess<de265_image>(img), img, + MotionVectorAccess_de265_image(img), img, xC,yC,xP,yP,nCS,nPbW,nPbH, partIdx, merge_idx, mergeCandList);
View file
libde265-1.0.3.tar.gz/libde265/motion.h -> libde265-1.0.5.tar.gz/libde265/motion.h
Changed
@@ -22,6 +22,7 @@ #define DE265_MOTION_H #include <stdint.h> +#include "slice.h" class base_context; class slice_segment_header; @@ -73,12 +74,6 @@ int nCS, int nPbW,int nPbH, int partIdx, PBMotion* mergeCandList); -void get_merge_candidate_list_from_tree(class encoder_context* ectx, - const slice_segment_header* shdr, - int xC,int yC, int xP,int yP, - int nCS, int nPbW,int nPbH, int partIdx, - PBMotion* mergeCandList); - /* int derive_spatial_merging_candidates(const struct de265_image* img, int xC, int yC, int nCS, int xP, int yP, @@ -113,4 +108,24 @@ de265_image* img, const PBMotionCoding& motion, int xC,int yC, int xB,int yB, int nCS, int nPbW,int nPbH, int partIdx); + + + +class MotionVectorAccess +{ +public: + virtual enum PartMode get_PartMode(int x,int y) const = 0; + virtual const PBMotion& get_mv_info(int x,int y) const = 0; +}; + + +void get_merge_candidate_list_without_step_9(base_context* ctx, + const slice_segment_header* shdr, + const MotionVectorAccess& mvaccess, + de265_image* img, + int xC,int yC, int xP,int yP, + int nCS, int nPbW,int nPbH, int partIdx, + int max_merge_idx, + PBMotion* mergeCandList); + #endif
View file
libde265-1.0.3.tar.gz/libde265/pps.cc -> libde265-1.0.5.tar.gz/libde265/pps.cc
Changed
@@ -281,7 +281,7 @@ } seq_parameter_set_id = uvlc = get_uvlc(br); - if (uvlc >= DE265_MAX_PPS_SETS || + if (uvlc >= DE265_MAX_SPS_SETS || uvlc == UVLC_ERROR) { ctx->add_warning(DE265_WARNING_NONEXISTING_SPS_REFERENCED, false); return false; @@ -312,7 +312,7 @@ return false; } - sps = ctx->get_sps(seq_parameter_set_id); + sps = ctx->get_shared_sps(seq_parameter_set_id); if ((pic_init_qp = get_svlc(br)) == UVLC_ERROR) { ctx->add_warning(DE265_WARNING_PPS_HEADER_INVALID, false); @@ -471,7 +471,7 @@ } if (pic_scaling_list_data_present_flag) { - de265_error err = read_scaling_list(br, sps, &scaling_list, true); + de265_error err = read_scaling_list(br, sps.get(), &scaling_list, true); if (err != DE265_OK) { ctx->add_warning(err, false); return false; @@ -525,7 +525,7 @@ } - set_derived_values(sps); + set_derived_values(sps.get()); pps_read = true;
View file
libde265-1.0.3.tar.gz/libde265/pps.h -> libde265-1.0.5.tar.gz/libde265/pps.h
Changed
@@ -25,6 +25,7 @@ #include "libde265/sps.h" // for scaling list only #include <vector> +#include <memory> #define DE265_MAX_TILE_COLUMNS 10 #define DE265_MAX_TILE_ROWS 10 @@ -72,7 +73,7 @@ void set_defaults(enum PresetSet = Preset_Default); bool pps_read; // whether this pps has been read from bitstream - const seq_parameter_set* sps; + std::shared_ptr<const seq_parameter_set> sps; char pic_parameter_set_id;
View file
libde265-1.0.3.tar.gz/libde265/sao.cc -> libde265-1.0.5.tar.gz/libde265/sao.cc
Changed
@@ -211,11 +211,14 @@ continue; } - int bandIdx = bandTable[ in_img[xC+i+(yC+j)*in_stride]>>bandShift ]; - // Shifts are a strange thing. On x86, >>x actually computes >>(x%64). // So we have to take care of large bandShifts. - if (bandShift>=8) { bandIdx=0; } + int bandIdx; + if (bandShift >= 8) { + bandIdx = 0; + } else { + bandIdx = bandTable[ in_img[xC+i+(yC+j)*in_stride]>>bandShift ]; + } if (bandIdx>0) { int offset = saoinfo->saoOffsetVal[cIdx][bandIdx-1]; @@ -237,10 +240,13 @@ for (int j=0;j<ctbH;j++) for (int i=0;i<ctbW;i++) { - int bandIdx = bandTable[ in_img[xC+i+(yC+j)*in_stride]>>bandShift ]; - // see above - if (bandShift>=8) { bandIdx=0; } + int bandIdx; + if (bandShift >= 8) { + bandIdx = 0; + } else { + bandIdx = bandTable[ in_img[xC+i+(yC+j)*in_stride]>>bandShift ]; + } if (bandIdx>0) { int offset = saoinfo->saoOffsetVal[cIdx][bandIdx-1]; @@ -481,7 +487,7 @@ img->get_chroma_format(), img->get_shared_sps(), false, - img->decctx, img->encctx, + img->decctx, //img->encctx, img->pts, img->user_data, true); if (err != DE265_OK) { img->decctx->add_warning(DE265_WARNING_CANNOT_APPLY_SAO_OUT_OF_MEMORY,false);
View file
libde265-1.0.3.tar.gz/libde265/sei.cc -> libde265-1.0.5.tar.gz/libde265/sei.cc
Changed
@@ -311,7 +311,9 @@ for (int b=0;b<16;b++) { if (md5[b] != seihash->md5[i][b]) { +/* fprintf(stderr,"SEI decoded picture MD5 mismatch (POC=%d)\n", img->PicOrderCntVal); +*/ return DE265_ERROR_CHECKSUM_MISMATCH; } } @@ -326,8 +328,10 @@ seihash->crc[i], i, crc); if (crc != seihash->crc[i]) { +/* fprintf(stderr,"SEI decoded picture hash: %04x, decoded picture: %04x (POC=%d)\n", seihash->crc[i], crc, img->PicOrderCntVal); +*/ return DE265_ERROR_CHECKSUM_MISMATCH; } } @@ -338,8 +342,10 @@ uint32_t chksum = compute_checksum_8bit(data,w,h,stride, img->get_bit_depth(i)); if (chksum != seihash->checksum[i]) { +/* fprintf(stderr,"SEI decoded picture hash: %04x, decoded picture: %04x (POC=%d)\n", seihash->checksum[i], chksum, img->PicOrderCntVal); +*/ return DE265_ERROR_CHECKSUM_MISMATCH; } }
View file
libde265-1.0.3.tar.gz/libde265/slice.cc -> libde265-1.0.5.tar.gz/libde265/slice.cc
Changed
@@ -384,9 +384,9 @@ return DE265_OK; } - pps = ctx->get_pps(slice_pic_parameter_set_id); + pps = ctx->get_shared_pps(slice_pic_parameter_set_id); - const seq_parameter_set* sps = pps->sps; + const seq_parameter_set* sps = pps->sps.get(); if (!sps->sps_read) { ctx->add_warning(DE265_WARNING_NONEXISTING_SPS_REFERENCED, false); *continueDecoding = false; @@ -872,7 +872,7 @@ } - compute_derived_values(pps); + compute_derived_values(pps.get()); *continueDecoding = true; return DE265_OK;
View file
libde265-1.0.3.tar.gz/libde265/slice.h -> libde265-1.0.5.tar.gz/libde265/slice.h
Changed
@@ -33,6 +33,7 @@ #include <vector> #include <string.h> +#include <memory> #define MAX_NUM_REF_PICS 16 @@ -145,7 +146,7 @@ int slice_index; // index through all slices in a picture (internal only) - const pic_parameter_set* pps; + std::shared_ptr<const pic_parameter_set> pps; char first_slice_segment_in_pic_flag;
View file
libde265-1.0.3.tar.gz/libde265/sps.cc -> libde265-1.0.5.tar.gz/libde265/sps.cc
Changed
@@ -37,8 +37,8 @@ #define READ_VLC(variable, vlctype) READ_VLC_OFFSET(variable,vlctype,0) -static int SubWidthC_tab[] = { -1,2,2,1 }; -static int SubHeightC_tab[] = { -1,2,1,1 }; +static int SubWidthC_tab[] = { 1,2,2,1 }; +static int SubHeightC_tab[] = { 1,2,1,1 }; // TODO if (!check_high(ctx, vlc, 15)) return false; @@ -272,6 +272,11 @@ } READ_VLC_OFFSET(log2_max_pic_order_cnt_lsb, uvlc, 4); + if (log2_max_pic_order_cnt_lsb<4 || + log2_max_pic_order_cnt_lsb>16) { + errqueue->add_warning(DE265_WARNING_SPS_HEADER_INVALID, false); + return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE; + } MaxPicOrderCntLsb = 1<<(log2_max_pic_order_cnt_lsb);
View file
libde265-1.0.3.tar.gz/libde265/threads.h -> libde265-1.0.5.tar.gz/libde265/threads.h
Changed
@@ -43,6 +43,9 @@ typedef pthread_cond_t de265_cond; #else // _WIN32 +#if !defined(NOMINMAX) +#define NOMINMAX 1 +#endif #include <windows.h> #include "../extra/win32cond.h" #if _MSC_VER > 1310
View file
libde265-1.0.3.tar.gz/libde265/transform.cc -> libde265-1.0.5.tar.gz/libde265/transform.cc
Changed
@@ -147,6 +147,9 @@ (52 + sps.QpBdOffset_Y)) - sps.QpBdOffset_Y; tctx->qPYPrime = QPY + sps.QpBdOffset_Y; + if (tctx->qPYPrime<0) { + tctx->qPYPrime=0; + } int qPiCb = Clip3(-sps.QpBdOffset_C,57, QPY+pps.pic_cb_qp_offset + shdr->slice_cb_qp_offset + tctx->CuQpOffsetCb); int qPiCr = Clip3(-sps.QpBdOffset_C,57, QPY+pps.pic_cr_qp_offset + shdr->slice_cr_qp_offset + tctx->CuQpOffsetCr); @@ -169,7 +172,14 @@ //printf("q: %d %d\n",qPiCb, qPCb); tctx->qPCbPrime = qPCb + sps.QpBdOffset_C; + if (tctx->qPCbPrime<0) { + tctx->qPCbPrime = 0; + } + tctx->qPCrPrime = qPCr + sps.QpBdOffset_C; + if (tctx->qPCrPrime<0) { + tctx->qPCrPrime = 0; + } /* printf("Q: %d (%d %d %d / %d %d) %d %d %d\n",QPY,
View file
libde265-1.0.3.tar.gz/libde265/vps.cc -> libde265-1.0.5.tar.gz/libde265/vps.cc
Changed
@@ -185,8 +185,9 @@ vps_num_ticks_poc_diff_one = get_uvlc(reader)+1; vps_num_hrd_parameters = get_uvlc(reader); - if (vps_num_hrd_parameters >= 1024) { - assert(false); // TODO: return bitstream error + if (vps_num_hrd_parameters >= 1024 || vps_num_hrd_parameters < 0) { + errqueue->add_warning(DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE, false); + return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE; } hrd_layer_set_idx .resize(vps_num_hrd_parameters);
View file
libde265-1.0.3.tar.gz/libde265/x86/CMakeLists.txt -> libde265-1.0.5.tar.gz/libde265/x86/CMakeLists.txt
Changed
@@ -19,6 +19,5 @@ set(X86_OBJECTS $<TARGET_OBJECTS:x86> $<TARGET_OBJECTS:x86_sse> PARENT_SCOPE) if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - SET_TARGET_PROPERTIES(x86 PROPERTIES COMPILE_FLAGS "-fPIC") - SET_TARGET_PROPERTIES(x86_sse PROPERTIES COMPILE_FLAGS "-fPIC ${sse_flags}") + SET_TARGET_PROPERTIES(x86_sse PROPERTIES COMPILE_FLAGS "${sse_flags}") endif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
View file
libde265-1.0.3.tar.gz/libde265/x86/Makefile.am -> libde265-1.0.5.tar.gz/libde265/x86/Makefile.am
Changed
@@ -1,6 +1,6 @@ noinst_LTLIBRARIES = libde265_x86.la libde265_x86_sse.la -libde265_x86_la_CXXFLAGS = -I.. $(CFLAG_VISIBILITY) +libde265_x86_la_CXXFLAGS = -I$(top_srcdir)/libde265 $(CFLAG_VISIBILITY) libde265_x86_la_SOURCES = sse.cc sse.h libde265_x86_la_LIBADD = libde265_x86_sse.la @@ -11,7 +11,7 @@ # SSE4 specific functions -libde265_x86_sse_la_CXXFLAGS = -msse4.1 -I.. $(CFLAG_VISIBILITY) +libde265_x86_sse_la_CXXFLAGS = -msse4.1 -I$(top_srcdir) -I$(top_srcdir)/libde265 $(CFLAG_VISIBILITY) libde265_x86_sse_la_SOURCES = sse-motion.cc sse-motion.h sse-dct.h sse-dct.cc if HAVE_VISIBILITY
View file
libde265-1.0.3.tar.gz/libde265/x86/Makefile.in -> libde265-1.0.5.tar.gz/libde265/x86/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -356,13 +356,14 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libde265_x86.la libde265_x86_sse.la -libde265_x86_la_CXXFLAGS = -I.. $(CFLAG_VISIBILITY) $(am__append_1) +libde265_x86_la_CXXFLAGS = -I$(top_srcdir)/libde265 \ + $(CFLAG_VISIBILITY) $(am__append_1) libde265_x86_la_SOURCES = sse.cc sse.h libde265_x86_la_LIBADD = libde265_x86_sse.la # SSE4 specific functions -libde265_x86_sse_la_CXXFLAGS = -msse4.1 -I.. $(CFLAG_VISIBILITY) \ - $(am__append_2) +libde265_x86_sse_la_CXXFLAGS = -msse4.1 -I$(top_srcdir) \ + -I$(top_srcdir)/libde265 $(CFLAG_VISIBILITY) $(am__append_2) libde265_x86_sse_la_SOURCES = sse-motion.cc sse-motion.h sse-dct.h sse-dct.cc EXTRA_DIST = \ CMakeLists.txt
View file
libde265-1.0.3.tar.gz/ltmain.sh -> libde265-1.0.5.tar.gz/ltmain.sh
Changed
@@ -31,7 +31,7 @@ PROGRAM=libtool PACKAGE=libtool -VERSION="2.4.6 Debian-2.4.6-0.1" +VERSION="2.4.6 Debian-2.4.6-2" package_revision=2.4.6 @@ -2068,7 +2068,7 @@ compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) - version: $progname (GNU libtool) 2.4.6 + version: $progname $scriptversion Debian-2.4.6-2 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
View file
libde265-1.0.3.tar.gz/m4/libtool.m4 -> libde265-1.0.5.tar.gz/m4/libtool.m4
Changed
@@ -728,7 +728,6 @@ cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services.
View file
libde265-1.0.3.tar.gz/sherlock265/COPYING -> libde265-1.0.5.tar.gz/sherlock265/COPYING
Changed
@@ -1,674 +1,20 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - 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 3 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, see <http://www.gnu.org/licenses/>. - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - <program> Copyright (C) <year> <name of author> - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -<http://www.gnu.org/licenses/>. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -<http://www.gnu.org/philosophy/why-not-lgpl.html>. + MIT License + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE.
View file
libde265-1.0.3.tar.gz/sherlock265/Makefile.in -> libde265-1.0.5.tar.gz/sherlock265/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it,
View file
libde265-1.0.3.tar.gz/sherlock265/VideoDecoder.cc -> libde265-1.0.5.tar.gz/sherlock265/VideoDecoder.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "VideoDecoder.hh" #ifdef HAVE_VIDEOGFX @@ -237,7 +243,7 @@ } width = img->get_width(); height = img->get_height(); - sws = sws_getContext(width, height, PIX_FMT_YUV420P, width, height, PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); + sws = sws_getContext(width, height, AV_PIX_FMT_YUV420P, width, height, AV_PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); } int stride[3];
View file
libde265-1.0.3.tar.gz/sherlock265/VideoDecoder.hh -> libde265-1.0.5.tar.gz/sherlock265/VideoDecoder.hh
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #ifndef VIDEODECODER_HH #define VIDEODECODER_HH
View file
libde265-1.0.3.tar.gz/sherlock265/VideoPlayer.cc -> libde265-1.0.5.tar.gz/sherlock265/VideoPlayer.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "VideoPlayer.hh"
View file
libde265-1.0.3.tar.gz/sherlock265/VideoPlayer.hh -> libde265-1.0.5.tar.gz/sherlock265/VideoPlayer.hh
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #ifndef VIDEOPLAYER_HH #define VIDEOPLAYER_HH
View file
libde265-1.0.3.tar.gz/sherlock265/VideoWidget.cc -> libde265-1.0.5.tar.gz/sherlock265/VideoWidget.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "VideoWidget.hh" #include <QtGui>
View file
libde265-1.0.3.tar.gz/sherlock265/VideoWidget.hh -> libde265-1.0.5.tar.gz/sherlock265/VideoWidget.hh
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #ifndef VIDEOWIDGET_HH #define VIDEOWIDGET_HH
View file
libde265-1.0.3.tar.gz/sherlock265/sherlock265.cc -> libde265-1.0.5.tar.gz/sherlock265/sherlock265.cc
Changed
@@ -1,22 +1,28 @@ /* - * libde265 example application "sherlock265". - * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> - * - * This file is part of sherlock265, an example application using libde265. - * - * sherlock265 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 3 of the License, or - * (at your option) any later version. - * - * sherlock265 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 sherlock265. If not, see <http://www.gnu.org/licenses/>. - */ + libde265 example application "sherlock265". + + MIT License + + Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #include "VideoPlayer.hh" @@ -37,4 +43,3 @@ return app.exec(); } -
View file
libde265-1.0.3.tar.gz/tools/Makefile.am -> libde265-1.0.5.tar.gz/tools/Makefile.am
Changed
@@ -1,7 +1,7 @@ bin_PROGRAMS = gen-enc-table yuv-distortion rd-curves block-rate-estim tests bjoentegaard -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) gen_enc_table_DEPENDENCIES = ../libde265/libde265.la gen_enc_table_CXXFLAGS =
View file
libde265-1.0.3.tar.gz/tools/Makefile.in -> libde265-1.0.5.tar.gz/tools/Makefile.in
Changed
@@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -363,7 +363,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I../libde265 +AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir) gen_enc_table_DEPENDENCIES = ../libde265/libde265.la gen_enc_table_CXXFLAGS = gen_enc_table_LDFLAGS =
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
.