diff --git a/Makefile.am b/Makefile.am index 41084be..3519962 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,9 +65,19 @@ libstb_hal_la_LIBADD += \ libarmbox/libarmbox.la \ libdvbci/libdvbci.la if !ENABLE_GSTREAMER_10 -SUBDIRS += libeplayer3-arm +SUBDIRS += libeplayer3 libstb_hal_la_LIBADD += \ - libeplayer3-arm/libeplayer3_arm.la + libeplayer3/libeplayer3.la endif endif endif + +if BOXTYPE_MIPSBOX +SUBDIRS += libmipsbox libdvbci +libstb_hal_la_LIBADD += \ + libmipsbox/libmipsbox.la \ + libdvbci/libdvbci.la +SUBDIRS += libeplayer3 +libstb_hal_la_LIBADD += \ + libeplayer3/libeplayer3.la +endif diff --git a/acinclude.m4 b/acinclude.m4 index 4234291..8edb8f3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -75,9 +75,9 @@ AC_SYS_LARGEFILE AC_DEFUN([TUXBOX_BOXTYPE], [ AC_ARG_WITH(boxtype, - AS_HELP_STRING([--with-boxtype], [valid values: tripledragon, spark, azbox, generic, armbox, duckbox]), + AS_HELP_STRING([--with-boxtype], [valid values: tripledragon, spark, azbox, generic, armbox, duckbox, mipsbox]), [case "${withval}" in - tripledragon|spark|azbox|generic|armbox|duckbox) + tripledragon|spark|azbox|generic|armbox|duckbox|mipsbox) BOXTYPE="$withval" ;; *) @@ -90,7 +90,8 @@ AC_ARG_WITH(boxmodel, AS_HELP_STRING([--with-boxmodel], [valid for generic: raspi]) AS_HELP_STRING([], [valid for duckbox: ufs910, ufs912, ufs913, ufs922, atevio7500, fortis_hdbox, octagon1008, hs7110, hs7810a, hs7119, hs7819, dp7000, cuberevo, cuberevo_mini, cuberevo_mini2, cuberevo_250hd, cuberevo_2000hd, cuberevo_3000hd, ipbox9900, ipbox99, ipbox55, arivalink200, tf7700, hl101]) AS_HELP_STRING([], [valid for spark: spark, spark7162]) -AS_HELP_STRING([], [valid for armbox: hd51, hd60, vusolo4k, bre2ze4k]), +AS_HELP_STRING([], [valid for armbox: hd51, hd60, vusolo4k, bre2ze4k]) +AS_HELP_STRING([], [valid for mipsbox: vuduo]), [case "${withval}" in ufs910|ufs912|ufs913|ufs922|atevio7500|fortis_hdbox|octagon1008|hs7110|hs7810a|hs7119|hs7819|dp7000|cuberevo|cuberevo_mini|cuberevo_mini2|cuberevo_250hd|cuberevo_2000hd|cuberevo_3000hd|ipbox9900|ipbox99|ipbox55|arivalink200|tf7700|hl101) if test "$BOXTYPE" = "duckbox"; then @@ -113,6 +114,13 @@ AS_HELP_STRING([], [valid for armbox: hd51, hd60, vusolo4k, bre2ze4k]), AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) fi ;; + vuduo) + if test "$BOXTYPE" = "mipsbox"; then + BOXMODEL="$withval" + else + AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) + fi + ;; raspi) if test "$BOXTYPE" = "generic"; then BOXMODEL="$withval" @@ -134,6 +142,7 @@ AM_CONDITIONAL(BOXTYPE_SPARK, test "$BOXTYPE" = "spark") AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic") AM_CONDITIONAL(BOXTYPE_DUCKBOX, test "$BOXTYPE" = "duckbox") AM_CONDITIONAL(BOXTYPE_ARMBOX, test "$BOXTYPE" = "armbox") +AM_CONDITIONAL(BOXTYPE_MIPSBOX, test "$BOXTYPE" = "mipsbox") AM_CONDITIONAL(BOXMODEL_UFS910, test "$BOXMODEL" = "ufs910") AM_CONDITIONAL(BOXMODEL_UFS912, test "$BOXMODEL" = "ufs912") @@ -167,6 +176,7 @@ AM_CONDITIONAL(BOXMODEL_HD51, test "$BOXMODEL" = "hd51") AM_CONDITIONAL(BOXMODEL_HD60, test "$BOXMODEL" = "hd60") AM_CONDITIONAL(BOXMODEL_VUSOLO4K, test "$BOXMODEL" = "vusolo4k") AM_CONDITIONAL(BOXMODEL_BRE2ZE4K, test "$BOXMODEL" = "bre2ze4k") +AM_CONDITIONAL(BOXMODEL_VUDUO, test "$BOXMODEL" = "vuduo") AM_CONDITIONAL(BOXMODEL_RASPI, test "$BOXMODEL" = "raspi") @@ -184,6 +194,8 @@ elif test "$BOXTYPE" = "generic"; then AC_DEFINE(HAVE_GENERIC_HARDWARE, 1, [building for a generic device like a standard PC]) elif test "$BOXTYPE" = "armbox"; then AC_DEFINE(HAVE_ARM_HARDWARE, 1, [building for an armbox]) +elif test "$BOXTYPE" = "mipsbox"; then + AC_DEFINE(HAVE_MIPS_HARDWARE, 1, [building for an mipsbox]) fi # TODO: do we need more defines? @@ -247,6 +259,8 @@ elif test "$BOXMODEL" = "vusolo4k"; then AC_DEFINE(BOXMODEL_VUSOLO4K, 1, [vusolo4k]) elif test "$BOXMODEL" = "bre2ze4k"; then AC_DEFINE(BOXMODEL_BRE2ZE4K, 1, [bre2ze4k]) +elif test "$BOXMODEL" = "vuduo"; then + AC_DEFINE(BOXMODEL_VUDUO, 1, [vuduo]) elif test "$BOXMODEL" = "raspi"; then AC_DEFINE(BOXMODEL_RASPI, 1, [raspberry pi]) fi diff --git a/common/Makefile.am b/common/Makefile.am index cb932ea..33c23e4 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -17,6 +17,15 @@ AM_CXXFLAGS += \ -I $(top_srcdir)/libdvbci endif +if BOXTYPE_MIPSBOX +AM_CXXFLAGS += \ + -I $(top_srcdir)/libdvbci +endif + +if BOXTYPE_MIPSBOX +libcommon_la_SOURCES = \ + ca_ci.cpp +else if BOXTYPE_DUCKBOX libcommon_la_SOURCES = \ ca_ci.cpp @@ -33,7 +42,7 @@ else libcommon_la_SOURCES = \ ca.cpp endif - +endif endif libcommon_la_SOURCES += \ diff --git a/common/ca_ci.cpp b/common/ca_ci.cpp index c46e028..3f2d956 100644 --- a/common/ca_ci.cpp +++ b/common/ca_ci.cpp @@ -41,7 +41,7 @@ static const char * FILENAME = "[ca_ci]"; const char ci_path[] = "/dev/dvb/adapter0/ci%d"; ca_slot_info_t info; #endif -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE const char ci_path[] = "/dev/ci%d"; static int last_source = -1; #endif @@ -263,7 +263,7 @@ static bool transmitData(eDVBCISlot* slot, unsigned char* d, int len) //send some data on an fd, for a special slot and connection_id eData sendData(eDVBCISlot* slot, unsigned char* data, int len) { -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE unsigned char *d = (unsigned char*) malloc(len); memcpy(d, data, len); transmitData(slot, d, len); @@ -878,7 +878,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf, (*It)->SID[0] = SID; (*It)->ci_use_count = 1; (*It)->TP = TP; -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE if(!checkLiveSlot && mode && (*It)->source != source) setInputSource((eDVBCISlot*)(*It), false); #endif @@ -889,7 +889,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf, (*It)->newCapmt = true; } -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE if ((*It)->newCapmt) extractPids((eDVBCISlot*)(*It)); #endif @@ -917,7 +917,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf, } else { -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE std::list::iterator it; recordUse_found = false; for (it = slot_data.begin(); it != slot_data.end(); ++it) @@ -958,7 +958,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf, return true; } -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE void cCA::extractPids(eDVBCISlot* slot) { u32 prg_info_len; @@ -1060,7 +1060,7 @@ void cCA::setSource(eDVBCISlot* slot) } } -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE static std::string getTunerLetter(int number) { return std::string(1, char(65 + number)); } void cCA::setInputs() @@ -1184,7 +1184,7 @@ cCA::cCA(int Slots) printf("%s -> %s %d\n", FILENAME, __func__, Slots); num_slots = Slots; -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE setInputs(); #endif @@ -1280,7 +1280,7 @@ void cCA::ModuleReset(enum CA_SLOT_TYPE, uint32_t slot) { (*it)->status = eStatusReset; usleep(200000); -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE last_source = (int)(*it)->source; setInputSource((eDVBCISlot*)(*it), false); #endif @@ -1373,7 +1373,7 @@ void cCA::ci_inserted(eDVBCISlot* slot) void cCA::ci_removed(eDVBCISlot* slot) { printf("cam (%d) status changed ->cam now _not_ present\n", slot->slot); -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE last_source = (int)slot->source; setInputSource(slot, false); #endif @@ -1444,7 +1444,7 @@ void cCA::slot_pollthread(void *c) while (1) { -#if HAVE_ARM_HARDWARE /* Armbox */ +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE /* Armbox/Mipsbox */ int len = 1024 *4; eData status; @@ -1685,7 +1685,7 @@ FROM_FIRST: break; } /* switch(slot->status) */ #endif /* end Duckbox */ -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE if (!slot->init && slot->camIsReady && last_source > -1) { slot->source = (u8)last_source; @@ -1740,7 +1740,7 @@ bool cCA::SendCaPMT(eDVBCISlot* slot) printf("%s -> %s\n", FILENAME, __func__); if (slot->fd > 0) { -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE setInputSource(slot, true); #endif setSource(slot); diff --git a/configure.ac b/configure.ac index 5778720..081c404 100644 --- a/configure.ac +++ b/configure.ac @@ -95,22 +95,23 @@ if test x$BOXTYPE = xgeneric -a x$BOXMODEL != xraspi; then fi AC_ARG_ENABLE(flv2mpeg4, - AS_HELP_STRING(--enable-flv2mpeg4, use flv2mpeg4 libeplayer3-arm), + AS_HELP_STRING(--enable-flv2mpeg4, use flv2mpeg4 libeplayer3), ,[enable_flv2mpeg4=no]) AM_CONDITIONAL(ENABLE_FLV2MPEG4, test "$enable_flv2mpeg4" = "yes") if test "$enable_flv2mpeg4" = "yes"; then - AC_DEFINE(ENABLE_FLV2MPEG4, 1, [use flv2mpeg4 libeplayer3-arm]) + AC_DEFINE(ENABLE_FLV2MPEG4, 1, [use flv2mpeg4 libeplayer3]) fi AC_CONFIG_FILES([ Makefile common/Makefile +libmipsbox/Makefile libarmbox/Makefile libazbox/Makefile libduckbox/Makefile libdvbci/Makefile -libeplayer3-arm/Makefile +libeplayer3/Makefile libeplayer3-sh4/Makefile libgeneric-pc/Makefile libraspi/Makefile diff --git a/include/audio_hal.h b/include/audio_hal.h index ed0a8b3..c2fc55b 100644 --- a/include/audio_hal.h +++ b/include/audio_hal.h @@ -9,6 +9,8 @@ #include "../libspark/audio_mixer.h" #elif HAVE_ARM_HARDWARE #include "../libarmbox/audio_lib.h" +#elif HAVE_MIPS_HARDWARE +#include "../libmipsbox/audio_lib.h" #elif HAVE_AZBOX_HARDWARE #include "../libazbox/audio_lib.h" #elif HAVE_GENERIC_HARDWARE diff --git a/include/ca_hal.h b/include/ca_hal.h index eb4ce36..856d99a 100644 --- a/include/ca_hal.h +++ b/include/ca_hal.h @@ -1,4 +1,4 @@ -#if HAVE_DUCKBOX_HARDWARE || (HAVE_ARM_HARDWARE && !BOXMODEL_HD60) +#if HAVE_DUCKBOX_HARDWARE || (HAVE_ARM_HARDWARE && !BOXMODEL_HD60) || HAVE_MIPS_HARDWARE #include "ca_ci.h" #else #include "ca.h" diff --git a/include/cs_api.h b/include/cs_api.h index 42fff37..bfce94c 100644 --- a/include/cs_api.h +++ b/include/cs_api.h @@ -23,7 +23,7 @@ inline void cs_api_exit() #define cs_free_uncached free // Callback function helpers -#if HAVE_DUCKBOX_HARDWARE || (HAVE_ARM_HARDWARE && !BOXMODEL_HD60) +#if HAVE_DUCKBOX_HARDWARE || (HAVE_ARM_HARDWARE && !BOXMODEL_HD60) || HAVE_MIPS_HARDWARE void cs_register_messenger(cs_messenger messenger); #else static inline void cs_register_messenger(cs_messenger) { return; }; diff --git a/include/playback_hal.h b/include/playback_hal.h index 9827e06..9e98392 100644 --- a/include/playback_hal.h +++ b/include/playback_hal.h @@ -15,6 +15,8 @@ #include "../libarmbox/playback_libeplayer3.h" #endif #endif +#elif HAVE_MIPS_HARDWARE +#include "../libmipsbox/playback_libeplayer3.h" #elif HAVE_AZBOX_HARDWARE #include "../libazbox/playback_lib.h" #elif HAVE_GENERIC_HARDWARE diff --git a/include/record_hal.h b/include/record_hal.h index 6225730..c0efc3f 100644 --- a/include/record_hal.h +++ b/include/record_hal.h @@ -7,6 +7,8 @@ #include "../libspark/record_lib.h" #elif HAVE_ARM_HARDWARE #include "../libarmbox/record_lib.h" +#elif HAVE_MIPS_HARDWARE +#include "../libmipsbox/record_lib.h" #elif HAVE_AZBOX_HARDWARE #include "../libazbox/record_lib.h" #elif HAVE_GENERIC_HARDWARE diff --git a/include/video_hal.h b/include/video_hal.h index 1ff401a..448b800 100644 --- a/include/video_hal.h +++ b/include/video_hal.h @@ -8,6 +8,9 @@ #elif HAVE_ARM_HARDWARE #include "../libarmbox/video_lib.h" #include "../libarmbox/hdmi_cec.h" +#elif HAVE_MIPS_HARDWARE +#include "../libmipsbox/video_lib.h" +#include "../libmipsbox/hdmi_cec.h" #elif HAVE_AZBOX_HARDWARE #include "../libazbox/video_lib.h" #elif HAVE_GENERIC_HARDWARE diff --git a/libarmbox/Makefile.am b/libarmbox/Makefile.am index 2143a42..a16e9cd 100644 --- a/libarmbox/Makefile.am +++ b/libarmbox/Makefile.am @@ -40,7 +40,7 @@ libarmbox_la_SOURCES += \ playback_libeplayer3.cpp AM_CPPFLAGS += \ - -I$(top_srcdir)/libeplayer3-arm/include + -I$(top_srcdir)/libeplayer3/include endif AM_LDFLAGS += \ diff --git a/libdvbci/descrambler.cpp b/libdvbci/descrambler.cpp index 414cff0..6345f0a 100644 --- a/libdvbci/descrambler.cpp +++ b/libdvbci/descrambler.cpp @@ -142,7 +142,7 @@ int descrambler_set_key(int index, int parity, unsigned char *data) int descrambler_set_pid(int index, int enable, int pid) { struct ca_pid p; -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE unsigned int flags = 0x80; if (index) diff --git a/libdvbci/dvbci_ccmgr.cpp b/libdvbci/dvbci_ccmgr.cpp index e3bdff2..464aa51 100644 --- a/libdvbci/dvbci_ccmgr.cpp +++ b/libdvbci/dvbci_ccmgr.cpp @@ -1354,7 +1354,7 @@ void eDVBCIContentControlManagerSession::resendKey(eDVBCISlot *tslot) if (!tslot->SidBlackListed && (tslot->recordUse[0] || tslot->liveUse[0])) { -#if HAVE_ARM_HARDWARE +#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE if (slot->newPids) { if (slot->pids.size()) diff --git a/libeplayer3-arm/Makefile.am b/libeplayer3/Makefile.am similarity index 90% rename from libeplayer3-arm/Makefile.am rename to libeplayer3/Makefile.am index b29e212..04e808c 100644 --- a/libeplayer3-arm/Makefile.am +++ b/libeplayer3/Makefile.am @@ -3,7 +3,7 @@ AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOUR CXXFLAGS = -Wall -noinst_LTLIBRARIES = libeplayer3_arm.la +noinst_LTLIBRARIES = libeplayer3.la AM_CPPFLAGS = -I$(srcdir)/include AM_CPPFLAGS += -I$(top_srcdir)/include @@ -59,11 +59,11 @@ SOURCE_FILES += \ output/writer/mipsel/wmv.c \ output/writer/mipsel/vc1.c -libeplayer3_arm_la_SOURCES = $(SOURCE_FILES) +libeplayer3_la_SOURCES = $(SOURCE_FILES) -LIBEPLAYER3_LIBS = libeplayer3_arm.la -lpthread -lavformat -lavcodec -lavutil -lswresample +LIBEPLAYER3_LIBS = libeplayer3.la -lpthread -lavformat -lavcodec -lavutil -lswresample bin_PROGRAMS = eplayer3 eplayer3_SOURCES = main/exteplayer.c eplayer3_LDADD = $(LIBEPLAYER3_LIBS) -eplayer3_DEPENDENCIES = libeplayer3_arm.la +eplayer3_DEPENDENCIES = libeplayer3.la diff --git a/libeplayer3-arm/README.md b/libeplayer3/README.md similarity index 100% rename from libeplayer3-arm/README.md rename to libeplayer3/README.md diff --git a/libeplayer3-arm/container/buff_ffmpeg.c b/libeplayer3/container/buff_ffmpeg.c similarity index 100% rename from libeplayer3-arm/container/buff_ffmpeg.c rename to libeplayer3/container/buff_ffmpeg.c diff --git a/libeplayer3-arm/container/container.c b/libeplayer3/container/container.c similarity index 100% rename from libeplayer3-arm/container/container.c rename to libeplayer3/container/container.c diff --git a/libeplayer3-arm/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c similarity index 100% rename from libeplayer3-arm/container/container_ffmpeg.c rename to libeplayer3/container/container_ffmpeg.c diff --git a/libeplayer3-arm/container/flv2mpeg4_ffmpeg.c b/libeplayer3/container/flv2mpeg4_ffmpeg.c similarity index 100% rename from libeplayer3-arm/container/flv2mpeg4_ffmpeg.c rename to libeplayer3/container/flv2mpeg4_ffmpeg.c diff --git a/libeplayer3-arm/container/mpeg4p2_ffmpeg.c b/libeplayer3/container/mpeg4p2_ffmpeg.c similarity index 100% rename from libeplayer3-arm/container/mpeg4p2_ffmpeg.c rename to libeplayer3/container/mpeg4p2_ffmpeg.c diff --git a/libeplayer3-arm/container/wrapped_ffmpeg.c b/libeplayer3/container/wrapped_ffmpeg.c similarity index 100% rename from libeplayer3-arm/container/wrapped_ffmpeg.c rename to libeplayer3/container/wrapped_ffmpeg.c diff --git a/libeplayer3-arm/external/ffmpeg/get_bits.h b/libeplayer3/external/ffmpeg/get_bits.h similarity index 100% rename from libeplayer3-arm/external/ffmpeg/get_bits.h rename to libeplayer3/external/ffmpeg/get_bits.h diff --git a/libeplayer3-arm/external/ffmpeg/latmenc.h b/libeplayer3/external/ffmpeg/latmenc.h similarity index 100% rename from libeplayer3-arm/external/ffmpeg/latmenc.h rename to libeplayer3/external/ffmpeg/latmenc.h diff --git a/libeplayer3-arm/external/ffmpeg/mathops.h b/libeplayer3/external/ffmpeg/mathops.h similarity index 100% rename from libeplayer3-arm/external/ffmpeg/mathops.h rename to libeplayer3/external/ffmpeg/mathops.h diff --git a/libeplayer3-arm/external/ffmpeg/mpeg4audio.h b/libeplayer3/external/ffmpeg/mpeg4audio.h similarity index 100% rename from libeplayer3-arm/external/ffmpeg/mpeg4audio.h rename to libeplayer3/external/ffmpeg/mpeg4audio.h diff --git a/libeplayer3-arm/external/ffmpeg/put_bits.h b/libeplayer3/external/ffmpeg/put_bits.h similarity index 100% rename from libeplayer3-arm/external/ffmpeg/put_bits.h rename to libeplayer3/external/ffmpeg/put_bits.h diff --git a/libeplayer3-arm/external/ffmpeg/src/bitstream.c b/libeplayer3/external/ffmpeg/src/bitstream.c similarity index 100% rename from libeplayer3-arm/external/ffmpeg/src/bitstream.c rename to libeplayer3/external/ffmpeg/src/bitstream.c diff --git a/libeplayer3-arm/external/ffmpeg/src/latmenc.c b/libeplayer3/external/ffmpeg/src/latmenc.c similarity index 100% rename from libeplayer3-arm/external/ffmpeg/src/latmenc.c rename to libeplayer3/external/ffmpeg/src/latmenc.c diff --git a/libeplayer3-arm/external/ffmpeg/src/mpeg4audio.c b/libeplayer3/external/ffmpeg/src/mpeg4audio.c similarity index 100% rename from libeplayer3-arm/external/ffmpeg/src/mpeg4audio.c rename to libeplayer3/external/ffmpeg/src/mpeg4audio.c diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/COPYING b/libeplayer3/external/flv2mpeg4/doc/COPYING similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/COPYING rename to libeplayer3/external/flv2mpeg4/doc/COPYING diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/CREDITS b/libeplayer3/external/flv2mpeg4/doc/CREDITS similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/CREDITS rename to libeplayer3/external/flv2mpeg4/doc/CREDITS diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/FFMPEG_CREDITS b/libeplayer3/external/flv2mpeg4/doc/FFMPEG_CREDITS similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/FFMPEG_CREDITS rename to libeplayer3/external/flv2mpeg4/doc/FFMPEG_CREDITS diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/FFMPEG_IMPORTS b/libeplayer3/external/flv2mpeg4/doc/FFMPEG_IMPORTS similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/FFMPEG_IMPORTS rename to libeplayer3/external/flv2mpeg4/doc/FFMPEG_IMPORTS diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/INSTALL b/libeplayer3/external/flv2mpeg4/doc/INSTALL similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/INSTALL rename to libeplayer3/external/flv2mpeg4/doc/INSTALL diff --git a/libeplayer3-arm/external/flv2mpeg4/doc/README b/libeplayer3/external/flv2mpeg4/doc/README similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/doc/README rename to libeplayer3/external/flv2mpeg4/doc/README diff --git a/libeplayer3-arm/external/flv2mpeg4/flv2mpeg4.h b/libeplayer3/external/flv2mpeg4/flv2mpeg4.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/flv2mpeg4.h rename to libeplayer3/external/flv2mpeg4/flv2mpeg4.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/bitreader.h b/libeplayer3/external/flv2mpeg4/src/bitreader.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/bitreader.h rename to libeplayer3/external/flv2mpeg4/src/bitreader.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/bitwriter.h b/libeplayer3/external/flv2mpeg4/src/bitwriter.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/bitwriter.h rename to libeplayer3/external/flv2mpeg4/src/bitwriter.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/dcprediction.c b/libeplayer3/external/flv2mpeg4/src/dcprediction.c similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/dcprediction.c rename to libeplayer3/external/flv2mpeg4/src/dcprediction.c diff --git a/libeplayer3-arm/external/flv2mpeg4/src/dcprediction.h b/libeplayer3/external/flv2mpeg4/src/dcprediction.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/dcprediction.h rename to libeplayer3/external/flv2mpeg4/src/dcprediction.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/flv.h b/libeplayer3/external/flv2mpeg4/src/flv.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/flv.h rename to libeplayer3/external/flv2mpeg4/src/flv.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/flv2mpeg4.c b/libeplayer3/external/flv2mpeg4/src/flv2mpeg4.c similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/flv2mpeg4.c rename to libeplayer3/external/flv2mpeg4/src/flv2mpeg4.c diff --git a/libeplayer3-arm/external/flv2mpeg4/src/flvdecoder.c b/libeplayer3/external/flv2mpeg4/src/flvdecoder.c similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/flvdecoder.c rename to libeplayer3/external/flv2mpeg4/src/flvdecoder.c diff --git a/libeplayer3-arm/external/flv2mpeg4/src/m4v.h b/libeplayer3/external/flv2mpeg4/src/m4v.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/m4v.h rename to libeplayer3/external/flv2mpeg4/src/m4v.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/m4vencode.c b/libeplayer3/external/flv2mpeg4/src/m4vencode.c similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/m4vencode.c rename to libeplayer3/external/flv2mpeg4/src/m4vencode.c diff --git a/libeplayer3-arm/external/flv2mpeg4/src/m4vencode.h b/libeplayer3/external/flv2mpeg4/src/m4vencode.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/m4vencode.h rename to libeplayer3/external/flv2mpeg4/src/m4vencode.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/m4vencode_tables.h b/libeplayer3/external/flv2mpeg4/src/m4vencode_tables.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/m4vencode_tables.h rename to libeplayer3/external/flv2mpeg4/src/m4vencode_tables.h diff --git a/libeplayer3-arm/external/flv2mpeg4/src/type.h b/libeplayer3/external/flv2mpeg4/src/type.h similarity index 100% rename from libeplayer3-arm/external/flv2mpeg4/src/type.h rename to libeplayer3/external/flv2mpeg4/src/type.h diff --git a/libeplayer3-arm/include/aac.h b/libeplayer3/include/aac.h similarity index 100% rename from libeplayer3-arm/include/aac.h rename to libeplayer3/include/aac.h diff --git a/libeplayer3-arm/include/bcm_ioctls.h b/libeplayer3/include/bcm_ioctls.h similarity index 100% rename from libeplayer3-arm/include/bcm_ioctls.h rename to libeplayer3/include/bcm_ioctls.h diff --git a/libeplayer3-arm/include/common.h b/libeplayer3/include/common.h similarity index 100% rename from libeplayer3-arm/include/common.h rename to libeplayer3/include/common.h diff --git a/libeplayer3-arm/include/container.h b/libeplayer3/include/container.h similarity index 100% rename from libeplayer3-arm/include/container.h rename to libeplayer3/include/container.h diff --git a/libeplayer3-arm/include/debug.h b/libeplayer3/include/debug.h similarity index 100% rename from libeplayer3-arm/include/debug.h rename to libeplayer3/include/debug.h diff --git a/libeplayer3-arm/include/ffmpeg_metadata.h b/libeplayer3/include/ffmpeg_metadata.h similarity index 100% rename from libeplayer3-arm/include/ffmpeg_metadata.h rename to libeplayer3/include/ffmpeg_metadata.h diff --git a/libeplayer3-arm/include/manager.h b/libeplayer3/include/manager.h similarity index 100% rename from libeplayer3-arm/include/manager.h rename to libeplayer3/include/manager.h diff --git a/libeplayer3-arm/include/misc.h b/libeplayer3/include/misc.h similarity index 100% rename from libeplayer3-arm/include/misc.h rename to libeplayer3/include/misc.h diff --git a/libeplayer3-arm/include/output.h b/libeplayer3/include/output.h similarity index 100% rename from libeplayer3-arm/include/output.h rename to libeplayer3/include/output.h diff --git a/libeplayer3-arm/include/pcm.h b/libeplayer3/include/pcm.h similarity index 100% rename from libeplayer3-arm/include/pcm.h rename to libeplayer3/include/pcm.h diff --git a/libeplayer3-arm/include/pes.h b/libeplayer3/include/pes.h similarity index 100% rename from libeplayer3-arm/include/pes.h rename to libeplayer3/include/pes.h diff --git a/libeplayer3-arm/include/playback.h b/libeplayer3/include/playback.h similarity index 100% rename from libeplayer3-arm/include/playback.h rename to libeplayer3/include/playback.h diff --git a/libeplayer3-arm/include/stm_ioctls.h b/libeplayer3/include/stm_ioctls.h similarity index 100% rename from libeplayer3-arm/include/stm_ioctls.h rename to libeplayer3/include/stm_ioctls.h diff --git a/libeplayer3-arm/include/writer.h b/libeplayer3/include/writer.h similarity index 100% rename from libeplayer3-arm/include/writer.h rename to libeplayer3/include/writer.h diff --git a/libeplayer3-arm/main/exteplayer.c b/libeplayer3/main/exteplayer.c similarity index 100% rename from libeplayer3-arm/main/exteplayer.c rename to libeplayer3/main/exteplayer.c diff --git a/libeplayer3-arm/manager/audio.c b/libeplayer3/manager/audio.c similarity index 100% rename from libeplayer3-arm/manager/audio.c rename to libeplayer3/manager/audio.c diff --git a/libeplayer3-arm/manager/chapter.c b/libeplayer3/manager/chapter.c similarity index 100% rename from libeplayer3-arm/manager/chapter.c rename to libeplayer3/manager/chapter.c diff --git a/libeplayer3-arm/manager/manager.c b/libeplayer3/manager/manager.c similarity index 100% rename from libeplayer3-arm/manager/manager.c rename to libeplayer3/manager/manager.c diff --git a/libeplayer3-arm/manager/subtitle.c b/libeplayer3/manager/subtitle.c similarity index 100% rename from libeplayer3-arm/manager/subtitle.c rename to libeplayer3/manager/subtitle.c diff --git a/libeplayer3-arm/manager/video.c b/libeplayer3/manager/video.c similarity index 100% rename from libeplayer3-arm/manager/video.c rename to libeplayer3/manager/video.c diff --git a/libeplayer3-arm/output/linuxdvb_buffering.c b/libeplayer3/output/linuxdvb_buffering.c similarity index 100% rename from libeplayer3-arm/output/linuxdvb_buffering.c rename to libeplayer3/output/linuxdvb_buffering.c diff --git a/libeplayer3-arm/output/linuxdvb_fake.c b/libeplayer3/output/linuxdvb_fake.c similarity index 100% rename from libeplayer3-arm/output/linuxdvb_fake.c rename to libeplayer3/output/linuxdvb_fake.c diff --git a/libeplayer3-arm/output/linuxdvb_mipsel.c b/libeplayer3/output/linuxdvb_mipsel.c similarity index 100% rename from libeplayer3-arm/output/linuxdvb_mipsel.c rename to libeplayer3/output/linuxdvb_mipsel.c diff --git a/libeplayer3-arm/output/linuxdvb_sh4.c b/libeplayer3/output/linuxdvb_sh4.c similarity index 100% rename from libeplayer3-arm/output/linuxdvb_sh4.c rename to libeplayer3/output/linuxdvb_sh4.c diff --git a/libeplayer3-arm/output/output.c b/libeplayer3/output/output.c similarity index 100% rename from libeplayer3-arm/output/output.c rename to libeplayer3/output/output.c diff --git a/libeplayer3-arm/output/output_subtitle.c b/libeplayer3/output/output_subtitle.c similarity index 100% rename from libeplayer3-arm/output/output_subtitle.c rename to libeplayer3/output/output_subtitle.c diff --git a/libeplayer3-arm/output/writer/common/misc.c b/libeplayer3/output/writer/common/misc.c similarity index 100% rename from libeplayer3-arm/output/writer/common/misc.c rename to libeplayer3/output/writer/common/misc.c diff --git a/libeplayer3-arm/output/writer/common/pes.c b/libeplayer3/output/writer/common/pes.c similarity index 100% rename from libeplayer3-arm/output/writer/common/pes.c rename to libeplayer3/output/writer/common/pes.c diff --git a/libeplayer3-arm/output/writer/common/writer.c b/libeplayer3/output/writer/common/writer.c similarity index 100% rename from libeplayer3-arm/output/writer/common/writer.c rename to libeplayer3/output/writer/common/writer.c diff --git a/libeplayer3-arm/output/writer/mipsel/aac.c b/libeplayer3/output/writer/mipsel/aac.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/aac.c rename to libeplayer3/output/writer/mipsel/aac.c diff --git a/libeplayer3-arm/output/writer/mipsel/ac3.c b/libeplayer3/output/writer/mipsel/ac3.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/ac3.c rename to libeplayer3/output/writer/mipsel/ac3.c diff --git a/libeplayer3-arm/output/writer/mipsel/amr.c b/libeplayer3/output/writer/mipsel/amr.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/amr.c rename to libeplayer3/output/writer/mipsel/amr.c diff --git a/libeplayer3-arm/output/writer/mipsel/divx3.c b/libeplayer3/output/writer/mipsel/divx3.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/divx3.c rename to libeplayer3/output/writer/mipsel/divx3.c diff --git a/libeplayer3-arm/output/writer/mipsel/dts.c b/libeplayer3/output/writer/mipsel/dts.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/dts.c rename to libeplayer3/output/writer/mipsel/dts.c diff --git a/libeplayer3-arm/output/writer/mipsel/h264.c b/libeplayer3/output/writer/mipsel/h264.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/h264.c rename to libeplayer3/output/writer/mipsel/h264.c diff --git a/libeplayer3-arm/output/writer/mipsel/h265.c b/libeplayer3/output/writer/mipsel/h265.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/h265.c rename to libeplayer3/output/writer/mipsel/h265.c diff --git a/libeplayer3-arm/output/writer/mipsel/lpcm.c b/libeplayer3/output/writer/mipsel/lpcm.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/lpcm.c rename to libeplayer3/output/writer/mipsel/lpcm.c diff --git a/libeplayer3-arm/output/writer/mipsel/mjpeg.c b/libeplayer3/output/writer/mipsel/mjpeg.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/mjpeg.c rename to libeplayer3/output/writer/mipsel/mjpeg.c diff --git a/libeplayer3-arm/output/writer/mipsel/mp3.c b/libeplayer3/output/writer/mipsel/mp3.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/mp3.c rename to libeplayer3/output/writer/mipsel/mp3.c diff --git a/libeplayer3-arm/output/writer/mipsel/mpeg2.c b/libeplayer3/output/writer/mipsel/mpeg2.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/mpeg2.c rename to libeplayer3/output/writer/mipsel/mpeg2.c diff --git a/libeplayer3-arm/output/writer/mipsel/mpeg4.c b/libeplayer3/output/writer/mipsel/mpeg4.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/mpeg4.c rename to libeplayer3/output/writer/mipsel/mpeg4.c diff --git a/libeplayer3-arm/output/writer/mipsel/pcm.c b/libeplayer3/output/writer/mipsel/pcm.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/pcm.c rename to libeplayer3/output/writer/mipsel/pcm.c diff --git a/libeplayer3-arm/output/writer/mipsel/vc1.c b/libeplayer3/output/writer/mipsel/vc1.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/vc1.c rename to libeplayer3/output/writer/mipsel/vc1.c diff --git a/libeplayer3-arm/output/writer/mipsel/vp.c b/libeplayer3/output/writer/mipsel/vp.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/vp.c rename to libeplayer3/output/writer/mipsel/vp.c diff --git a/libeplayer3-arm/output/writer/mipsel/wma.c b/libeplayer3/output/writer/mipsel/wma.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/wma.c rename to libeplayer3/output/writer/mipsel/wma.c diff --git a/libeplayer3-arm/output/writer/mipsel/wmv.c b/libeplayer3/output/writer/mipsel/wmv.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/wmv.c rename to libeplayer3/output/writer/mipsel/wmv.c diff --git a/libeplayer3-arm/output/writer/mipsel/writer.c b/libeplayer3/output/writer/mipsel/writer.c similarity index 100% rename from libeplayer3-arm/output/writer/mipsel/writer.c rename to libeplayer3/output/writer/mipsel/writer.c diff --git a/libeplayer3-arm/output/writer/sh4/aac.c b/libeplayer3/output/writer/sh4/aac.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/aac.c rename to libeplayer3/output/writer/sh4/aac.c diff --git a/libeplayer3-arm/output/writer/sh4/ac3.c b/libeplayer3/output/writer/sh4/ac3.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/ac3.c rename to libeplayer3/output/writer/sh4/ac3.c diff --git a/libeplayer3-arm/output/writer/sh4/divx.c b/libeplayer3/output/writer/sh4/divx.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/divx.c rename to libeplayer3/output/writer/sh4/divx.c diff --git a/libeplayer3-arm/output/writer/sh4/divx2.c b/libeplayer3/output/writer/sh4/divx2.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/divx2.c rename to libeplayer3/output/writer/sh4/divx2.c diff --git a/libeplayer3-arm/output/writer/sh4/dts.c b/libeplayer3/output/writer/sh4/dts.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/dts.c rename to libeplayer3/output/writer/sh4/dts.c diff --git a/libeplayer3-arm/output/writer/sh4/h263.c b/libeplayer3/output/writer/sh4/h263.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/h263.c rename to libeplayer3/output/writer/sh4/h263.c diff --git a/libeplayer3-arm/output/writer/sh4/h264.c b/libeplayer3/output/writer/sh4/h264.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/h264.c rename to libeplayer3/output/writer/sh4/h264.c diff --git a/libeplayer3-arm/output/writer/sh4/mp3.c b/libeplayer3/output/writer/sh4/mp3.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/mp3.c rename to libeplayer3/output/writer/sh4/mp3.c diff --git a/libeplayer3-arm/output/writer/sh4/mpeg2.c b/libeplayer3/output/writer/sh4/mpeg2.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/mpeg2.c rename to libeplayer3/output/writer/sh4/mpeg2.c diff --git a/libeplayer3-arm/output/writer/sh4/pcm.c b/libeplayer3/output/writer/sh4/pcm.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/pcm.c rename to libeplayer3/output/writer/sh4/pcm.c diff --git a/libeplayer3-arm/output/writer/sh4/pes.c b/libeplayer3/output/writer/sh4/pes.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/pes.c rename to libeplayer3/output/writer/sh4/pes.c diff --git a/libeplayer3-arm/output/writer/sh4/vc1.c b/libeplayer3/output/writer/sh4/vc1.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/vc1.c rename to libeplayer3/output/writer/sh4/vc1.c diff --git a/libeplayer3-arm/output/writer/sh4/vorbis.c b/libeplayer3/output/writer/sh4/vorbis.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/vorbis.c rename to libeplayer3/output/writer/sh4/vorbis.c diff --git a/libeplayer3-arm/output/writer/sh4/wma.c b/libeplayer3/output/writer/sh4/wma.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/wma.c rename to libeplayer3/output/writer/sh4/wma.c diff --git a/libeplayer3-arm/output/writer/sh4/wmv.c b/libeplayer3/output/writer/sh4/wmv.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/wmv.c rename to libeplayer3/output/writer/sh4/wmv.c diff --git a/libeplayer3-arm/output/writer/sh4/writer.c b/libeplayer3/output/writer/sh4/writer.c similarity index 100% rename from libeplayer3-arm/output/writer/sh4/writer.c rename to libeplayer3/output/writer/sh4/writer.c diff --git a/libeplayer3-arm/playback/playback.c b/libeplayer3/playback/playback.c similarity index 100% rename from libeplayer3-arm/playback/playback.c rename to libeplayer3/playback/playback.c diff --git a/libmipsbox/Makefile.am b/libmipsbox/Makefile.am new file mode 100644 index 0000000..53b544d --- /dev/null +++ b/libmipsbox/Makefile.am @@ -0,0 +1,35 @@ +noinst_LTLIBRARIES = libmipsbox.la + +AM_CPPFLAGS = \ + -I$(top_srcdir)/common \ + -I$(top_srcdir)/include + +AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing + +AM_LDFLAGS = \ + -lOpenThreads \ + @AVFORMAT_LIBS@ \ + @AVUTIL_LIBS@ \ + @AVCODEC_LIBS@ \ + @SWRESAMPLE_LIBS@ \ + -lpthread -lass -lrt + +libmipsbox_la_SOURCES = \ + hardware_caps.c \ + dmx.cpp \ + video.cpp \ + audio.cpp \ + init.cpp \ + record.cpp \ + hdmi_cec.cpp + +libmipsbox_la_SOURCES += \ + playback_libeplayer3.cpp + +AM_CPPFLAGS += \ + -I$(top_srcdir)/libeplayer3/include + +AM_LDFLAGS += \ + -lass + +AM_CPPFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS diff --git a/libmipsbox/audio.cpp b/libmipsbox/audio.cpp new file mode 120000 index 0000000..a5bac70 --- /dev/null +++ b/libmipsbox/audio.cpp @@ -0,0 +1 @@ +../libarmbox/audio.cpp \ No newline at end of file diff --git a/libmipsbox/audio_lib.h b/libmipsbox/audio_lib.h new file mode 120000 index 0000000..f12d7d5 --- /dev/null +++ b/libmipsbox/audio_lib.h @@ -0,0 +1 @@ +../libarmbox/audio_lib.h \ No newline at end of file diff --git a/libmipsbox/dmx.cpp b/libmipsbox/dmx.cpp new file mode 120000 index 0000000..a8e7f08 --- /dev/null +++ b/libmipsbox/dmx.cpp @@ -0,0 +1 @@ +../libarmbox/dmx.cpp \ No newline at end of file diff --git a/libmipsbox/hardware_caps.c b/libmipsbox/hardware_caps.c new file mode 100644 index 0000000..bb81877 --- /dev/null +++ b/libmipsbox/hardware_caps.c @@ -0,0 +1,50 @@ +/* + * determine the capabilities of the hardware. + * part of libstb-hal + * + * (C) 2010-2012 Stefan Seyfried + * + * License: GPL v2 or later + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#define FP_DEV "/dev/dbox/oled0" +static int initialized = 0; +static hw_caps_t caps; + +hw_caps_t *get_hwcaps(void) +{ + if (initialized) + return ∩︀ + + memset(&caps, 0, sizeof(hw_caps_t)); + +#if BOXMODEL_VUDUO + initialized = 1; + caps.has_CI = 2; + caps.can_cec = 1; + caps.can_shutdown = 1; + caps.display_xres = 16; + caps.display_type = HW_DISPLAY_LINE_TEXT; + caps.display_can_deepstandby = 1; + caps.display_can_set_brightness = 1; + caps.display_has_statusline = 0; + caps.has_button_timer = 1; + caps.has_HDMI = 1; + caps.has_SCART = 1; + strcpy(caps.boxvendor, "VU+"); + strcpy(caps.boxname, "DUO"); + strcpy(caps.boxarch, "BCM7335"); +#endif + return ∩︀ +} diff --git a/libmipsbox/hdmi_cec.cpp b/libmipsbox/hdmi_cec.cpp new file mode 120000 index 0000000..7cf1426 --- /dev/null +++ b/libmipsbox/hdmi_cec.cpp @@ -0,0 +1 @@ +../libarmbox/hdmi_cec.cpp \ No newline at end of file diff --git a/libmipsbox/hdmi_cec.h b/libmipsbox/hdmi_cec.h new file mode 120000 index 0000000..20ec29c --- /dev/null +++ b/libmipsbox/hdmi_cec.h @@ -0,0 +1 @@ +../libarmbox/hdmi_cec.h \ No newline at end of file diff --git a/libmipsbox/hdmi_cec_types.h b/libmipsbox/hdmi_cec_types.h new file mode 120000 index 0000000..3481cbf --- /dev/null +++ b/libmipsbox/hdmi_cec_types.h @@ -0,0 +1 @@ +../libarmbox/hdmi_cec_types.h \ No newline at end of file diff --git a/libmipsbox/init.cpp b/libmipsbox/init.cpp new file mode 120000 index 0000000..7de8db4 --- /dev/null +++ b/libmipsbox/init.cpp @@ -0,0 +1 @@ +../libarmbox/init.cpp \ No newline at end of file diff --git a/libmipsbox/linux-uapi-cec.h b/libmipsbox/linux-uapi-cec.h new file mode 120000 index 0000000..993e23b --- /dev/null +++ b/libmipsbox/linux-uapi-cec.h @@ -0,0 +1 @@ +../libarmbox/linux-uapi-cec.h \ No newline at end of file diff --git a/libmipsbox/playback_libeplayer3.cpp b/libmipsbox/playback_libeplayer3.cpp new file mode 120000 index 0000000..a9ecfad --- /dev/null +++ b/libmipsbox/playback_libeplayer3.cpp @@ -0,0 +1 @@ +../libarmbox/playback_libeplayer3.cpp \ No newline at end of file diff --git a/libmipsbox/playback_libeplayer3.h b/libmipsbox/playback_libeplayer3.h new file mode 120000 index 0000000..7eac198 --- /dev/null +++ b/libmipsbox/playback_libeplayer3.h @@ -0,0 +1 @@ +../libarmbox/playback_libeplayer3.h \ No newline at end of file diff --git a/libmipsbox/record.cpp b/libmipsbox/record.cpp new file mode 120000 index 0000000..bd5779b --- /dev/null +++ b/libmipsbox/record.cpp @@ -0,0 +1 @@ +../libarmbox/record.cpp \ No newline at end of file diff --git a/libmipsbox/record_lib.h b/libmipsbox/record_lib.h new file mode 120000 index 0000000..8104a0c --- /dev/null +++ b/libmipsbox/record_lib.h @@ -0,0 +1 @@ +../libarmbox/record_lib.h \ No newline at end of file diff --git a/libmipsbox/video.cpp b/libmipsbox/video.cpp new file mode 120000 index 0000000..5ee7b52 --- /dev/null +++ b/libmipsbox/video.cpp @@ -0,0 +1 @@ +../libarmbox/video.cpp \ No newline at end of file diff --git a/libmipsbox/video_lib.h b/libmipsbox/video_lib.h new file mode 120000 index 0000000..21a9fa2 --- /dev/null +++ b/libmipsbox/video_lib.h @@ -0,0 +1 @@ +../libarmbox/video_lib.h \ No newline at end of file