lcd4l: move lcd4l-code to driver directory

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3a82bfab40
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-05-09 (Wed, 09 May 2018)

Origin message was:
------------------
- lcd4l: move lcd4l-code to driver directory

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-05-09 23:41:37 +02:00
parent d92c678f32
commit d8233ff455
10 changed files with 7 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ libneutrino_driver_a_SOURCES = \
file.cpp \
fontrenderer.cpp \
genpsi.cpp \
lcd4l.cpp \
moviecut.cpp \
movieinfo.cpp \
neutrinofonts.cpp \

1072
src/driver/lcd4l.cpp Normal file

File diff suppressed because it is too large Load Diff

113
src/driver/lcd4l.h Normal file
View File

@@ -0,0 +1,113 @@
/*
lcd4l
Copyright (C) 2012 'defans'
Homepage: http://www.bluepeercrew.us/
Copyright (C) 2012-2016 'vanhofen'
Homepage: http://www.neutrino-images.de/
Modded (C) 2016 'TangoCash'
License: GPL
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 2 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, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __lcd4l__
#define __lcd4l__
//#define BP
#define NI
#include <string>
class CLCD4l
{
public:
CLCD4l();
~CLCD4l();
// Functions
void InitLCD4l();
void StartLCD4l();
void StopLCD4l();
void SwitchLCD4l();
int CreateFile(const char *file, std::string content = "", bool convert = false);
int RemoveFile(const char *file);
private:
pthread_t thrLCD4l;
static void* LCD4lProc(void *arg);
struct tm *tm_struct;
// Functions
void Init();
void ParseInfo(uint64_t parseID, bool newID, bool firstRun = false);
uint64_t GetParseID();
bool CompareParseID(uint64_t &i_ParseID);
bool GetLogoName(uint64_t channel_id, std::string channel_name, std::string & logo);
std::string hexStr(unsigned char* data);
void strReplace(std::string &orig, const std::string &fstr, const std::string &rstr);
bool WriteFile(const char *file, std::string content = "", bool convert = false);
// Variables
uint64_t m_ParseID;
int m_Mode;
int m_ModeChannel;
std::string m_Resolution;
std::string m_AspectRatio;
int m_Videotext;
int m_Radiotext;
std::string m_DolbyDigital;
int m_Tuner;
int m_Volume;
int m_ModeRec;
int m_ModeTshift;
int m_ModeTimer;
int m_ModeEcm;
bool m_ModeCamPresent;
int m_ModeCam;
#ifdef BP
int m_ModeNews;
#endif
std::string m_Service;
int m_ChannelNr;
std::string m_Logo;
int m_ModeLogo;
std::string m_Layout;
std::string m_Event;
std::string m_Info1;
std::string m_Info2;
int m_Progress;
char m_Duration[15];
std::string m_Start;
std::string m_End;
std::string m_font;
std::string m_fgcolor;
std::string m_bgcolor;
};
#endif