mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
fix build vuduo - not yet ready
Origin commit data
------------------
Branch: master
Commit: e9c79288bc
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2019-04-05 (Fri, 05 Apr 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
11
Makefile.am
11
Makefile.am
@@ -66,9 +66,16 @@ SUBDIRS += libeplayer3-arm
|
|||||||
libstb_hal_la_LIBADD += \
|
libstb_hal_la_LIBADD += \
|
||||||
libeplayer3-arm/libeplayer3_arm.la
|
libeplayer3-arm/libeplayer3_arm.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
if BOXTYPE_MIPSBOX
|
||||||
|
SUBDIRS += libmipsbox libdvbci
|
||||||
|
libstb_hal_la_LIBADD += \
|
||||||
|
libmipsbox/libmipsbox.la \
|
||||||
|
libdvbci/libdvbci.la
|
||||||
|
SUBDIRS += libeplayer3-mips
|
||||||
|
libstb_hal_la_LIBADD += \
|
||||||
|
libeplayer3-mips/libeplayer3_mips.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
pkginclude_HEADERS = \
|
pkginclude_HEADERS = \
|
||||||
|
@@ -41,7 +41,7 @@ static const char * FILENAME = "[ca_ci]";
|
|||||||
const char ci_path[] = "/dev/dvb/adapter0/ci%d";
|
const char ci_path[] = "/dev/dvb/adapter0/ci%d";
|
||||||
ca_slot_info_t info;
|
ca_slot_info_t info;
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
const char ci_path[] = "/dev/ci%d";
|
const char ci_path[] = "/dev/ci%d";
|
||||||
static int last_source = -1;
|
static int last_source = -1;
|
||||||
#endif
|
#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
|
//send some data on an fd, for a special slot and connection_id
|
||||||
eData sendData(eDVBCISlot* slot, unsigned char* data, int len)
|
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);
|
unsigned char *d = (unsigned char*) malloc(len);
|
||||||
memcpy(d, data, len);
|
memcpy(d, data, len);
|
||||||
transmitData(slot, d, 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)->SID[0] = SID;
|
||||||
(*It)->ci_use_count = 1;
|
(*It)->ci_use_count = 1;
|
||||||
(*It)->TP = TP;
|
(*It)->TP = TP;
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
if(!checkLiveSlot && mode && (*It)->source != source)
|
if(!checkLiveSlot && mode && (*It)->source != source)
|
||||||
setInputSource((eDVBCISlot*)(*It), false);
|
setInputSource((eDVBCISlot*)(*It), false);
|
||||||
#endif
|
#endif
|
||||||
@@ -889,7 +889,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf,
|
|||||||
(*It)->newCapmt = true;
|
(*It)->newCapmt = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
if ((*It)->newCapmt)
|
if ((*It)->newCapmt)
|
||||||
extractPids((eDVBCISlot*)(*It));
|
extractPids((eDVBCISlot*)(*It));
|
||||||
#endif
|
#endif
|
||||||
@@ -917,7 +917,7 @@ bool cCA::SendCAPMT(u64 tpid, u8 source, u8 camask, const unsigned char * cabuf,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
std::list<eDVBCISlot*>::iterator it;
|
std::list<eDVBCISlot*>::iterator it;
|
||||||
recordUse_found = false;
|
recordUse_found = false;
|
||||||
for (it = slot_data.begin(); it != slot_data.end(); ++it)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
void cCA::extractPids(eDVBCISlot* slot)
|
void cCA::extractPids(eDVBCISlot* slot)
|
||||||
{
|
{
|
||||||
u32 prg_info_len;
|
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)); }
|
static std::string getTunerLetter(int number) { return std::string(1, char(65 + number)); }
|
||||||
|
|
||||||
void cCA::setInputs()
|
void cCA::setInputs()
|
||||||
@@ -1184,7 +1184,7 @@ cCA::cCA(int Slots)
|
|||||||
printf("%s -> %s %d\n", FILENAME, __func__, Slots);
|
printf("%s -> %s %d\n", FILENAME, __func__, Slots);
|
||||||
|
|
||||||
num_slots = Slots;
|
num_slots = Slots;
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
setInputs();
|
setInputs();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1280,7 +1280,7 @@ void cCA::ModuleReset(enum CA_SLOT_TYPE, uint32_t slot)
|
|||||||
{
|
{
|
||||||
(*it)->status = eStatusReset;
|
(*it)->status = eStatusReset;
|
||||||
usleep(200000);
|
usleep(200000);
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
last_source = (int)(*it)->source;
|
last_source = (int)(*it)->source;
|
||||||
setInputSource((eDVBCISlot*)(*it), false);
|
setInputSource((eDVBCISlot*)(*it), false);
|
||||||
#endif
|
#endif
|
||||||
@@ -1373,7 +1373,7 @@ void cCA::ci_inserted(eDVBCISlot* slot)
|
|||||||
void cCA::ci_removed(eDVBCISlot* slot)
|
void cCA::ci_removed(eDVBCISlot* slot)
|
||||||
{
|
{
|
||||||
printf("cam (%d) status changed ->cam now _not_ present\n", slot->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;
|
last_source = (int)slot->source;
|
||||||
setInputSource(slot, false);
|
setInputSource(slot, false);
|
||||||
#endif
|
#endif
|
||||||
@@ -1444,7 +1444,7 @@ void cCA::slot_pollthread(void *c)
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
#if HAVE_ARM_HARDWARE /* Armbox */
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE /* Armbox/Mipsbox */
|
||||||
|
|
||||||
int len = 1024 *4;
|
int len = 1024 *4;
|
||||||
eData status;
|
eData status;
|
||||||
@@ -1685,7 +1685,7 @@ FROM_FIRST:
|
|||||||
break;
|
break;
|
||||||
} /* switch(slot->status) */
|
} /* switch(slot->status) */
|
||||||
#endif /* end Duckbox */
|
#endif /* end Duckbox */
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
if (!slot->init && slot->camIsReady && last_source > -1)
|
if (!slot->init && slot->camIsReady && last_source > -1)
|
||||||
{
|
{
|
||||||
slot->source = (u8)last_source;
|
slot->source = (u8)last_source;
|
||||||
@@ -1740,7 +1740,7 @@ bool cCA::SendCaPMT(eDVBCISlot* slot)
|
|||||||
printf("%s -> %s\n", FILENAME, __func__);
|
printf("%s -> %s\n", FILENAME, __func__);
|
||||||
if (slot->fd > 0)
|
if (slot->fd > 0)
|
||||||
{
|
{
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
setInputSource(slot, true);
|
setInputSource(slot, true);
|
||||||
#endif
|
#endif
|
||||||
setSource(slot);
|
setSource(slot);
|
||||||
|
@@ -108,10 +108,12 @@ fi
|
|||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
common/Makefile
|
common/Makefile
|
||||||
|
libmipsbox/Makefile
|
||||||
libarmbox/Makefile
|
libarmbox/Makefile
|
||||||
libazbox/Makefile
|
libazbox/Makefile
|
||||||
libduckbox/Makefile
|
libduckbox/Makefile
|
||||||
libdvbci/Makefile
|
libdvbci/Makefile
|
||||||
|
libeplayer3-mips/Makefile
|
||||||
libeplayer3-arm/Makefile
|
libeplayer3-arm/Makefile
|
||||||
libeplayer3-sh4/Makefile
|
libeplayer3-sh4/Makefile
|
||||||
libgeneric-pc/Makefile
|
libgeneric-pc/Makefile
|
||||||
@@ -120,4 +122,3 @@ libspark/Makefile
|
|||||||
libtriple/Makefile
|
libtriple/Makefile
|
||||||
tools/Makefile
|
tools/Makefile
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
#include "../libspark/audio_mixer.h"
|
#include "../libspark/audio_mixer.h"
|
||||||
#elif HAVE_ARM_HARDWARE
|
#elif HAVE_ARM_HARDWARE
|
||||||
#include "../libarmbox/audio_lib.h"
|
#include "../libarmbox/audio_lib.h"
|
||||||
|
#elif HAVE_MIPS_HARDWARE
|
||||||
|
#include "../libmipsbox/audio_lib.h"
|
||||||
#elif HAVE_AZBOX_HARDWARE
|
#elif HAVE_AZBOX_HARDWARE
|
||||||
#include "../libazbox/audio_lib.h"
|
#include "../libazbox/audio_lib.h"
|
||||||
#elif HAVE_GENERIC_HARDWARE
|
#elif HAVE_GENERIC_HARDWARE
|
||||||
|
@@ -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"
|
#include "ca_ci.h"
|
||||||
#else
|
#else
|
||||||
#include "ca.h"
|
#include "ca.h"
|
||||||
|
@@ -23,7 +23,7 @@ inline void cs_api_exit()
|
|||||||
#define cs_free_uncached free
|
#define cs_free_uncached free
|
||||||
|
|
||||||
// Callback function helpers
|
// 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);
|
void cs_register_messenger(cs_messenger messenger);
|
||||||
#else
|
#else
|
||||||
static inline void cs_register_messenger(cs_messenger) { return; };
|
static inline void cs_register_messenger(cs_messenger) { return; };
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
#include "../libarmbox/playback_libeplayer3.h"
|
#include "../libarmbox/playback_libeplayer3.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#elif HAVE_MIPS_HARDWARE
|
||||||
|
#include "../libmipsbox/playback_libeplayer3.h"
|
||||||
#elif HAVE_AZBOX_HARDWARE
|
#elif HAVE_AZBOX_HARDWARE
|
||||||
#include "../libazbox/playback_lib.h"
|
#include "../libazbox/playback_lib.h"
|
||||||
#elif HAVE_GENERIC_HARDWARE
|
#elif HAVE_GENERIC_HARDWARE
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
#include "../libspark/record_lib.h"
|
#include "../libspark/record_lib.h"
|
||||||
#elif HAVE_ARM_HARDWARE
|
#elif HAVE_ARM_HARDWARE
|
||||||
#include "../libarmbox/record_lib.h"
|
#include "../libarmbox/record_lib.h"
|
||||||
|
#elif HAVE_MIPS_HARDWARE
|
||||||
|
#include "../libmipsbox/record_lib.h"
|
||||||
#elif HAVE_AZBOX_HARDWARE
|
#elif HAVE_AZBOX_HARDWARE
|
||||||
#include "../libazbox/record_lib.h"
|
#include "../libazbox/record_lib.h"
|
||||||
#elif HAVE_GENERIC_HARDWARE
|
#elif HAVE_GENERIC_HARDWARE
|
||||||
|
@@ -8,6 +8,9 @@
|
|||||||
#elif HAVE_ARM_HARDWARE
|
#elif HAVE_ARM_HARDWARE
|
||||||
#include "../libarmbox/video_lib.h"
|
#include "../libarmbox/video_lib.h"
|
||||||
#include "../libarmbox/hdmi_cec.h"
|
#include "../libarmbox/hdmi_cec.h"
|
||||||
|
#elif HAVE_MIPS_HARDWARE
|
||||||
|
#include "../libmipsbox/video_lib.h"
|
||||||
|
#include "../libmipsbox/hdmi_cec.h"
|
||||||
#elif HAVE_AZBOX_HARDWARE
|
#elif HAVE_AZBOX_HARDWARE
|
||||||
#include "../libazbox/video_lib.h"
|
#include "../libazbox/video_lib.h"
|
||||||
#elif HAVE_GENERIC_HARDWARE
|
#elif HAVE_GENERIC_HARDWARE
|
||||||
|
@@ -18,7 +18,7 @@ static const char * FILENAME = "[descrambler]";
|
|||||||
static int desc_fd = -1;
|
static int desc_fd = -1;
|
||||||
static int desc_user_count = 0;
|
static int desc_user_count = 0;
|
||||||
|
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
|
|
||||||
static const char *descrambler_filename = "/dev/ciplus_ca0";
|
static const char *descrambler_filename = "/dev/ciplus_ca0";
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ int descrambler_set_key(int index, int parity, unsigned char *data)
|
|||||||
int descrambler_set_pid(int index, int enable, int pid)
|
int descrambler_set_pid(int index, int enable, int pid)
|
||||||
{
|
{
|
||||||
struct ca_pid p;
|
struct ca_pid p;
|
||||||
#if HAVE_ARM_HARDWARE
|
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||||
unsigned int flags = 0x80;
|
unsigned int flags = 0x80;
|
||||||
|
|
||||||
if (index)
|
if (index)
|
||||||
|
@@ -1353,7 +1353,7 @@ void eDVBCIContentControlManagerSession::resendKey(eDVBCISlot *tslot)
|
|||||||
|
|
||||||
if (!tslot->SidBlackListed && (tslot->recordUse[0] || tslot->liveUse[0]))
|
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->newPids)
|
||||||
{
|
{
|
||||||
if (slot->pids.size())
|
if (slot->pids.size())
|
||||||
|
69
libeplayer3-mips/Makefile.am
Normal file
69
libeplayer3-mips/Makefile.am
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
AUTOMAKE_OPTIONS = subdir-objects
|
||||||
|
AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
|
||||||
|
|
||||||
|
CXXFLAGS = -Wall
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libeplayer3_mips.la
|
||||||
|
|
||||||
|
AM_CPPFLAGS = -I$(srcdir)/include
|
||||||
|
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||||
|
AM_CPPFLAGS += -I$(srcdir)/external
|
||||||
|
|
||||||
|
AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
|
||||||
|
|
||||||
|
SOURCE_FILES = container/container.c
|
||||||
|
SOURCE_FILES += container/container_ffmpeg.c
|
||||||
|
SOURCE_FILES += manager/manager.c
|
||||||
|
SOURCE_FILES += manager/audio.c
|
||||||
|
SOURCE_FILES += manager/video.c
|
||||||
|
SOURCE_FILES += manager/chapter.c
|
||||||
|
SOURCE_FILES += manager/subtitle.c
|
||||||
|
SOURCE_FILES += output/output_subtitle.c
|
||||||
|
SOURCE_FILES += output/output.c
|
||||||
|
SOURCE_FILES += output/writer/common/pes.c
|
||||||
|
SOURCE_FILES += output/writer/common/misc.c
|
||||||
|
SOURCE_FILES += output/writer/common/writer.c
|
||||||
|
SOURCE_FILES += output/linuxdvb_buffering.c
|
||||||
|
SOURCE_FILES += playback/playback.c
|
||||||
|
SOURCE_FILES += external/ffmpeg/src/bitstream.c
|
||||||
|
SOURCE_FILES += external/ffmpeg/src/latmenc.c
|
||||||
|
SOURCE_FILES += external/ffmpeg/src/mpeg4audio.c
|
||||||
|
|
||||||
|
if ENABLE_FLV2MPEG4
|
||||||
|
AM_CFLAGS += -DHAVE_FLV2MPEG4_CONVERTER
|
||||||
|
AM_CPPFLAGS += -I$(srcdir)/external/flv2mpeg4
|
||||||
|
SOURCE_FILES += external/flv2mpeg4/src/m4vencode.c
|
||||||
|
SOURCE_FILES += external/flv2mpeg4/src/flvdecoder.c
|
||||||
|
SOURCE_FILES += external/flv2mpeg4/src/dcprediction.c
|
||||||
|
SOURCE_FILES += external/flv2mpeg4/src/flv2mpeg4.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
SOURCE_FILES += \
|
||||||
|
output/linuxdvb_mipsel.c \
|
||||||
|
output/writer/mipsel/writer.c \
|
||||||
|
output/writer/mipsel/aac.c \
|
||||||
|
output/writer/mipsel/ac3.c \
|
||||||
|
output/writer/mipsel/mp3.c \
|
||||||
|
output/writer/mipsel/pcm.c \
|
||||||
|
output/writer/mipsel/lpcm.c \
|
||||||
|
output/writer/mipsel/dts.c \
|
||||||
|
output/writer/mipsel/amr.c \
|
||||||
|
output/writer/mipsel/wma.c \
|
||||||
|
output/writer/mipsel/h265.c \
|
||||||
|
output/writer/mipsel/h264.c \
|
||||||
|
output/writer/mipsel/mjpeg.c \
|
||||||
|
output/writer/mipsel/mpeg2.c \
|
||||||
|
output/writer/mipsel/mpeg4.c \
|
||||||
|
output/writer/mipsel/divx3.c \
|
||||||
|
output/writer/mipsel/vp.c \
|
||||||
|
output/writer/mipsel/wmv.c \
|
||||||
|
output/writer/mipsel/vc1.c
|
||||||
|
|
||||||
|
libeplayer3_mips_la_SOURCES = $(SOURCE_FILES)
|
||||||
|
|
||||||
|
LIBEPLAYER3_LIBS = libeplayer3_mips.la -lpthread -lavformat -lavcodec -lavutil -lswresample
|
||||||
|
|
||||||
|
bin_PROGRAMS = eplayer3
|
||||||
|
eplayer3_SOURCES = main/exteplayer.c
|
||||||
|
eplayer3_LDADD = $(LIBEPLAYER3_LIBS)
|
||||||
|
eplayer3_DEPENDENCIES = libeplayer3_mips.la
|
1
libeplayer3-mips/README.md
Symbolic link
1
libeplayer3-mips/README.md
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/README.md
|
1
libeplayer3-mips/container
Symbolic link
1
libeplayer3-mips/container
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/container
|
1
libeplayer3-mips/external
Symbolic link
1
libeplayer3-mips/external
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/external
|
1
libeplayer3-mips/include
Symbolic link
1
libeplayer3-mips/include
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/include
|
1
libeplayer3-mips/main
Symbolic link
1
libeplayer3-mips/main
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/main
|
1
libeplayer3-mips/manager
Symbolic link
1
libeplayer3-mips/manager
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/manager
|
1
libeplayer3-mips/output
Symbolic link
1
libeplayer3-mips/output
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/output
|
1
libeplayer3-mips/playback
Symbolic link
1
libeplayer3-mips/playback
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libeplayer3-arm/playback
|
35
libmipsbox/Makefile.am
Normal file
35
libmipsbox/Makefile.am
Normal file
@@ -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-mips/include
|
||||||
|
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-lass
|
||||||
|
|
||||||
|
AM_CPPFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
|
1
libmipsbox/audio.cpp
Symbolic link
1
libmipsbox/audio.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/audio.cpp
|
1
libmipsbox/audio_lib.h
Symbolic link
1
libmipsbox/audio_lib.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/audio_lib.h
|
1
libmipsbox/dmx.cpp
Symbolic link
1
libmipsbox/dmx.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/dmx.cpp
|
50
libmipsbox/hardware_caps.c
Normal file
50
libmipsbox/hardware_caps.c
Normal file
@@ -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 <config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include <hardware_caps.h>
|
||||||
|
|
||||||
|
#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 ∩︀
|
||||||
|
}
|
1
libmipsbox/hdmi_cec.cpp
Symbolic link
1
libmipsbox/hdmi_cec.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/hdmi_cec.cpp
|
1
libmipsbox/hdmi_cec.h
Symbolic link
1
libmipsbox/hdmi_cec.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/hdmi_cec.h
|
1
libmipsbox/hdmi_cec_types.h
Symbolic link
1
libmipsbox/hdmi_cec_types.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/hdmi_cec_types.h
|
1
libmipsbox/init.cpp
Symbolic link
1
libmipsbox/init.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/init.cpp
|
1
libmipsbox/linux-uapi-cec.h
Symbolic link
1
libmipsbox/linux-uapi-cec.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/linux-uapi-cec.h
|
1
libmipsbox/playback_libeplayer3.cpp
Symbolic link
1
libmipsbox/playback_libeplayer3.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/playback_libeplayer3.cpp
|
1
libmipsbox/playback_libeplayer3.h
Symbolic link
1
libmipsbox/playback_libeplayer3.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/playback_libeplayer3.h
|
1
libmipsbox/record.cpp
Symbolic link
1
libmipsbox/record.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/record.cpp
|
1
libmipsbox/record_lib.h
Symbolic link
1
libmipsbox/record_lib.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/record_lib.h
|
1
libmipsbox/video.cpp
Symbolic link
1
libmipsbox/video.cpp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/video.cpp
|
1
libmipsbox/video_lib.h
Symbolic link
1
libmipsbox/video_lib.h
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../libarmbox/video_lib.h
|
Reference in New Issue
Block a user