Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,354 @@
Fix build with gcc-15.x
Upstream: https://sourceforge.net/p/mjpeg/Code/3513/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Index: trunk/mjpeg_play/y4mdenoise/Region2D.hh
===================================================================
--- mjpeg_play/y4mdenoise/Region2D.hh (Revision 3512)
+++ mjpeg_play/y4mdenoise/Region2D.hh (Revision 3513)
@@ -97,35 +97,11 @@
// Add the given horizontal extent to the region. Note that
// a_tnXEnd is technically one past the end of the extent.
- template <class REGION, class REGION_TEMP>
- void UnionDebug (Status_t &a_reStatus, INDEX a_tnY,
- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp);
- // Add the given horizontal extent to the region. Note that
- // a_tnXEnd is technically one past the end of the extent.
- // Exhaustively (i.e. slowly) verifies the results, using a
- // much simpler algorithm.
- // Requires the use of a temporary region, usually of the
- // final subclass' type, in order to work. (Since that can't
- // be known at this level, a template parameter is included for
- // it.)
-
template <class REGION>
void Union (Status_t &a_reStatus, const REGION &a_rOther);
// Make the current region represent the union between itself
// and the other given region.
- template <class REGION, class REGION_O, class REGION_TEMP>
- void UnionDebug (Status_t &a_reStatus,
- REGION_O &a_rOther, REGION_TEMP &a_rTemp);
- // Make the current region represent the union between itself
- // and the other given region.
- // Exhaustively (i.e. slowly) verifies the results, using a
- // much simpler algorithm.
- // Requires the use of a temporary region, usually of the
- // final subclass' type, in order to work. (Since that can't
- // be known at this level, a template parameter is included for
- // it.)
-
//void Merge (Status_t &a_reStatus, INDEX a_tnY, INDEX a_tnXStart,
// INDEX a_tnXEnd);
// Merge this extent into the current region.
@@ -166,36 +142,11 @@
// Subtract the given horizontal extent from the region. Note
// that a_tnXEnd is technically one past the end of the extent.
- template <class REGION_TEMP>
- void SubtractDebug (Status_t &a_reStatus, INDEX a_tnY,
- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp);
- // Subtract the given horizontal extent from the region. Note
- // that a_tnXEnd is technically one past the end of the extent.
- // Exhaustively (i.e. slowly) verifies the results, using a
- // much simpler algorithm.
- // Requires the use of a temporary region, usually of the
- // final subclass' type, in order to work. (Since that can't
- // be known at this level, a template parameter is included for
- // it.)
-
template <class REGION>
void Subtract (Status_t &a_reStatus, const REGION &a_rOther);
// Subtract the other region from the current region, i.e.
// remove from the current region any extents that exist in the
// other region.
-
- template <class REGION, class REGION_O, class REGION_TEMP>
- void SubtractDebug (Status_t &a_reStatus, REGION_O &a_rOther,
- REGION_TEMP &a_rTemp);
- // Subtract the other region from the current region, i.e.
- // remove from the current region any extents that exist in the
- // other region.
- // Exhaustively (i.e. slowly) verifies the results, using a
- // much simpler algorithm.
- // Requires the use of a temporary region, usually of the
- // final subclass' type, in order to work. (Since that can't
- // be known at this level, a template parameter is included for
- // it.)
//typedef ... ConstIterator;
//ConstIterator Begin (void) const { return m_setExtents.Begin(); }
@@ -404,85 +355,6 @@
-// Add the given horizontal extent to the region.
-template <class INDEX, class SIZE>
-template <class REGION, class REGION_TEMP>
-void
-Region2D<INDEX,SIZE>::UnionDebug (Status_t &a_reStatus, INDEX a_tnY,
- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp)
-{
- typename REGION::ConstIterator itHere;
- typename REGION_TEMP::ConstIterator itHereO;
- INDEX tnX;
- // Used to loop through points.
-
- // Make sure they didn't start us off with an error.
- assert (a_reStatus == g_kNoError);
-
- // Calculate the union.
- a_rTemp.Assign (a_reStatus, *this);
- if (a_reStatus != g_kNoError)
- return;
- a_rTemp.Union (a_reStatus, a_tnY, a_tnXStart, a_tnXEnd);
- if (a_reStatus != g_kNoError)
- return;
-
- // Loop through every point in the result, make sure it's in
- // one of the two input regions.
- for (itHereO = a_rTemp.Begin(); itHereO != a_rTemp.End(); ++itHereO)
- {
- const Extent &rHere = *itHereO;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!((rHere.m_tnY == a_tnY
- && (tnX >= a_tnXStart && tnX < a_tnXEnd))
- || this->DoesContainPoint (rHere.m_tnY, tnX)))
- goto error;
- }
- }
-
- // Loop through every point in the original region, make sure
- // it's in the result.
- for (itHere = this->Begin(); itHere != this->End(); ++itHere)
- {
- const Extent &rHere = *itHere;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
-
- // Loop through every point in the added extent, make sure it's in
- // the result.
- for (tnX = a_tnXStart; tnX < a_tnXEnd; ++tnX)
- {
- if (!a_rTemp.DoesContainPoint (a_tnY, tnX))
- goto error;
- }
-
- // The operation succeeded. Commit it.
- Assign (a_reStatus, a_rTemp);
- if (a_reStatus != g_kNoError)
- return;
-
- // All done.
- return;
-
-error:
- // Handle deviations.
- fprintf (stderr, "Region2D::Union() failed\n");
- fprintf (stderr, "Input region:\n");
- PrintRegion (*this);
- fprintf (stderr, "Input extent: [%d,%d-%d]\n",
- int (a_tnY), int (a_tnXStart), int (a_tnXEnd));
- fprintf (stderr, "Result:\n");
- PrintRegion (a_rTemp);
- assert (false);
-}
-
-
-
// Make the current region represent the union between itself
// and the other given region.
template <class INDEX, class SIZE>
@@ -511,184 +383,6 @@
}
}
-
-
-// Make the current region represent the union between itself
-// and the other given region.
-template <class INDEX, class SIZE>
-template <class REGION, class REGION_O, class REGION_TEMP>
-void
-Region2D<INDEX,SIZE>::UnionDebug (Status_t &a_reStatus,
- REGION_O &a_rOther, REGION_TEMP &a_rTemp)
-{
- typename REGION::ConstIterator itHere;
- typename REGION_O::ConstIterator itHereO;
- typename REGION_TEMP::ConstIterator itHereT;
- INDEX tnX;
- // Used to loop through points.
-
- // Make sure they didn't start us off with an error.
- assert (a_reStatus == g_kNoError);
-
- // Calculate the union.
- a_rTemp.Assign (a_reStatus, *this);
- if (a_reStatus != g_kNoError)
- return;
- a_rTemp.Union (a_reStatus, a_rOther);
- if (a_reStatus != g_kNoError)
- return;
-
- // Loop through every point in the result, make sure it's in
- // one of the two input regions.
- for (itHereT = a_rTemp.Begin(); itHereT != a_rTemp.End(); ++itHereT)
- {
- const Extent &rHere = *itHereT;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!a_rOther.DoesContainPoint (rHere.m_tnY, tnX)
- && !this->DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
-
- // Loop through every point in the first input region, make sure
- // it's in the result.
- for (itHere = this->Begin(); itHere != this->End(); ++itHere)
- {
- const Extent &rHere = *itHere;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
-
- // Loop through every point in the second input region, make sure
- // it's in the result.
- for (itHereO = a_rOther.Begin();
- itHereO != a_rOther.End();
- ++itHereO)
- {
- const Extent &rHere = *itHereO;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
-
- // The operation succeeded. Commit it.
- Assign (a_reStatus, a_rTemp);
- if (a_reStatus != g_kNoError)
- return;
-
- // All done.
- return;
-
-error:
- // Handle deviations.
- fprintf (stderr, "Region2D::Union() failed\n");
- fprintf (stderr, "First input region:\n");
- PrintRegion (*this);
- fprintf (stderr, "Second input region:\n");
- PrintRegion (a_rOther);
- fprintf (stderr, "Result:\n");
- PrintRegion (a_rTemp);
- assert (false);
-}
-
-
-
-// Subtract the other region from the current region, i.e.
-// remove from the current region any areas that exist in the
-// other region.
-template <class INDEX, class SIZE>
-template <class REGION, class REGION_O, class REGION_TEMP>
-void
-Region2D<INDEX,SIZE>::SubtractDebug (Status_t &a_reStatus,
- REGION_O &a_rOther, REGION_TEMP &a_rTemp)
-{
- typename REGION::ConstIterator itHere;
- typename REGION_O::ConstIterator itHereO;
- typename REGION_TEMP::ConstIterator itHereT;
- INDEX tnX;
- // Used to loop through points.
-
- // Make sure they didn't start us off with an error.
- assert (a_reStatus == g_kNoError);
-
- // Calculate the difference.
- a_rTemp.Assign (a_reStatus, *this);
- if (a_reStatus != g_kNoError)
- return;
- a_rTemp.Subtract (a_reStatus, a_rOther);
- if (a_reStatus != g_kNoError)
- return;
-
- // Loop through every point in the result, make sure it's in
- // the first input region but not the second.
- for (itHereT = a_rTemp.Begin(); itHereT != a_rTemp.End(); ++itHereT)
- {
- const Extent &rHere = *itHereT;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!(this->DoesContainPoint (rHere.m_tnY, tnX)
- && !a_rOther.DoesContainPoint (rHere.m_tnY, tnX)))
- goto error;
- }
- }
-
- // Loop through every point in the first input region, and if it's
- // not in the second input region, make sure it's in the result.
- for (itHere = this->Begin(); itHere != this->End(); ++itHere)
- {
- const Extent &rHere = *itHere;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (!a_rOther.DoesContainPoint (rHere.m_tnY, tnX))
- {
- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
- }
-
- // Loop through every point in the second input region, make sure
- // it's not in the result.
- for (itHereO = a_rOther.Begin();
- itHereO != a_rOther.End();
- ++itHereO)
- {
- const Extent &rHere = *itHere;
- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX)
- {
- if (a_rTemp.DoesContainPoint (rHere.m_tnY, tnX))
- goto error;
- }
- }
-
- // The operation succeeded. Commit it.
- Assign (a_reStatus, a_rTemp);
- if (a_reStatus != g_kNoError)
- return;
-
- // All done.
- return;
-
-error:
- // Handle deviations.
- fprintf (stderr, "Region2D::Subtract() failed\n");
- fprintf (stderr, "First input region:\n");
- PrintRegion (*this);
- fprintf (stderr, "Second input region:\n");
- PrintRegion (a_rOther);
- fprintf (stderr, "Result:\n");
- PrintRegion (a_rTemp);
- assert (false);
-}
-
-
-
// Flood-fill the current region.
template <class INDEX, class SIZE>
template <class CONTROL>

View File

@@ -0,0 +1,22 @@
config BR2_PACKAGE_MJPEGTOOLS
bool "mjpegtools"
depends on BR2_USE_MMU # fork
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_JPEG
help
The mjpegtools programs are a set of tools
that can do recording of videos and playback,
simple cut-and-paste editing and the MPEG
compression of audio and video under Linux.
http://mjpeg.sourceforge.net
config BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT
bool
default y if BR2_X86_CPU_HAS_MMX
default y if BR2_POWERPC_CPU_HAS_ALTIVEC
comment "mjpegtools needs a toolchain w/ C++, threads"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS

View File

@@ -0,0 +1,6 @@
# From http://sourceforge.net/projects/mjpeg/files/mjpegtools/2.2.1/
md5 168e0131c0b8a2e31df7a73eb602fc32 mjpegtools-2.2.1.tar.gz
sha1 26e980912cd06f31033964acbc4b8d1932788bfc mjpegtools-2.2.1.tar.gz
# Locally computed
sha256 b180536d7d9960b05e0023a197b00dcb100929a49aab71d19d55f4a1b210f49a mjpegtools-2.2.1.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING

View File

@@ -0,0 +1,57 @@
################################################################################
#
# mjpegtools
#
################################################################################
MJPEGTOOLS_VERSION = 2.2.1
MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION)
MJPEGTOOLS_DEPENDENCIES = host-pkgconf jpeg
MJPEGTOOLS_INSTALL_STAGING = YES
MJPEGTOOLS_LICENSE = GPL-2.0+
MJPEGTOOLS_LICENSE_FILES = COPYING
MJPEGTOOLS_CONF_OPTS = --without-gtk
ifeq ($(BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT),y)
MJPEGTOOLS_CONF_OPTS += --enable-simd-accel
else
MJPEGTOOLS_CONF_OPTS += --disable-simd-accel
endif
ifeq ($(BR2_PACKAGE_LIBPNG),y)
MJPEGTOOLS_CONF_OPTS += --with-libpng
MJPEGTOOLS_DEPENDENCIES += libpng
else
MJPEGTOOLS_CONF_OPTS += --without-libpng
endif
# expects X11 backend in sdl
ifeq ($(BR2_PACKAGE_SDL_X11),y)
MJPEGTOOLS_CONF_OPTS += --with-libsdl
MJPEGTOOLS_DEPENDENCIES += sdl
else
MJPEGTOOLS_CONF_OPTS += --without-libsdl
endif
ifeq ($(BR2_PACKAGE_SDL_GFX),y)
MJPEGTOOLS_CONF_OPTS += --with-sdlgfx
MJPEGTOOLS_DEPENDENCIES += sdl_gfx
else
MJPEGTOOLS_CONF_OPTS += --without-sdlgfx
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
MJPEGTOOLS_CONF_OPTS += --with-x
MJPEGTOOLS_DEPENDENCIES += xlib_libX11
else
MJPEGTOOLS_CONF_OPTS += --without-x
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86DGA),y)
MJPEGTOOLS_CONF_OPTS += --with-dga
MJPEGTOOLS_DEPENDENCIES += xlib_libXxf86dga
else
MJPEGTOOLS_CONF_OPTS += --without-dga
endif
$(eval $(autotools-package))