mirror of
				https://github.com/rofafor/vdr-plugin-femon.git
				synced 2023-10-10 11:36:53 +00:00 
			
		
		
		
	Compare commits
	
		
			54 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 23a8a72c38 | ||
|  | f37f428670 | ||
|  | 3235c67256 | ||
|  | a21ed98163 | ||
|  | 0b38358442 | ||
|  | 9c085fea51 | ||
|  | dfc66b3d69 | ||
|  | 252bd0e479 | ||
|  | 7657d21d5e | ||
|  | 7b004e9427 | ||
|  | a08f9de9d3 | ||
|  | 513791d5f1 | ||
|  | 60386835dd | ||
|  | 38f4d3d9b8 | ||
|  | 078f0552fc | ||
|  | 1fd7c90c3b | ||
|  | 44fa48c59f | ||
|  | 554dac9674 | ||
|  | 8267abcc3b | ||
|  | ea4561a874 | ||
|  | 56b9b89204 | ||
|  | 3d994be0b7 | ||
|  | b7d44e730e | ||
|  | edb8b4090a | ||
|  | 21d9c20beb | ||
|  | 080f390a75 | ||
|  | fefb7f0fde | ||
|  | ba133f15f8 | ||
|  | 4e87693de6 | ||
|  | 8ea980a60f | ||
|  | 5635c2dc52 | ||
|  | 7551788969 | ||
|  | 6b6169d5f3 | ||
|  | 22644e6ae4 | ||
|  | 3fc73af3d5 | ||
|  | c07abc7ed5 | ||
|  | e57b36a151 | ||
|  | 453ca7a2a5 | ||
|  | daf823435b | ||
|  | 53b42a2d4a | ||
|  | 167da08ab3 | ||
|  | 61ff96556e | ||
|  | a06ae6f6ff | ||
|  | 2e6a236a56 | ||
|  | 6086c135c7 | ||
|  | db9735b80b | ||
|  | 84878bd1b9 | ||
|  | afd72642e9 | ||
|  | 0a162a9a8c | ||
|  | 2e2aacd573 | ||
|  | 4e8fdaf99f | ||
|  | eb2da4721c | ||
|  | 5cf9b4af0b | ||
|  | 83556bf2d3 | 
							
								
								
									
										38
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -364,3 +364,41 @@ VDR Plugin 'femon' Revision History | |||||||
|  |  | ||||||
| - Cleaned up compilation warnings. | - Cleaned up compilation warnings. | ||||||
| - Fixed font handling to be thread-safe. | - Fixed font handling to be thread-safe. | ||||||
|  |  | ||||||
|  | 2009-08-29: Version 1.7.3 | ||||||
|  |  | ||||||
|  | - Removed OSD offset and height options. | ||||||
|  | - Added PES assembler. | ||||||
|  | - Added bitstream parsers for all codecs. | ||||||
|  |  | ||||||
|  | 2009-09-04: Version 1.7.4 | ||||||
|  |  | ||||||
|  | - Fixed H.264 bitstream parser. | ||||||
|  | - Added a mutex to receiver class. | ||||||
|  | - Added 1080/720/576/480 format symbols into status window. | ||||||
|  |  | ||||||
|  | 2009-10-01: Version 1.7.5 | ||||||
|  |  | ||||||
|  | - Changed H.264 parser to show display aspect ratio. | ||||||
|  | - Removed error logging from unimplemented ioctl functions. | ||||||
|  | - Removed bitstream parsing from Receive() method. | ||||||
|  | - Added Chinese translation (Thanks to NanFeng). | ||||||
|  |  | ||||||
|  | 2010-02-01: Version 1.7.6 | ||||||
|  |  | ||||||
|  | - Updated for vdr-1.7.12. | ||||||
|  | - Updated Estonian translation (Thanks to Arthur Konovalov). | ||||||
|  | - Added Lithuanian translation (Thanks to Valdemaras Pipiras). | ||||||
|  |  | ||||||
|  | 2010-03-05: Version 1.7.7 | ||||||
|  |  | ||||||
|  | - Updated for vdr-1.7.13. | ||||||
|  | - Added a setup option to downscale the OSD size. | ||||||
|  | - Updated Estonian translation (Thanks to Arthur Konovalov). | ||||||
|  |  | ||||||
|  | 2010-06-23: Version 1.7.8 | ||||||
|  |  | ||||||
|  | - Fixed device switching. | ||||||
|  | - Added preliminary support for LATM. | ||||||
|  | - Updated Italian translation (Thanks to Diego Pierotto). | ||||||
|  | - Fixed a crash in femon service (Thanks to Wolfgang Astleitner). | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @@ -31,6 +31,10 @@ VDRDIR = ../../.. | |||||||
| LIBDIR = ../../lib | LIBDIR = ../../lib | ||||||
| TMPDIR = /tmp | TMPDIR = /tmp | ||||||
|  |  | ||||||
|  | ### Make sure that necessary options are included: | ||||||
|  |  | ||||||
|  | -include $(VDRDIR)/Make.global | ||||||
|  |  | ||||||
| ### Allow user defined options to overwrite defaults: | ### Allow user defined options to overwrite defaults: | ||||||
|  |  | ||||||
| -include $(VDRDIR)/Make.config | -include $(VDRDIR)/Make.config | ||||||
| @@ -59,7 +63,7 @@ all-redirect: all | |||||||
|  |  | ||||||
| ### The object files (add further files here): | ### The object files (add further files here): | ||||||
|  |  | ||||||
| OBJS = femon.o femonosd.o femonreceiver.o femoncfg.o femontools.o femonmpeg.o femonac3.o femonaac.o femonh264.o femonsymbol.o | OBJS = femon.o femonosd.o femonreceiver.o femoncfg.o femontools.o femonmpeg.o femonac3.o femonaac.o femonlatm.o femonh264.o femonsymbol.o | ||||||
|  |  | ||||||
| ### The main target: | ### The main target: | ||||||
|  |  | ||||||
| @@ -91,7 +95,7 @@ I18Npot   = $(PODIR)/$(PLUGIN).pot | |||||||
| 	msgfmt -c -o $@ $< | 	msgfmt -c -o $@ $< | ||||||
|  |  | ||||||
| $(I18Npot): $(wildcard *.c) | $(I18Npot): $(wildcard *.c) | ||||||
| 	xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='Rolf Ahrenberg' -o $@ $^ | 	xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<see README>' -o $@ $^ | ||||||
|  |  | ||||||
| %.po: $(I18Npot) | %.po: $(I18Npot) | ||||||
| 	msgmerge -U --no-wrap --no-location --backup=none -q $@ $< | 	msgmerge -U --no-wrap --no-location --backup=none -q $@ $< | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README
									
									
									
									
									
								
							| @@ -26,10 +26,7 @@ transponder and stream information are also available in advanced display modes. | |||||||
|  |  | ||||||
| The plugin is based on a neat console frontend status monitor application | The plugin is based on a neat console frontend status monitor application | ||||||
| called 'femon' by Johannes Stezenbach (see DVB-apps/szap/femon.c for further | called 'femon' by Johannes Stezenbach (see DVB-apps/szap/femon.c for further | ||||||
| information). The bitrate calculation trick originates from the 'dvbstream' | information). | ||||||
| application by Dave Chapman and the stream information routines are taken from |  | ||||||
| the 'libdvb' library by Metzler Brothers. The H.264 parsing routines are taken |  | ||||||
| from vdr-xineliboutput plugin by Petri Hintukainen. |  | ||||||
|  |  | ||||||
| Terminology: | Terminology: | ||||||
|  |  | ||||||
| @@ -110,9 +107,8 @@ Notes: | |||||||
|   specifications those values cannot be calculated into any real units. |   specifications those values cannot be calculated into any real units. | ||||||
|  |  | ||||||
| - If the OSD isn't visible, you've configured the OSD height too big or too | - If the OSD isn't visible, you've configured the OSD height too big or too | ||||||
|   small. Please, try to adjust the variable on the setup page before writing |   small. Please, try to adjust the variable on the OSD setup page before | ||||||
|   any bug reports. NTSC users should use a shrinked default OSD height by |   writing any bug reports. | ||||||
|   modifying VDR's setup.conf: femon.OSDHeight = 420 |  | ||||||
|  |  | ||||||
| - If the SVDRP service is used: femon won't notice if the server is tuned | - If the SVDRP service is used: femon won't notice if the server is tuned | ||||||
|   to a different channel and tuning the channel on the server might annoy |   to a different channel and tuning the channel on the server might annoy | ||||||
|   | |||||||
							
								
								
									
										31
									
								
								femon.c
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								femon.c
									
									
									
									
									
								
							| @@ -14,11 +14,11 @@ | |||||||
| #include "femonservice.h" | #include "femonservice.h" | ||||||
| #include "femontools.h" | #include "femontools.h" | ||||||
|  |  | ||||||
| #if defined(APIVERSNUM) && APIVERSNUM < 10600 | #if defined(APIVERSNUM) && APIVERSNUM < 10713 | ||||||
| #error "VDR-1.6.0 API version or greater is required!" | #error "VDR-1.7.13 API version or greater is required!" | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| static const char VERSION[]       = "1.6.7"; | static const char VERSION[]       = "1.7.8"; | ||||||
| static const char DESCRIPTION[]   = trNOOP("DVB Signal Information Monitor (OSD)"); | static const char DESCRIPTION[]   = trNOOP("DVB Signal Information Monitor (OSD)"); | ||||||
| static const char MAINMENUENTRY[] = trNOOP("Signal Information"); | static const char MAINMENUENTRY[] = trNOOP("Signal Information"); | ||||||
|  |  | ||||||
| @@ -50,13 +50,13 @@ cPluginFemon::cPluginFemon() | |||||||
|   // Initialize any member variables here. |   // Initialize any member variables here. | ||||||
|   // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL |   // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL | ||||||
|   // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! |   // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
| } | } | ||||||
|  |  | ||||||
| cPluginFemon::~cPluginFemon() | cPluginFemon::~cPluginFemon() | ||||||
| { | { | ||||||
|   // Clean up after yourself! |   // Clean up after yourself! | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
| } | } | ||||||
|  |  | ||||||
| const char *cPluginFemon::CommandLineHelp(void) | const char *cPluginFemon::CommandLineHelp(void) | ||||||
| @@ -96,7 +96,7 @@ void cPluginFemon::Housekeeping(void) | |||||||
| cOsdObject *cPluginFemon::MainMenuAction(void) | cOsdObject *cPluginFemon::MainMenuAction(void) | ||||||
| { | { | ||||||
|   // Perform the action when selected from the main VDR menu. |   // Perform the action when selected from the main VDR menu. | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   if (cReplayControl::NowReplaying() || (Channels.Count() <= 0)) |   if (cReplayControl::NowReplaying() || (Channels.Count() <= 0)) | ||||||
|      Skins.Message(mtInfo, tr("Femon not available")); |      Skins.Message(mtInfo, tr("Femon not available")); | ||||||
|   else |   else | ||||||
| @@ -110,10 +110,9 @@ bool cPluginFemon::SetupParse(const char *Name, const char *Value) | |||||||
|   if      (!strcasecmp(Name, "HideMenu"))       femonConfig.hidemenu       = atoi(Value); |   if      (!strcasecmp(Name, "HideMenu"))       femonConfig.hidemenu       = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "DisplayMode"))    femonConfig.displaymode    = atoi(Value); |   else if (!strcasecmp(Name, "DisplayMode"))    femonConfig.displaymode    = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "Position"))       femonConfig.position       = atoi(Value); |   else if (!strcasecmp(Name, "Position"))       femonConfig.position       = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "OSDHeight"))      femonConfig.osdheight      = atoi(Value); |  | ||||||
|   else if (!strcasecmp(Name, "OSDOffset"))      femonConfig.osdoffset      = atoi(Value); |  | ||||||
|   else if (!strcasecmp(Name, "Skin"))           femonConfig.skin           = atoi(Value); |   else if (!strcasecmp(Name, "Skin"))           femonConfig.skin           = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "Theme"))          femonConfig.theme          = atoi(Value); |   else if (!strcasecmp(Name, "Theme"))          femonConfig.theme          = atoi(Value); | ||||||
|  |   else if (!strcasecmp(Name, "Downscale"))      femonConfig.downscale      = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "RedLimit"))       femonConfig.redlimit       = atoi(Value); |   else if (!strcasecmp(Name, "RedLimit"))       femonConfig.redlimit       = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "GreenLimit"))     femonConfig.greenlimit     = atoi(Value); |   else if (!strcasecmp(Name, "GreenLimit"))     femonConfig.greenlimit     = atoi(Value); | ||||||
|   else if (!strcasecmp(Name, "UpdateInterval")) femonConfig.updateinterval = atoi(Value); |   else if (!strcasecmp(Name, "UpdateInterval")) femonConfig.updateinterval = atoi(Value); | ||||||
| @@ -134,6 +133,8 @@ bool cPluginFemon::Service(const char *Id, void *Data) | |||||||
|   if (strcmp(Id,"FemonService-v1.0") == 0) { |   if (strcmp(Id,"FemonService-v1.0") == 0) { | ||||||
|      if (Data) { |      if (Data) { | ||||||
|         FemonService_v1_0 *data = (FemonService_v1_0*)Data; |         FemonService_v1_0 *data = (FemonService_v1_0*)Data; | ||||||
|  |         if (!cDevice::ActualDevice()) | ||||||
|  |            return false;  | ||||||
|         int ndx = cDevice::ActualDevice()->CardIndex(); |         int ndx = cDevice::ActualDevice()->CardIndex(); | ||||||
|         data->fe_name = getFrontendName(ndx); |         data->fe_name = getFrontendName(ndx); | ||||||
|         data->fe_status = getFrontendStatus(ndx); |         data->fe_status = getFrontendStatus(ndx); | ||||||
| @@ -276,7 +277,7 @@ public: | |||||||
|  |  | ||||||
| cMenuFemonSetup::cMenuFemonSetup(void) | cMenuFemonSetup::cMenuFemonSetup(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   dispmodes[eFemonModeBasic]       = tr("basic"); |   dispmodes[eFemonModeBasic]       = tr("basic"); | ||||||
|   dispmodes[eFemonModeTransponder] = tr("transponder"); |   dispmodes[eFemonModeTransponder] = tr("transponder"); | ||||||
|   dispmodes[eFemonModeStream]      = tr("stream"); |   dispmodes[eFemonModeStream]      = tr("stream"); | ||||||
| @@ -321,11 +322,8 @@ void cMenuFemonSetup::Setup(void) | |||||||
|   Add(new cMenuEditBoolItem(tr("Position"), &data.position, trVDR("bottom"), trVDR("top"))); |   Add(new cMenuEditBoolItem(tr("Position"), &data.position, trVDR("bottom"), trVDR("top"))); | ||||||
|   help.Append(tr("Define the position of OSD.")); |   help.Append(tr("Define the position of OSD.")); | ||||||
|  |  | ||||||
|   Add(new cMenuEditIntItem(trVDR("Setup.OSD$Height"), &data.osdheight, 400, 500)); |   Add(new cMenuEditIntItem(tr("Downscale OSD size [%]"), &data.downscale, 0, 20)); | ||||||
|   help.Append(tr("Define the height of OSD.")); |   help.Append(tr("Define the downscale ratio for OSD size.")); | ||||||
|  |  | ||||||
|   Add(new cMenuEditIntItem(tr("Horizontal offset"), &data.osdoffset, -50, 50)); |  | ||||||
|   help.Append(tr("Define the horizontal offset of OSD.")); |  | ||||||
|  |  | ||||||
|   Add(new cMenuEditIntItem(tr("Red limit [%]"), &data.redlimit, 1, 50)); |   Add(new cMenuEditIntItem(tr("Red limit [%]"), &data.redlimit, 1, 50)); | ||||||
|   help.Append(tr("Define a limit for red bar, which is used to indicate a bad signal.")); |   help.Append(tr("Define a limit for red bar, which is used to indicate a bad signal.")); | ||||||
| @@ -361,15 +359,14 @@ void cMenuFemonSetup::Setup(void) | |||||||
|  |  | ||||||
| void cMenuFemonSetup::Store(void) | void cMenuFemonSetup::Store(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   femonConfig = data; |   femonConfig = data; | ||||||
|   SetupStore("HideMenu",       femonConfig.hidemenu); |   SetupStore("HideMenu",       femonConfig.hidemenu); | ||||||
|   SetupStore("DisplayMode",    femonConfig.displaymode); |   SetupStore("DisplayMode",    femonConfig.displaymode); | ||||||
|   SetupStore("Skin",           femonConfig.skin); |   SetupStore("Skin",           femonConfig.skin); | ||||||
|   SetupStore("Theme",          femonConfig.theme); |   SetupStore("Theme",          femonConfig.theme); | ||||||
|   SetupStore("Position",       femonConfig.position); |   SetupStore("Position",       femonConfig.position); | ||||||
|   SetupStore("OSDHeight",      femonConfig.osdheight); |   SetupStore("Downscale",      femonConfig.downscale); | ||||||
|   SetupStore("OSDOffset",      femonConfig.osdoffset); |  | ||||||
|   SetupStore("RedLimit",       femonConfig.redlimit); |   SetupStore("RedLimit",       femonConfig.redlimit); | ||||||
|   SetupStore("GreenLimit",     femonConfig.greenlimit); |   SetupStore("GreenLimit",     femonConfig.greenlimit); | ||||||
|   SetupStore("UpdateInterval", femonConfig.updateinterval); |   SetupStore("UpdateInterval", femonConfig.updateinterval); | ||||||
|   | |||||||
							
								
								
									
										58
									
								
								femonaac.c
									
									
									
									
									
								
							
							
						
						
									
										58
									
								
								femonaac.c
									
									
									
									
									
								
							| @@ -10,15 +10,25 @@ | |||||||
|  |  | ||||||
| #define IS_HEAAC_AUDIO(buf) (((buf)[0] == 0xFF) && (((buf)[1] & 0xF6) == 0xF0)) | #define IS_HEAAC_AUDIO(buf) (((buf)[0] == 0xFF) && (((buf)[1] & 0xF6) == 0xF0)) | ||||||
|  |  | ||||||
| static unsigned int samplerates[16] = | unsigned int cFemonAAC::s_Samplerates[16] = | ||||||
| { | { | ||||||
|   96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, -1, -1, -1, -1 |   96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, -1, -1, -1, -1 | ||||||
| }; | }; | ||||||
|  |  | ||||||
| bool getAACAudioInfo(uint8_t *buf, int len, audio_info_t *info) | cFemonAAC::cFemonAAC(cFemonAudioIf *audiohandler) | ||||||
|  | : m_AudioHandler(audiohandler) | ||||||
| { | { | ||||||
|   // HE-AAC audio detection, search for syncword with layer set to 0 | } | ||||||
|   if ((len < 4) || !IS_HEAAC_AUDIO(buf)) |  | ||||||
|  | cFemonAAC::~cFemonAAC() | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | bool cFemonAAC::processAudio(const uint8_t *buf, int len) | ||||||
|  | { | ||||||
|  |   cBitStream bs(buf, len * 8); | ||||||
|  |  | ||||||
|  |   if (!m_AudioHandler) | ||||||
|      return false; |      return false; | ||||||
|  |  | ||||||
|   /* ADTS Fixed Header: |   /* ADTS Fixed Header: | ||||||
| @@ -35,41 +45,59 @@ bool getAACAudioInfo(uint8_t *buf, int len, audio_info_t *info) | |||||||
|    * emphasis                  2b only if ID == 0 (ie MPEG-4) |    * emphasis                  2b only if ID == 0 (ie MPEG-4) | ||||||
|    */ |    */ | ||||||
|  |  | ||||||
|   int sampling_frequency_index = (buf[2] & 0x03C) >> 2; |   // skip PES header | ||||||
|   int channel_configuration = ((buf[2] & 0x01) << 2) | ((buf[3] & 0xC0) >> 6); |   if (!PesLongEnough(len)) | ||||||
|  |       return false; | ||||||
|  |   bs.skipBits(8 * PesPayloadOffset(buf)); | ||||||
|  |  | ||||||
|   info->codec = AUDIO_CODEC_HEAAC; |   // HE-AAC audio detection | ||||||
|   info->bitrate = AUDIO_BITRATE_RESERVED; |   if (bs.getBits(12) != 0xFFF)                  // syncword | ||||||
|  |      return false; | ||||||
|  |  | ||||||
|  |   bs.skipBit();                                 // id | ||||||
|  |  | ||||||
|  |   // layer must be 0 | ||||||
|  |   if (bs.getBits(2))                            // layer | ||||||
|  |       return false; | ||||||
|  |  | ||||||
|  |   bs.skipBit();                                 // protection_absent | ||||||
|  |   bs.skipBits(2);                               // profile | ||||||
|  |   int sampling_frequency_index = bs.getBits(4); // sampling_frequency_index | ||||||
|  |   bs.skipBit();                                 // private pid | ||||||
|  |   int channel_configuration = bs.getBits(3);    // channel_configuration | ||||||
|  |  | ||||||
|  |   m_AudioHandler->SetAudioCodec(AUDIO_CODEC_HEAAC); | ||||||
|  |   m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_RESERVED); | ||||||
|  |  | ||||||
|   switch (channel_configuration) { |   switch (channel_configuration) { | ||||||
|     case 0: |     case 0: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_STEREO; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_STEREO); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     case 1: |     case 1: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_JOINT_STEREO; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_JOINT_STEREO); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     case 2: |     case 2: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_DUAL; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_DUAL); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     case 3: |     case 3: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_SINGLE; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_SINGLE); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     default: |     default: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_INVALID; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_INVALID); | ||||||
|          break; |          break; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   switch (sampling_frequency_index) { |   switch (sampling_frequency_index) { | ||||||
|     case 0xC ... 0xF: |     case 0xC ... 0xF: | ||||||
|          info->samplingFrequency = AUDIO_SAMPLING_FREQUENCY_RESERVED; |          m_AudioHandler->SetAudioSamplingFrequency(AUDIO_SAMPLING_FREQUENCY_RESERVED); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     default: |     default: | ||||||
|          info->samplingFrequency = samplerates[sampling_frequency_index]; |          m_AudioHandler->SetAudioSamplingFrequency(s_Samplerates[sampling_frequency_index]); | ||||||
|          break; |          break; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								femonaac.h
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								femonaac.h
									
									
									
									
									
								
							| @@ -10,6 +10,17 @@ | |||||||
|  |  | ||||||
| #include "femonaudio.h" | #include "femonaudio.h" | ||||||
|  |  | ||||||
| bool getAACAudioInfo(uint8_t *buf, int len, audio_info_t *info); | class cFemonAAC { | ||||||
|  | private: | ||||||
|  |   cFemonAudioIf *m_AudioHandler; | ||||||
|  |  | ||||||
|  |   static unsigned int s_Samplerates[16]; | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonAAC(cFemonAudioIf *audiohandler); | ||||||
|  |   virtual ~cFemonAAC(); | ||||||
|  |  | ||||||
|  |   bool processAudio(const uint8_t *buf, int len); | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONAAC_H | #endif //__FEMONAAC_H | ||||||
|   | |||||||
							
								
								
									
										160
									
								
								femonac3.c
									
									
									
									
									
								
							
							
						
						
									
										160
									
								
								femonac3.c
									
									
									
									
									
								
							| @@ -9,107 +9,85 @@ | |||||||
| #include "femontools.h" | #include "femontools.h" | ||||||
| #include "femonac3.h" | #include "femonac3.h" | ||||||
|  |  | ||||||
| #define IS_AC3_DATA(buf) (((buf)[0] == 0x0b) && ((buf)[1] == 0x77)) | unsigned int cFemonAC3::s_Bitrates[32] = | ||||||
|  |  | ||||||
| static unsigned int ac3_bitrates[32] = |  | ||||||
| { | { | ||||||
|   32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 576, 640, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |   32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 576, 640, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | ||||||
| }; | }; | ||||||
|  |  | ||||||
| static unsigned int ac3_freq[4] = | unsigned int cFemonAC3::s_Frequencies[4] = | ||||||
| { | { | ||||||
|   480, 441, 320, 0 |   480, 441, 320, 0 | ||||||
| }; | }; | ||||||
|  |  | ||||||
| //static unsigned int ac3_frames[3][32] = | unsigned int cFemonAC3::s_Frames[3][32] = | ||||||
| //{ |  | ||||||
| //  {64, 80,  96,  112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 640, 768,  896,  1024, 1152, 1280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, |  | ||||||
| //  {69, 87,  104, 121, 139, 174, 208, 243, 278, 348, 417, 487, 557, 696, 835,  975,  1114, 1253, 1393, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, |  | ||||||
| //  {96, 120, 144, 168, 192, 240, 288, 336, 384, 480, 576, 672, 768, 960, 1152, 1344, 1536, 1728, 1920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} |  | ||||||
| //}; |  | ||||||
|  |  | ||||||
| bool getAC3AudioInfo(uint8_t *buf, int len, ac3_info_t *info) |  | ||||||
| { | { | ||||||
|   if (!IS_AC3_DATA(buf) || (len < 8)) |   {64, 80,  96,  112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 640, 768,  896,  1024, 1152, 1280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | ||||||
|  |   {69, 87,  104, 121, 139, 174, 208, 243, 278, 348, 417, 487, 557, 696, 835,  975,  1114, 1253, 1393, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, | ||||||
|  |   {96, 120, 144, 168, 192, 240, 288, 336, 384, 480, 576, 672, 768, 960, 1152, 1344, 1536, 1728, 1920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | cFemonAC3::cFemonAC3(cFemonAC3If *audiohandler) | ||||||
|  | : m_AudioHandler(audiohandler) | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | cFemonAC3::~cFemonAC3() | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | bool cFemonAC3::processAudio(const uint8_t *buf, int len) | ||||||
|  | { | ||||||
|  |   int fscod, frmsizcod, bsmod, acmod; | ||||||
|  |   int centermixlevel = AUDIO_CENTER_MIX_LEVEL_INVALID; | ||||||
|  |   int surroundmixlevel = AUDIO_SURROUND_MIX_LEVEL_INVALID; | ||||||
|  |   int dolbysurroundmode = AUDIO_DOLBY_SURROUND_MODE_INVALID; | ||||||
|  |   cBitStream bs(buf, len * 8); | ||||||
|  |  | ||||||
|  |   if (!m_AudioHandler) | ||||||
|      return false; |      return false; | ||||||
|  |  | ||||||
|   uint8_t *data = buf + 2; |   // skip PES header | ||||||
|   uint8_t frame = (uint8_t)(data[2] & 0x3f); |   if (!PesLongEnough(len)) | ||||||
|   info->bitrate = 1000 * ac3_bitrates[frame >> 1]; |       return false; | ||||||
|   uint8_t fr = (data[2] & 0xc0 ) >> 6; |   bs.skipBits(8 * PesPayloadOffset(buf)); | ||||||
|   //uint8_t sz = ac3_frames[fr][frame >> 1]; |  | ||||||
|   //if ((frame & 1) && (fr == 1)) |   // http://rmworkshop.com/dvd_info/related_info/ac3hdr.htm | ||||||
|   //   sz++; |  | ||||||
|   //sz <<= 1; |   // AC3 audio detection | ||||||
|   info->samplingFrequency = 100 * ac3_freq[fr]; |   if (bs.getU16() != 0x0B77)        // syncword | ||||||
|   info->bitstreamMode = (data[3] & 7); |      return false; | ||||||
|   int acm = (data[4] & 0xE0) >> 5; |  | ||||||
|   info->audioCodingMode = acm; |   bs.skipBits(16);                  // CRC1 | ||||||
|   if ((acm & 0x01) && (acm != 0x01)) { |  | ||||||
|      // 3 front channels |   fscod = bs.getBits(2);            // sampling rate values | ||||||
|      info->centerMixLevel = (data[4] & 0x18) >> 3; |   frmsizcod = bs.getBits(6);        // frame size code | ||||||
|      if (acm & 0x04) { |  | ||||||
|         // a surround channel exists |   bs.skipBits(5);                   // bitstream id | ||||||
|         info->surroundMixLevel = (data[4] & 0x06) >> 1; |   bsmod = bs.getBits(3);            // bitstream mode | ||||||
|         if (acm == 0x02) { |   acmod = bs.getBits(3);            // audio coding mode | ||||||
|            // if in 2/0 mode |  | ||||||
|            info->dolbySurroundMode = ((data[4] & 0x01) << 1) | ((data[5] & 0x80) >> 7); |   // 3 front channels | ||||||
|            info->lfe = (data[5] & 0x40) >> 6; |   if ((acmod & 0x01) && (acmod != 0x01)) | ||||||
|            info->dialogLevel = (data[5] & 0x3e) >> 1; |      centermixlevel = bs.getBits(2); | ||||||
|            } |  | ||||||
|         else { |   // if a surround channel exists | ||||||
|            info->dolbySurroundMode = AUDIO_DOLBY_SURROUND_MODE_INVALID; |   if (acmod & 0x04) | ||||||
|            info->lfe = (data[4] & 0x01); |      surroundmixlevel = bs.getBits(2); | ||||||
|            info->dialogLevel = (data[5] & 0xF8) >> 3; |  | ||||||
|            } |   // if in 2/0 mode | ||||||
|         } |   if (acmod == 0x02) | ||||||
|      else { |       dolbysurroundmode = bs.getBits(2); | ||||||
|         info->surroundMixLevel = AUDIO_SURROUND_MIX_LEVEL_INVALID; |  | ||||||
|         if (acm == 0x02) { |   m_AudioHandler->SetAC3Bitrate(1000 * s_Bitrates[frmsizcod >> 1]); | ||||||
|            // if in 2/0 mode |   m_AudioHandler->SetAC3SamplingFrequency(100 * s_Frequencies[fscod]); | ||||||
|             info->dolbySurroundMode = (data[4] & 0x06) >> 1; |   m_AudioHandler->SetAC3Bitstream(bsmod); | ||||||
|             info->lfe = (data[4] & 0x01); |   m_AudioHandler->SetAC3AudioCoding(acmod); | ||||||
|             info->dialogLevel = (data[5] & 0xF8) >> 3; |   m_AudioHandler->SetAC3CenterMix(centermixlevel); | ||||||
|            } |   m_AudioHandler->SetAC3SurroundMix(surroundmixlevel); | ||||||
|         else { |   m_AudioHandler->SetAC3DolbySurround(dolbysurroundmode); | ||||||
|            info->dolbySurroundMode = AUDIO_DOLBY_SURROUND_MODE_INVALID; |  | ||||||
|            info->lfe = (data[4] & 0x04) >> 2; |   m_AudioHandler->SetAC3LFE(bs.getBit());       // low frequency effects on | ||||||
|            info->dialogLevel = (data[4] & 0x03) << 3 | ((data[5] & 0xE0) >> 5); |   m_AudioHandler->SetAC3Dialog(bs.getBits(5));  // dialog normalization | ||||||
|            } |  | ||||||
|         } |  | ||||||
|      } |  | ||||||
|   else { |  | ||||||
|      info->centerMixLevel = AUDIO_CENTER_MIX_LEVEL_INVALID; |  | ||||||
|      if (acm & 0x04) { |  | ||||||
|         // a surround channel exists |  | ||||||
|         info->surroundMixLevel = (data[4] & 0x18) >> 3; |  | ||||||
|         if (acm == 0x02) { |  | ||||||
|            // if in 2/0 mode |  | ||||||
|            info->dolbySurroundMode = (data[4] & 0x06) >> 1; |  | ||||||
|            info->lfe = (data[4] & 0x01); |  | ||||||
|            info->dialogLevel = (data[5] & 0xF8) >> 3; |  | ||||||
|            } |  | ||||||
|         else { |  | ||||||
|            info->dolbySurroundMode = AUDIO_DOLBY_SURROUND_MODE_INVALID; |  | ||||||
|            info->lfe = (data[4] & 0x04) >> 2; |  | ||||||
|            info->dialogLevel = (data[4] & 0x03) << 3 | ((data[5] & 0xE0) >> 5); |  | ||||||
|            } |  | ||||||
|         } |  | ||||||
|      else { |  | ||||||
|         info->surroundMixLevel = AUDIO_SURROUND_MIX_LEVEL_INVALID; |  | ||||||
|         if (acm == 0x02) { |  | ||||||
|            // if in 2/0 mode |  | ||||||
|            info->dolbySurroundMode = (data[4] & 0x18) >> 3; |  | ||||||
|            info->lfe = (data[4] & 0x04) >> 2; |  | ||||||
|            info->dialogLevel = (data[4] & 0x03) << 3 | ((data[5] & 0xE0) >> 5); |  | ||||||
|            } |  | ||||||
|         else { |  | ||||||
|            info->dolbySurroundMode = AUDIO_DOLBY_SURROUND_MODE_INVALID; |  | ||||||
|            info->lfe = (data[4] & 0x10) >> 4; |  | ||||||
|            info->dialogLevel = ((data[4] & 0x0F) << 1) | ((data[5] & 0x80) >> 7); |  | ||||||
|            } |  | ||||||
|         } |  | ||||||
|      } |  | ||||||
|       |  | ||||||
|   return true; |   return true; | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								femonac3.h
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								femonac3.h
									
									
									
									
									
								
							| @@ -10,6 +10,19 @@ | |||||||
|  |  | ||||||
| #include "femonaudio.h" | #include "femonaudio.h" | ||||||
|  |  | ||||||
| bool getAC3AudioInfo(uint8_t *buf, int len, ac3_info_t *info); | class cFemonAC3 { | ||||||
|  | private: | ||||||
|  |   cFemonAC3If *m_AudioHandler; | ||||||
|  |  | ||||||
|  |   static unsigned int s_Bitrates[32]; | ||||||
|  |   static unsigned int s_Frequencies[4]; | ||||||
|  |   static unsigned int s_Frames[3][32]; | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonAC3(cFemonAC3If *audiohandler); | ||||||
|  |   virtual ~cFemonAC3(); | ||||||
|  |  | ||||||
|  |   bool processAudio(const uint8_t *buf, int len); | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONAC3_H | #endif //__FEMONAC3_H | ||||||
|   | |||||||
							
								
								
									
										45
									
								
								femonaudio.h
									
									
									
									
									
								
							
							
						
						
									
										45
									
								
								femonaudio.h
									
									
									
									
									
								
							| @@ -17,7 +17,8 @@ enum eAudioCodec { | |||||||
|   AUDIO_CODEC_MPEG2_I, |   AUDIO_CODEC_MPEG2_I, | ||||||
|   AUDIO_CODEC_MPEG2_II, |   AUDIO_CODEC_MPEG2_II, | ||||||
|   AUDIO_CODEC_MPEG2_III, |   AUDIO_CODEC_MPEG2_III, | ||||||
|   AUDIO_CODEC_HEAAC |   AUDIO_CODEC_HEAAC, | ||||||
|  |   AUDIO_CODEC_LATM | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
| enum eAudioChannelMode { | enum eAudioChannelMode { | ||||||
| @@ -89,7 +90,7 @@ enum eAudioCodingMode { | |||||||
|  |  | ||||||
| typedef struct audio_info { | typedef struct audio_info { | ||||||
|   eAudioCodec codec;             // enum |   eAudioCodec codec;             // enum | ||||||
|   double      bitrate;           // kbit/s or eAudioBitrate |   double      bitrate;           // bit/s or eAudioBitrate | ||||||
|   int         samplingFrequency; // Hz or eAudioSamplingFrequency |   int         samplingFrequency; // Hz or eAudioSamplingFrequency | ||||||
|   int         channelMode;       // eAudioChannelMode |   int         channelMode;       // eAudioChannelMode | ||||||
| } audio_info_t; | } audio_info_t; | ||||||
| @@ -106,4 +107,44 @@ typedef struct ac3_info { | |||||||
|   bool        lfe;               // boolean |   bool        lfe;               // boolean | ||||||
| } ac3_info_t; | } ac3_info_t; | ||||||
|  |  | ||||||
|  | class cFemonAudioIf { | ||||||
|  | public: | ||||||
|  |   cFemonAudioIf() {} | ||||||
|  |   virtual ~cFemonAudioIf() {} | ||||||
|  |  | ||||||
|  |   // enum | ||||||
|  |   virtual void SetAudioCodec(eAudioCodec codec) = 0; | ||||||
|  |   // kbit/s or eAudioBitrate | ||||||
|  |   virtual void SetAudioBitrate(double bitrate) = 0; | ||||||
|  |   // Hz or eAudioSamplingFrequency | ||||||
|  |   virtual void SetAudioSamplingFrequency(int sampling) = 0; | ||||||
|  |   // eAudioChannelMode | ||||||
|  |   virtual void SetAudioChannel(eAudioChannelMode mode) = 0; | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  | class cFemonAC3If { | ||||||
|  | public: | ||||||
|  |   cFemonAC3If() {} | ||||||
|  |   virtual ~cFemonAC3If() {} | ||||||
|  |  | ||||||
|  |   // bit/s or eAudioBitrate | ||||||
|  |   virtual void SetAC3Bitrate(int bitrate) = 0; | ||||||
|  |   // Hz or eAudioSamplingFrequency | ||||||
|  |   virtual void SetAC3SamplingFrequency(int sampling) = 0; | ||||||
|  |   // 0..7 or eAudioBitstreamMode | ||||||
|  |   virtual void SetAC3Bitstream(int mode) = 0; | ||||||
|  |   // 0..7 or eAudioCodingMode | ||||||
|  |   virtual void SetAC3AudioCoding(int mode) = 0; | ||||||
|  |   // eAudioDolbySurroundMode | ||||||
|  |   virtual void SetAC3DolbySurround(int mode) = 0; | ||||||
|  |   // eAudioCenterMixLevel | ||||||
|  |   virtual void SetAC3CenterMix(int level) = 0; | ||||||
|  |   // eAudioSurroundMixLevel | ||||||
|  |   virtual void SetAC3SurroundMix(int level) = 0; | ||||||
|  |   // -dB | ||||||
|  |   virtual void SetAC3Dialog(int level) = 0; | ||||||
|  |   // boolean | ||||||
|  |   virtual void SetAC3LFE(bool onoff) = 0; | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONAUDIO_H | #endif //__FEMONAUDIO_H | ||||||
|   | |||||||
| @@ -17,13 +17,12 @@ cFemonConfig::cFemonConfig(void) | |||||||
|   skin           = 0; |   skin           = 0; | ||||||
|   theme          = 0; |   theme          = 0; | ||||||
|   position       = 1; |   position       = 1; | ||||||
|  |   downscale      = 0; | ||||||
|   redlimit       = 33; |   redlimit       = 33; | ||||||
|   greenlimit     = 66; |   greenlimit     = 66; | ||||||
|   updateinterval = 5; |   updateinterval = 5; | ||||||
|   analyzestream  = 1; |   analyzestream  = 1; | ||||||
|   calcinterval   = 20; |   calcinterval   = 20; | ||||||
|   osdheight      = 480; |  | ||||||
|   osdoffset      = 0; |  | ||||||
|   usesvdrp       = 0; |   usesvdrp       = 0; | ||||||
|   svdrpport      = 2001; |   svdrpport      = 2001; | ||||||
|   strncpy(svdrpip, "0.0.0.0", sizeof(svdrpip)); |   strncpy(svdrpip, "0.0.0.0", sizeof(svdrpip)); | ||||||
|   | |||||||
| @@ -28,13 +28,12 @@ public: | |||||||
|   int skin; |   int skin; | ||||||
|   int theme; |   int theme; | ||||||
|   int position; |   int position; | ||||||
|  |   int downscale; | ||||||
|   int redlimit; |   int redlimit; | ||||||
|   int greenlimit; |   int greenlimit; | ||||||
|   int updateinterval; |   int updateinterval; | ||||||
|   int analyzestream; |   int analyzestream; | ||||||
|   int calcinterval; |   int calcinterval; | ||||||
|   int osdheight; |  | ||||||
|   int osdoffset; |  | ||||||
|   int usesvdrp; |   int usesvdrp; | ||||||
|   int svdrpport; |   int svdrpport; | ||||||
|   char svdrpip[MaxSvdrpIp + 1]; // must end with additional null |   char svdrpip[MaxSvdrpIp + 1]; // must end with additional null | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								femonclient/vdr-femonclient-0.0.4.tgz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								femonclient/vdr-femonclient-0.0.4.tgz
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										1054
									
								
								femonh264.c
									
									
									
									
									
								
							
							
						
						
									
										1054
									
								
								femonh264.c
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										51
									
								
								femonh264.h
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								femonh264.h
									
									
									
									
									
								
							| @@ -10,6 +10,55 @@ | |||||||
|  |  | ||||||
| #include "femonvideo.h" | #include "femonvideo.h" | ||||||
|  |  | ||||||
| bool getH264VideoInfo(uint8_t *buf, int len, video_info_t *info); | class cFemonH264 { | ||||||
|  | private: | ||||||
|  |   enum { | ||||||
|  |     NAL_SEI     = 0x06, // Supplemental Enhancement Information | ||||||
|  |     NAL_SPS     = 0x07, // Sequence Parameter Set | ||||||
|  |     NAL_AUD     = 0x09, // Access Unit Delimiter | ||||||
|  |     NAL_END_SEQ = 0x0A  // End of Sequence | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  |   typedef struct DAR { | ||||||
|  |     eVideoAspectRatio dar; | ||||||
|  |     int               ratio; | ||||||
|  |   } t_DAR; | ||||||
|  |  | ||||||
|  |   typedef struct SAR { | ||||||
|  |     int               w; | ||||||
|  |     int               h; | ||||||
|  |   } t_SAR; | ||||||
|  |  | ||||||
|  |   cFemonVideoIf    *m_VideoHandler; | ||||||
|  |   uint32_t          m_Width; | ||||||
|  |   uint32_t          m_Height; | ||||||
|  |   eVideoAspectRatio m_AspectRatio; | ||||||
|  |   eVideoFormat      m_Format; | ||||||
|  |   double            m_FrameRate; | ||||||
|  |   double            m_BitRate; | ||||||
|  |   eVideoScan        m_Scan; | ||||||
|  |   bool              m_CpbDpbDelaysPresentFlag; | ||||||
|  |   bool              m_PicStructPresentFlag; | ||||||
|  |   bool              m_FrameMbsOnlyFlag; | ||||||
|  |   bool              m_MbAdaptiveFrameFieldFlag; | ||||||
|  |   uint32_t          m_TimeOffsetLength; | ||||||
|  |  | ||||||
|  |   void           reset(); | ||||||
|  |   const uint8_t *nextStartCode(const uint8_t *start, const uint8_t *end); | ||||||
|  |   int            nalUnescape(uint8_t *dst, const uint8_t *src, int len); | ||||||
|  |   int            parseSPS(const uint8_t *buf, int len); | ||||||
|  |   int            parseSEI(const uint8_t *buf, int len); | ||||||
|  |  | ||||||
|  |   static const t_SAR             s_SAR[]; | ||||||
|  |   static const t_DAR             s_DAR[]; | ||||||
|  |   static const eVideoFormat      s_VideoFormats[]; | ||||||
|  |   static const uint8_t           s_SeiNumClockTsTable[9]; | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonH264(cFemonVideoIf *videohandler); | ||||||
|  |   virtual ~cFemonH264(); | ||||||
|  |  | ||||||
|  |   bool processVideo(const uint8_t *buf, int len); | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONH264_H | #endif //__FEMONH264_H | ||||||
|   | |||||||
							
								
								
									
										112
									
								
								femonlatm.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								femonlatm.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,112 @@ | |||||||
|  | /* | ||||||
|  |  * Frontend Status Monitor plugin for the Video Disk Recorder | ||||||
|  |  * | ||||||
|  |  * See the README file for copyright information and how to reach the author. | ||||||
|  |  * | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "femontools.h" | ||||||
|  | #include "femonlatm.h" | ||||||
|  |  | ||||||
|  | unsigned int cFemonLATM::s_Bitrates[3][16] = | ||||||
|  | { | ||||||
|  |   {0,  32,  48,  56,  64,  80,  96, 112, 128, 144, 160, 176, 192, 224, 256, -1}, // MPEG-2 Layer I | ||||||
|  |   {0,   8,  16,  24,  32,  40,  48,  56,  64,  80,  96, 112, 128, 144, 160, -1}, // MPEG-2 Layer II/III | ||||||
|  |   {0,   8,  16,  24,  32,  40,  48,  56,  64,  80,  96, 112, 128, 144, 160, -1}  // MPEG-2 Layer II/III | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | unsigned int cFemonLATM::s_Samplerates[4] = | ||||||
|  | { | ||||||
|  |   22050, 24000, 16000, -1 | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | cFemonLATM::cFemonLATM(cFemonAudioIf *audiohandler) | ||||||
|  | : m_AudioHandler(audiohandler) | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | cFemonLATM::~cFemonLATM() | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | bool cFemonLATM::processAudio(const uint8_t *buf, int len) | ||||||
|  | { | ||||||
|  |   cBitStream bs(buf, len * 8); | ||||||
|  |  | ||||||
|  |   if (!m_AudioHandler) | ||||||
|  |      return false; | ||||||
|  |  | ||||||
|  |   // skip PES header | ||||||
|  |   if (!PesLongEnough(len)) | ||||||
|  |       return false; | ||||||
|  |   bs.skipBits(8 * PesPayloadOffset(buf)); | ||||||
|  |  | ||||||
|  |   // MPEG audio detection | ||||||
|  |   if (bs.getBits(12) != 0x56E)              // syncword | ||||||
|  |      return false; | ||||||
|  |  | ||||||
|  |   m_AudioHandler->SetAudioCodec(AUDIO_CODEC_LATM); | ||||||
|  |  | ||||||
|  |   if (bs.getBit() == 0)                     // id: MPEG-1=1, extension to lower sampling frequencies=0 | ||||||
|  |      return true;                           // @todo: lower sampling frequencies support | ||||||
|  |   int layer = 3 - bs.getBits(2);            // layer: I=11, II=10, III=01 | ||||||
|  |   bs.skipBit();                             // protection bit | ||||||
|  |   int bit_rate_index = bs.getBits(4);       // bitrate index | ||||||
|  |   int sampling_frequency = bs.getBits(2);   // sampling frequency | ||||||
|  |   bs.skipBit();                             // padding bit | ||||||
|  |   bs.skipBit();                             // private pid | ||||||
|  |   int mode = bs.getBits(2);                 // mode | ||||||
|  |  | ||||||
|  |   switch (mode) { | ||||||
|  |     case 0: | ||||||
|  |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_STEREO); | ||||||
|  |          break; | ||||||
|  |  | ||||||
|  |     case 1: | ||||||
|  |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_JOINT_STEREO); | ||||||
|  |          break; | ||||||
|  |  | ||||||
|  |     case 2: | ||||||
|  |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_DUAL); | ||||||
|  |          break; | ||||||
|  |  | ||||||
|  |     case 3: | ||||||
|  |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_SINGLE); | ||||||
|  |          break; | ||||||
|  |  | ||||||
|  |     default: | ||||||
|  |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_INVALID); | ||||||
|  |          break; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   if (layer == 3) { | ||||||
|  |       m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_FREE); | ||||||
|  |   } | ||||||
|  |   else { | ||||||
|  |      switch (bit_rate_index) { | ||||||
|  |        case 0: | ||||||
|  |             m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_FREE); | ||||||
|  |             break; | ||||||
|  |  | ||||||
|  |        case 0xF: | ||||||
|  |             m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_RESERVED); | ||||||
|  |             break; | ||||||
|  |  | ||||||
|  |        default: | ||||||
|  |             m_AudioHandler->SetAudioBitrate(1000 * s_Bitrates[layer][bit_rate_index]); | ||||||
|  |             break; | ||||||
|  |      } | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   switch (sampling_frequency) { | ||||||
|  |     case 3: | ||||||
|  |          m_AudioHandler->SetAudioSamplingFrequency(AUDIO_SAMPLING_FREQUENCY_RESERVED); | ||||||
|  |          break; | ||||||
|  |  | ||||||
|  |     default: | ||||||
|  |          m_AudioHandler->SetAudioSamplingFrequency(s_Samplerates[sampling_frequency]); | ||||||
|  |          break; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   return true; | ||||||
|  | } | ||||||
							
								
								
									
										27
									
								
								femonlatm.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								femonlatm.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | |||||||
|  | /* | ||||||
|  |  * Frontend Status Monitor plugin for the Video Disk Recorder | ||||||
|  |  * | ||||||
|  |  * See the README file for copyright information and how to reach the author. | ||||||
|  |  * | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #ifndef __FEMONLATM_H | ||||||
|  | #define __FEMONLATM_H | ||||||
|  |  | ||||||
|  | #include "femonaudio.h" | ||||||
|  |  | ||||||
|  | class cFemonLATM { | ||||||
|  | private: | ||||||
|  |   cFemonAudioIf *m_AudioHandler; | ||||||
|  |  | ||||||
|  |   static unsigned int s_Bitrates[3][16]; | ||||||
|  |   static unsigned int s_Samplerates[4]; | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonLATM(cFemonAudioIf *audiohandler); | ||||||
|  |   virtual ~cFemonLATM(); | ||||||
|  |  | ||||||
|  |   bool processAudio(const uint8_t *buf, int len); | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  | #endif //__FEMONLATM_H | ||||||
							
								
								
									
										278
									
								
								femonmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										278
									
								
								femonmpeg.c
									
									
									
									
									
								
							| @@ -8,10 +8,9 @@ | |||||||
| #include "femontools.h" | #include "femontools.h" | ||||||
| #include "femonmpeg.h" | #include "femonmpeg.h" | ||||||
|  |  | ||||||
| #define IS_MPEG_AUDIO(buf)      (((buf)[0] == 0xFF) && ((buf)[1] & 0xF0)) | #define IS_EXTENSION_START(buf) (((buf)[0] == 0x00) && ((buf)[1] == 0x00) && ((buf)[2] == 0x01) && ((buf)[3] == 0xB5)) | ||||||
| #define IS_SEQUENCE_HEADER(buf) (((buf)[0] == 0x00) && ((buf)[1] == 0x00) && ((buf)[2] == 0x01) && ((buf)[3] == 0xB3)) |  | ||||||
|  |  | ||||||
| static unsigned int bitrates[2][3][16] = | unsigned int cFemonMPEG::s_Bitrates[2][3][16] = | ||||||
| { | { | ||||||
|   { |   { | ||||||
|     {0,  32,  48,  56,  64,  80,  96, 112, 128, 144, 160, 176, 192, 224, 256, -1}, // MPEG-2 Layer I |     {0,  32,  48,  56,  64,  80,  96, 112, 128, 144, 160, 176, 192, 224, 256, -1}, // MPEG-2 Layer I | ||||||
| @@ -25,160 +24,263 @@ static unsigned int bitrates[2][3][16] = | |||||||
|   } |   } | ||||||
| }; | }; | ||||||
|  |  | ||||||
| static unsigned int samplerates[2][4] = | unsigned int cFemonMPEG::s_Samplerates[2][4] = | ||||||
| { | { | ||||||
|   {22050, 24000, 16000, -1}, // MPEG-2 |   {22050, 24000, 16000, -1}, // MPEG-2 | ||||||
|   {44100, 48000, 32000, -1}  // MPEG-1 |   {44100, 48000, 32000, -1}  // MPEG-1 | ||||||
| }; | }; | ||||||
|  |  | ||||||
| static eAudioCodec formats[2][4] = | eAudioCodec cFemonMPEG::s_Formats[2][4] = | ||||||
| { | { | ||||||
|   {AUDIO_CODEC_MPEG2_I, AUDIO_CODEC_MPEG2_II, AUDIO_CODEC_MPEG2_III, AUDIO_CODEC_UNKNOWN}, // MPEG-2 |   {AUDIO_CODEC_MPEG2_I, AUDIO_CODEC_MPEG2_II, AUDIO_CODEC_MPEG2_III, AUDIO_CODEC_UNKNOWN}, // MPEG-2 | ||||||
|   {AUDIO_CODEC_MPEG1_I, AUDIO_CODEC_MPEG1_II, AUDIO_CODEC_MPEG1_III, AUDIO_CODEC_UNKNOWN}  // MPEG-1 |   {AUDIO_CODEC_MPEG1_I, AUDIO_CODEC_MPEG1_II, AUDIO_CODEC_MPEG1_III, AUDIO_CODEC_UNKNOWN}  // MPEG-1 | ||||||
| }; | }; | ||||||
|  |  | ||||||
| bool getMPEGAudioInfo(uint8_t *buf, int len, audio_info_t *info) | cFemonMPEG::cFemonMPEG(cFemonVideoIf *videohandler, cFemonAudioIf *audiohandler) | ||||||
|  | : m_VideoHandler(videohandler), | ||||||
|  |   m_AudioHandler(audiohandler) | ||||||
| { | { | ||||||
|   // MPEG audio detection, search for syncword | } | ||||||
|   if ((len < 4) || !IS_MPEG_AUDIO(buf)) |  | ||||||
|  | cFemonMPEG::~cFemonMPEG() | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | bool cFemonMPEG::processAudio(const uint8_t *buf, int len) | ||||||
|  | { | ||||||
|  |   cBitStream bs(buf, len * 8); | ||||||
|  |  | ||||||
|  |   if (!m_AudioHandler) | ||||||
|      return false; |      return false; | ||||||
|  |  | ||||||
|   int mpegIndex = (buf[1] & 0x08) >> 3;        // MPEG-2=0, MPEG-1=1 |   // skip PES header | ||||||
|   int layerIndex = 3 - ((buf[1] & 0x06) >> 1); // I=11, II=10, III=01  |   if (!PesLongEnough(len)) | ||||||
|   int bitrateIndex = (buf[2] & 0xF0) >> 4; |       return false; | ||||||
|   int frequency = (buf[2] & 0x0C) >> 2; |   bs.skipBits(8 * PesPayloadOffset(buf)); | ||||||
|   int channelMode = (buf[3] & 0xC0) >> 6; |  | ||||||
|  |  | ||||||
|   info->codec = formats[mpegIndex][layerIndex]; |   // MPEG audio detection | ||||||
|  |   if (bs.getBits(12) != 0xFFF)              // syncword | ||||||
|  |      return false; | ||||||
|  |  | ||||||
|   switch (channelMode) { |   int id = bs.getBit();                     // id: MPEG-2=0, MPEG-1=1 | ||||||
|  |   int layer = 3 - bs.getBits(2);            // layer: I=11, II=10, III=01 | ||||||
|  |   bs.skipBit();                             // protection bit | ||||||
|  |   int bit_rate_index = bs.getBits(4);       // bitrate index | ||||||
|  |   int sampling_frequency = bs.getBits(2);   // sampling frequency | ||||||
|  |   bs.skipBit();                             // padding bit | ||||||
|  |   bs.skipBit();                             // private pid | ||||||
|  |   int mode = bs.getBits(2);                 // mode | ||||||
|  |  | ||||||
|  |   m_AudioHandler->SetAudioCodec(s_Formats[id][layer]); | ||||||
|  |  | ||||||
|  |   switch (mode) { | ||||||
|     case 0: |     case 0: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_STEREO; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_STEREO); | ||||||
|          break; |          break; | ||||||
|           |  | ||||||
|     case 1: |     case 1: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_JOINT_STEREO; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_JOINT_STEREO); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     case 2: |     case 2: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_DUAL; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_DUAL); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     case 3: |     case 3: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_SINGLE; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_SINGLE); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     default: |     default: | ||||||
|          info->channelMode = AUDIO_CHANNEL_MODE_INVALID; |          m_AudioHandler->SetAudioChannel(AUDIO_CHANNEL_MODE_INVALID); | ||||||
|          break; |          break; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   switch (bitrateIndex) { |   switch (bit_rate_index) { | ||||||
|     case 0: |     case 0: | ||||||
|          info->bitrate = AUDIO_BITRATE_FREE; |          m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_FREE); | ||||||
|          break; |          break; | ||||||
|           |  | ||||||
|     case 0xF: |     case 0xF: | ||||||
|          info->bitrate = AUDIO_BITRATE_RESERVED; |          m_AudioHandler->SetAudioBitrate(AUDIO_BITRATE_RESERVED); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     default: |     default: | ||||||
|          info->bitrate = 1000 * bitrates[mpegIndex][layerIndex][bitrateIndex]; |          m_AudioHandler->SetAudioBitrate(1000 * s_Bitrates[id][layer][bit_rate_index]); | ||||||
|          break; |          break; | ||||||
|   } |   } | ||||||
|    |  | ||||||
|   switch (frequency) { |   switch (sampling_frequency) { | ||||||
|     case 3: |     case 3: | ||||||
|          info->samplingFrequency = AUDIO_SAMPLING_FREQUENCY_RESERVED; |          m_AudioHandler->SetAudioSamplingFrequency(AUDIO_SAMPLING_FREQUENCY_RESERVED); | ||||||
|          break; |          break; | ||||||
|  |  | ||||||
|     default: |     default: | ||||||
|          info->samplingFrequency = samplerates[mpegIndex][frequency]; |          m_AudioHandler->SetAudioSamplingFrequency(s_Samplerates[id][sampling_frequency]); | ||||||
|          break; |          break; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   return true; |   return true; | ||||||
| } | } | ||||||
|  |  | ||||||
| bool getMPEGVideoInfo(uint8_t *buf, int len, video_info_t *info) | bool cFemonMPEG::processVideo(const uint8_t *buf, int len) | ||||||
| { | { | ||||||
|   // MPEG-2 video detection, search for sequence header |   cBitStream bs(buf, len * 8); | ||||||
|   if ((len < 7) || !IS_SEQUENCE_HEADER(buf)) |  | ||||||
|  |   if (!m_VideoHandler) | ||||||
|      return false; |      return false; | ||||||
|  |  | ||||||
|   // Parse header    |   // skip PES header | ||||||
|   uint8_t *data = buf + 4; |   if (!PesLongEnough(len)) | ||||||
|   info->codec = VIDEO_CODEC_MPEG2; |       return false; | ||||||
|   info->width = ((data[1] & 0xF0) >> 4) | (data[0] << 4); |   bs.skipBits(8 * PesPayloadOffset(buf)); | ||||||
|   info->height = ((data[1] & 0x0F) << 8) | (data[2]); |  | ||||||
|   switch ((data[3] & 0xF0) >> 4) { |   // MPEG-2 video detection, search for start code | ||||||
|  |   if (bs.getU32() != 0x000001B3)            // sequence header | ||||||
|  |      return false; | ||||||
|  |  | ||||||
|  |   int scan = VIDEO_SCAN_UNKNOWN; | ||||||
|  |   int format = VIDEO_FORMAT_UNKNOWN; | ||||||
|  |   int aspect = VIDEO_ASPECT_RATIO_RESERVED; | ||||||
|  |  | ||||||
|  |   int horizontal_size = bs.getBits(12);     // horizontal size value | ||||||
|  |   int vertical_size = bs.getBits(12);       // vertical size value | ||||||
|  |  | ||||||
|  |   switch (bs.getBits(4)) {                  // aspect ratio information | ||||||
|     case 1: |     case 1: | ||||||
|       info->aspectRatio = VIDEO_ASPECT_RATIO_1_1; |          aspect = VIDEO_ASPECT_RATIO_1_1; | ||||||
|       break; |          break; | ||||||
|  |  | ||||||
|     case 2: |     case 2: | ||||||
|       info->aspectRatio = VIDEO_ASPECT_RATIO_4_3; |          aspect = VIDEO_ASPECT_RATIO_4_3; | ||||||
|       break; |          break; | ||||||
|  |  | ||||||
|     case 3: |     case 3: | ||||||
|       info->aspectRatio = VIDEO_ASPECT_RATIO_16_9; |          aspect = VIDEO_ASPECT_RATIO_16_9; | ||||||
|       break; |          break; | ||||||
|  |  | ||||||
|     case 4: |     case 4: | ||||||
|       info->aspectRatio = VIDEO_ASPECT_RATIO_2_21_1; |          aspect = VIDEO_ASPECT_RATIO_2_21_1; | ||||||
|       break; |          break; | ||||||
|  |  | ||||||
|     case 5 ... 15: |     case 5 ... 15: | ||||||
|     default: |     default: | ||||||
|       info->aspectRatio = VIDEO_ASPECT_RATIO_RESERVED; |          aspect = VIDEO_ASPECT_RATIO_RESERVED; | ||||||
|       break; |          break; | ||||||
|     } |     } | ||||||
|   // Video scan should be read from progressive_sequence field in sequence extension |  | ||||||
|   switch (data[3] & 0x0F) { |   double frame_rate = 0; | ||||||
|  |   switch (bs.getBits(4)) {                  // frame rate code | ||||||
|     case 1: |     case 1: | ||||||
|       info->frameRate   = 24000 / 1001.0; |          frame_rate = 24000 / 1001.0; | ||||||
|       info->scan        = VIDEO_SCAN_PROGRESSIVE; |          format = VIDEO_FORMAT_UNKNOWN; | ||||||
|       info->format      = VIDEO_FORMAT_UNKNOWN; |          break; | ||||||
|       break; |  | ||||||
|     case 2: |     case 2: | ||||||
|       info->frameRate   = 24.0; |          frame_rate = 24.0; | ||||||
|       info->scan        = VIDEO_SCAN_PROGRESSIVE; |          format = VIDEO_FORMAT_UNKNOWN; | ||||||
|       info->format      = VIDEO_FORMAT_UNKNOWN; |          break; | ||||||
|       break; |  | ||||||
|     case 3: |     case 3: | ||||||
|       info->frameRate   = 25.0; |          frame_rate = 25.0; | ||||||
|       info->scan        = VIDEO_SCAN_UNKNOWN;  // interlaced or progressive |          format = VIDEO_FORMAT_PAL; | ||||||
|       info->format      = VIDEO_FORMAT_PAL; |          break; | ||||||
|       break; |  | ||||||
|     case 4: |     case 4: | ||||||
|       info->frameRate   = 30000 / 1001.0; |          frame_rate = 30000 / 1001.0; | ||||||
|       info->scan        = VIDEO_SCAN_UNKNOWN; // interlaced or progressive |          format = VIDEO_FORMAT_NTSC; | ||||||
|       info->format      = VIDEO_FORMAT_NTSC; |          break; | ||||||
|       break; |  | ||||||
|     case 5: |     case 5: | ||||||
|       info->frameRate   = 30.0; |          frame_rate = 30.0; | ||||||
|       info->scan        = VIDEO_SCAN_UNKNOWN;  // interlaced or progressive |          format = VIDEO_FORMAT_NTSC; | ||||||
|       info->format      = VIDEO_FORMAT_NTSC; |          break; | ||||||
|       break; |  | ||||||
|     case 6: |     case 6: | ||||||
|       info->frameRate   = 50.0; |          frame_rate = 50.0; | ||||||
|       info->scan        = VIDEO_SCAN_PROGRESSIVE; |          format = VIDEO_FORMAT_PAL; | ||||||
|       info->format      = VIDEO_FORMAT_PAL; |          break; | ||||||
|       break; |  | ||||||
|     case 7: |     case 7: | ||||||
|       info->frameRate   = 60.0; |          frame_rate = 60.0; | ||||||
|       info->scan        = VIDEO_SCAN_PROGRESSIVE; |          format = VIDEO_FORMAT_NTSC; | ||||||
|       info->format      = VIDEO_FORMAT_NTSC; |          break; | ||||||
|       break; |  | ||||||
|     case 8: |     case 8: | ||||||
|       info->frameRate   = 60000 / 1001.0; |          frame_rate = 60000 / 1001.0; | ||||||
|       info->scan        = VIDEO_SCAN_PROGRESSIVE; |          format = VIDEO_FORMAT_NTSC; | ||||||
|       info->format      = VIDEO_FORMAT_NTSC; |          break; | ||||||
|       break; |  | ||||||
|     case 9 ... 15: |     case 9 ... 15: | ||||||
|     default: |     default: | ||||||
|       info->frameRate   = 0; |          frame_rate = 0; | ||||||
|       info->scan        = VIDEO_SCAN_UNKNOWN; |          format = VIDEO_FORMAT_UNKNOWN; | ||||||
|       info->format      = VIDEO_FORMAT_UNKNOWN; |          break; | ||||||
|       break; |  | ||||||
|     } |     } | ||||||
|   info->bitrate = 400.0 * (double)(((data[4] << 10) & 0x0003FC00UL) | ((data[5] << 2) & 0x000003FCUL) | (((data[6] & 0xC0) >> 6) & 0x00000003UL)); |  | ||||||
|  |   int bit_rate = bs.getBits(18);            // bit rate value | ||||||
|  |  | ||||||
|  |   bs.skipBit();             // marker bit | ||||||
|  |   bs.skipBits(10);          // vbv buffer size value | ||||||
|  |   bs.skipBit();             // constrained parameters value | ||||||
|  |   if (bs.getBit())          // load intra quantizer matrix | ||||||
|  |      bs.skipBits(8 * 64);   // intra quantizer matrix | ||||||
|  |   if (bs.getBit())          // load non-intra quantizer matrix | ||||||
|  |      bs.skipBits(8 * 64);   // non-intra quantizer matrix | ||||||
|  |  | ||||||
|  |   if (bs.getU32() != 0x000001B5) {                  // extension start | ||||||
|  |      bs.skipBits(4);                                // extension start code identifier | ||||||
|  |      bs.skipBits(8);                                // profile and level indicator | ||||||
|  |      scan = bs.getBit() ? VIDEO_SCAN_PROGRESSIVE : | ||||||
|  |                           VIDEO_SCAN_INTERLACED;    // progressive sequence | ||||||
|  |      bs.skipBits(2);                                // chroma format | ||||||
|  |      horizontal_size |= (bs.getBits(2) << 12);      // horizontal size extension | ||||||
|  |      vertical_size |= (bs.getBits(2) << 12);        // vertical size extension | ||||||
|  |      bit_rate |= (bs.getBits(12) << 18);            // bit rate extension | ||||||
|  |      bs.skipBit();                                  // marker bit | ||||||
|  |      bs.skipBits(8);                                // vpv buffer size extension | ||||||
|  |      bs.skipBit();                                  // low delay | ||||||
|  |      bs.skipBits(2);                                // frame rate extension n | ||||||
|  |      bs.skipBits(5);                                // frame rate extension d | ||||||
|  |  | ||||||
|  |      if ((bs.getU32() != 0x000001B5) &&             // extension start code | ||||||
|  |          (bs.getBits(4) == 0x0010)) {               // sequence display extension id | ||||||
|  |         switch (bs.getBits(3)) {                    // video format | ||||||
|  |           case 0x000: | ||||||
|  |                format = VIDEO_FORMAT_COMPONENT; | ||||||
|  |                break; | ||||||
|  |           case 0x001: | ||||||
|  |                format = VIDEO_FORMAT_PAL; | ||||||
|  |                break; | ||||||
|  |           case 0x010: | ||||||
|  |                format = VIDEO_FORMAT_NTSC; | ||||||
|  |                break; | ||||||
|  |           case 0x011: | ||||||
|  |                format = VIDEO_FORMAT_SECAM; | ||||||
|  |                break; | ||||||
|  |           case 0x100: | ||||||
|  |                format = VIDEO_FORMAT_MAC; | ||||||
|  |                break; | ||||||
|  |           case 0x101: | ||||||
|  |                format = VIDEO_FORMAT_UNKNOWN; | ||||||
|  |                break; | ||||||
|  |           case 0x110: | ||||||
|  |           case 0x111: | ||||||
|  |                format = VIDEO_FORMAT_RESERVED; | ||||||
|  |                break; | ||||||
|  |           default: | ||||||
|  |                format = VIDEO_FORMAT_INVALID; | ||||||
|  |                break; | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |      } | ||||||
|  |  | ||||||
|  |   m_VideoHandler->SetVideoCodec(VIDEO_CODEC_MPEG2); | ||||||
|  |   m_VideoHandler->SetVideoSize(horizontal_size, vertical_size); | ||||||
|  |   m_VideoHandler->SetVideoBitrate(400.0 * (double)(bit_rate)); | ||||||
|  |   m_VideoHandler->SetVideoFramerate(frame_rate); | ||||||
|  |   m_VideoHandler->SetVideoScan(eVideoScan(scan)); | ||||||
|  |   m_VideoHandler->SetVideoAspectRatio(eVideoAspectRatio(aspect)); | ||||||
|  |   m_VideoHandler->SetVideoFormat(eVideoFormat(format)); | ||||||
|  |  | ||||||
|   return true; |   return true; | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								femonmpeg.h
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								femonmpeg.h
									
									
									
									
									
								
							| @@ -8,10 +8,24 @@ | |||||||
| #ifndef __FEMONMPEG_H | #ifndef __FEMONMPEG_H | ||||||
| #define __FEMONMPEG_H | #define __FEMONMPEG_H | ||||||
|  |  | ||||||
| #include "femonaudio.h" |  | ||||||
| #include "femonvideo.h" | #include "femonvideo.h" | ||||||
|  | #include "femonaudio.h" | ||||||
|  |  | ||||||
| bool getMPEGAudioInfo(uint8_t *buf, int len, audio_info_t *info); | class cFemonMPEG { | ||||||
| bool getMPEGVideoInfo(uint8_t *buf, int len, video_info_t *info); | private: | ||||||
|  |   cFemonVideoIf *m_VideoHandler; | ||||||
|  |   cFemonAudioIf *m_AudioHandler; | ||||||
|  |  | ||||||
|  |   static unsigned int s_Bitrates[2][3][16]; | ||||||
|  |   static unsigned int s_Samplerates[2][4]; | ||||||
|  |   static eAudioCodec  s_Formats[2][4]; | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonMPEG(cFemonVideoIf *videohandler, cFemonAudioIf *audiohandler); | ||||||
|  |   virtual ~cFemonMPEG(); | ||||||
|  |  | ||||||
|  |   bool processVideo(const uint8_t *buf, int len); | ||||||
|  |   bool processAudio(const uint8_t *buf, int len); | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONMPEG_H | #endif //__FEMONMPEG_H | ||||||
|   | |||||||
							
								
								
									
										255
									
								
								femonosd.c
									
									
									
									
									
								
							
							
						
						
									
										255
									
								
								femonosd.c
									
									
									
									
									
								
							| @@ -5,7 +5,12 @@ | |||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | #ifndef __STDC_FORMAT_MACROS | ||||||
|  | #define __STDC_FORMAT_MACROS     | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #include <ctype.h> | #include <ctype.h> | ||||||
|  | #include <math.h> | ||||||
| #include "femoncfg.h" | #include "femoncfg.h" | ||||||
| #include "femonreceiver.h" | #include "femonreceiver.h" | ||||||
| #include "femontools.h" | #include "femontools.h" | ||||||
| @@ -15,19 +20,28 @@ | |||||||
| #define CHANNELINPUT_TIMEOUT      1000 | #define CHANNELINPUT_TIMEOUT      1000 | ||||||
| #define SVDRPPLUGIN               "svdrpservice" | #define SVDRPPLUGIN               "svdrpservice" | ||||||
|  |  | ||||||
| #define OSDHEIGHT                 femonConfig.osdheight   // in pixels | #define OSDWIDTH                  m_OsdWidth              // in pixels | ||||||
| #define OSDWIDTH                  600                     // in pixels | #define OSDHEIGHT                 m_OsdHeight             // in pixels | ||||||
| #define OSDROWHEIGHT              m_Font->Height()        // in pixels | #define OSDROWHEIGHT              m_Font->Height()        // in pixels | ||||||
| #define OSDINFOHEIGHT             (OSDROWHEIGHT * 13)     // in pixels (13 rows) | #define OSDINFOHEIGHT             (OSDROWHEIGHT * 13)     // in pixels (13 rows) | ||||||
| #define OSDSTATUSHEIGHT           (OSDROWHEIGHT * 6)      // in pixels (6 rows) | #define OSDSTATUSHEIGHT           (OSDROWHEIGHT * 6)      // in pixels (6 rows) | ||||||
| #define OSDSPACING                5 | #define OSDSPACING                5 | ||||||
| #define OSDROUNDING               10 | #define OSDROUNDING               10 | ||||||
| #define IS_OSDROUNDING            (femonConfig.skin == eFemonSkinElchi) | #define IS_OSDROUNDING            (femonConfig.skin == eFemonSkinElchi) | ||||||
|  | #define IS_OSDRESOLUTION(r1, r2)  (abs(r1 - r2) < 20) | ||||||
| #define OSDINFOWIN_Y(offset)      (femonConfig.position ? (OSDHEIGHT - OSDINFOHEIGHT + offset) : offset) | #define OSDINFOWIN_Y(offset)      (femonConfig.position ? (OSDHEIGHT - OSDINFOHEIGHT + offset) : offset) | ||||||
| #define OSDINFOWIN_X(col)         ((col == 4) ? 455 : (col == 3) ? 305 : (col == 2) ? 155 : 15) | #define OSDINFOWIN_X(col)         ((col == 4) ? int(round(OSDWIDTH * 0.76)) : \ | ||||||
|  |                                    (col == 3) ? int(round(OSDWIDTH * 0.51)) : \ | ||||||
|  |                                    (col == 2) ? int(round(OSDWIDTH * 0.26)) : \ | ||||||
|  |                                                 int(round(OSDWIDTH * 0.025))) | ||||||
| #define OSDSTATUSWIN_Y(offset)    (femonConfig.position ? offset : (OSDHEIGHT - OSDSTATUSHEIGHT + offset)) | #define OSDSTATUSWIN_Y(offset)    (femonConfig.position ? offset : (OSDHEIGHT - OSDSTATUSHEIGHT + offset)) | ||||||
| #define OSDSTATUSWIN_X(col)       ((col == 7) ? 475 : (col == 6) ? 410 : (col == 5) ? 275 : (col == 4) ? 220 : (col == 3) ? 125 : (col == 2) ? 70 : 15) | #define OSDSTATUSWIN_X(col)       ((col == 7) ? int(round(OSDWIDTH * 0.79)) : \ | ||||||
|  |                                    (col == 6) ? int(round(OSDWIDTH * 0.68)) : \ | ||||||
|  |                                    (col == 5) ? int(round(OSDWIDTH * 0.46)) : \ | ||||||
|  |                                    (col == 4) ? int(round(OSDWIDTH * 0.37)) : \ | ||||||
|  |                                    (col == 3) ? int(round(OSDWIDTH * 0.21)) : \ | ||||||
|  |                                    (col == 2) ? int(round(OSDWIDTH * 0.12)) : \ | ||||||
|  |                                                 int(round(OSDWIDTH * 0.025))) | ||||||
| #define OSDSTATUSWIN_XSYMBOL(c,w) (c * ((OSDWIDTH - (5 * w)) / 6) + ((c - 1) * w)) | #define OSDSTATUSWIN_XSYMBOL(c,w) (c * ((OSDWIDTH - (5 * w)) / 6) + ((c - 1) * w)) | ||||||
| #define OSDBARWIDTH(x)            (OSDWIDTH * x / 100) | #define OSDBARWIDTH(x)            (OSDWIDTH * x / 100) | ||||||
|  |  | ||||||
| @@ -53,12 +67,12 @@ | |||||||
|  |  | ||||||
| #define OSDDRAWSTATUSBAR(value) \ | #define OSDDRAWSTATUSBAR(value) \ | ||||||
|         if (value > 0) { \ |         if (value > 0) { \ | ||||||
|            value = OSDBARWIDTH(value); \ |            int barvalue = OSDBARWIDTH(value); \ | ||||||
|            m_Osd->DrawRectangle(0, OSDSTATUSWIN_Y(offset) + 3, min(OSDBARWIDTH(femonConfig.redlimit), value), OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrRed); \ |            m_Osd->DrawRectangle(0, OSDSTATUSWIN_Y(offset) + 3, min(OSDBARWIDTH(femonConfig.redlimit), barvalue), OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrRed); \ | ||||||
|            if (value > OSDBARWIDTH(femonConfig.redlimit)) \ |            if (barvalue > OSDBARWIDTH(femonConfig.redlimit)) \ | ||||||
|               m_Osd->DrawRectangle(OSDBARWIDTH(femonConfig.redlimit), OSDSTATUSWIN_Y(offset) + 3, min((OSDWIDTH * femonConfig.greenlimit / 100), value), OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrYellow); \ |               m_Osd->DrawRectangle(OSDBARWIDTH(femonConfig.redlimit), OSDSTATUSWIN_Y(offset) + 3, min((OSDWIDTH * femonConfig.greenlimit / 100), barvalue), OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrYellow); \ | ||||||
|            if (value > OSDBARWIDTH(femonConfig.greenlimit)) \ |            if (barvalue > OSDBARWIDTH(femonConfig.greenlimit)) \ | ||||||
|               m_Osd->DrawRectangle(OSDBARWIDTH(femonConfig.greenlimit), OSDSTATUSWIN_Y(offset) + 3, value, OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrGreen); \ |               m_Osd->DrawRectangle(OSDBARWIDTH(femonConfig.greenlimit), OSDSTATUSWIN_Y(offset) + 3, barvalue, OSDSTATUSWIN_Y(offset) + OSDROWHEIGHT - 3, femonTheme[femonConfig.theme].clrGreen); \ | ||||||
|            } |            } | ||||||
|  |  | ||||||
| #define OSDDRAWSTATUSTITLEBAR(title) \ | #define OSDDRAWSTATUSTITLEBAR(title) \ | ||||||
| @@ -136,7 +150,7 @@ cFemonOsd *cFemonOsd::pInstance = NULL; | |||||||
|  |  | ||||||
| cFemonOsd *cFemonOsd::Instance(bool create) | cFemonOsd *cFemonOsd::Instance(bool create) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   if ((pInstance == NULL) && create) |   if ((pInstance == NULL) && create) | ||||||
|   { |   { | ||||||
|      pInstance = new cFemonOsd(); |      pInstance = new cFemonOsd(); | ||||||
| @@ -156,28 +170,48 @@ cFemonOsd::cFemonOsd() | |||||||
|   m_Number(0), |   m_Number(0), | ||||||
|   m_OldNumber(0), |   m_OldNumber(0), | ||||||
|   m_SNR(0), |   m_SNR(0), | ||||||
|  |   m_SNRValid(false), | ||||||
|   m_Signal(0), |   m_Signal(0), | ||||||
|  |   m_SignalValid(false), | ||||||
|   m_BER(0), |   m_BER(0), | ||||||
|  |   m_BERValid(false), | ||||||
|   m_UNC(0), |   m_UNC(0), | ||||||
|  |   m_UNCValid(false), | ||||||
|  |   m_FrontendStatusValid(false), | ||||||
|   m_DisplayMode(femonConfig.displaymode), |   m_DisplayMode(femonConfig.displaymode), | ||||||
|  |   m_OsdWidth(cOsd::OsdWidth() * (100 - femonConfig.downscale) / 100), | ||||||
|  |   m_OsdHeight(cOsd::OsdHeight() * (100 - femonConfig.downscale) / 100), | ||||||
|  |   m_OsdLeft(cOsd::OsdLeft() + (cOsd::OsdWidth() * femonConfig.downscale / 200)), | ||||||
|  |   m_OsdTop(cOsd::OsdTop() + (cOsd::OsdHeight() * femonConfig.downscale / 200)), | ||||||
|   m_InputTime(0), |   m_InputTime(0), | ||||||
|   m_Sleep(), |   m_Sleep(), | ||||||
|   m_Mutex() |   m_Mutex() | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   int tmp; | ||||||
|  |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|  |   memset(&m_FrontendStatus, 0, sizeof(m_FrontendStatus)); | ||||||
|  |   memset(&m_FrontendInfo, 0, sizeof(m_FrontendInfo)); | ||||||
|   m_SvdrpConnection.handle = -1; |   m_SvdrpConnection.handle = -1; | ||||||
|   m_Font = cFont::CreateFont(Setup.FontSml, min(max(Setup.FontSmlSize, MINFONTSIZE), MAXFONTSIZE)); |   m_Font = cFont::CreateFont(Setup.FontSml, min(max(Setup.FontSmlSize, MINFONTSIZE), MAXFONTSIZE)); | ||||||
|   if (!m_Font || !m_Font->Height()) { |   if (!m_Font || !m_Font->Height()) { | ||||||
|      m_Font = new cFemonDummyFont; |      m_Font = new cFemonDummyFont; | ||||||
|      esyslog("ERROR: cFemonOsd::cFemonOsd() cannot create required font."); |      error("cFemonOsd::cFemonOsd() cannot create required font."); | ||||||
|  |      } | ||||||
|  |   tmp = 5 * bmSymbol[SYMBOL_LOCK].Width() + 6 * OSDSPACING; | ||||||
|  |   if (OSDWIDTH < tmp) { | ||||||
|  |      error("cFemonOsd::cFemonOsd() OSD width (%d) smaller than required (%d).", OSDWIDTH, tmp); | ||||||
|  |      OSDWIDTH = tmp; | ||||||
|  |      } | ||||||
|  |   tmp = OSDINFOHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT; | ||||||
|  |   if (OSDHEIGHT < tmp) { | ||||||
|  |      error("cFemonOsd::cFemonOsd() OSD height (%d) smaller than required (%d).", OSDHEIGHT, tmp); | ||||||
|  |      OSDHEIGHT = tmp; | ||||||
|      } |      } | ||||||
|   if (OSDHEIGHT < (OSDINFOHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT)) |  | ||||||
|      OSDHEIGHT = (OSDINFOHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cFemonOsd::~cFemonOsd(void) | cFemonOsd::~cFemonOsd(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   m_Sleep.Signal(); |   m_Sleep.Signal(); | ||||||
|   if (Running()) |   if (Running()) | ||||||
|      Cancel(3); |      Cancel(3); | ||||||
| @@ -205,8 +239,6 @@ void cFemonOsd::DrawStatusWindow(void) | |||||||
| { | { | ||||||
|   cMutexLock lock(&m_Mutex); |   cMutexLock lock(&m_Mutex); | ||||||
|   cBitmap *bm = NULL; |   cBitmap *bm = NULL; | ||||||
|   int snr = m_SNR / 655; |  | ||||||
|   int signal = m_Signal / 655; |  | ||||||
|   int offset = 0; |   int offset = 0; | ||||||
|   int x = OSDWIDTH - OSDROUNDING; |   int x = OSDWIDTH - OSDROUNDING; | ||||||
|   int y = 0; |   int y = 0; | ||||||
| @@ -227,6 +259,7 @@ void cFemonOsd::DrawStatusWindow(void) | |||||||
|        case 5:  bm = &bmSymbol[SYMBOL_FIVE];  break; |        case 5:  bm = &bmSymbol[SYMBOL_FIVE];  break; | ||||||
|        case 6:  bm = &bmSymbol[SYMBOL_SIX];   break; |        case 6:  bm = &bmSymbol[SYMBOL_SIX];   break; | ||||||
|        case 7:  bm = &bmSymbol[SYMBOL_SEVEN]; break; |        case 7:  bm = &bmSymbol[SYMBOL_SEVEN]; break; | ||||||
|  |        case 8:  bm = &bmSymbol[SYMBOL_EIGHT]; break; | ||||||
|        default: bm = &bmSymbol[SYMBOL_ZERO];  break; |        default: bm = &bmSymbol[SYMBOL_ZERO];  break; | ||||||
|        } |        } | ||||||
|      OSDDRAWSTATUSBM(OSDSPACING); |      OSDDRAWSTATUSBM(OSDSPACING); | ||||||
| @@ -241,6 +274,7 @@ void cFemonOsd::DrawStatusWindow(void) | |||||||
|            case 5:  bm = &bmSymbol[SYMBOL_FIVE];  break; |            case 5:  bm = &bmSymbol[SYMBOL_FIVE];  break; | ||||||
|            case 6:  bm = &bmSymbol[SYMBOL_SIX];   break; |            case 6:  bm = &bmSymbol[SYMBOL_SIX];   break; | ||||||
|            case 7:  bm = &bmSymbol[SYMBOL_SEVEN]; break; |            case 7:  bm = &bmSymbol[SYMBOL_SEVEN]; break; | ||||||
|  |            case 8:  bm = &bmSymbol[SYMBOL_EIGHT]; break; | ||||||
|            default: bm = &bmSymbol[SYMBOL_ZERO];  break; |            default: bm = &bmSymbol[SYMBOL_ZERO];  break; | ||||||
|            } |            } | ||||||
|         OSDDRAWSTATUSBM(OSDSPACING); |         OSDDRAWSTATUSBM(OSDSPACING); | ||||||
| @@ -258,6 +292,17 @@ void cFemonOsd::DrawStatusWindow(void) | |||||||
|         OSDDRAWSTATUSBM(OSDSPACING); |         OSDDRAWSTATUSBM(OSDSPACING); | ||||||
|         } |         } | ||||||
|      if (m_Receiver) { |      if (m_Receiver) { | ||||||
|  |         if (IS_OSDRESOLUTION(m_Receiver->VideoVerticalSize(), 1080)) | ||||||
|  |            bm = &bmSymbol[SYMBOL_FORMAT_1080]; | ||||||
|  |         else if (IS_OSDRESOLUTION(m_Receiver->VideoVerticalSize(), 720)) | ||||||
|  |            bm = &bmSymbol[SYMBOL_FORMAT_720]; | ||||||
|  |         else if (IS_OSDRESOLUTION(m_Receiver->VideoVerticalSize(), 576)) | ||||||
|  |            bm = &bmSymbol[SYMBOL_FORMAT_576]; | ||||||
|  |         else if (IS_OSDRESOLUTION(m_Receiver->VideoVerticalSize(), 480)) | ||||||
|  |            bm = &bmSymbol[SYMBOL_FORMAT_480]; | ||||||
|  |         else | ||||||
|  |            bm = NULL; | ||||||
|  |         OSDDRAWSTATUSBM(OSDSPACING); | ||||||
|         switch (m_Receiver->VideoCodec()) { |         switch (m_Receiver->VideoCodec()) { | ||||||
|            case VIDEO_CODEC_MPEG2: bm = &bmSymbol[SYMBOL_MPEG2]; break; |            case VIDEO_CODEC_MPEG2: bm = &bmSymbol[SYMBOL_MPEG2]; break; | ||||||
|            case VIDEO_CODEC_H264:  bm = &bmSymbol[SYMBOL_H264];  break; |            case VIDEO_CODEC_H264:  bm = &bmSymbol[SYMBOL_H264];  break; | ||||||
| @@ -284,24 +329,30 @@ void cFemonOsd::DrawStatusWindow(void) | |||||||
|         OSDDRAWSTATUSBM(OSDSPACING); |         OSDDRAWSTATUSBM(OSDSPACING); | ||||||
|         } |         } | ||||||
|      offset += OSDROWHEIGHT; |      offset += OSDROWHEIGHT; | ||||||
|      OSDDRAWSTATUSBAR(signal); |      if (m_SignalValid) | ||||||
|  |         OSDDRAWSTATUSBAR(m_Signal / 655); | ||||||
|      offset += OSDROWHEIGHT; |      offset += OSDROWHEIGHT; | ||||||
|      OSDDRAWSTATUSBAR(snr); |      if (m_SNRValid) | ||||||
|  |         OSDDRAWSTATUSBAR(m_SNR / 655); | ||||||
|      offset += OSDROWHEIGHT; |      offset += OSDROWHEIGHT; | ||||||
|      OSDDRAWSTATUSVALUES("STR:", *cString::sprintf("%04x", m_Signal), *cString::sprintf("(%2d%%)", m_Signal / 655), "BER:", *cString::sprintf("%08x", m_BER), |      OSDDRAWSTATUSVALUES("STR:", m_SignalValid ? *cString::sprintf("%04x", m_Signal) : "", m_SignalValid ? *cString::sprintf("(%2d%%)", m_Signal / 655) : "", | ||||||
|                          *cString::sprintf("%s:", tr("Video")), *getBitrateMbits(m_Receiver ? m_Receiver->VideoBitrate() : (m_SvdrpFrontend >= 0 ? m_SvdrpVideoBitrate : -1.0))); |                          "BER:", m_BERValid ? *cString::sprintf("%08x", m_BER) : "", *cString::sprintf("%s:", tr("Video")), | ||||||
|  |                          *getBitrateMbits(m_Receiver ? m_Receiver->VideoBitrate() : (m_SvdrpFrontend >= 0 ? m_SvdrpVideoBitrate : -1.0))); | ||||||
|      offset += OSDROWHEIGHT; |      offset += OSDROWHEIGHT; | ||||||
|      OSDDRAWSTATUSVALUES("SNR:", *cString::sprintf("%04x", m_SNR), *cString::sprintf("(%2d%%)", m_SNR / 655), "UNC:", *cString::sprintf("%08x", m_UNC), |      OSDDRAWSTATUSVALUES("SNR:", m_SNRValid ? *cString::sprintf("%04x", m_SNR) : "", m_SNRValid ? *cString::sprintf("(%2d%%)", m_SNR / 655) : "", | ||||||
|  |                          "UNC:", m_UNCValid ? *cString::sprintf("%08x", m_UNC) : "", | ||||||
|                          *cString::sprintf("%s:", (m_Receiver && m_Receiver->AC3Valid() && IS_DOLBY_TRACK(track)) ? tr("AC-3") : tr("Audio")), |                          *cString::sprintf("%s:", (m_Receiver && m_Receiver->AC3Valid() && IS_DOLBY_TRACK(track)) ? tr("AC-3") : tr("Audio")), | ||||||
|                          *getBitrateKbits(m_Receiver ? ((m_Receiver->AC3Valid() && IS_DOLBY_TRACK(track)) ? m_Receiver->AC3Bitrate() : m_Receiver->AudioBitrate()) : (m_SvdrpFrontend >= 0 ? m_SvdrpAudioBitrate : -1.0))); |                          *getBitrateKbits(m_Receiver ? ((m_Receiver->AC3Valid() && IS_DOLBY_TRACK(track)) ? m_Receiver->AC3Bitrate() : m_Receiver->AudioBitrate()) : (m_SvdrpFrontend >= 0 ? m_SvdrpAudioBitrate : -1.0))); | ||||||
|      offset += OSDROWHEIGHT; |      offset += OSDROWHEIGHT; | ||||||
|      x = bmSymbol[SYMBOL_LOCK].Width(); |      x = bmSymbol[SYMBOL_LOCK].Width(); | ||||||
|      y = (OSDROWHEIGHT - bmSymbol[SYMBOL_LOCK].Height()) / 2; |      y = (OSDROWHEIGHT - bmSymbol[SYMBOL_LOCK].Height()) / 2; | ||||||
|      OSDDRAWSTATUSFRONTEND(1, bmSymbol[SYMBOL_LOCK],    FE_HAS_LOCK); |      if (m_FrontendStatusValid) { | ||||||
|      OSDDRAWSTATUSFRONTEND(2, bmSymbol[SYMBOL_SIGNAL],  FE_HAS_SIGNAL); |         OSDDRAWSTATUSFRONTEND(1, bmSymbol[SYMBOL_LOCK],    FE_HAS_LOCK); | ||||||
|      OSDDRAWSTATUSFRONTEND(3, bmSymbol[SYMBOL_CARRIER], FE_HAS_CARRIER); |         OSDDRAWSTATUSFRONTEND(2, bmSymbol[SYMBOL_SIGNAL],  FE_HAS_SIGNAL); | ||||||
|      OSDDRAWSTATUSFRONTEND(4, bmSymbol[SYMBOL_VITERBI], FE_HAS_VITERBI); |         OSDDRAWSTATUSFRONTEND(3, bmSymbol[SYMBOL_CARRIER], FE_HAS_CARRIER); | ||||||
|      OSDDRAWSTATUSFRONTEND(5, bmSymbol[SYMBOL_SYNC],    FE_HAS_SYNC); |         OSDDRAWSTATUSFRONTEND(4, bmSymbol[SYMBOL_VITERBI], FE_HAS_VITERBI); | ||||||
|  |         OSDDRAWSTATUSFRONTEND(5, bmSymbol[SYMBOL_SYNC],    FE_HAS_SYNC); | ||||||
|  |         } | ||||||
|      OSDDRAWSTATUSBOTTOMBAR(); |      OSDDRAWSTATUSBOTTOMBAR(); | ||||||
|      m_Osd->Flush(); |      m_Osd->Flush(); | ||||||
|      } |      } | ||||||
| @@ -315,6 +366,7 @@ void cFemonOsd::DrawInfoWindow(void) | |||||||
|   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); |   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); | ||||||
|  |  | ||||||
|   if (m_Osd && channel) { |   if (m_Osd && channel) { | ||||||
|  |      cDvbTransponderParameters dtp(channel->Parameters()); | ||||||
|      switch (m_DisplayMode) { |      switch (m_DisplayMode) { | ||||||
|        case eFemonModeTransponder: |        case eFemonModeTransponder: | ||||||
|             OSDDRAWINFOTITLEBAR(tr("Transponder Information")); |             OSDDRAWINFOTITLEBAR(tr("Transponder Information")); | ||||||
| @@ -338,16 +390,19 @@ void cFemonOsd::DrawInfoWindow(void) | |||||||
|             offset += OSDROWHEIGHT; |             offset += OSDROWHEIGHT; | ||||||
|             switch (channel->Source() & cSource::st_Mask) { |             switch (channel->Source() & cSource::st_Mask) { | ||||||
|               case cSource::stSat: |               case cSource::stSat: | ||||||
|                    OSDDRAWINFOLINE(*cString::sprintf("DVB-S #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), m_FrontendInfo.name)); |                    OSDDRAWINFOLINE(*cString::sprintf("DVB-S%s #%d - %s", (m_FrontendInfo.caps & 0x10000000) ? "2" : "", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), m_FrontendInfo.name)); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Frequency"),    *getFrequencyMHz(channel->Frequency())); |                    OSDDRAWINFOLEFT( trVDR("Frequency"),    *getFrequencyMHz(channel->Frequency())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Source"),       *cSource::ToString(channel->Source())); |                    OSDDRAWINFORIGHT(trVDR("Source"),       *cSource::ToString(channel->Source())); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Srate"),        *cString::sprintf("%d", channel->Srate())); |                    OSDDRAWINFOLEFT( trVDR("Srate"),        *cString::sprintf("%d", channel->Srate())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Polarization"), *cString::sprintf("%c", toupper(channel->Polarization()))); |                    OSDDRAWINFORIGHT(trVDR("Polarization"), *cString::sprintf("%c", toupper(dtp.Polarization()))); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(channel->Inversion())); |                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(dtp.Inversion())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("CoderateH"),    *getCoderate(channel->CoderateH())); |                    OSDDRAWINFORIGHT(trVDR("CoderateH"),    *getCoderate(dtp.CoderateH())); | ||||||
|  |                    offset += OSDROWHEIGHT; | ||||||
|  |                    OSDDRAWINFOLEFT( trVDR("System"),       *getSystem(dtp.System())); | ||||||
|  |                    OSDDRAWINFORIGHT(trVDR("RollOff"),      *getRollOff(dtp.RollOff())); | ||||||
|                    break; |                    break; | ||||||
|  |  | ||||||
|               case cSource::stCable: |               case cSource::stCable: | ||||||
| @@ -357,26 +412,26 @@ void cFemonOsd::DrawInfoWindow(void) | |||||||
|                    OSDDRAWINFORIGHT(trVDR("Source"),       *cSource::ToString(channel->Source())); |                    OSDDRAWINFORIGHT(trVDR("Source"),       *cSource::ToString(channel->Source())); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Srate"),        *cString::sprintf("%d", channel->Srate())); |                    OSDDRAWINFOLEFT( trVDR("Srate"),        *cString::sprintf("%d", channel->Srate())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Modulation"),   *getModulation(channel->Modulation())); |                    OSDDRAWINFORIGHT(trVDR("Modulation"),   *getModulation(dtp.Modulation())); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(channel->Inversion())); |                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(dtp.Inversion())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("CoderateH"),    *getCoderate(channel->CoderateH())); |                    OSDDRAWINFORIGHT(trVDR("CoderateH"),    *getCoderate(dtp.CoderateH())); | ||||||
|                    break; |                    break; | ||||||
|  |  | ||||||
|               case cSource::stTerr: |               case cSource::stTerr: | ||||||
|                    OSDDRAWINFOLINE(*cString::sprintf("DVB-T #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), m_FrontendInfo.name)); |                    OSDDRAWINFOLINE(*cString::sprintf("DVB-T #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), m_FrontendInfo.name)); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Frequency"),    *getFrequencyMHz(channel->Frequency())); |                    OSDDRAWINFOLEFT( trVDR("Frequency"),    *getFrequencyMHz(channel->Frequency())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Transmission"), *getTransmission(channel->Transmission())); |                    OSDDRAWINFORIGHT(trVDR("Transmission"), *getTransmission(dtp.Transmission())); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Bandwidth"),    *getBandwidth(channel->Bandwidth())); |                    OSDDRAWINFOLEFT( trVDR("Bandwidth"),    *getBandwidth(dtp.Bandwidth())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Modulation"),   *getModulation(channel->Modulation())); |                    OSDDRAWINFORIGHT(trVDR("Modulation"),   *getModulation(dtp.Modulation())); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(channel->Inversion())); |                    OSDDRAWINFOLEFT( trVDR("Inversion"),    *getInversion(dtp.Inversion())); | ||||||
|                    OSDDRAWINFORIGHT(tr   ("Coderate"),     *cString::sprintf("%s (H) %s (L)", *getCoderate(channel->CoderateH()), *getCoderate(channel->CoderateL()))); |                    OSDDRAWINFORIGHT(tr   ("Coderate"),     *cString::sprintf("%s (H) %s (L)", *getCoderate(dtp.CoderateH()), *getCoderate(dtp.CoderateL()))); | ||||||
|                    offset += OSDROWHEIGHT; |                    offset += OSDROWHEIGHT; | ||||||
|                    OSDDRAWINFOLEFT( trVDR("Hierarchy"),    *getHierarchy(channel->Hierarchy())); |                    OSDDRAWINFOLEFT( trVDR("Hierarchy"),    *getHierarchy(dtp.Hierarchy())); | ||||||
|                    OSDDRAWINFORIGHT(trVDR("Guard"),        *getGuard(channel->Guard())); |                    OSDDRAWINFORIGHT(trVDR("Guard"),        *getGuard(dtp.Guard())); | ||||||
|                    break; |                    break; | ||||||
|  |  | ||||||
|               default: |               default: | ||||||
| @@ -434,7 +489,7 @@ void cFemonOsd::DrawInfoWindow(void) | |||||||
|                offset += OSDROWHEIGHT; |                offset += OSDROWHEIGHT; | ||||||
|                OSDDRAWINFOINACTIVE(tr("Dolby Surround Mode"),    *getAC3DolbySurroundMode(m_Receiver->AC3DolbySurroundMode())); |                OSDDRAWINFOINACTIVE(tr("Dolby Surround Mode"),    *getAC3DolbySurroundMode(m_Receiver->AC3DolbySurroundMode())); | ||||||
|                offset += OSDROWHEIGHT; |                offset += OSDROWHEIGHT; | ||||||
|                OSDDRAWINFOINACTIVE(tr("Low Frequency Effects"),  *cString::sprintf("%s", m_Receiver->AC3Lfe() ? tr("on") : tr("off"))); |                OSDDRAWINFOINACTIVE(tr("Low Frequency Effects"),  *cString::sprintf("%s", m_Receiver->AC3Lfe() ? trVDR("on") : trVDR("off"))); | ||||||
|                offset += OSDROWHEIGHT; |                offset += OSDROWHEIGHT; | ||||||
|                OSDDRAWINFOINACTIVE(tr("Dialogue Normalization"), *getAC3DialogLevel(m_Receiver->AC3DialogLevel())); |                OSDDRAWINFOINACTIVE(tr("Dialogue Normalization"), *getAC3DialogLevel(m_Receiver->AC3DialogLevel())); | ||||||
|                } |                } | ||||||
| @@ -451,7 +506,7 @@ void cFemonOsd::DrawInfoWindow(void) | |||||||
|  |  | ||||||
| void cFemonOsd::Action(void) | void cFemonOsd::Action(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   cTimeMs t; |   cTimeMs t; | ||||||
|   SvdrpCommand_v1_0 cmd; |   SvdrpCommand_v1_0 cmd; | ||||||
|   cmd.command = cString::sprintf("PLUG %s INFO\r\n", PLUGIN_NAME_I18N); |   cmd.command = cString::sprintf("PLUG %s INFO\r\n", PLUGIN_NAME_I18N); | ||||||
| @@ -461,36 +516,52 @@ void cFemonOsd::Action(void) | |||||||
|     m_SvdrpVideoBitrate = -1.0; |     m_SvdrpVideoBitrate = -1.0; | ||||||
|     m_SvdrpAudioBitrate = -1.0; |     m_SvdrpAudioBitrate = -1.0; | ||||||
|     if (m_Frontend != -1) { |     if (m_Frontend != -1) { | ||||||
|        CHECK(ioctl(m_Frontend, FE_READ_STATUS, &m_FrontendStatus)); |        m_FrontendStatusValid = (ioctl(m_Frontend, FE_READ_STATUS, &m_FrontendStatus) >= 0); | ||||||
|        CHECK(ioctl(m_Frontend, FE_READ_SIGNAL_STRENGTH, &m_Signal)); |        m_SignalValid = (ioctl(m_Frontend, FE_READ_SIGNAL_STRENGTH, &m_Signal) >= 0); | ||||||
|        CHECK(ioctl(m_Frontend, FE_READ_SNR, &m_SNR)); |        m_SNRValid = (ioctl(m_Frontend, FE_READ_SNR, &m_SNR) >= 0); | ||||||
|        CHECK(ioctl(m_Frontend, FE_READ_BER, &m_BER)); |        m_BERValid = (ioctl(m_Frontend, FE_READ_BER, &m_BER) >= 0); | ||||||
|        CHECK(ioctl(m_Frontend, FE_READ_UNCORRECTED_BLOCKS, &m_UNC)); |        m_UNCValid = (ioctl(m_Frontend, FE_READ_UNCORRECTED_BLOCKS, &m_UNC) >= 0); | ||||||
|        DrawInfoWindow(); |        DrawInfoWindow(); | ||||||
|        DrawStatusWindow(); |        DrawStatusWindow(); | ||||||
|        } |        } | ||||||
|     else if (m_SvdrpConnection.handle >= 0) { |     else if (m_SvdrpConnection.handle >= 0) { | ||||||
|        cmd.handle = m_SvdrpConnection.handle;  |        cmd.handle = m_SvdrpConnection.handle; | ||||||
|        m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); |        m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); | ||||||
|        if (cmd.responseCode == 900) { |        if (cmd.responseCode == 900) { | ||||||
|  |           m_FrontendStatusValid = false; | ||||||
|  |           m_SignalValid = false; | ||||||
|  |           m_SNRValid = false; | ||||||
|  |           m_BERValid = false; | ||||||
|  |           m_UNCValid = false; | ||||||
|           for (cLine *line = cmd.reply.First(); line; line = cmd.reply.Next(line)) { |           for (cLine *line = cmd.reply.First(); line; line = cmd.reply.Next(line)) { | ||||||
|               const char *s = line->Text(); |               const char *s = line->Text(); | ||||||
| 	      if (!strncasecmp(s, "CARD:", 5)) | 	      if (!strncasecmp(s, "CARD:", 5)) | ||||||
|                  m_SvdrpFrontend = (int)strtol(s + 5, NULL, 10); |                  m_SvdrpFrontend = (int)strtol(s + 5, NULL, 10); | ||||||
|               else if (!strncasecmp(s, "TYPE:", 5)) |               else if (!strncasecmp(s, "TYPE:", 5)) | ||||||
|                  m_FrontendInfo.type = (fe_type_t)strtol(s + 5, NULL, 10); |                  m_FrontendInfo.type = (fe_type_t)strtol(s + 5, NULL, 10); | ||||||
|               else if (!strncasecmp(s, "NAME:", 5)) |               else if (!strncasecmp(s, "NAME:", 5)) { | ||||||
|                  strn0cpy(m_FrontendInfo.name, s + 5, sizeof(m_FrontendInfo.name)); |                  strn0cpy(m_FrontendInfo.name, s + 5, sizeof(m_FrontendInfo.name)); | ||||||
|               else if (!strncasecmp(s, "STAT:", 5)) |                  } | ||||||
|  |               else if (!strncasecmp(s, "STAT:", 5)) { | ||||||
|                  m_FrontendStatus = (fe_status_t)strtol(s + 5, NULL, 16); |                  m_FrontendStatus = (fe_status_t)strtol(s + 5, NULL, 16); | ||||||
|               else if (!strncasecmp(s, "SGNL:", 5)) |                  m_FrontendStatusValid = true; | ||||||
|  |                  } | ||||||
|  |               else if (!strncasecmp(s, "SGNL:", 5)) { | ||||||
|                  m_Signal = (uint16_t)strtol(s + 5, NULL, 16); |                  m_Signal = (uint16_t)strtol(s + 5, NULL, 16); | ||||||
|               else if (!strncasecmp(s, "SNRA:", 5)) |                  m_SignalValid = true; | ||||||
|  |                  } | ||||||
|  |               else if (!strncasecmp(s, "SNRA:", 5)) { | ||||||
|                  m_SNR = (uint16_t)strtol(s + 5, NULL, 16); |                  m_SNR = (uint16_t)strtol(s + 5, NULL, 16); | ||||||
|               else if (!strncasecmp(s, "BERA:", 5)) |                  m_SNRValid = true; | ||||||
|  |                  } | ||||||
|  |               else if (!strncasecmp(s, "BERA:", 5)) { | ||||||
|                  m_BER = (uint32_t)strtol(s + 5, NULL, 16); |                  m_BER = (uint32_t)strtol(s + 5, NULL, 16); | ||||||
|               else if (!strncasecmp(s, "UNCB:", 5)) |                  m_BERValid = true; | ||||||
|  |                  } | ||||||
|  |               else if (!strncasecmp(s, "UNCB:", 5)) { | ||||||
|                  m_UNC = (uint32_t)strtol(s + 5, NULL, 16); |                  m_UNC = (uint32_t)strtol(s + 5, NULL, 16); | ||||||
|  |                  m_UNCValid = true; | ||||||
|  |                  } | ||||||
|               else if (!strncasecmp(s, "VIBR:", 5)) |               else if (!strncasecmp(s, "VIBR:", 5)) | ||||||
|                  m_SvdrpVideoBitrate = (double)strtol(s + 5, NULL, 10); |                  m_SvdrpVideoBitrate = (double)strtol(s + 5, NULL, 10); | ||||||
|               else if (!strncasecmp(s, "AUBR:", 5)) |               else if (!strncasecmp(s, "AUBR:", 5)) | ||||||
| @@ -506,17 +577,17 @@ void cFemonOsd::Action(void) | |||||||
|  |  | ||||||
| void cFemonOsd::Show(void) | void cFemonOsd::Show(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   int apid[2] = {0, 0}; |  | ||||||
|   int dpid[2] = {0, 0}; |  | ||||||
|   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); |   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); | ||||||
|   cString dev = cString::sprintf(FRONTEND_DEVICE, cDevice::ActualDevice()->CardIndex(), 0); |   cString dev = cString::sprintf(FRONTEND_DEVICE, cDevice::ActualDevice()->CardIndex(), 0); | ||||||
|   m_Frontend = open(dev, O_RDONLY | O_NONBLOCK); |   m_Frontend = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (m_Frontend >= 0) { |   if (m_Frontend >= 0) { | ||||||
|      if (ioctl(m_Frontend, FE_GET_INFO, &m_FrontendInfo) < 0) { |      if (ioctl(m_Frontend, FE_GET_INFO, &m_FrontendInfo) < 0) { | ||||||
|         esyslog("ERROR: cFemonOsd::Show() cannot read frontend info."); |         if (!femonConfig.usesvdrp) | ||||||
|  |            error("cFemonOsd::Show() cannot read frontend info."); | ||||||
|         close(m_Frontend); |         close(m_Frontend); | ||||||
|         m_Frontend = -1; |         m_Frontend = -1; | ||||||
|  |         memset(&m_FrontendInfo, 0, sizeof(m_FrontendInfo)); | ||||||
|         return; |         return; | ||||||
|         } |         } | ||||||
|      } |      } | ||||||
| @@ -525,11 +596,11 @@ void cFemonOsd::Show(void) | |||||||
|         return; |         return; | ||||||
|      } |      } | ||||||
|   else { |   else { | ||||||
|      esyslog("ERROR: cFemonOsd::Show() cannot open frontend device."); |      error("cFemonOsd::Show() cannot open frontend device."); | ||||||
|      return; |      return; | ||||||
|      } |      } | ||||||
|  |  | ||||||
|   m_Osd = cOsdProvider::NewOsd(((cOsd::OsdWidth() - OSDWIDTH) / 2) + cOsd::OsdLeft() + femonConfig.osdoffset, ((cOsd::OsdHeight() - OSDHEIGHT) / 2) + cOsd::OsdTop()); |   m_Osd = cOsdProvider::NewOsd(m_OsdLeft, m_OsdTop); | ||||||
|   if (m_Osd) { |   if (m_Osd) { | ||||||
|      tArea Areas1[] = { { 0, 0, OSDWIDTH - 1, OSDHEIGHT - 1, 8 } }; |      tArea Areas1[] = { { 0, 0, OSDWIDTH - 1, OSDHEIGHT - 1, 8 } }; | ||||||
|      if (Setup.AntiAlias && m_Osd->CanHandleAreas(Areas1, sizeof(Areas1) / sizeof(tArea)) == oeOk) { |      if (Setup.AntiAlias && m_Osd->CanHandleAreas(Areas1, sizeof(Areas1) / sizeof(tArea)) == oeOk) { | ||||||
| @@ -551,9 +622,7 @@ void cFemonOsd::Show(void) | |||||||
|      if (femonConfig.analyzestream) { |      if (femonConfig.analyzestream) { | ||||||
|         cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); |         cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); | ||||||
|         if (channel) { |         if (channel) { | ||||||
|            IS_AUDIO_TRACK(track) ? apid[0] = channel->Apid(int(track - ttAudioFirst)) : apid[0] = channel->Apid(0); |            m_Receiver = new cFemonReceiver(channel->Vtype(), channel->Vpid(), channel->Apid(IS_AUDIO_TRACK(track) ? int(track - ttAudioFirst) : 0), channel->Dpid(IS_DOLBY_TRACK(track) ? int(track - ttDolbyFirst) : 0)); | ||||||
|            IS_DOLBY_TRACK(track) ? dpid[0] = channel->Dpid(int(track - ttDolbyFirst)) : dpid[0] = channel->Dpid(0); |  | ||||||
|            m_Receiver = new cFemonReceiver(channel->GetChannelID(), channel->Ca(), channel->Vpid(), apid, dpid); |  | ||||||
|            cDevice::ActualDevice()->AttachReceiver(m_Receiver); |            cDevice::ActualDevice()->AttachReceiver(m_Receiver); | ||||||
|            } |            } | ||||||
|         } |         } | ||||||
| @@ -563,9 +632,7 @@ void cFemonOsd::Show(void) | |||||||
|  |  | ||||||
| void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | ||||||
| { | { | ||||||
|   Dprintf("%s(%d,%d)\n", __PRETTY_FUNCTION__, device->DeviceNumber(), channelNumber); |   debug("%s(%d,%d)\n", __PRETTY_FUNCTION__, device->DeviceNumber(), channelNumber); | ||||||
|   int apid[2] = {0, 0}; |  | ||||||
|   int dpid[2] = {0, 0}; |  | ||||||
|   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); |   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); | ||||||
|   if (!device->IsPrimaryDevice() || !channelNumber || cDevice::PrimaryDevice()->CurrentChannel() != channelNumber) |   if (!device->IsPrimaryDevice() || !channelNumber || cDevice::PrimaryDevice()->CurrentChannel() != channelNumber) | ||||||
|      return; |      return; | ||||||
| @@ -574,9 +641,11 @@ void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | |||||||
|   m_Frontend = open(dev, O_RDONLY | O_NONBLOCK); |   m_Frontend = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (m_Frontend >= 0) { |   if (m_Frontend >= 0) { | ||||||
|      if (ioctl(m_Frontend, FE_GET_INFO, &m_FrontendInfo) < 0) { |      if (ioctl(m_Frontend, FE_GET_INFO, &m_FrontendInfo) < 0) { | ||||||
|         esyslog("ERROR: cFemonOsd::ChannelSwitch() cannot read frontend info."); |         if (!femonConfig.usesvdrp) | ||||||
|  |            error("cFemonOsd::ChannelSwitch() cannot read frontend info."); | ||||||
|         close(m_Frontend); |         close(m_Frontend); | ||||||
|         m_Frontend = -1; |         m_Frontend = -1; | ||||||
|  |         memset(&m_FrontendInfo, 0, sizeof(m_FrontendInfo)); | ||||||
|         return; |         return; | ||||||
|         } |         } | ||||||
|      } |      } | ||||||
| @@ -585,7 +654,7 @@ void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | |||||||
|         return; |         return; | ||||||
|      } |      } | ||||||
|   else { |   else { | ||||||
|      esyslog("ERROR: cFemonOsd::ChannelSwitch() cannot open frontend device."); |      error("cFemonOsd::ChannelSwitch() cannot open frontend device."); | ||||||
|      return; |      return; | ||||||
|      } |      } | ||||||
|  |  | ||||||
| @@ -596,9 +665,7 @@ void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | |||||||
|   if (femonConfig.analyzestream) { |   if (femonConfig.analyzestream) { | ||||||
|      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); |      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); | ||||||
|      if (channel) { |      if (channel) { | ||||||
|         IS_AUDIO_TRACK(track) ? apid[0] = channel->Apid(int(track - ttAudioFirst)) : apid[0] = channel->Apid(0); |         m_Receiver = new cFemonReceiver(channel->Vtype(), channel->Vpid(), channel->Apid(IS_AUDIO_TRACK(track) ? int(track - ttAudioFirst) : 0), channel->Dpid(IS_DOLBY_TRACK(track) ? int(track - ttDolbyFirst) : 0)); | ||||||
|         IS_DOLBY_TRACK(track) ? dpid[0] = channel->Dpid(int(track - ttDolbyFirst)) : dpid[0] = channel->Dpid(0); |  | ||||||
|         m_Receiver = new cFemonReceiver(channel->GetChannelID(), channel->Ca(), channel->Vpid(), apid, dpid); |  | ||||||
|         cDevice::ActualDevice()->AttachReceiver(m_Receiver); |         cDevice::ActualDevice()->AttachReceiver(m_Receiver); | ||||||
|         } |         } | ||||||
|      } |      } | ||||||
| @@ -606,9 +673,7 @@ void cFemonOsd::ChannelSwitch(const cDevice * device, int channelNumber) | |||||||
|  |  | ||||||
| void cFemonOsd::SetAudioTrack(int Index, const char * const *Tracks) | void cFemonOsd::SetAudioTrack(int Index, const char * const *Tracks) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   int apid[2] = {0, 0}; |  | ||||||
|   int dpid[2] = {0, 0}; |  | ||||||
|   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); |   eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack(); | ||||||
|   if (m_Receiver) { |   if (m_Receiver) { | ||||||
|      m_Receiver->Deactivate(); |      m_Receiver->Deactivate(); | ||||||
| @@ -617,9 +682,7 @@ void cFemonOsd::SetAudioTrack(int Index, const char * const *Tracks) | |||||||
|   if (femonConfig.analyzestream) { |   if (femonConfig.analyzestream) { | ||||||
|      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); |      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); | ||||||
|      if (channel) { |      if (channel) { | ||||||
|         IS_AUDIO_TRACK(track) ? apid[0] = channel->Apid(int(track - ttAudioFirst)) : apid[0] = channel->Apid(0); |         m_Receiver = new cFemonReceiver(channel->Vtype(), channel->Vpid(), channel->Apid(IS_AUDIO_TRACK(track) ? int(track - ttAudioFirst) : 0), channel->Dpid(IS_DOLBY_TRACK(track) ? int(track - ttDolbyFirst) : 0)); | ||||||
|         IS_DOLBY_TRACK(track) ? dpid[0] = channel->Dpid(int(track - ttDolbyFirst)) : dpid[0] = channel->Dpid(0); |  | ||||||
|         m_Receiver = new cFemonReceiver(channel->GetChannelID(), channel->Ca(), channel->Vpid(), apid, dpid); |  | ||||||
|         cDevice::ActualDevice()->AttachReceiver(m_Receiver); |         cDevice::ActualDevice()->AttachReceiver(m_Receiver); | ||||||
|         } |         } | ||||||
|      } |      } | ||||||
| @@ -627,14 +690,14 @@ void cFemonOsd::SetAudioTrack(int Index, const char * const *Tracks) | |||||||
|  |  | ||||||
| bool cFemonOsd::DeviceSwitch(int direction) | bool cFemonOsd::DeviceSwitch(int direction) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   int device = cDevice::ActualDevice()->DeviceNumber(); |   int device = cDevice::ActualDevice()->DeviceNumber(); | ||||||
|   direction = sgn(direction); |   direction = sgn(direction); | ||||||
|   if (device >= 0) { |   if (device >= 0) { | ||||||
|      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); |      cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); | ||||||
|      if (channel) { |      if (channel) { | ||||||
|         for (int i = 0; i < cDevice::NumDevices() - 1; i++) { |         for (int i = 0; i < cDevice::NumDevices() - 1; i++) { | ||||||
|            if (direction) { |            if (direction >= 0) { | ||||||
|               if (++device >= cDevice::NumDevices()) |               if (++device >= cDevice::NumDevices()) | ||||||
|                  device = 0; |                  device = 0; | ||||||
|               } |               } | ||||||
| @@ -643,13 +706,13 @@ bool cFemonOsd::DeviceSwitch(int direction) | |||||||
|                  device = cDevice::NumDevices() - 1; |                  device = cDevice::NumDevices() - 1; | ||||||
|               } |               } | ||||||
|            if (cDevice::GetDevice(device)->ProvidesChannel(channel, 0)) { |            if (cDevice::GetDevice(device)->ProvidesChannel(channel, 0)) { | ||||||
|               Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, direction, device); |               debug("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, direction, device); | ||||||
|               cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0); |               cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0); | ||||||
|               cControl::Shutdown(); |               cControl::Shutdown(); | ||||||
|               cDevice::GetDevice(device)->SwitchChannel(channel, true); |               cDevice::GetDevice(device)->SwitchChannel(channel, true); | ||||||
|               if (cDevice::GetDevice(device) == cDevice::PrimaryDevice()) |               if (cDevice::GetDevice(device) == cDevice::PrimaryDevice()) | ||||||
|                  cDevice::GetDevice(device)->ForceTransferMode(); |                  cDevice::GetDevice(device)->ForceTransferMode(); | ||||||
|               cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel->GetChannelID(), channel->Vpid(), channel->Apids(), channel->Dpids(), channel->Spids())); |               cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel)); | ||||||
|               cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number()); |               cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number()); | ||||||
|               return (true); |               return (true); | ||||||
|               } |               } | ||||||
| @@ -670,19 +733,19 @@ bool cFemonOsd::SvdrpConnect(void) | |||||||
|          m_SvdrpPlugin->Service("SvdrpConnection-v1.0", &m_SvdrpConnection); |          m_SvdrpPlugin->Service("SvdrpConnection-v1.0", &m_SvdrpConnection); | ||||||
|          if (m_SvdrpConnection.handle >= 0) { |          if (m_SvdrpConnection.handle >= 0) { | ||||||
|             SvdrpCommand_v1_0 cmd; |             SvdrpCommand_v1_0 cmd; | ||||||
|             cmd.handle = m_SvdrpConnection.handle;  |             cmd.handle = m_SvdrpConnection.handle; | ||||||
|             cmd.command = cString::sprintf("PLUG %s\r\n", PLUGIN_NAME_I18N); |             cmd.command = cString::sprintf("PLUG %s\r\n", PLUGIN_NAME_I18N); | ||||||
|             m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); |             m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); | ||||||
|             if (cmd.responseCode != 214) { |             if (cmd.responseCode != 214) { | ||||||
|                m_SvdrpPlugin->Service("SvdrpConnection-v1.0", &m_SvdrpConnection); // close connection |                m_SvdrpPlugin->Service("SvdrpConnection-v1.0", &m_SvdrpConnection); // close connection | ||||||
|                esyslog("ERROR: cFemonOsd::SvdrpConnect() cannot find plugin '%s' on server %s.", PLUGIN_NAME_I18N, *m_SvdrpConnection.serverIp); |                error("cFemonOsd::SvdrpConnect() cannot find plugin '%s' on server %s.", PLUGIN_NAME_I18N, *m_SvdrpConnection.serverIp); | ||||||
|                } |                } | ||||||
|             } |             } | ||||||
|          else |          else | ||||||
|             esyslog("ERROR: cFemonOsd::SvdrpConnect() cannot connect to SVDRP server."); |             error("cFemonOsd::SvdrpConnect() cannot connect to SVDRP server."); | ||||||
|          } |          } | ||||||
|       else |       else | ||||||
|          esyslog("ERROR: cFemonOsd::SvdrpConnect() cannot find plugin '%s'.", SVDRPPLUGIN); |          error("cFemonOsd::SvdrpConnect() cannot find plugin '%s'.", SVDRPPLUGIN); | ||||||
|       } |       } | ||||||
|    return m_SvdrpConnection.handle >= 0; |    return m_SvdrpConnection.handle >= 0; | ||||||
| } | } | ||||||
| @@ -693,24 +756,24 @@ bool cFemonOsd::SvdrpTune(void) | |||||||
|       cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); |       cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel()); | ||||||
|       if (channel) { |       if (channel) { | ||||||
|          SvdrpCommand_v1_0 cmd; |          SvdrpCommand_v1_0 cmd; | ||||||
|          cmd.handle = m_SvdrpConnection.handle;  |          cmd.handle = m_SvdrpConnection.handle; | ||||||
|          cmd.command = cString::sprintf("CHAN %s\r\n", *channel->GetChannelID().ToString()); |          cmd.command = cString::sprintf("CHAN %s\r\n", *channel->GetChannelID().ToString()); | ||||||
|          m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); |          m_SvdrpPlugin->Service("SvdrpCommand-v1.0", &cmd); | ||||||
|          if (cmd.responseCode == 250) |          if (cmd.responseCode == 250) | ||||||
|             return true; |             return true; | ||||||
|          esyslog("ERROR: cFemonOsd::SvdrpTune() cannot tune server channel."); |          error("cFemonOsd::SvdrpTune() cannot tune server channel."); | ||||||
|          } |          } | ||||||
|       else |       else | ||||||
|          esyslog("ERROR: cFemonOsd::SvdrpTune() invalid channel."); |          error("cFemonOsd::SvdrpTune() invalid channel."); | ||||||
|       } |       } | ||||||
|    else |    else | ||||||
|       esyslog("ERROR: cFemonOsd::SvdrpTune() unexpected connection state."); |       error("cFemonOsd::SvdrpTune() unexpected connection state."); | ||||||
|    return false; |    return false; | ||||||
| } | } | ||||||
|  |  | ||||||
| double cFemonOsd::GetVideoBitrate(void) | double cFemonOsd::GetVideoBitrate(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   double value = 0.0; |   double value = 0.0; | ||||||
|  |  | ||||||
|   if (m_Receiver) |   if (m_Receiver) | ||||||
| @@ -721,7 +784,7 @@ double cFemonOsd::GetVideoBitrate(void) | |||||||
|  |  | ||||||
| double cFemonOsd::GetAudioBitrate(void) | double cFemonOsd::GetAudioBitrate(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   double value = 0.0; |   double value = 0.0; | ||||||
|  |  | ||||||
|   if (m_Receiver) |   if (m_Receiver) | ||||||
| @@ -732,7 +795,7 @@ double cFemonOsd::GetAudioBitrate(void) | |||||||
|  |  | ||||||
| double cFemonOsd::GetDolbyBitrate(void) | double cFemonOsd::GetDolbyBitrate(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   double value = 0.0; |   double value = 0.0; | ||||||
|  |  | ||||||
|   if (m_Receiver) |   if (m_Receiver) | ||||||
| @@ -742,7 +805,7 @@ double cFemonOsd::GetDolbyBitrate(void) | |||||||
| } | } | ||||||
|  |  | ||||||
| eOSState cFemonOsd::ProcessKey(eKeys Key) | eOSState cFemonOsd::ProcessKey(eKeys Key) | ||||||
| {  | { | ||||||
|   eOSState state = cOsdObject::ProcessKey(Key); |   eOSState state = cOsdObject::ProcessKey(Key); | ||||||
|   if (state == osUnknown) { |   if (state == osUnknown) { | ||||||
|      switch (Key) { |      switch (Key) { | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								femonosd.h
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								femonosd.h
									
									
									
									
									
								
							| @@ -34,15 +34,24 @@ private: | |||||||
|   double            m_SvdrpAudioBitrate; |   double            m_SvdrpAudioBitrate; | ||||||
|   SvdrpConnection_v1_0 m_SvdrpConnection; |   SvdrpConnection_v1_0 m_SvdrpConnection; | ||||||
|   cPlugin          *m_SvdrpPlugin; |   cPlugin          *m_SvdrpPlugin; | ||||||
|   dvb_frontend_info m_FrontendInfo; |  | ||||||
|   int               m_Number; |   int               m_Number; | ||||||
|   int               m_OldNumber; |   int               m_OldNumber; | ||||||
|   uint16_t          m_SNR; |   uint16_t          m_SNR; | ||||||
|  |   bool              m_SNRValid; | ||||||
|   uint16_t          m_Signal; |   uint16_t          m_Signal; | ||||||
|  |   bool              m_SignalValid; | ||||||
|   uint32_t          m_BER; |   uint32_t          m_BER; | ||||||
|  |   bool              m_BERValid; | ||||||
|   uint32_t          m_UNC; |   uint32_t          m_UNC; | ||||||
|  |   bool              m_UNCValid; | ||||||
|   fe_status_t       m_FrontendStatus; |   fe_status_t       m_FrontendStatus; | ||||||
|  |   bool              m_FrontendStatusValid; | ||||||
|  |   dvb_frontend_info m_FrontendInfo; | ||||||
|   int               m_DisplayMode; |   int               m_DisplayMode; | ||||||
|  |   int               m_OsdWidth; | ||||||
|  |   int               m_OsdHeight; | ||||||
|  |   int               m_OsdLeft; | ||||||
|  |   int               m_OsdTop; | ||||||
|   cFont            *m_Font; |   cFont            *m_Font; | ||||||
|   cTimeMs           m_InputTime; |   cTimeMs           m_InputTime; | ||||||
|   cCondWait         m_Sleep; |   cCondWait         m_Sleep; | ||||||
|   | |||||||
							
								
								
									
										316
									
								
								femonreceiver.c
									
									
									
									
									
								
							
							
						
						
									
										316
									
								
								femonreceiver.c
									
									
									
									
									
								
							| @@ -8,40 +8,44 @@ | |||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| #include "femontools.h" | #include "femontools.h" | ||||||
| #include "femoncfg.h" | #include "femoncfg.h" | ||||||
| #include "femonmpeg.h" |  | ||||||
| #include "femonaac.h" |  | ||||||
| #include "femonac3.h" |  | ||||||
| #include "femonh264.h" |  | ||||||
| #include "femonreceiver.h" | #include "femonreceiver.h" | ||||||
|  |  | ||||||
| #define TS_SIZE       188 | cFemonReceiver::cFemonReceiver(int Vtype, int Vpid, int Apid, int Dpid) | ||||||
| #define PAY_START     0x40 | : cThread("femon receiver"), | ||||||
| #define ADAPT_FIELD   0x20 |   m_Mutex(), | ||||||
| #define PAYLOAD       0x10 |  | ||||||
| #define PTS_DTS_FLAGS 0xC0 |  | ||||||
|  |  | ||||||
| cFemonReceiver::cFemonReceiver(tChannelID ChannelID, int Ca, int Vpid, int Apid[], int Dpid[]) |  | ||||||
| : cReceiver(ChannelID, -1, Vpid, Apid, Dpid, NULL), |  | ||||||
|   cThread("femon receiver"), |  | ||||||
|   m_Sleep(), |   m_Sleep(), | ||||||
|   m_Active(false), |   m_Active(false), | ||||||
|  |   m_DetectH264(this), | ||||||
|  |   m_DetectMPEG(this, this), | ||||||
|  |   m_DetectAAC(this), | ||||||
|  |   m_DetectLATM(this), | ||||||
|  |   m_DetectAC3(this), | ||||||
|  |   m_VideoBuffer(KILOBYTE(512), TS_SIZE, false, "Femon video"), | ||||||
|  |   m_VideoType(Vtype), | ||||||
|   m_VideoPid(Vpid), |   m_VideoPid(Vpid), | ||||||
|   m_VideoPacketCount(0), |   m_VideoPacketCount(0), | ||||||
|   m_VideoBitrate(0.0), |   m_VideoBitrate(0.0), | ||||||
|   m_VideoValid(false), |   m_VideoValid(false), | ||||||
|   m_VideoInfoBufferIndex(0), |   m_AudioBuffer(KILOBYTE(256), TS_SIZE, false, "Femon audio"), | ||||||
|   m_AudioPid(Apid[0]), |   m_AudioPid(Apid), | ||||||
|   m_AudioPacketCount(0), |   m_AudioPacketCount(0), | ||||||
|   m_AudioBitrate(0.0), |   m_AudioBitrate(0.0), | ||||||
|   m_AudioValid(false), |   m_AudioValid(false), | ||||||
|   m_AudioInfoBufferIndex(0), |   m_AC3Buffer(KILOBYTE(256), TS_SIZE, false, "Femon AC3"), | ||||||
|   m_AC3Pid(Dpid[0]), |   m_AC3Pid(Dpid), | ||||||
|   m_AC3PacketCount(0),  |   m_AC3PacketCount(0), | ||||||
|   m_AC3Bitrate(0), |   m_AC3Bitrate(0), | ||||||
|   m_AC3Valid(false), |   m_AC3Valid(false) | ||||||
|   m_AC3InfoBufferIndex(0) |  | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|  |  | ||||||
|  |   AddPid(m_VideoPid); | ||||||
|  |   AddPid(m_AudioPid); | ||||||
|  |   AddPid(m_AC3Pid); | ||||||
|  |  | ||||||
|  |   m_VideoBuffer.SetTimeouts(0, 100); | ||||||
|  |   m_AudioBuffer.SetTimeouts(0, 100); | ||||||
|  |   m_AC3Buffer.SetTimeouts(0, 100); | ||||||
|  |  | ||||||
|   m_VideoInfo.codec = VIDEO_CODEC_INVALID; |   m_VideoInfo.codec = VIDEO_CODEC_INVALID; | ||||||
|   m_VideoInfo.format = VIDEO_FORMAT_INVALID; |   m_VideoInfo.format = VIDEO_FORMAT_INVALID; | ||||||
| @@ -51,16 +55,10 @@ cFemonReceiver::cFemonReceiver(tChannelID ChannelID, int Ca, int Vpid, int Apid[ | |||||||
|   m_VideoInfo.height = 0; |   m_VideoInfo.height = 0; | ||||||
|   m_VideoInfo.frameRate = 0; |   m_VideoInfo.frameRate = 0; | ||||||
|   m_VideoInfo.bitrate = AUDIO_BITRATE_INVALID; |   m_VideoInfo.bitrate = AUDIO_BITRATE_INVALID; | ||||||
|   for (unsigned int i = 0; i < ELEMENTS(m_VideoInfoBuffer); ++i) |  | ||||||
|       memcpy(&m_VideoInfoBuffer[i], &m_VideoInfo, sizeof(video_info_t)); |  | ||||||
|  |  | ||||||
|   m_AudioInfo.codec = AUDIO_CODEC_UNKNOWN; |   m_AudioInfo.codec = AUDIO_CODEC_UNKNOWN; | ||||||
|   m_AudioInfo.bitrate = AUDIO_BITRATE_INVALID; |   m_AudioInfo.bitrate = AUDIO_BITRATE_INVALID; | ||||||
|   m_AudioInfo.samplingFrequency = AUDIO_SAMPLING_FREQUENCY_INVALID; |   m_AudioInfo.samplingFrequency = AUDIO_SAMPLING_FREQUENCY_INVALID; | ||||||
|   m_AudioInfo.channelMode = AUDIO_CHANNEL_MODE_INVALID; |   m_AudioInfo.channelMode = AUDIO_CHANNEL_MODE_INVALID; | ||||||
|   for (unsigned int i = 0; i < ELEMENTS(m_AudioInfoBuffer); ++i) |  | ||||||
|       memcpy(&m_AudioInfoBuffer[i], &m_AudioInfo, sizeof(audio_info_t)); |  | ||||||
|  |  | ||||||
|   m_AC3Info.bitrate = AUDIO_BITRATE_INVALID; |   m_AC3Info.bitrate = AUDIO_BITRATE_INVALID; | ||||||
|   m_AC3Info.samplingFrequency = AUDIO_SAMPLING_FREQUENCY_INVALID; |   m_AC3Info.samplingFrequency = AUDIO_SAMPLING_FREQUENCY_INVALID; | ||||||
|   m_AC3Info.bitstreamMode = AUDIO_BITSTREAM_MODE_INVALID; |   m_AC3Info.bitstreamMode = AUDIO_BITSTREAM_MODE_INVALID; | ||||||
| @@ -70,19 +68,17 @@ cFemonReceiver::cFemonReceiver(tChannelID ChannelID, int Ca, int Vpid, int Apid[ | |||||||
|   m_AC3Info.surroundMixLevel = AUDIO_SURROUND_MIX_LEVEL_INVALID; |   m_AC3Info.surroundMixLevel = AUDIO_SURROUND_MIX_LEVEL_INVALID; | ||||||
|   m_AC3Info.dialogLevel = 0; |   m_AC3Info.dialogLevel = 0; | ||||||
|   m_AC3Info.lfe = false; |   m_AC3Info.lfe = false; | ||||||
|   for (unsigned int i = 0; i < ELEMENTS(m_AC3InfoBuffer); ++i) |  | ||||||
|       memcpy(&m_AC3InfoBuffer[i], &m_AC3Info, sizeof(ac3_info_t)); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cFemonReceiver::~cFemonReceiver(void) | cFemonReceiver::~cFemonReceiver(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   Deactivate(); |   Deactivate(); | ||||||
| } | } | ||||||
|  |  | ||||||
| void cFemonReceiver::Deactivate(void) | void cFemonReceiver::Deactivate(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   if (m_Active) { |   if (m_Active) { | ||||||
|      m_Active = false; |      m_Active = false; | ||||||
|      m_Sleep.Signal(); |      m_Sleep.Signal(); | ||||||
| @@ -92,87 +88,9 @@ void cFemonReceiver::Deactivate(void) | |||||||
|      } |      } | ||||||
| } | } | ||||||
|  |  | ||||||
| void cFemonReceiver::GetVideoInfo(uint8_t *buf, int len) |  | ||||||
| { |  | ||||||
|   int c = 0; |  | ||||||
|  |  | ||||||
|   while (c < len) { |  | ||||||
|     video_info_t tmp; |  | ||||||
|     uint8_t *b = buf + c; |  | ||||||
|     if (getMPEGVideoInfo(b, len - c, &tmp) || getH264VideoInfo(b, len - c, &tmp)) { |  | ||||||
|        bool coherent = true; |  | ||||||
|        memcpy(&m_VideoInfoBuffer[m_VideoInfoBufferIndex], &tmp, sizeof(video_info_t)); |  | ||||||
|        m_VideoInfoBufferIndex = (m_VideoInfoBufferIndex + 1) % ELEMENTS(m_VideoInfoBuffer); |  | ||||||
|        for (unsigned int i = 1; i < ELEMENTS(m_VideoInfoBuffer); ++i) { |  | ||||||
|            if (memcmp(&m_VideoInfoBuffer[0], &m_VideoInfoBuffer[i], sizeof(video_info_t))) |  | ||||||
|               coherent = false; |  | ||||||
|               break; |  | ||||||
|            } |  | ||||||
|        if (!m_VideoValid || coherent) { |  | ||||||
|           m_VideoValid = true; |  | ||||||
|           memcpy(&m_VideoInfo, &m_VideoInfoBuffer[0], sizeof(video_info_t)); |  | ||||||
|           } |  | ||||||
|        return; |  | ||||||
|        } |  | ||||||
|     c++; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| void cFemonReceiver::GetAudioInfo(uint8_t *buf, int len) |  | ||||||
| { |  | ||||||
|   int c = 0; |  | ||||||
|  |  | ||||||
|   while (c < len) { |  | ||||||
|     audio_info_t tmp; |  | ||||||
|     uint8_t *b = buf + c; |  | ||||||
|     if (getAACAudioInfo(b, len - c, &tmp) || getMPEGAudioInfo(b, len - c, &tmp)) { |  | ||||||
|        bool coherent = true; |  | ||||||
|        memcpy(&m_AudioInfoBuffer[m_AudioInfoBufferIndex], &tmp, sizeof(audio_info_t)); |  | ||||||
|        m_AudioInfoBufferIndex = (m_AudioInfoBufferIndex + 1) % ELEMENTS(m_AudioInfoBuffer); |  | ||||||
|        for (unsigned int i = 1; i < ELEMENTS(m_AudioInfoBuffer); ++i) { |  | ||||||
|            if (memcmp(&m_AudioInfoBuffer[0], &m_AudioInfoBuffer[i], sizeof(audio_info_t))) |  | ||||||
|               coherent = false; |  | ||||||
|               break; |  | ||||||
|            } |  | ||||||
|        if (!m_AudioValid || coherent) { |  | ||||||
|           m_AudioValid = true; |  | ||||||
|           memcpy(&m_AudioInfo, &m_AudioInfoBuffer[0], sizeof(audio_info_t)); |  | ||||||
|           } |  | ||||||
|        return; |  | ||||||
|        } |  | ||||||
|     c++; |  | ||||||
|     }	 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| void cFemonReceiver::GetAC3Info(uint8_t *buf, int len) |  | ||||||
| { |  | ||||||
|   int c = 0; |  | ||||||
|  |  | ||||||
|   while (c < len) { |  | ||||||
|     ac3_info_t tmp; |  | ||||||
|     uint8_t *b = buf + c; |  | ||||||
|     if (getAC3AudioInfo(b, len - c, &tmp)) { |  | ||||||
|        bool coherent = true; |  | ||||||
|        memcpy(&m_AC3InfoBuffer[m_AC3InfoBufferIndex], &tmp, sizeof(ac3_info_t)); |  | ||||||
|        m_AC3InfoBufferIndex = (m_AC3InfoBufferIndex + 1) % ELEMENTS(m_AC3InfoBuffer); |  | ||||||
|        for (unsigned int i = 1; i < ELEMENTS(m_AC3InfoBuffer); ++i) { |  | ||||||
|            if (memcmp(&m_AC3InfoBuffer[0], &m_AC3InfoBuffer[i], sizeof(ac3_info_t))) |  | ||||||
|               coherent = false; |  | ||||||
|               break; |  | ||||||
|            } |  | ||||||
|        if (!m_AC3Valid || coherent) { |  | ||||||
|           m_AC3Valid = true; |  | ||||||
|           memcpy(&m_AC3Info, &m_AC3InfoBuffer[0], sizeof(ac3_info_t)); |  | ||||||
|           }    |  | ||||||
|        return; |  | ||||||
|        } |  | ||||||
|     c++; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| void cFemonReceiver::Activate(bool On) | void cFemonReceiver::Activate(bool On) | ||||||
| { | { | ||||||
|   Dprintf("%s(%d)\n", __PRETTY_FUNCTION__, On); |   debug("%s(%d)\n", __PRETTY_FUNCTION__, On); | ||||||
|   if (On) |   if (On) | ||||||
|      Start(); |      Start(); | ||||||
|   else |   else | ||||||
| @@ -182,59 +100,149 @@ void cFemonReceiver::Activate(bool On) | |||||||
| void cFemonReceiver::Receive(uchar *Data, int Length) | void cFemonReceiver::Receive(uchar *Data, int Length) | ||||||
| { | { | ||||||
|   // TS packet length: TS_SIZE |   // TS packet length: TS_SIZE | ||||||
|   if (Length == TS_SIZE) { |   if (Running() && (*Data == TS_SYNC_BYTE) && (Length == TS_SIZE)) { | ||||||
|      int pid = ((Data[1] & 0x1f) << 8) | (Data[2]); |      int len, pid = TsPid(Data); | ||||||
|      if (pid == m_VideoPid) { |      if (pid == m_VideoPid) { | ||||||
|         m_VideoPacketCount++; |         ++m_VideoPacketCount; | ||||||
|         } |         len = m_VideoBuffer.Put(Data, Length); | ||||||
|      else if (pid == m_AudioPid) { |         if (len != Length) { | ||||||
|         m_AudioPacketCount++; |            m_VideoBuffer.ReportOverflow(Length - len); | ||||||
|         } |            m_VideoBuffer.Clear(); | ||||||
|      else if (pid == m_AC3Pid) { |            } | ||||||
|         m_AC3PacketCount++; |         } | ||||||
|         } |      else if (pid == m_AudioPid) { | ||||||
|      /* the following originates from libdvbmpeg: */ |         ++m_AudioPacketCount; | ||||||
|      if (!(Data[3] & PAYLOAD)) { |         len = m_AudioBuffer.Put(Data, Length); | ||||||
|         return; |         if (len != Length) { | ||||||
|         } |            m_AudioBuffer.ReportOverflow(Length - len); | ||||||
|      uint8_t off = 0; |            m_AudioBuffer.Clear(); | ||||||
|      if (Data[3] & ADAPT_FIELD) { |            } | ||||||
|         off = (uint8_t)(Data[4] + 1); |         } | ||||||
|         } |      else if (pid == m_AC3Pid) { | ||||||
|      if (Data[1] & PAY_START) { |         ++m_AC3PacketCount; | ||||||
|         uint8_t *sb = Data + 4 + off; |         len = m_AC3Buffer.Put(Data, Length); | ||||||
|         if (sb[7] & PTS_DTS_FLAGS) { |         if (len != Length) { | ||||||
|            uint8_t *pay = sb + sb[8] + 9;  |            m_AC3Buffer.ReportOverflow(Length - len); | ||||||
|            int l = TS_SIZE - 13 - off - sb[8]; |            m_AC3Buffer.Clear(); | ||||||
|            if (pid == m_VideoPid) { |  | ||||||
|               GetVideoInfo(pay, l); |  | ||||||
|               } |  | ||||||
|            else if (pid == m_AudioPid) { |  | ||||||
|               GetAudioInfo(pay, l); |  | ||||||
|               } |  | ||||||
|            else if (pid == m_AC3Pid) { |  | ||||||
|               GetAC3Info(pay, l); |  | ||||||
|               } |  | ||||||
|            } |            } | ||||||
|         } |         } | ||||||
|      /* end */ |  | ||||||
|      } |      } | ||||||
| } | } | ||||||
|  |  | ||||||
| void cFemonReceiver::Action(void) | void cFemonReceiver::Action(void) | ||||||
| { | { | ||||||
|   Dprintf("%s()\n", __PRETTY_FUNCTION__); |   debug("%s()\n", __PRETTY_FUNCTION__); | ||||||
|   cTimeMs t; |   cTimeMs calcPeriod(0); | ||||||
|   m_Active = true; |   m_Active = true; | ||||||
|  |  | ||||||
|   while (Running() && m_Active) { |   while (Running() && m_Active) { | ||||||
|         t.Set(0); |     uint8_t *Data; | ||||||
|         // TS packet 188 bytes - 4 byte header; MPEG standard defines 1Mbit = 1000000bit |     double timeout; | ||||||
|         m_VideoBitrate = (10.0 * 8.0 * 184.0 * m_VideoPacketCount) / femonConfig.calcinterval; |     int len, Length; | ||||||
|         m_VideoPacketCount = 0; |     bool processed = false; | ||||||
|         m_AudioBitrate = (10.0 * 8.0 * 184.0 * m_AudioPacketCount) / femonConfig.calcinterval; |  | ||||||
|         m_AudioPacketCount = 0; |     // process available video data | ||||||
|         m_AC3Bitrate   = (10.0 * 8.0 * 184.0 * m_AC3PacketCount)   / femonConfig.calcinterval; |     while (Data = m_VideoBuffer.Get(Length)) { | ||||||
|         m_AC3PacketCount = 0; |       if (!m_Active || (Length < TS_SIZE)) | ||||||
|         m_Sleep.Wait(max((int)(100 * femonConfig.calcinterval - t.Elapsed()), 3)); |          break; | ||||||
|  |       Length = TS_SIZE; | ||||||
|  |       if (*Data != TS_SYNC_BYTE) { | ||||||
|  |          for (int i = 1; i < Length; ++i) { | ||||||
|  |              if (Data[i] == TS_SYNC_BYTE) { | ||||||
|  |                 Length = i; | ||||||
|  |                 break; | ||||||
|  |                 } | ||||||
|  |              } | ||||||
|  |          m_VideoBuffer.Del(Length); | ||||||
|  |          continue; | ||||||
|  |          } | ||||||
|  |       processed = true; | ||||||
|  |       if (TsPayloadStart(Data)) { | ||||||
|  |          while (const uint8_t *p = m_VideoAssembler.GetPes(len)) { | ||||||
|  |            if (m_VideoType == 0x1B) { // MPEG4 | ||||||
|  |               if (m_DetectH264.processVideo(p, len)) { | ||||||
|  |                  m_VideoValid = true; | ||||||
|  |                  break; | ||||||
|  |                  } | ||||||
|  |               } | ||||||
|  |            else { | ||||||
|  |               if (m_DetectMPEG.processVideo(p, len)) { | ||||||
|  |                  m_VideoValid = true; | ||||||
|  |                  break; | ||||||
|  |                  } | ||||||
|  |               } | ||||||
|  |            } | ||||||
|  |          m_VideoAssembler.Reset(); | ||||||
|  |          } | ||||||
|  |       m_VideoAssembler.PutTs(Data, Length); | ||||||
|  |       m_VideoBuffer.Del(Length); | ||||||
|  |       } | ||||||
|  |  | ||||||
|  |     // process available audio data | ||||||
|  |     while (Data = m_AudioBuffer.Get(Length)) { | ||||||
|  |       if (!m_Active || (Length < TS_SIZE)) | ||||||
|  |          break; | ||||||
|  |       Length = TS_SIZE; | ||||||
|  |       if (*Data != TS_SYNC_BYTE) { | ||||||
|  |          for (int i = 1; i < Length; ++i) { | ||||||
|  |              if (Data[i] == TS_SYNC_BYTE) { | ||||||
|  |                 Length = i; | ||||||
|  |                 break; | ||||||
|  |                 } | ||||||
|  |              } | ||||||
|  |          m_AudioBuffer.Del(Length); | ||||||
|  |          continue; | ||||||
|  |          } | ||||||
|  |       processed = true; | ||||||
|  |       if (const uint8_t *p = m_AudioAssembler.GetPes(len)) { | ||||||
|  |          if (m_DetectAAC.processAudio(p, len) || m_DetectLATM.processAudio(p, len) || m_DetectMPEG.processAudio(p, len)) | ||||||
|  |             m_AudioValid = true; | ||||||
|  |          m_AudioAssembler.Reset(); | ||||||
|  |          } | ||||||
|  |       m_AudioAssembler.PutTs(Data, Length); | ||||||
|  |       m_AudioBuffer.Del(Length); | ||||||
|  |       } | ||||||
|  |  | ||||||
|  |     // process available dolby data | ||||||
|  |     while (Data = m_AC3Buffer.Get(Length)) { | ||||||
|  |       if (!m_Active || (Length < TS_SIZE)) | ||||||
|  |          break; | ||||||
|  |       Length = TS_SIZE; | ||||||
|  |       if (*Data != TS_SYNC_BYTE) { | ||||||
|  |          for (int i = 1; i < Length; ++i) { | ||||||
|  |              if (Data[i] == TS_SYNC_BYTE) { | ||||||
|  |                 Length = i; | ||||||
|  |                 break; | ||||||
|  |                 } | ||||||
|  |              } | ||||||
|  |          m_AC3Buffer.Del(Length); | ||||||
|  |          continue; | ||||||
|  |          } | ||||||
|  |       processed = true; | ||||||
|  |       if (const uint8_t *p = m_AC3Assembler.GetPes(len)) { | ||||||
|  |          if (m_DetectAC3.processAudio(p, len)) | ||||||
|  |             m_AC3Valid = true; | ||||||
|  |          m_AC3Assembler.Reset(); | ||||||
|  |          } | ||||||
|  |       m_AC3Assembler.PutTs(Data, Length); | ||||||
|  |       m_AC3Buffer.Del(Length); | ||||||
|  |       } | ||||||
|  |  | ||||||
|  |     // calculate bitrates | ||||||
|  |     timeout = double(calcPeriod.Elapsed()); | ||||||
|  |     if (m_Active && (timeout >= (100.0 * femonConfig.calcinterval))) { | ||||||
|  |        // TS packet 188 bytes - 4 byte header; MPEG standard defines 1Mbit = 1000000bit | ||||||
|  |        // PES headers should be compensated! | ||||||
|  |        m_VideoBitrate     = (1000.0 * 8.0 * 184.0 * m_VideoPacketCount) / timeout; | ||||||
|  |        m_VideoPacketCount = 0; | ||||||
|  |        m_AudioBitrate     = (1000.0 * 8.0 * 184.0 * m_AudioPacketCount) / timeout; | ||||||
|  |        m_AudioPacketCount = 0; | ||||||
|  |        m_AC3Bitrate       = (1000.0 * 8.0 * 184.0 * m_AC3PacketCount)   / timeout; | ||||||
|  |        m_AC3PacketCount   = 0; | ||||||
|  |        calcPeriod.Set(0); | ||||||
|  |        } | ||||||
|  |  | ||||||
|  |     if (!processed) | ||||||
|  |        m_Sleep.Wait(10); // to avoid busy loop and reduce cpu load | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										198
									
								
								femonreceiver.h
									
									
									
									
									
								
							
							
						
						
									
										198
									
								
								femonreceiver.h
									
									
									
									
									
								
							| @@ -11,41 +11,51 @@ | |||||||
| #include <vdr/thread.h> | #include <vdr/thread.h> | ||||||
| #include <vdr/receiver.h> | #include <vdr/receiver.h> | ||||||
|  |  | ||||||
|  | #include "femonh264.h" | ||||||
|  | #include "femonmpeg.h" | ||||||
|  | #include "femonaac.h" | ||||||
|  | #include "femonlatm.h" | ||||||
|  | #include "femonac3.h" | ||||||
| #include "femonaudio.h" | #include "femonaudio.h" | ||||||
| #include "femonvideo.h" | #include "femonvideo.h" | ||||||
|  | #include "femontools.h" | ||||||
|  |  | ||||||
| class cFemonReceiver : public cReceiver, public cThread { | class cFemonReceiver : public cReceiver, public cThread, public cFemonVideoIf, public cFemonAudioIf, public cFemonAC3If { | ||||||
| private: | private: | ||||||
|   cCondWait     m_Sleep; |   cMutex            m_Mutex; | ||||||
|   bool          m_Active; |   cCondWait         m_Sleep; | ||||||
|  |   bool              m_Active; | ||||||
|  |  | ||||||
|   int           m_VideoPid; |   cFemonH264        m_DetectH264; | ||||||
|   int           m_VideoPacketCount; |   cFemonMPEG        m_DetectMPEG; | ||||||
|   double        m_VideoBitrate; |   cFemonAAC         m_DetectAAC; | ||||||
|   bool          m_VideoValid; |   cFemonLATM        m_DetectLATM; | ||||||
|   video_info_t  m_VideoInfo; |   cFemonAC3         m_DetectAC3; | ||||||
|   video_info_t  m_VideoInfoBuffer[3]; |  | ||||||
|   unsigned int  m_VideoInfoBufferIndex; |  | ||||||
|  |  | ||||||
|   int           m_AudioPid; |   cRingBufferLinear m_VideoBuffer; | ||||||
|   int           m_AudioPacketCount; |   cTsToPes          m_VideoAssembler; | ||||||
|   double        m_AudioBitrate; |   int               m_VideoType; | ||||||
|   bool          m_AudioValid; |   int               m_VideoPid; | ||||||
|   audio_info_t  m_AudioInfo; |   int               m_VideoPacketCount; | ||||||
|   audio_info_t  m_AudioInfoBuffer[3]; |   double            m_VideoBitrate; | ||||||
|   unsigned int  m_AudioInfoBufferIndex; |   bool              m_VideoValid; | ||||||
|  |   video_info_t      m_VideoInfo; | ||||||
|  |  | ||||||
|   int           m_AC3Pid; |   cRingBufferLinear m_AudioBuffer; | ||||||
|   int           m_AC3PacketCount; |   cTsToPes          m_AudioAssembler; | ||||||
|   double        m_AC3Bitrate; |   int               m_AudioPid; | ||||||
|   bool          m_AC3Valid; |   int               m_AudioPacketCount; | ||||||
|   ac3_info_t    m_AC3Info; |   double            m_AudioBitrate; | ||||||
|   ac3_info_t    m_AC3InfoBuffer[3]; |   bool              m_AudioValid; | ||||||
|   unsigned int  m_AC3InfoBufferIndex; |   audio_info_t      m_AudioInfo; | ||||||
|  |  | ||||||
|   void          GetVideoInfo(uint8_t *buf, int len); |   cRingBufferLinear m_AC3Buffer; | ||||||
|   void          GetAudioInfo(uint8_t *buf, int len); |   cTsToPes          m_AC3Assembler; | ||||||
|   void          GetAC3Info(uint8_t *buf, int len); |   int               m_AC3Pid; | ||||||
|  |   int               m_AC3PacketCount; | ||||||
|  |   double            m_AC3Bitrate; | ||||||
|  |   bool              m_AC3Valid; | ||||||
|  |   ac3_info_t        m_AC3Info; | ||||||
|  |  | ||||||
| protected: | protected: | ||||||
|   virtual void Activate(bool On); |   virtual void Activate(bool On); | ||||||
| @@ -53,41 +63,115 @@ protected: | |||||||
|   virtual void Action(void); |   virtual void Action(void); | ||||||
|  |  | ||||||
| public: | public: | ||||||
|   cFemonReceiver(tChannelID ChannelID, int Ca, int Vpid, int Apid[], int Dpid[]); |   virtual void SetVideoCodec(eVideoCodec codec)                   { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.codec = codec; } | ||||||
|  |   virtual void SetVideoFormat(eVideoFormat format)                { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.format = format; } | ||||||
|  |   virtual void SetVideoScan(eVideoScan scan)                      { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.scan = scan; } | ||||||
|  |   virtual void SetVideoAspectRatio(eVideoAspectRatio aspectratio) { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.aspectRatio = aspectratio; } | ||||||
|  |   virtual void SetVideoSize(int width, int height)                { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.width  = width; | ||||||
|  |                                                                     m_VideoInfo.height = height; } | ||||||
|  |   virtual void SetVideoFramerate(double framerate)                { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.frameRate = framerate; } | ||||||
|  |   virtual void SetVideoBitrate(double bitrate)                    { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                                     m_VideoInfo.bitrate = bitrate; } | ||||||
|  |  | ||||||
|  |   virtual void SetAudioCodec(eAudioCodec codec)        { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                          m_AudioInfo.codec = codec; } | ||||||
|  |   virtual void SetAudioBitrate(double bitrate)         { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                          m_AudioInfo.bitrate = bitrate; } | ||||||
|  |   virtual void SetAudioSamplingFrequency(int sampling) { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                          m_AudioInfo.samplingFrequency = sampling; } | ||||||
|  |   virtual void SetAudioChannel(eAudioChannelMode mode) { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                          m_AudioInfo.channelMode = mode; } | ||||||
|  |  | ||||||
|  |   virtual void SetAC3Bitrate(int bitrate)            { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.bitrate = bitrate; } | ||||||
|  |   virtual void SetAC3SamplingFrequency(int sampling) { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.samplingFrequency = sampling; } | ||||||
|  |   virtual void SetAC3Bitstream(int mode)             { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.bitstreamMode = mode; } | ||||||
|  |   virtual void SetAC3AudioCoding(int mode)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.audioCodingMode = mode; } | ||||||
|  |   virtual void SetAC3DolbySurround(int mode)         { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.dolbySurroundMode = mode; } | ||||||
|  |   virtual void SetAC3CenterMix(int level)            { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.centerMixLevel = level; } | ||||||
|  |   virtual void SetAC3SurroundMix(int level)          { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.surroundMixLevel = level; } | ||||||
|  |   virtual void SetAC3Dialog(int level)               { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.dialogLevel = level; } | ||||||
|  |   virtual void SetAC3LFE(bool onoff)                 { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                                        m_AC3Info.lfe = onoff; } | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cFemonReceiver(int Vtype, int Vpid, int Apid, int Dpid); | ||||||
|   virtual ~cFemonReceiver(); |   virtual ~cFemonReceiver(); | ||||||
|   void Deactivate(void); |   void Deactivate(void); | ||||||
|  |  | ||||||
|   bool   VideoValid(void)           { return m_VideoValid; };                  // boolean |   bool   VideoValid(void)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|   double VideoBitrate(void)         { return m_VideoBitrate; };                // bit/s |                                       return m_VideoValid; };                  // boolean | ||||||
|   int    VideoCodec(void)           { return m_VideoInfo.codec; };             // eVideoCodec |   double VideoBitrate(void)         { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    VideoFormat(void)          { return m_VideoInfo.format; };            // eVideoFormat |                                       return m_VideoBitrate; };                // bit/s | ||||||
|   int    VideoScan(void)            { return m_VideoInfo.scan; };              // eVideoScan |   int    VideoCodec(void)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    VideoAspectRatio(void)     { return m_VideoInfo.aspectRatio; };       // eVideoAspectRatio |                                       return m_VideoInfo.codec; };             // eVideoCodec | ||||||
|   int    VideoHorizontalSize(void)  { return m_VideoInfo.width; };             // pixels |   int    VideoFormat(void)          { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    VideoVerticalSize(void)    { return m_VideoInfo.height; };            // pixels |                                       return m_VideoInfo.format; };            // eVideoFormat | ||||||
|   double VideoFrameRate(void)       { return m_VideoInfo.frameRate; };         // Hz |   int    VideoScan(void)            { cMutexLock MutexLock(&m_Mutex); | ||||||
|   double VideoStreamBitrate(void)   { return m_VideoInfo.bitrate; };           // bit/s |                                       return m_VideoInfo.scan; };              // eVideoScan | ||||||
|  |   int    VideoAspectRatio(void)     { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_VideoInfo.aspectRatio; };       // eVideoAspectRatio | ||||||
|  |   int    VideoHorizontalSize(void)  { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_VideoInfo.width; };             // pixels | ||||||
|  |   int    VideoVerticalSize(void)    { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_VideoInfo.height; };            // pixels | ||||||
|  |   double VideoFrameRate(void)       { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_VideoInfo.frameRate; };         // Hz | ||||||
|  |   double VideoStreamBitrate(void)   { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_VideoInfo.bitrate; };           // bit/s | ||||||
|  |  | ||||||
|   bool   AudioValid(void)           { return m_AudioValid; };                  // boolean |   bool   AudioValid(void)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|   double AudioBitrate(void)         { return m_AudioBitrate; };                // bit/s |                                       return m_AudioValid; };                  // boolean | ||||||
|   int    AudioCodec(void)           { return m_AudioInfo.codec; };             // eAudioCodec |   double AudioBitrate(void)         { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AudioChannelMode(void)     { return m_AudioInfo.channelMode; };       // eAudioChannelMode |                                       return m_AudioBitrate; };                // bit/s | ||||||
|   double AudioStreamBitrate(void)   { return m_AudioInfo.bitrate; };           // bit/s or eAudioBitrate |   int    AudioCodec(void)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AudioSamplingFreq(void)    { return m_AudioInfo.samplingFrequency; }; // Hz or eAudioSamplingFrequency |                                       return m_AudioInfo.codec; };             // eAudioCodec | ||||||
|  |   int    AudioChannelMode(void)     { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AudioInfo.channelMode; };       // eAudioChannelMode | ||||||
|  |   double AudioStreamBitrate(void)   { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AudioInfo.bitrate; };           // bit/s or eAudioBitrate | ||||||
|  |   int    AudioSamplingFreq(void)    { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AudioInfo.samplingFrequency; }; // Hz or eAudioSamplingFrequency | ||||||
|  |  | ||||||
|   bool   AC3Valid(void)             { return m_AC3Valid; };                    // boolean |   bool   AC3Valid(void)             { cMutexLock MutexLock(&m_Mutex); | ||||||
|   double AC3Bitrate(void)           { return m_AC3Bitrate; };                  // bit/s |                                       return m_AC3Valid; };                    // boolean | ||||||
|   double AC3StreamBitrate(void)     { return m_AC3Info.bitrate; };             // bit/s or eAudioBitrate |   double AC3Bitrate(void)           { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AC3SamplingFreq(void)      { return m_AC3Info.samplingFrequency; };   // Hz or eAudioSamplingFrequency |                                       return m_AC3Bitrate; };                  // bit/s | ||||||
|   int    AC3BitStreamMode(void)     { return m_AC3Info.bitstreamMode; };       // 0..7 or eAudioBitstreamMode |   double AC3StreamBitrate(void)     { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AC3AudioCodingMode(void)   { return m_AC3Info.audioCodingMode; };     // 0..7 or eAudioCodingMode |                                       return m_AC3Info.bitrate; };             // bit/s or eAudioBitrate | ||||||
|   bool   AC3_2_0(void)              { return m_AC3Info.audioCodingMode == AUDIO_CODING_MODE_2_0; }; // boolean |   int    AC3SamplingFreq(void)      { cMutexLock MutexLock(&m_Mutex); | ||||||
|   bool   AC3_5_1(void)	            { return m_AC3Info.audioCodingMode == AUDIO_CODING_MODE_3_2; }; // boolean |                                       return m_AC3Info.samplingFrequency; };   // Hz or eAudioSamplingFrequency | ||||||
|   int    AC3DolbySurroundMode(void) { return m_AC3Info.dolbySurroundMode; };   // eAudioDolbySurroundMode |   int    AC3BitStreamMode(void)     { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AC3CenterMixLevel(void)    { return m_AC3Info.centerMixLevel; };      // eAudioCenterMixLevel |                                       return m_AC3Info.bitstreamMode; };       // 0..7 or eAudioBitstreamMode | ||||||
|   int    AC3SurroundMixLevel(void)  { return m_AC3Info.surroundMixLevel; };    // eAudioSurroundMixLevel |   int    AC3AudioCodingMode(void)   { cMutexLock MutexLock(&m_Mutex); | ||||||
|   int    AC3DialogLevel(void)       { return m_AC3Info.dialogLevel; };         // -dB |                                       return m_AC3Info.audioCodingMode; };     // 0..7 or eAudioCodingMode | ||||||
|   bool   AC3Lfe(void)               { return m_AC3Info.lfe; };                 // boolean |   bool   AC3_2_0(void)              { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return (m_AC3Info.audioCodingMode == AUDIO_CODING_MODE_2_0); }; // boolean | ||||||
|  |   bool   AC3_5_1(void)	            { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return (m_AC3Info.audioCodingMode == AUDIO_CODING_MODE_3_2); }; // boolean | ||||||
|  |   int    AC3DolbySurroundMode(void) { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AC3Info.dolbySurroundMode; };   // eAudioDolbySurroundMode | ||||||
|  |   int    AC3CenterMixLevel(void)    { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AC3Info.centerMixLevel; };      // eAudioCenterMixLevel | ||||||
|  |   int    AC3SurroundMixLevel(void)  { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AC3Info.surroundMixLevel; };    // eAudioSurroundMixLevel | ||||||
|  |   int    AC3DialogLevel(void)       { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AC3Info.dialogLevel; };         // -dB | ||||||
|  |   bool   AC3Lfe(void)               { cMutexLock MutexLock(&m_Mutex); | ||||||
|  |                                       return m_AC3Info.lfe; };                 // boolean | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONRECEIVER_H | #endif //__FEMONRECEIVER_H | ||||||
|   | |||||||
| @@ -37,6 +37,11 @@ | |||||||
| #include "symbols/five.xpm" | #include "symbols/five.xpm" | ||||||
| #include "symbols/six.xpm" | #include "symbols/six.xpm" | ||||||
| #include "symbols/seven.xpm" | #include "symbols/seven.xpm" | ||||||
|  | #include "symbols/eight.xpm" | ||||||
|  | #include "symbols/format1080.xpm" | ||||||
|  | #include "symbols/format720.xpm" | ||||||
|  | #include "symbols/format576.xpm" | ||||||
|  | #include "symbols/format480.xpm" | ||||||
|  |  | ||||||
| cBitmap bmSymbol[SYMBOL_MAX_COUNT] = | cBitmap bmSymbol[SYMBOL_MAX_COUNT] = | ||||||
| { | { | ||||||
| @@ -69,5 +74,10 @@ cBitmap bmSymbol[SYMBOL_MAX_COUNT] = | |||||||
|   cBitmap(four_xpm),           // SYMBOL_FOUR |   cBitmap(four_xpm),           // SYMBOL_FOUR | ||||||
|   cBitmap(five_xpm),           // SYMBOL_FIVE |   cBitmap(five_xpm),           // SYMBOL_FIVE | ||||||
|   cBitmap(six_xpm),            // SYMBOL_SIX |   cBitmap(six_xpm),            // SYMBOL_SIX | ||||||
|   cBitmap(seven_xpm)           // SYMBOL_SEVEN |   cBitmap(seven_xpm),          // SYMBOL_SEVEN | ||||||
|  |   cBitmap(eight_xpm),          // SYMBOL_EIGHT | ||||||
|  |   cBitmap(format1080_xpm),     // SYMBOL_FORMAT_1080 | ||||||
|  |   cBitmap(format720_xpm),      // SYMBOL_FORMAT_720 | ||||||
|  |   cBitmap(format576_xpm),      // SYMBOL_FORMAT_576 | ||||||
|  |   cBitmap(format480_xpm)       // SYMBOL_FORMAT_480 | ||||||
| }; | }; | ||||||
|   | |||||||
| @@ -41,6 +41,11 @@ enum eSymbols { | |||||||
|   SYMBOL_FIVE, |   SYMBOL_FIVE, | ||||||
|   SYMBOL_SIX, |   SYMBOL_SIX, | ||||||
|   SYMBOL_SEVEN, |   SYMBOL_SEVEN, | ||||||
|  |   SYMBOL_EIGHT, | ||||||
|  |   SYMBOL_FORMAT_1080, | ||||||
|  |   SYMBOL_FORMAT_720, | ||||||
|  |   SYMBOL_FORMAT_576, | ||||||
|  |   SYMBOL_FORMAT_480, | ||||||
|   SYMBOL_MAX_COUNT |   SYMBOL_MAX_COUNT | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										222
									
								
								femontools.c
									
									
									
									
									
								
							
							
						
						
									
										222
									
								
								femontools.c
									
									
									
									
									
								
							| @@ -5,6 +5,11 @@ | |||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | #ifndef __STDC_FORMAT_MACROS | ||||||
|  | #define __STDC_FORMAT_MACROS | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #include <stdint.h> | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| #include <sys/ioctl.h> | #include <sys/ioctl.h> | ||||||
| @@ -60,6 +65,17 @@ static cString getCA(int value) | |||||||
|   return cString::sprintf("%X", value); |   return cString::sprintf("%X", value); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | static const char *getUserString(int Value, const tDvbParameterMap *Map) | ||||||
|  | { | ||||||
|  |   const tDvbParameterMap *map = Map; | ||||||
|  |   while (map && map->userValue != -1) { | ||||||
|  |         if (map->driverValue == Value) | ||||||
|  |            return map->userString ? trVDR(map->userString) : "---"; | ||||||
|  |         map++; | ||||||
|  |         } | ||||||
|  |   return "---"; | ||||||
|  | } | ||||||
|  |  | ||||||
| cString getFrontendInfo(int cardIndex) | cString getFrontendInfo(int cardIndex) | ||||||
| { | { | ||||||
|   cString info; |   cString info; | ||||||
| @@ -75,15 +91,22 @@ cString getFrontendInfo(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return NULL; |      return NULL; | ||||||
|   CHECK(ioctl(fe, FE_GET_INFO, &value)); |  | ||||||
|   CHECK(ioctl(fe, FE_READ_STATUS, &status)); |  | ||||||
|   CHECK(ioctl(fe, FE_READ_SIGNAL_STRENGTH, &signal)); |  | ||||||
|   CHECK(ioctl(fe, FE_READ_SNR, &snr)); |  | ||||||
|   CHECK(ioctl(fe, FE_READ_BER, &ber)); |  | ||||||
|   CHECK(ioctl(fe, FE_READ_UNCORRECTED_BLOCKS, &unc)); |  | ||||||
|   close(fe); |  | ||||||
|  |  | ||||||
|   info = cString::sprintf("CARD:%d\nTYPE:%d\nNAME:%s\nSTAT:%02X\nSGNL:%04X\nSNRA:%04X\nBERA:%08X\nUNCB:%08X", cardIndex, value.type, value.name, status, signal, snr, ber, unc); |   info = cString::sprintf("CARD:%d", cardIndex); | ||||||
|  |  | ||||||
|  |   if (ioctl(fe, FE_GET_INFO, &value) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nTYPE:%d\nNAME:%s", *info, value.type, value.name); | ||||||
|  |   if (ioctl(fe, FE_READ_STATUS, &status) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nSTAT:%02X", *info, status); | ||||||
|  |   if (ioctl(fe, FE_READ_SIGNAL_STRENGTH, &signal) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nSGNL:%04X", *info, signal); | ||||||
|  |   if (ioctl(fe, FE_READ_SNR, &snr) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nSNRA:%04X", *info, snr); | ||||||
|  |   if (ioctl(fe, FE_READ_BER, &ber) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nBERA:%08X", *info, ber); | ||||||
|  |   if (ioctl(fe, FE_READ_UNCORRECTED_BLOCKS, &unc) >= 0) | ||||||
|  |      info = cString::sprintf("%s\nUNCB:%08X", *info, unc); | ||||||
|  |   close(fe); | ||||||
|  |  | ||||||
|   if (cFemonOsd::Instance()) |   if (cFemonOsd::Instance()) | ||||||
|      info = cString::sprintf("%s\nVIBR:%.0f\nAUBR:%.0f\nDDBR:%.0f", *info, cFemonOsd::Instance()->GetVideoBitrate(), cFemonOsd::Instance()->GetAudioBitrate(), cFemonOsd::Instance()->GetDolbyBitrate()); |      info = cString::sprintf("%s\nVIBR:%.0f\nAUBR:%.0f\nDDBR:%.0f", *info, cFemonOsd::Instance()->GetVideoBitrate(), cFemonOsd::Instance()->GetAudioBitrate(), cFemonOsd::Instance()->GetDolbyBitrate()); | ||||||
| @@ -102,7 +125,8 @@ cString getFrontendName(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return NULL; |      return NULL; | ||||||
|   CHECK(ioctl(fe, FE_GET_INFO, &value)); |   memset(&value, 0, sizeof(value)); | ||||||
|  |   ioctl(fe, FE_GET_INFO, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (cString::sprintf("%s on device #%d", value.name, cardIndex)); |   return (cString::sprintf("%s on device #%d", value.name, cardIndex)); | ||||||
| @@ -116,7 +140,8 @@ cString getFrontendStatus(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return NULL; |      return NULL; | ||||||
|   CHECK(ioctl(fe, FE_READ_STATUS, &value)); |   memset(&value, 0, sizeof(value)); | ||||||
|  |   ioctl(fe, FE_READ_STATUS, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (cString::sprintf("Status %s:%s:%s:%s:%s on device #%d", (value & FE_HAS_LOCK) ? "LOCKED" : "-", (value & FE_HAS_SIGNAL) ? "SIGNAL" : "-", (value & FE_HAS_CARRIER) ? "CARRIER" : "-", (value & FE_HAS_VITERBI) ? "VITERBI" : "-", (value & FE_HAS_SYNC) ? "SYNC" : "-", cardIndex)); |   return (cString::sprintf("Status %s:%s:%s:%s:%s on device #%d", (value & FE_HAS_LOCK) ? "LOCKED" : "-", (value & FE_HAS_SIGNAL) ? "SIGNAL" : "-", (value & FE_HAS_CARRIER) ? "CARRIER" : "-", (value & FE_HAS_VITERBI) ? "VITERBI" : "-", (value & FE_HAS_SYNC) ? "SYNC" : "-", cardIndex)); | ||||||
| @@ -130,7 +155,7 @@ uint16_t getSignal(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return (value); |      return (value); | ||||||
|   CHECK(ioctl(fe, FE_READ_SIGNAL_STRENGTH, &value)); |   ioctl(fe, FE_READ_SIGNAL_STRENGTH, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (value); |   return (value); | ||||||
| @@ -144,7 +169,7 @@ uint16_t getSNR(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return (value); |      return (value); | ||||||
|   CHECK(ioctl(fe, FE_READ_SNR, &value)); |   ioctl(fe, FE_READ_SNR, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (value); |   return (value); | ||||||
| @@ -158,7 +183,7 @@ uint32_t getBER(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return (value); |      return (value); | ||||||
|   CHECK(ioctl(fe, FE_READ_BER, &value)); |   ioctl(fe, FE_READ_BER, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (value); |   return (value); | ||||||
| @@ -172,7 +197,7 @@ uint32_t getUNC(int cardIndex) | |||||||
|   int fe = open(dev, O_RDONLY | O_NONBLOCK); |   int fe = open(dev, O_RDONLY | O_NONBLOCK); | ||||||
|   if (fe < 0) |   if (fe < 0) | ||||||
|      return (value); |      return (value); | ||||||
|   CHECK(ioctl(fe, FE_READ_UNCORRECTED_BLOCKS, &value)); |   ioctl(fe, FE_READ_UNCORRECTED_BLOCKS, &value); | ||||||
|   close(fe); |   close(fe); | ||||||
|  |  | ||||||
|   return (value); |   return (value); | ||||||
| @@ -269,6 +294,7 @@ cString getAudioCodec(int value) | |||||||
|     case AUDIO_CODEC_MPEG2_II:  return cString::sprintf("%s", tr("MPEG-2 Layer II")); |     case AUDIO_CODEC_MPEG2_II:  return cString::sprintf("%s", tr("MPEG-2 Layer II")); | ||||||
|     case AUDIO_CODEC_MPEG2_III: return cString::sprintf("%s", tr("MPEG-2 Layer III")); |     case AUDIO_CODEC_MPEG2_III: return cString::sprintf("%s", tr("MPEG-2 Layer III")); | ||||||
|     case AUDIO_CODEC_HEAAC:     return cString::sprintf("%s", tr("HE-AAC")); |     case AUDIO_CODEC_HEAAC:     return cString::sprintf("%s", tr("HE-AAC")); | ||||||
|  |     case AUDIO_CODEC_LATM:      return cString::sprintf("%s", tr("LATM")); | ||||||
|     default:                    break; |     default:                    break; | ||||||
|     } |     } | ||||||
|   return cString::sprintf("---"); |   return cString::sprintf("---"); | ||||||
| @@ -288,95 +314,47 @@ cString getAudioChannelMode(int value) | |||||||
|  |  | ||||||
| cString getCoderate(int value) | cString getCoderate(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, CoderateValues)); | ||||||
|     case FEC_NONE: return cString::sprintf("%s", trVDR("none")); |  | ||||||
|     case FEC_1_2:  return cString::sprintf("1/2"); |  | ||||||
|     case FEC_2_3:  return cString::sprintf("2/3"); |  | ||||||
|     case FEC_3_4:  return cString::sprintf("3/4"); |  | ||||||
|     case FEC_4_5:  return cString::sprintf("4/5"); |  | ||||||
|     case FEC_5_6:  return cString::sprintf("5/6"); |  | ||||||
|     case FEC_6_7:  return cString::sprintf("6/7"); |  | ||||||
|     case FEC_7_8:  return cString::sprintf("7/8"); |  | ||||||
|     case FEC_8_9:  return cString::sprintf("8/9"); |  | ||||||
|     case FEC_AUTO: return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:       break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getTransmission(int value) | cString getTransmission(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, TransmissionValues)); | ||||||
|     case TRANSMISSION_MODE_2K:   return cString::sprintf("2K"); |  | ||||||
|     case TRANSMISSION_MODE_8K:   return cString::sprintf("8K"); |  | ||||||
|     case TRANSMISSION_MODE_AUTO: return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:                     break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|   |  | ||||||
| cString getBandwidth(int value) | cString getBandwidth(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, BandwidthValues)); | ||||||
|     case BANDWIDTH_8_MHZ: return cString::sprintf("8 %s", tr("MHz")); |  | ||||||
|     case BANDWIDTH_7_MHZ: return cString::sprintf("7 %s", tr("MHz")); |  | ||||||
|     case BANDWIDTH_6_MHZ: return cString::sprintf("6 %s", tr("MHz")); |  | ||||||
|     case BANDWIDTH_AUTO:  return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:              break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getInversion(int value) | cString getInversion(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, InversionValues)); | ||||||
|     case INVERSION_OFF:  return cString::sprintf("%s", tr("off")); |  | ||||||
|     case INVERSION_ON:   return cString::sprintf("%s", tr("on")); |  | ||||||
|     case INVERSION_AUTO: return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:             break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getHierarchy(int value) | cString getHierarchy(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, HierarchyValues)); | ||||||
|     case HIERARCHY_NONE: return cString::sprintf("%s", trVDR("none")); |  | ||||||
|     case HIERARCHY_1:    return cString::sprintf("1"); |  | ||||||
|     case HIERARCHY_2:    return cString::sprintf("2"); |  | ||||||
|     case HIERARCHY_4:    return cString::sprintf("4"); |  | ||||||
|     case HIERARCHY_AUTO: return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:             break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getGuard(int value) | cString getGuard(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, GuardValues)); | ||||||
|     case GUARD_INTERVAL_1_32: return cString::sprintf("1/32"); |  | ||||||
|     case GUARD_INTERVAL_1_16: return cString::sprintf("1/16"); |  | ||||||
|     case GUARD_INTERVAL_1_8:  return cString::sprintf("1/8"); |  | ||||||
|     case GUARD_INTERVAL_1_4:  return cString::sprintf("1/4"); |  | ||||||
|     case GUARD_INTERVAL_AUTO: return cString::sprintf("%s", trVDR("auto")); |  | ||||||
|     default:                  break; |  | ||||||
|     } |  | ||||||
|   return cString::sprintf("---"); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getModulation(int value) | cString getModulation(int value) | ||||||
| { | { | ||||||
|   switch (value) { |   return cString::sprintf("%s", getUserString(value, ModulationValues)); | ||||||
|     case QPSK:     return cString::sprintf("QPSK"); | } | ||||||
|     case QAM_16:   return cString::sprintf("QAM 16"); |  | ||||||
|     case QAM_32:   return cString::sprintf("QAM 32"); | cString getSystem(int value) | ||||||
|     case QAM_64:   return cString::sprintf("QAM 64"); | { | ||||||
|     case QAM_128:  return cString::sprintf("QAM 128"); |   return cString::sprintf("%s", getUserString(value, SystemValues)); | ||||||
|     case QAM_256:  return cString::sprintf("QAM 256"); | } | ||||||
|     case QAM_AUTO: return cString::sprintf("QAM %s", trVDR("auto")); |  | ||||||
|     default:       break; | cString getRollOff(int value) | ||||||
|     } | { | ||||||
|   return cString::sprintf("---"); |   return cString::sprintf("%s", getUserString(value, RollOffValues)); | ||||||
| } | } | ||||||
|  |  | ||||||
| cString getResolution(int width, int height, int scan) | cString getResolution(int width, int height, int scan) | ||||||
| @@ -559,7 +537,89 @@ cString getBitrateMbits(double value) | |||||||
|  |  | ||||||
| cString getBitrateKbits(double value) | cString getBitrateKbits(double value) | ||||||
| { | { | ||||||
|   if (value > 0)  |   if (value > 0) | ||||||
|      return cString::sprintf("%.0f %s", value / 1000.0, tr("kbit/s")); |      return cString::sprintf("%.0f %s", value / 1000.0, tr("kbit/s")); | ||||||
|   return cString::sprintf("---"); |   return cString::sprintf("---"); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | cBitStream::cBitStream(const uint8_t *buf, const int len) | ||||||
|  | : data(buf), | ||||||
|  |   count(len), | ||||||
|  |   index(0) | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | cBitStream::~cBitStream() | ||||||
|  | { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | int cBitStream::getBit() | ||||||
|  | { | ||||||
|  |   if (index >= count) | ||||||
|  |      return (1); // -> no infinite colomb's ... | ||||||
|  |  | ||||||
|  |   int r = (data[index >> 3] >> (7 - (index & 7))) & 1; | ||||||
|  |   ++index; | ||||||
|  |  | ||||||
|  |   return (r); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | uint32_t cBitStream::getBits(uint32_t n) | ||||||
|  | { | ||||||
|  |   uint32_t r = 0; | ||||||
|  |  | ||||||
|  |   while (n--) | ||||||
|  |     r = (r | (getBit() << n)); | ||||||
|  |  | ||||||
|  |   return (r); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void cBitStream::skipBits(uint32_t n) | ||||||
|  | { | ||||||
|  |   index += n; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | uint32_t cBitStream::getUeGolomb() | ||||||
|  | { | ||||||
|  |   int n = 0; | ||||||
|  |  | ||||||
|  |   while (!getBit() && (n < 32)) | ||||||
|  |     n++; | ||||||
|  |  | ||||||
|  |   return (n ? ((1 << n) - 1) + getBits(n) : 0); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | int32_t cBitStream::getSeGolomb() | ||||||
|  | { | ||||||
|  |   uint32_t r = getUeGolomb() + 1; | ||||||
|  |  | ||||||
|  |   return ((r & 1) ? -(r >> 1) : (r >> 1)); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void cBitStream::skipGolomb() | ||||||
|  | { | ||||||
|  |   int n = 0; | ||||||
|  |  | ||||||
|  |   while (!getBit() && (n < 32)) | ||||||
|  |     n++; | ||||||
|  |  | ||||||
|  |   skipBits(n); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void cBitStream::skipUeGolomb() | ||||||
|  | { | ||||||
|  |   skipGolomb(); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void cBitStream::skipSeGolomb() | ||||||
|  | { | ||||||
|  |   skipGolomb(); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void cBitStream::byteAlign() | ||||||
|  | { | ||||||
|  |   int n = index % 8; | ||||||
|  |  | ||||||
|  |   if (n > 0) | ||||||
|  |      skipBits(8 - n); | ||||||
|  | } | ||||||
|   | |||||||
							
								
								
									
										40
									
								
								femontools.h
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								femontools.h
									
									
									
									
									
								
							| @@ -10,12 +10,15 @@ | |||||||
|  |  | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| #include <vdr/channels.h> | #include <vdr/channels.h> | ||||||
|  | #include <vdr/remux.h> | ||||||
| #include <vdr/tools.h> | #include <vdr/tools.h> | ||||||
|  |  | ||||||
| #ifdef DEBUG | #ifdef DEBUG | ||||||
| #define Dprintf(x...) printf(x); | #define debug(x...) dsyslog("FEMON: " x); | ||||||
|  | #define error(x...) esyslog("ERROR: " x); | ||||||
| #else | #else | ||||||
| #define Dprintf(x...) ; | #define debug(x...) ; | ||||||
|  | #define error(x...) esyslog("ERROR: " x); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #define ELEMENTS(x) (sizeof(x) / sizeof(x[0])) | #define ELEMENTS(x) (sizeof(x) / sizeof(x[0])) | ||||||
| @@ -48,6 +51,8 @@ cString getInversion(int value); | |||||||
| cString getHierarchy(int value); | cString getHierarchy(int value); | ||||||
| cString getGuard(int value); | cString getGuard(int value); | ||||||
| cString getModulation(int value); | cString getModulation(int value); | ||||||
|  | cString getSystem(int value); | ||||||
|  | cString getRollOff(int value); | ||||||
| cString getResolution(int width, int height, int scan); | cString getResolution(int width, int height, int scan); | ||||||
| cString getAspectRatio(int value); | cString getAspectRatio(int value); | ||||||
| cString getVideoFormat(int value); | cString getVideoFormat(int value); | ||||||
| @@ -66,4 +71,35 @@ cString getVideoBitrate(double value, double stream); | |||||||
| cString getBitrateMbits(double value); | cString getBitrateMbits(double value); | ||||||
| cString getBitrateKbits(double value); | cString getBitrateKbits(double value); | ||||||
|  |  | ||||||
|  | class cBitStream { | ||||||
|  | private: | ||||||
|  |   const uint8_t *data; | ||||||
|  |   int            count; // in bits | ||||||
|  |   int            index; // in bits | ||||||
|  |  | ||||||
|  | public: | ||||||
|  |   cBitStream(const uint8_t *buf, const int len); | ||||||
|  |   ~cBitStream(); | ||||||
|  |  | ||||||
|  |   int            getBit(); | ||||||
|  |   uint32_t       getBits(uint32_t n); | ||||||
|  |   void           skipBits(uint32_t n); | ||||||
|  |   uint32_t       getUeGolomb(); | ||||||
|  |   int32_t        getSeGolomb(); | ||||||
|  |   void           skipGolomb(); | ||||||
|  |   void           skipUeGolomb(); | ||||||
|  |   void           skipSeGolomb(); | ||||||
|  |   void           byteAlign(); | ||||||
|  |  | ||||||
|  |   void           skipBit()  { skipBits(1); } | ||||||
|  |   uint32_t       getU8()    { return getBits(8); } | ||||||
|  |   uint32_t       getU16()   { return ((getBits(8) << 8) | getBits(8)); } | ||||||
|  |   uint32_t       getU24()   { return ((getBits(8) << 16) | (getBits(8) << 8) | getBits(8)); } | ||||||
|  |   uint32_t       getU32()   { return ((getBits(8) << 24) | (getBits(8) << 16) | (getBits(8) << 8) | getBits(8)); } | ||||||
|  |   bool           isEOF()    { return (index >= count); } | ||||||
|  |   void           reset()    { index = 0; } | ||||||
|  |   int            getIndex() { return (isEOF() ? count : index); } | ||||||
|  |   const uint8_t *getData()  { return (isEOF() ? NULL : data + (index / 8)); } | ||||||
|  | }; | ||||||
|  |  | ||||||
| #endif // __FEMONTOOLS_H | #endif // __FEMONTOOLS_H | ||||||
|   | |||||||
							
								
								
									
										23
									
								
								femonvideo.h
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								femonvideo.h
									
									
									
									
									
								
							| @@ -66,7 +66,28 @@ typedef struct video_info { | |||||||
|   int               width;       // pixels |   int               width;       // pixels | ||||||
|   int               height;      // pixels |   int               height;      // pixels | ||||||
|   double            frameRate;   // Hz |   double            frameRate;   // Hz | ||||||
|   double            bitrate;     // Mbit/s |   double            bitrate;     // bit/s | ||||||
| } video_info_t; | } video_info_t; | ||||||
|  |  | ||||||
|  | class cFemonVideoIf { | ||||||
|  | public: | ||||||
|  |   cFemonVideoIf() {} | ||||||
|  |   virtual ~cFemonVideoIf() {} | ||||||
|  |  | ||||||
|  |   // eVideoCodec | ||||||
|  |   virtual void SetVideoCodec(eVideoCodec codec) = 0; | ||||||
|  |   // eVideoFormat | ||||||
|  |   virtual void SetVideoFormat(eVideoFormat format) = 0; | ||||||
|  |   // eVideoScan | ||||||
|  |   virtual void SetVideoScan(eVideoScan scan) = 0; | ||||||
|  |   // eVideoAspectRatio | ||||||
|  |   virtual void SetVideoAspectRatio(eVideoAspectRatio aspectratio) = 0; | ||||||
|  |   // pixels | ||||||
|  |   virtual void SetVideoSize(int width, int height) = 0; | ||||||
|  |   // Hz | ||||||
|  |   virtual void SetVideoFramerate(double framerate) = 0; | ||||||
|  |   // Mbit/s | ||||||
|  |   virtual void SetVideoBitrate(double bitrate) = 0; | ||||||
|  |   }; | ||||||
|  |  | ||||||
| #endif //__FEMONVIDEO_H | #endif //__FEMONVIDEO_H | ||||||
|   | |||||||
							
								
								
									
										28
									
								
								po/de_DE.po
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								po/de_DE.po
									
									
									
									
									
								
							| @@ -7,9 +7,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2007-08-12 23:22+0300\n" | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
| "Last-Translator: Christian Wieninger\n" | "Last-Translator: Christian Wieninger\n" | ||||||
| "Language-Team: <vdr@linuxtv.org>\n" | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
| @@ -89,13 +89,10 @@ msgstr "Position" | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "Horizontaler Offset" |  | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| @@ -233,12 +230,6 @@ msgstr "Dolby Surround Modus" | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "Tieft<66>ner Effekte" | msgstr "Tieft<66>ner Effekte" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "Ein" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "Aus" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Dialog Normalisierung" | msgstr "Dialog Normalisierung" | ||||||
|  |  | ||||||
| @@ -275,6 +266,9 @@ msgstr "" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -287,9 +281,6 @@ msgstr "" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -380,6 +371,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "nicht angegeben" | msgstr "nicht angegeben" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "frei" | msgstr "frei" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										28
									
								
								po/es_ES.po
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								po/es_ES.po
									
									
									
									
									
								
							| @@ -5,9 +5,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2007-08-12 23:22+0300\n" | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
| "Last-Translator: Luis Palacios\n" | "Last-Translator: Luis Palacios\n" | ||||||
| "Language-Team: <vdr@linuxtv.org>\n" | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
| @@ -87,13 +87,10 @@ msgstr "Posici | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "Desplazamiento horizontal" |  | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| @@ -231,12 +228,6 @@ msgstr "Nivel sonoro Dolby Surround" | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "Efectos de baja frecuencia" | msgstr "Efectos de baja frecuencia" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "on" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "off" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Normalizaci<63>n del di<64>logo" | msgstr "Normalizaci<63>n del di<64>logo" | ||||||
|  |  | ||||||
| @@ -273,6 +264,9 @@ msgstr "" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -285,9 +279,6 @@ msgstr "" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "o" | msgstr "o" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -378,6 +369,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "no indicado" | msgstr "no indicado" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "libre" | msgstr "libre" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										128
									
								
								po/et_EE.po
									
									
									
									
									
								
							
							
						
						
									
										128
									
								
								po/et_EE.po
									
									
									
									
									
								
							| @@ -5,9 +5,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2007-08-12 23:22+0300\n" | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
| "Last-Translator: Arthur Konovalov\n" | "Last-Translator: Arthur Konovalov\n" | ||||||
| "Language-Team: <vdr@linuxtv.org>\n" | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
| @@ -22,7 +22,7 @@ msgid "Signal Information" | |||||||
| msgstr "Signaaliinfo" | msgstr "Signaaliinfo" | ||||||
|  |  | ||||||
| msgid "Femon not available" | msgid "Femon not available" | ||||||
| msgstr "" | msgstr "Femon ei ole k<>ttesaadav" | ||||||
|  |  | ||||||
| msgid "basic" | msgid "basic" | ||||||
| msgstr "standard" | msgstr "standard" | ||||||
| @@ -37,7 +37,7 @@ msgid "AC-3" | |||||||
| msgstr "AC-3" | msgstr "AC-3" | ||||||
|  |  | ||||||
| msgid "Classic" | msgid "Classic" | ||||||
| msgstr "Klassikaline" | msgstr "Classic" | ||||||
|  |  | ||||||
| msgid "Elchi" | msgid "Elchi" | ||||||
| msgstr "Elchi" | msgstr "Elchi" | ||||||
| @@ -64,88 +64,85 @@ msgid "SilverGreen" | |||||||
| msgstr "SilverGreen" | msgstr "SilverGreen" | ||||||
|  |  | ||||||
| msgid "Hide main menu entry" | msgid "Hide main menu entry" | ||||||
| msgstr "Peida valik peamen<65><6E>s" | msgstr "Peita valik peamen<65><6E>s" | ||||||
|  |  | ||||||
| msgid "Define whether the main menu entry is hidden." | msgid "Define whether the main menu entry is hidden." | ||||||
| msgstr "" | msgstr "Valiku peamen<65><6E>s peitmise m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Default display mode" | msgid "Default display mode" | ||||||
| msgstr "Vaikimisi displei moodus" | msgstr "Vaikemoodus" | ||||||
|  |  | ||||||
| msgid "Define the default display mode at startup." | msgid "Define the default display mode at startup." | ||||||
| msgstr "" | msgstr "K<EFBFBD>ivitamisel vaikemooduse m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Define the used OSD skin." | msgid "Define the used OSD skin." | ||||||
| msgstr "" | msgstr "Kasutatava ekraanikesta m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Define the used OSD theme." | msgid "Define the used OSD theme." | ||||||
| msgstr "" | msgstr "Kasutatava teema m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Position" | msgid "Position" | ||||||
| msgstr "Positsioon" | msgstr "Positsioon" | ||||||
|  |  | ||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "" | msgstr "Ekraaniinfo positsiooni m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "" | msgstr "Ekraanimen<EFBFBD><EFBFBD> v<>hendamine [%]" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "Horisontaalne nihe" | msgstr "Ekraanimen<EFBFBD><EFBFBD> suuruse v<>hendamise m<><6D>ritlemine" | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| msgstr "Punase limiit [%]" | msgstr "Punase limiit [%]" | ||||||
|  |  | ||||||
| msgid "Define a limit for red bar, which is used to indicate a bad signal." | msgid "Define a limit for red bar, which is used to indicate a bad signal." | ||||||
| msgstr "" | msgstr "Seaded punasele limiidile. Iseloomustab kehva signaali." | ||||||
|  |  | ||||||
| msgid "Green limit [%]" | msgid "Green limit [%]" | ||||||
| msgstr "Rohelise limiit [%]" | msgstr "Rohelise limiit [%]" | ||||||
|  |  | ||||||
| msgid "Define a limit for green bar, which is used to indicate a good signal." | msgid "Define a limit for green bar, which is used to indicate a good signal." | ||||||
| msgstr "" | msgstr "Seaded rohelisele limiidile. Iseloomustab head signaali." | ||||||
|  |  | ||||||
| msgid "OSD update interval [0.1s]" | msgid "OSD update interval [0.1s]" | ||||||
| msgstr "Uuendusintervall [0,1s]" | msgstr "Uuendusintervall [0,1s]" | ||||||
|  |  | ||||||
| msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | ||||||
| msgstr "" | msgstr "Ekraaniinfo uuendamise intervalli m<><6D>ritlemine. V<>iksem intervall- suurem CPU koormus." | ||||||
|  |  | ||||||
| msgid "Analyze stream" | msgid "Analyze stream" | ||||||
| msgstr "Voo anal<61><6C>s" | msgstr "Voo anal<61><6C>s" | ||||||
|  |  | ||||||
| msgid "Define whether the DVB stream is analyzed and bitrates calculated." | msgid "Define whether the DVB stream is analyzed and bitrates calculated." | ||||||
| msgstr "" | msgstr "DVB voo bitikiiruse rehkendamise m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Calculation interval [0.1s]" | msgid "Calculation interval [0.1s]" | ||||||
| msgstr "Kalkulatsiooni intervall [0,1s]" | msgstr "Arvutamise intervall [0,1s]" | ||||||
|  |  | ||||||
| msgid "Define an interval for calculation. The bigger interval generates more stable values." | msgid "Define an interval for calculation. The bigger interval generates more stable values." | ||||||
| msgstr "" | msgstr "Arvutamise intervalli m<><6D>ritlemine. Suurem intervall annab stabiilsemaid tulemusi." | ||||||
|  |  | ||||||
| msgid "Use SVDRP service" | msgid "Use SVDRP service" | ||||||
| msgstr "" | msgstr "SVDRP teenus" | ||||||
|  |  | ||||||
| msgid "Define whether the SVDRP service is used in client/server setups." | msgid "Define whether the SVDRP service is used in client/server setups." | ||||||
| msgstr "" | msgstr "SVDRP teenuse klient/server seadete m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "SVDRP service port" | msgid "SVDRP service port" | ||||||
| msgstr "" | msgstr "SVDRP port" | ||||||
|  |  | ||||||
| msgid "Define the port number of SVDRP service." | msgid "Define the port number of SVDRP service." | ||||||
| msgstr "" | msgstr "SVDRP teenuse pordi m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "SVDRP service IP" | msgid "SVDRP service IP" | ||||||
| msgstr "" | msgstr "SVDRP IP" | ||||||
|  |  | ||||||
| msgid "Define the IP address of SVDRP service." | msgid "Define the IP address of SVDRP service." | ||||||
| msgstr "" | msgstr "SVDRP teenuse IP aadressi m<><6D>ritlemine." | ||||||
|  |  | ||||||
| msgid "Help" | msgid "Help" | ||||||
| msgstr "" | msgstr "Abi" | ||||||
|  |  | ||||||
| msgid "Video" | msgid "Video" | ||||||
| msgstr "Video" | msgstr "Video" | ||||||
| @@ -178,13 +175,13 @@ msgid "Coderate" | |||||||
| msgstr "Coderate" | msgstr "Coderate" | ||||||
|  |  | ||||||
| msgid "Stream Information" | msgid "Stream Information" | ||||||
| msgstr "Voo info" | msgstr "Vooinfo" | ||||||
|  |  | ||||||
| msgid "Video Stream" | msgid "Video Stream" | ||||||
| msgstr "Videovoog" | msgstr "Videovoog" | ||||||
|  |  | ||||||
| msgid "Codec" | msgid "Codec" | ||||||
| msgstr "" | msgstr "Koodek" | ||||||
|  |  | ||||||
| msgid "Bitrate" | msgid "Bitrate" | ||||||
| msgstr "Bitikiirus" | msgstr "Bitikiirus" | ||||||
| @@ -205,7 +202,7 @@ msgid "Audio Stream" | |||||||
| msgstr "Audiovoog" | msgstr "Audiovoog" | ||||||
|  |  | ||||||
| msgid "Channel Mode" | msgid "Channel Mode" | ||||||
| msgstr "" | msgstr "Kanalimoodus" | ||||||
|  |  | ||||||
| msgid "Sampling Frequency" | msgid "Sampling Frequency" | ||||||
| msgstr "S<>mplimissagedus" | msgstr "S<>mplimissagedus" | ||||||
| @@ -231,12 +228,6 @@ msgstr "Dolby Surround'i t | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "LFE kanal" | msgstr "LFE kanal" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "Sees" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "V<>ljas" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Dialoogi normalisatsioon" | msgstr "Dialoogi normalisatsioon" | ||||||
|  |  | ||||||
| @@ -244,67 +235,67 @@ msgid "Fixed" | |||||||
| msgstr "Fikseeritud" | msgstr "Fikseeritud" | ||||||
|  |  | ||||||
| msgid "Analog" | msgid "Analog" | ||||||
| msgstr "" | msgstr "Analoog" | ||||||
|  |  | ||||||
| msgid "MPEG-2" | msgid "MPEG-2" | ||||||
| msgstr "" | msgstr "MPEG-2" | ||||||
|  |  | ||||||
| msgid "H.264" | msgid "H.264" | ||||||
| msgstr "" | msgstr "H.264" | ||||||
|  |  | ||||||
| msgid "MPEG-1 Layer I" | msgid "MPEG-1 Layer I" | ||||||
| msgstr "" | msgstr "MPEG-1 Layet I" | ||||||
|  |  | ||||||
| msgid "MPEG-1 Layer II" | msgid "MPEG-1 Layer II" | ||||||
| msgstr "" | msgstr "MPEG-1 Layer II" | ||||||
|  |  | ||||||
| msgid "MPEG-1 Layer III" | msgid "MPEG-1 Layer III" | ||||||
| msgstr "" | msgstr "MPEG-1 Layer III" | ||||||
|  |  | ||||||
| msgid "MPEG-2 Layer I" | msgid "MPEG-2 Layer I" | ||||||
| msgstr "" | msgstr "MPEG-2 Layer I" | ||||||
|  |  | ||||||
| msgid "MPEG-2 Layer II" | msgid "MPEG-2 Layer II" | ||||||
| msgstr "" | msgstr "MPEG-2 Layer II" | ||||||
|  |  | ||||||
| msgid "MPEG-2 Layer III" | msgid "MPEG-2 Layer III" | ||||||
| msgstr "" | msgstr "MPEG-2 Layer III" | ||||||
|  |  | ||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "" | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "" | msgstr "stereo" | ||||||
|  |  | ||||||
| msgid "joint Stereo" | msgid "joint Stereo" | ||||||
| msgstr "" | msgstr "joint stereo" | ||||||
|  |  | ||||||
| msgid "dual" | msgid "dual" | ||||||
| msgstr "" | msgstr "duaalne" | ||||||
|  |  | ||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "" | msgstr "mono" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "" | msgstr "<EFBFBD>lerealaotus" | ||||||
|  |  | ||||||
| msgid "progressive" | msgid "progressive" | ||||||
| msgstr "" | msgstr "progressiivne" | ||||||
|  |  | ||||||
| msgid "reserved" | msgid "reserved" | ||||||
| msgstr "reserveeritud" | msgstr "reserv." | ||||||
|  |  | ||||||
| msgid "extended" | msgid "extended" | ||||||
| msgstr "" | msgstr "laiendatud" | ||||||
|  |  | ||||||
| msgid "unknown" | msgid "unknown" | ||||||
| msgstr "tundmatu" | msgstr "tundmatu" | ||||||
|  |  | ||||||
| msgid "component" | msgid "component" | ||||||
| msgstr "" | msgstr "komponentne" | ||||||
|  |  | ||||||
| msgid "PAL" | msgid "PAL" | ||||||
| msgstr "PAL" | msgstr "PAL" | ||||||
| @@ -313,10 +304,10 @@ msgid "NTSC" | |||||||
| msgstr "NTSC" | msgstr "NTSC" | ||||||
|  |  | ||||||
| msgid "SECAM" | msgid "SECAM" | ||||||
| msgstr "" | msgstr "SECAM" | ||||||
|  |  | ||||||
| msgid "MAC" | msgid "MAC" | ||||||
| msgstr "" | msgstr "MAC" | ||||||
|  |  | ||||||
| msgid "Hz" | msgid "Hz" | ||||||
| msgstr "Hz" | msgstr "Hz" | ||||||
| @@ -349,10 +340,10 @@ msgid "Karaoke" | |||||||
| msgstr "Karaoke" | msgstr "Karaoke" | ||||||
|  |  | ||||||
| msgid "Ch1" | msgid "Ch1" | ||||||
| msgstr "Kan. 1" | msgstr "Kan.1" | ||||||
|  |  | ||||||
| msgid "Ch2" | msgid "Ch2" | ||||||
| msgstr "Kan. 2" | msgstr "Kan.2" | ||||||
|  |  | ||||||
| msgid "C" | msgid "C" | ||||||
| msgstr "C" | msgstr "C" | ||||||
| @@ -378,6 +369,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "m<>rkimata" | msgstr "m<>rkimata" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "vaba" | msgstr "vaba" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										32
									
								
								po/fi_FI.po
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								po/fi_FI.po
									
									
									
									
									
								
							| @@ -5,9 +5,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2007-08-12 23:22+0300\n" | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
| "Last-Translator: Rolf Ahrenberg\n" | "Last-Translator: Rolf Ahrenberg\n" | ||||||
| "Language-Team: <vdr@linuxtv.org>\n" | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
| @@ -87,14 +87,11 @@ msgstr "Sijainti" | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "Määrittele näytön sijainti." | msgstr "Määrittele näytön sijainti." | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "Määrittele näytön korkeus." | msgstr "Pienennä näytön kokoa [%]" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "Vaakakeskitys" | msgstr "Määrittele näytön pienennyssuhde." | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "Määrittele näytön vaakakeskitys." |  | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| msgstr "Punaisen taso [%]" | msgstr "Punaisen taso [%]" | ||||||
| @@ -231,12 +228,6 @@ msgstr "Dolby Surround -tehoste" | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "LFE-kanava" | msgstr "LFE-kanava" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "päällä" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "poissa" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Dialogin normalisointi" | msgstr "Dialogin normalisointi" | ||||||
|  |  | ||||||
| @@ -273,6 +264,9 @@ msgstr "MPEG-2 kerros III" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "HE-AAC" | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "stereo" | msgstr "stereo" | ||||||
|  |  | ||||||
| @@ -285,9 +279,6 @@ msgstr "kaksikanavainen" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "mono" | msgstr "mono" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "lomiteltu" | msgstr "lomiteltu" | ||||||
|  |  | ||||||
| @@ -378,6 +369,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "ei ilmaistu" | msgstr "ei ilmaistu" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "vapaa" | msgstr "vapaa" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										32
									
								
								po/fr_FR.po
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								po/fr_FR.po
									
									
									
									
									
								
							| @@ -5,9 +5,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2008-01-26 09:59+0100\n" | "PO-Revision-Date: 2008-01-26 09:59+0100\n" | ||||||
| "Last-Translator: NIVAL Micha<68>l <mnival@club-internet.fr>\n" | "Last-Translator: NIVAL Micha<68>l <mnival@club-internet.fr>\n" | ||||||
| "Language-Team:  <vdr@linuxtv.org>\n" | "Language-Team:  <vdr@linuxtv.org>\n" | ||||||
| @@ -87,14 +87,11 @@ msgstr "Position" | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "D<>finit la position de l'OSD." | msgstr "D<>finit la position de l'OSD." | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "D<EFBFBD>finit l'hauteur de l'OSD." | msgstr "" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "D<EFBFBD>placement horizontal" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "D<>finit le d<>placement horizontal de l'OSD." |  | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| msgstr "Limite du rouge (%)" | msgstr "Limite du rouge (%)" | ||||||
| @@ -231,12 +228,6 @@ msgstr "Mode Dolby Surround" | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "Effets de basses" | msgstr "Effets de basses" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "Oui" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "Non" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Normalisation des dialogues" | msgstr "Normalisation des dialogues" | ||||||
|  |  | ||||||
| @@ -273,6 +264,9 @@ msgstr "" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -285,9 +279,6 @@ msgstr "" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -378,6 +369,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "non indiqu<71>" | msgstr "non indiqu<71>" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "libre" | msgstr "libre" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										59
									
								
								po/it_IT.po
									
									
									
									
									
								
							
							
						
						
									
										59
									
								
								po/it_IT.po
									
									
									
									
									
								
							| @@ -6,15 +6,18 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2008-11-10 23:37+0100\n" | "PO-Revision-Date: 2010-03-29 00:24+0100\n" | ||||||
| "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" | "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" | ||||||
| "Language-Team:  <vdr@linuxtv.org>\n" | "Language-Team:  <vdr@linuxtv.org>\n" | ||||||
| "MIME-Version: 1.0\n" | "MIME-Version: 1.0\n" | ||||||
| "Content-Type: text/plain; charset=ISO-8859-15\n" | "Content-Type: text/plain; charset=utf-8\n" | ||||||
| "Content-Transfer-Encoding: 8bit\n" | "Content-Transfer-Encoding: 8bit\n" | ||||||
|  | "X-Poedit-Language: Italian\n" | ||||||
|  | "X-Poedit-Country: ITALY\n" | ||||||
|  | "X-Poedit-SourceCharset: utf-8\n" | ||||||
|  |  | ||||||
| msgid "DVB Signal Information Monitor (OSD)" | msgid "DVB Signal Information Monitor (OSD)" | ||||||
| msgstr "Mostra info segnale DVB (OSD)" | msgstr "Mostra info segnale DVB (OSD)" | ||||||
| @@ -68,13 +71,13 @@ msgid "Hide main menu entry" | |||||||
| msgstr "Nascondi voce menu principale" | msgstr "Nascondi voce menu principale" | ||||||
|  |  | ||||||
| msgid "Define whether the main menu entry is hidden." | msgid "Define whether the main menu entry is hidden." | ||||||
| msgstr "Definisci se la voce del menu principale <EFBFBD> nascosta." | msgstr "Definisci se la voce del menu principale è nascosta." | ||||||
|  |  | ||||||
| msgid "Default display mode" | msgid "Default display mode" | ||||||
| msgstr "Modalit<EFBFBD> visualizz. predefinita" | msgstr "Modalità visualizz. predefinita" | ||||||
|  |  | ||||||
| msgid "Define the default display mode at startup." | msgid "Define the default display mode at startup." | ||||||
| msgstr "Definisci la modalit<EFBFBD> di visualizz. predefinita all'avvio." | msgstr "Definisci la modalità di visualizz. predefinita all'avvio." | ||||||
|  |  | ||||||
| msgid "Define the used OSD skin." | msgid "Define the used OSD skin." | ||||||
| msgstr "Definisci lo stile interfaccia OSD utilizzato." | msgstr "Definisci lo stile interfaccia OSD utilizzato." | ||||||
| @@ -88,14 +91,11 @@ msgstr "Posizione" | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "Definisci la posizione dell'OSD." | msgstr "Definisci la posizione dell'OSD." | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "Definisci l'altezza dell'OSD." | msgstr "Riduci dimensione OSD [%]" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "Limite orizzontale" | msgstr "Definisci il rapporto di riduzione della dimensione OSD." | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "Definisci il limite orizzontale dell'OSD." |  | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| msgstr "Limite rosso [%]" | msgstr "Limite rosso [%]" | ||||||
| @@ -113,19 +113,19 @@ msgid "OSD update interval [0.1s]" | |||||||
| msgstr "Intervallo agg. OSD [0.1s]" | msgstr "Intervallo agg. OSD [0.1s]" | ||||||
|  |  | ||||||
| msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | ||||||
| msgstr "Definisci un intervallo per gli agg. OSD. Pi<EFBFBD> piccolo <EFBFBD> l'intervallo maggiore sar<EFBFBD> l'uso di CPU." | msgstr "Definisci un intervallo per gli agg. OSD. Più piccolo è l'intervallo maggiore sarà l'uso di CPU." | ||||||
|  |  | ||||||
| msgid "Analyze stream" | msgid "Analyze stream" | ||||||
| msgstr "Analizza flusso" | msgstr "Analizza flusso" | ||||||
|  |  | ||||||
| msgid "Define whether the DVB stream is analyzed and bitrates calculated." | msgid "Define whether the DVB stream is analyzed and bitrates calculated." | ||||||
| msgstr "Definisci se il flusso DVB <EFBFBD> analizzato e i bitrate calcolati." | msgstr "Definisci se il flusso DVB è analizzato e i bitrate calcolati." | ||||||
|  |  | ||||||
| msgid "Calculation interval [0.1s]" | msgid "Calculation interval [0.1s]" | ||||||
| msgstr "Intervallo di calcolo [0.1s]" | msgstr "Intervallo di calcolo [0.1s]" | ||||||
|  |  | ||||||
| msgid "Define an interval for calculation. The bigger interval generates more stable values." | msgid "Define an interval for calculation. The bigger interval generates more stable values." | ||||||
| msgstr "Definisci un intervallo di calcolo. L'intervallo pi<EFBFBD> grande genera valori pi<EFBFBD> stabili." | msgstr "Definisci un intervallo di calcolo. L'intervallo più grande genera valori più stabili." | ||||||
|  |  | ||||||
| msgid "Use SVDRP service" | msgid "Use SVDRP service" | ||||||
| msgstr "Utilizza servizio SVDRP" | msgstr "Utilizza servizio SVDRP" | ||||||
| @@ -206,7 +206,7 @@ msgid "Audio Stream" | |||||||
| msgstr "Flusso audio" | msgstr "Flusso audio" | ||||||
|  |  | ||||||
| msgid "Channel Mode" | msgid "Channel Mode" | ||||||
| msgstr "Modalit<EFBFBD> canale" | msgstr "Modalità canale" | ||||||
|  |  | ||||||
| msgid "Sampling Frequency" | msgid "Sampling Frequency" | ||||||
| msgstr "Frequenza campionamento" | msgstr "Frequenza campionamento" | ||||||
| @@ -215,10 +215,10 @@ msgid "AC-3 Stream" | |||||||
| msgstr "Flusso AC-3" | msgstr "Flusso AC-3" | ||||||
|  |  | ||||||
| msgid "Bit Stream Mode" | msgid "Bit Stream Mode" | ||||||
| msgstr "Modalit<EFBFBD> bitstream" | msgstr "Modalità bitstream" | ||||||
|  |  | ||||||
| msgid "Audio Coding Mode" | msgid "Audio Coding Mode" | ||||||
| msgstr "Modalit<EFBFBD> codifica audio" | msgstr "Modalità codifica audio" | ||||||
|  |  | ||||||
| msgid "Center Mix Level" | msgid "Center Mix Level" | ||||||
| msgstr "Livello sonoro centrale" | msgstr "Livello sonoro centrale" | ||||||
| @@ -227,17 +227,11 @@ msgid "Surround Mix Level" | |||||||
| msgstr "Livello sonoro surround" | msgstr "Livello sonoro surround" | ||||||
|  |  | ||||||
| msgid "Dolby Surround Mode" | msgid "Dolby Surround Mode" | ||||||
| msgstr "Modalit<EFBFBD> Dolby Surround" | msgstr "Modalità Dolby Surround" | ||||||
|  |  | ||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "Effetti bassa frequenza" | msgstr "Effetti bassa frequenza" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "Attivo" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "Disattivo" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "Normalizzazione dialoghi" | msgstr "Normalizzazione dialoghi" | ||||||
|  |  | ||||||
| @@ -274,6 +268,9 @@ msgstr "MPEG-2 Layer III" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "HE-AAC" | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "stereo" | msgstr "stereo" | ||||||
|  |  | ||||||
| @@ -286,9 +283,6 @@ msgstr "dual" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "mono" | msgstr "mono" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "MHz" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "interlacciato" | msgstr "interlacciato" | ||||||
|  |  | ||||||
| @@ -379,6 +373,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "non indicato" | msgstr "non indicato" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "libero" | msgstr "libero" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										382
									
								
								po/lt_LT.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										382
									
								
								po/lt_LT.po
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,382 @@ | |||||||
|  | # VDR plugin language source file. | ||||||
|  | # Copyright (C) 2007 Rolf Ahrenberg | ||||||
|  | # This file is distributed under the same license as the femon package. | ||||||
|  | # Valdemaras Pipiras | ||||||
|  | # | ||||||
|  | msgid "" | ||||||
|  | msgstr "" | ||||||
|  | "Project-Id-Version: femon 1.7.8\n" | ||||||
|  | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
|  | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
|  | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
|  | "Last-Translator: Valdemaras Pipiras\n" | ||||||
|  | "Language-Team: <varas@ambernet.lt>\n" | ||||||
|  | "MIME-Version: 1.0\n" | ||||||
|  | "Content-Type: text/plain; charset=UTF-8\n" | ||||||
|  | "Content-Transfer-Encoding: 8bit\n" | ||||||
|  |  | ||||||
|  | msgid "DVB Signal Information Monitor (OSD)" | ||||||
|  | msgstr "DVB signalo informacijos stebėjimas (OSD)" | ||||||
|  |  | ||||||
|  | msgid "Signal Information" | ||||||
|  | msgstr "Signalo informacija" | ||||||
|  |  | ||||||
|  | msgid "Femon not available" | ||||||
|  | msgstr "Femon įskiepas nepasiekiamas" | ||||||
|  |  | ||||||
|  | msgid "basic" | ||||||
|  | msgstr "Standartinis" | ||||||
|  |  | ||||||
|  | msgid "transponder" | ||||||
|  | msgstr "Siųstuvas" | ||||||
|  |  | ||||||
|  | msgid "stream" | ||||||
|  | msgstr "Srautas" | ||||||
|  |  | ||||||
|  | msgid "AC-3" | ||||||
|  | msgstr "AC-3" | ||||||
|  |  | ||||||
|  | msgid "Classic" | ||||||
|  | msgstr "Klasikinis" | ||||||
|  |  | ||||||
|  | msgid "Elchi" | ||||||
|  | msgstr "Elchi" | ||||||
|  |  | ||||||
|  | msgid "ST:TNG" | ||||||
|  | msgstr "ST:TNG" | ||||||
|  |  | ||||||
|  | msgid "DeepBlue" | ||||||
|  | msgstr "DeepBlue" | ||||||
|  |  | ||||||
|  | msgid "Moronimo" | ||||||
|  | msgstr "Moronimo" | ||||||
|  |  | ||||||
|  | msgid "Enigma" | ||||||
|  | msgstr "Enigma" | ||||||
|  |  | ||||||
|  | msgid "EgalsTry" | ||||||
|  | msgstr "EgalsTry" | ||||||
|  |  | ||||||
|  | msgid "Duotone" | ||||||
|  | msgstr "Duotone" | ||||||
|  |  | ||||||
|  | msgid "SilverGreen" | ||||||
|  | msgstr "SilverGreen" | ||||||
|  |  | ||||||
|  | msgid "Hide main menu entry" | ||||||
|  | msgstr "Paslėpti pagrindinio meniu įrašus" | ||||||
|  |  | ||||||
|  | msgid "Define whether the main menu entry is hidden." | ||||||
|  | msgstr "Nustatyti pagrindinio meniu įrašų paslėpimą." | ||||||
|  |  | ||||||
|  | msgid "Default display mode" | ||||||
|  | msgstr "Numatytasis rodymo būdas" | ||||||
|  |  | ||||||
|  | msgid "Define the default display mode at startup." | ||||||
|  | msgstr "Nustatyti numatytąjį rodymo būdą paleidžiant." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD skin." | ||||||
|  | msgstr "Nustatyti naudojamą ekrano apvalkalą." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD theme." | ||||||
|  | msgstr "Nustatyti naudojamą ekrano temą." | ||||||
|  |  | ||||||
|  | msgid "Position" | ||||||
|  | msgstr "Pozicija" | ||||||
|  |  | ||||||
|  | msgid "Define the position of OSD." | ||||||
|  | msgstr "Nustatyti ekrano užsklandos poziciją." | ||||||
|  |  | ||||||
|  | msgid "Downscale OSD size [%]" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Define the downscale ratio for OSD size." | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Red limit [%]" | ||||||
|  | msgstr "Raudonoji ribą [%]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for red bar, which is used to indicate a bad signal." | ||||||
|  | msgstr "Nustatyti raudonos juostos ribą, kuri naudojama blogo signalo indikacijai." | ||||||
|  |  | ||||||
|  | msgid "Green limit [%]" | ||||||
|  | msgstr "Žalioji riba [%]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for green bar, which is used to indicate a good signal." | ||||||
|  | msgstr "Nustatyti žalios juostos ribą, kuri naudojama gero signalo indikacijai." | ||||||
|  |  | ||||||
|  | msgid "OSD update interval [0.1s]" | ||||||
|  | msgstr "Ekrano užsklandos atnaujinimo intervalas [0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | ||||||
|  | msgstr "Nustatyti ekrano užsklandos atnaujinimo intervalą. Mažesnis intervalas labiau apkrauna centrinį procesorių (CPU)." | ||||||
|  |  | ||||||
|  | msgid "Analyze stream" | ||||||
|  | msgstr "Analizuoti srautą" | ||||||
|  |  | ||||||
|  | msgid "Define whether the DVB stream is analyzed and bitrates calculated." | ||||||
|  | msgstr "Nurodyti ar DVB srautas turi būti analizuojamas bei jo kokybė išskaičiuojama." | ||||||
|  |  | ||||||
|  | msgid "Calculation interval [0.1s]" | ||||||
|  | msgstr "Apskaitos intervalos [0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for calculation. The bigger interval generates more stable values." | ||||||
|  | msgstr "Nustatyti apskaitos intervalą. Kuo didesnis intervalas, tuo tikslesni duomenys." | ||||||
|  |  | ||||||
|  | msgid "Use SVDRP service" | ||||||
|  | msgstr "Naudoti SVDRP paslaugą" | ||||||
|  |  | ||||||
|  | msgid "Define whether the SVDRP service is used in client/server setups." | ||||||
|  | msgstr "Nurodyti ar SVDRP paslauga naudojama kliento/serverio nustatymuose." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service port" | ||||||
|  | msgstr "SVDRP įrenginio portas" | ||||||
|  |  | ||||||
|  | msgid "Define the port number of SVDRP service." | ||||||
|  | msgstr "Nustatyti SVDRP įrenginio prievadą." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service IP" | ||||||
|  | msgstr "SVDRP įrenginio IP" | ||||||
|  |  | ||||||
|  | msgid "Define the IP address of SVDRP service." | ||||||
|  | msgstr "Nustatyti SVDRP įrenginio IP adresą." | ||||||
|  |  | ||||||
|  | msgid "Help" | ||||||
|  | msgstr "Pagalba" | ||||||
|  |  | ||||||
|  | msgid "Video" | ||||||
|  | msgstr "Video" | ||||||
|  |  | ||||||
|  | msgid "Audio" | ||||||
|  | msgstr "Audio" | ||||||
|  |  | ||||||
|  | msgid "Transponder Information" | ||||||
|  | msgstr "Siųstuvo informacija" | ||||||
|  |  | ||||||
|  | msgid "Apid" | ||||||
|  | msgstr "Apid" | ||||||
|  |  | ||||||
|  | msgid "Dpid" | ||||||
|  | msgstr "Dpid" | ||||||
|  |  | ||||||
|  | msgid "Spid" | ||||||
|  | msgstr "Spid" | ||||||
|  |  | ||||||
|  | msgid "Nid" | ||||||
|  | msgstr "Nid" | ||||||
|  |  | ||||||
|  | msgid "Tid" | ||||||
|  | msgstr "Tid" | ||||||
|  |  | ||||||
|  | msgid "Rid" | ||||||
|  | msgstr "Rid" | ||||||
|  |  | ||||||
|  | msgid "Coderate" | ||||||
|  | msgstr "Kodavimo dažnis" | ||||||
|  |  | ||||||
|  | msgid "Stream Information" | ||||||
|  | msgstr "Srauto informacija" | ||||||
|  |  | ||||||
|  | msgid "Video Stream" | ||||||
|  | msgstr "Video srautas" | ||||||
|  |  | ||||||
|  | msgid "Codec" | ||||||
|  | msgstr "Kodekas" | ||||||
|  |  | ||||||
|  | msgid "Bitrate" | ||||||
|  | msgstr "Kokybė" | ||||||
|  |  | ||||||
|  | msgid "Aspect Ratio" | ||||||
|  | msgstr "Proporcijos" | ||||||
|  |  | ||||||
|  | msgid "Frame Rate" | ||||||
|  | msgstr "Kadrų dažnis" | ||||||
|  |  | ||||||
|  | msgid "Video Format" | ||||||
|  | msgstr "Video formatas" | ||||||
|  |  | ||||||
|  | msgid "Resolution" | ||||||
|  | msgstr "Rezoliucija" | ||||||
|  |  | ||||||
|  | msgid "Audio Stream" | ||||||
|  | msgstr "Audio srautas" | ||||||
|  |  | ||||||
|  | msgid "Channel Mode" | ||||||
|  | msgstr "kanalo būsena" | ||||||
|  |  | ||||||
|  | msgid "Sampling Frequency" | ||||||
|  | msgstr "Parodomasis dažnis" | ||||||
|  |  | ||||||
|  | msgid "AC-3 Stream" | ||||||
|  | msgstr "AC-3 srautas" | ||||||
|  |  | ||||||
|  | msgid "Bit Stream Mode" | ||||||
|  | msgstr "Bitstream būsena" | ||||||
|  |  | ||||||
|  | msgid "Audio Coding Mode" | ||||||
|  | msgstr "Audio kodavimas" | ||||||
|  |  | ||||||
|  | msgid "Center Mix Level" | ||||||
|  | msgstr "Centerinis Mix lygis" | ||||||
|  |  | ||||||
|  | msgid "Surround Mix Level" | ||||||
|  | msgstr "Surround Mix lygis" | ||||||
|  |  | ||||||
|  | msgid "Dolby Surround Mode" | ||||||
|  | msgstr "Dolby Surround būklė" | ||||||
|  |  | ||||||
|  | msgid "Low Frequency Effects" | ||||||
|  | msgstr "Žemo dažnio efektai" | ||||||
|  |  | ||||||
|  | msgid "Dialogue Normalization" | ||||||
|  | msgstr "Dialogo normalizacija" | ||||||
|  |  | ||||||
|  | msgid "Fixed" | ||||||
|  | msgstr "Fest" | ||||||
|  |  | ||||||
|  | msgid "Analog" | ||||||
|  | msgstr "Analog" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2" | ||||||
|  | msgstr "MPEG-2" | ||||||
|  |  | ||||||
|  | msgid "H.264" | ||||||
|  | msgstr "H.264" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer I" | ||||||
|  | msgstr "MPEG-1 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer II" | ||||||
|  | msgstr "MPEG-1 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer III" | ||||||
|  | msgstr "MPEG-1 Layer III" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer I" | ||||||
|  | msgstr "MPEG-2 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer II" | ||||||
|  | msgstr "MPEG-2 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer III" | ||||||
|  | msgstr "MPEG-2 Layer III" | ||||||
|  |  | ||||||
|  | msgid "HE-AAC" | ||||||
|  | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
|  | msgid "stereo" | ||||||
|  | msgstr "stereo" | ||||||
|  |  | ||||||
|  | msgid "joint Stereo" | ||||||
|  | msgstr "jungtinis stereo" | ||||||
|  |  | ||||||
|  | msgid "dual" | ||||||
|  | msgstr "dvigubas" | ||||||
|  |  | ||||||
|  | msgid "mono" | ||||||
|  | msgstr "mono" | ||||||
|  |  | ||||||
|  | msgid "interlaced" | ||||||
|  | msgstr "persipynęs (interlaced)" | ||||||
|  |  | ||||||
|  | msgid "progressive" | ||||||
|  | msgstr "progresyvinis" | ||||||
|  |  | ||||||
|  | msgid "reserved" | ||||||
|  | msgstr "belegt" | ||||||
|  |  | ||||||
|  | msgid "extended" | ||||||
|  | msgstr "išplėstas" | ||||||
|  |  | ||||||
|  | msgid "unknown" | ||||||
|  | msgstr "nežinomas" | ||||||
|  |  | ||||||
|  | msgid "component" | ||||||
|  | msgstr "komponentas" | ||||||
|  |  | ||||||
|  | msgid "PAL" | ||||||
|  | msgstr "PAL" | ||||||
|  |  | ||||||
|  | msgid "NTSC" | ||||||
|  | msgstr "NTSC" | ||||||
|  |  | ||||||
|  | msgid "SECAM" | ||||||
|  | msgstr "SECAM" | ||||||
|  |  | ||||||
|  | msgid "MAC" | ||||||
|  | msgstr "MAC" | ||||||
|  |  | ||||||
|  | msgid "Hz" | ||||||
|  | msgstr "Hz" | ||||||
|  |  | ||||||
|  | msgid "Complete Main (CM)" | ||||||
|  | msgstr "Pilnai pagrindinis (CM)" | ||||||
|  |  | ||||||
|  | msgid "Music and Effects (ME)" | ||||||
|  | msgstr "Muzika ir efektai (ME)" | ||||||
|  |  | ||||||
|  | msgid "Visually Impaired (VI)" | ||||||
|  | msgstr " (VI)" | ||||||
|  |  | ||||||
|  | msgid "Hearing Impaired (HI)" | ||||||
|  | msgstr " (HI)" | ||||||
|  |  | ||||||
|  | msgid "Dialogue (D)" | ||||||
|  | msgstr "Dialogas (D)" | ||||||
|  |  | ||||||
|  | msgid "Commentary (C)" | ||||||
|  | msgstr "Komentavimas (C)" | ||||||
|  |  | ||||||
|  | msgid "Emergency (E)" | ||||||
|  | msgstr "Avarinis (E)" | ||||||
|  |  | ||||||
|  | msgid "Voice Over (VO)" | ||||||
|  | msgstr "Voice over (VO)" | ||||||
|  |  | ||||||
|  | msgid "Karaoke" | ||||||
|  | msgstr "Karaoke" | ||||||
|  |  | ||||||
|  | msgid "Ch1" | ||||||
|  | msgstr "Kan1" | ||||||
|  |  | ||||||
|  | msgid "Ch2" | ||||||
|  | msgstr "Kan2" | ||||||
|  |  | ||||||
|  | msgid "C" | ||||||
|  | msgstr "C" | ||||||
|  |  | ||||||
|  | msgid "L" | ||||||
|  | msgstr "L" | ||||||
|  |  | ||||||
|  | msgid "R" | ||||||
|  | msgstr "R" | ||||||
|  |  | ||||||
|  | msgid "S" | ||||||
|  | msgstr "S" | ||||||
|  |  | ||||||
|  | msgid "SL" | ||||||
|  | msgstr "SL" | ||||||
|  |  | ||||||
|  | msgid "SR" | ||||||
|  | msgstr "SR" | ||||||
|  |  | ||||||
|  | msgid "dB" | ||||||
|  | msgstr "dB" | ||||||
|  |  | ||||||
|  | msgid "not indicated" | ||||||
|  | msgstr "nerasta" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "MHz" | ||||||
|  |  | ||||||
|  | msgid "free" | ||||||
|  | msgstr "frei" | ||||||
|  |  | ||||||
|  | msgid "Mbit/s" | ||||||
|  | msgstr "Mbit/s" | ||||||
|  |  | ||||||
|  | msgid "kbit/s" | ||||||
|  | msgstr "kbit/s" | ||||||
							
								
								
									
										28
									
								
								po/ru_RU.po
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								po/ru_RU.po
									
									
									
									
									
								
							| @@ -5,9 +5,9 @@ | |||||||
| # | # | ||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: femon 1.6.5\n" | "Project-Id-Version: femon 1.7.8\n" | ||||||
| "Report-Msgid-Bugs-To: Rolf Ahrenberg\n" | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
| "POT-Creation-Date: 2008-12-16 12:08+0200\n" | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
| "PO-Revision-Date: 2007-08-12 23:22+0300\n" | "PO-Revision-Date: 2007-08-12 23:22+0300\n" | ||||||
| "Last-Translator: Vyacheslav Dikonov\n" | "Last-Translator: Vyacheslav Dikonov\n" | ||||||
| "Language-Team: <vdr@linuxtv.org>\n" | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
| @@ -87,13 +87,10 @@ msgstr " | |||||||
| msgid "Define the position of OSD." | msgid "Define the position of OSD." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Define the height of OSD." | msgid "Downscale OSD size [%]" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Horizontal offset" | msgid "Define the downscale ratio for OSD size." | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| msgid "Define the horizontal offset of OSD." |  | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "Red limit [%]" | msgid "Red limit [%]" | ||||||
| @@ -231,12 +228,6 @@ msgstr "" | |||||||
| msgid "Low Frequency Effects" | msgid "Low Frequency Effects" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "on" |  | ||||||
| msgstr "<22><><EFBFBD>" |  | ||||||
|  |  | ||||||
| msgid "off" |  | ||||||
| msgstr "<22><><EFBFBD><EFBFBD>" |  | ||||||
|  |  | ||||||
| msgid "Dialogue Normalization" | msgid "Dialogue Normalization" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -273,6 +264,9 @@ msgstr "" | |||||||
| msgid "HE-AAC" | msgid "HE-AAC" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
| msgid "stereo" | msgid "stereo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -285,9 +279,6 @@ msgstr "" | |||||||
| msgid "mono" | msgid "mono" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| msgid "MHz" |  | ||||||
| msgstr "<22><><EFBFBD>" |  | ||||||
|  |  | ||||||
| msgid "interlaced" | msgid "interlaced" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| @@ -378,6 +369,9 @@ msgstr "dB" | |||||||
| msgid "not indicated" | msgid "not indicated" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "<22><><EFBFBD>" | ||||||
|  |  | ||||||
| msgid "free" | msgid "free" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										382
									
								
								po/zh_CN.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										382
									
								
								po/zh_CN.po
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,382 @@ | |||||||
|  | # VDR plugin language source file. | ||||||
|  | # Copyright (C) 2007 Rolf Ahrenberg | ||||||
|  | # This file is distributed under the same license as the femon package. | ||||||
|  | # Nan Feng VDR <nfgx@21cn.com>, 2009.2 | ||||||
|  | # | ||||||
|  | msgid "" | ||||||
|  | msgstr "" | ||||||
|  | "Project-Id-Version: femon 1.7.8\n" | ||||||
|  | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
|  | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
|  | "PO-Revision-Date: 2009-09-21 21:36+0800\n" | ||||||
|  | "Last-Translator: NanFeng <nfgx@21cn.com>\n" | ||||||
|  | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
|  | "MIME-Version: 1.0\n" | ||||||
|  | "Content-Type: text/plain; charset=UTF-8\n" | ||||||
|  | "Content-Transfer-Encoding: 8bit\n" | ||||||
|  |  | ||||||
|  | msgid "DVB Signal Information Monitor (OSD)" | ||||||
|  | msgstr "卫星信号信息显示(OSD)" | ||||||
|  |  | ||||||
|  | msgid "Signal Information" | ||||||
|  | msgstr "频道信息浏览" | ||||||
|  |  | ||||||
|  | msgid "Femon not available" | ||||||
|  | msgstr "Femon插件无法使用" | ||||||
|  |  | ||||||
|  | msgid "basic" | ||||||
|  | msgstr "基本" | ||||||
|  |  | ||||||
|  | msgid "transponder" | ||||||
|  | msgstr "转发器" | ||||||
|  |  | ||||||
|  | msgid "stream" | ||||||
|  | msgstr "数据流" | ||||||
|  |  | ||||||
|  | msgid "AC-3" | ||||||
|  | msgstr "AC-3" | ||||||
|  |  | ||||||
|  | msgid "Classic" | ||||||
|  | msgstr "经典" | ||||||
|  |  | ||||||
|  | msgid "Elchi" | ||||||
|  | msgstr "Elchi" | ||||||
|  |  | ||||||
|  | msgid "ST:TNG" | ||||||
|  | msgstr "ST:TNG" | ||||||
|  |  | ||||||
|  | msgid "DeepBlue" | ||||||
|  | msgstr "DeepBlue" | ||||||
|  |  | ||||||
|  | msgid "Moronimo" | ||||||
|  | msgstr "Moronimo" | ||||||
|  |  | ||||||
|  | msgid "Enigma" | ||||||
|  | msgstr "Enigma" | ||||||
|  |  | ||||||
|  | msgid "EgalsTry" | ||||||
|  | msgstr "EgalsTry" | ||||||
|  |  | ||||||
|  | msgid "Duotone" | ||||||
|  | msgstr "双色调" | ||||||
|  |  | ||||||
|  | msgid "SilverGreen" | ||||||
|  | msgstr "银绿" | ||||||
|  |  | ||||||
|  | msgid "Hide main menu entry" | ||||||
|  | msgstr "隐藏主菜单条目." | ||||||
|  |  | ||||||
|  | msgid "Define whether the main menu entry is hidden." | ||||||
|  | msgstr "确定是否进入主菜单是隐藏的." | ||||||
|  |  | ||||||
|  | msgid "Default display mode" | ||||||
|  | msgstr "默认启动时显示模式." | ||||||
|  |  | ||||||
|  | msgid "Define the default display mode at startup." | ||||||
|  | msgstr "定义默认启动时显示模式." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD skin." | ||||||
|  | msgstr "确定使用的菜单皮肤." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD theme." | ||||||
|  | msgstr "确定使用的菜单主题." | ||||||
|  |  | ||||||
|  | msgid "Position" | ||||||
|  | msgstr "位置" | ||||||
|  |  | ||||||
|  | msgid "Define the position of OSD." | ||||||
|  | msgstr "确定菜单的位置." | ||||||
|  |  | ||||||
|  | msgid "Downscale OSD size [%]" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Define the downscale ratio for OSD size." | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Red limit [%]" | ||||||
|  | msgstr "红限制[ % ]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for red bar, which is used to indicate a bad signal." | ||||||
|  | msgstr "定义一个限制红键,这是用来表示一个坏的信号." | ||||||
|  |  | ||||||
|  | msgid "Green limit [%]" | ||||||
|  | msgstr "绿限制[ % ]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for green bar, which is used to indicate a good signal." | ||||||
|  | msgstr "定义一个限制的绿色键,这是用来表示一个良好的信号." | ||||||
|  |  | ||||||
|  | msgid "OSD update interval [0.1s]" | ||||||
|  | msgstr "菜单更新间隔时间 [0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | ||||||
|  | msgstr "确定一个OSD的更新时间间隔.较小的间隔产生较高的CPU负载." | ||||||
|  |  | ||||||
|  | msgid "Analyze stream" | ||||||
|  | msgstr "分析流" | ||||||
|  |  | ||||||
|  | msgid "Define whether the DVB stream is analyzed and bitrates calculated." | ||||||
|  | msgstr "确定是否DVB流分析和比特率计算." | ||||||
|  |  | ||||||
|  | msgid "Calculation interval [0.1s]" | ||||||
|  | msgstr "计算时间间隔 [0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for calculation. The bigger interval generates more stable values." | ||||||
|  | msgstr "定义一个时间间隔来计算.更大的时间价格产生将更稳定." | ||||||
|  |  | ||||||
|  | msgid "Use SVDRP service" | ||||||
|  | msgstr "使用SVDRP服务" | ||||||
|  |  | ||||||
|  | msgid "Define whether the SVDRP service is used in client/server setups." | ||||||
|  | msgstr "定义是否SVDRP服务是用来在客户机/服务器的设置." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service port" | ||||||
|  | msgstr "SVDRP服务端口" | ||||||
|  |  | ||||||
|  | msgid "Define the port number of SVDRP service." | ||||||
|  | msgstr "定义SVDRP服务的端口号." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service IP" | ||||||
|  | msgstr "SVDRP服务的IP地址" | ||||||
|  |  | ||||||
|  | msgid "Define the IP address of SVDRP service." | ||||||
|  | msgstr "定义SVDRP服务的IP地址." | ||||||
|  |  | ||||||
|  | msgid "Help" | ||||||
|  | msgstr "帮助" | ||||||
|  |  | ||||||
|  | msgid "Video" | ||||||
|  | msgstr "视频" | ||||||
|  |  | ||||||
|  | msgid "Audio" | ||||||
|  | msgstr "音频" | ||||||
|  |  | ||||||
|  | msgid "Transponder Information" | ||||||
|  | msgstr "转发器信息" | ||||||
|  |  | ||||||
|  | msgid "Apid" | ||||||
|  | msgstr "Apid" | ||||||
|  |  | ||||||
|  | msgid "Dpid" | ||||||
|  | msgstr "Dpid" | ||||||
|  |  | ||||||
|  | msgid "Spid" | ||||||
|  | msgstr "Spid" | ||||||
|  |  | ||||||
|  | msgid "Nid" | ||||||
|  | msgstr "Nid" | ||||||
|  |  | ||||||
|  | msgid "Tid" | ||||||
|  | msgstr "Tid" | ||||||
|  |  | ||||||
|  | msgid "Rid" | ||||||
|  | msgstr "Rid" | ||||||
|  |  | ||||||
|  | msgid "Coderate" | ||||||
|  | msgstr "码速率" | ||||||
|  |  | ||||||
|  | msgid "Stream Information" | ||||||
|  | msgstr "流信息" | ||||||
|  |  | ||||||
|  | msgid "Video Stream" | ||||||
|  | msgstr "视频流" | ||||||
|  |  | ||||||
|  | msgid "Codec" | ||||||
|  | msgstr "解码模式" | ||||||
|  |  | ||||||
|  | msgid "Bitrate" | ||||||
|  | msgstr "比特率" | ||||||
|  |  | ||||||
|  | msgid "Aspect Ratio" | ||||||
|  | msgstr "纵横比" | ||||||
|  |  | ||||||
|  | msgid "Frame Rate" | ||||||
|  | msgstr "帧速率" | ||||||
|  |  | ||||||
|  | msgid "Video Format" | ||||||
|  | msgstr "视频制式" | ||||||
|  |  | ||||||
|  | msgid "Resolution" | ||||||
|  | msgstr "分辨率" | ||||||
|  |  | ||||||
|  | msgid "Audio Stream" | ||||||
|  | msgstr "音频流" | ||||||
|  |  | ||||||
|  | msgid "Channel Mode" | ||||||
|  | msgstr "声道模式" | ||||||
|  |  | ||||||
|  | msgid "Sampling Frequency" | ||||||
|  | msgstr "采样频率" | ||||||
|  |  | ||||||
|  | msgid "AC-3 Stream" | ||||||
|  | msgstr "AC-3流" | ||||||
|  |  | ||||||
|  | msgid "Bit Stream Mode" | ||||||
|  | msgstr "比特流模式" | ||||||
|  |  | ||||||
|  | msgid "Audio Coding Mode" | ||||||
|  | msgstr "音频编码模式" | ||||||
|  |  | ||||||
|  | msgid "Center Mix Level" | ||||||
|  | msgstr "中心混合级别" | ||||||
|  |  | ||||||
|  | msgid "Surround Mix Level" | ||||||
|  | msgstr "环绕混合级别" | ||||||
|  |  | ||||||
|  | msgid "Dolby Surround Mode" | ||||||
|  | msgstr "杜比环绕声模式" | ||||||
|  |  | ||||||
|  | msgid "Low Frequency Effects" | ||||||
|  | msgstr "低频效果" | ||||||
|  |  | ||||||
|  | msgid "Dialogue Normalization" | ||||||
|  | msgstr "对话正常化" | ||||||
|  |  | ||||||
|  | msgid "Fixed" | ||||||
|  | msgstr "固定" | ||||||
|  |  | ||||||
|  | msgid "Analog" | ||||||
|  | msgstr "模拟" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2" | ||||||
|  | msgstr "MPEG-2" | ||||||
|  |  | ||||||
|  | msgid "H.264" | ||||||
|  | msgstr "H.264" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer I" | ||||||
|  | msgstr "MPEG-1 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer II" | ||||||
|  | msgstr "MPEG-1 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer III" | ||||||
|  | msgstr "MPEG-1 Layer III" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer I" | ||||||
|  | msgstr "MPEG-2 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer II" | ||||||
|  | msgstr "MPEG-2 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer III" | ||||||
|  | msgstr "MPEG-2 Layer III" | ||||||
|  |  | ||||||
|  | msgid "HE-AAC" | ||||||
|  | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
|  | msgid "stereo" | ||||||
|  | msgstr "立体声" | ||||||
|  |  | ||||||
|  | msgid "joint Stereo" | ||||||
|  | msgstr "联合立体声" | ||||||
|  |  | ||||||
|  | msgid "dual" | ||||||
|  | msgstr "双重" | ||||||
|  |  | ||||||
|  | msgid "mono" | ||||||
|  | msgstr "单声道" | ||||||
|  |  | ||||||
|  | msgid "interlaced" | ||||||
|  | msgstr "隔行扫描" | ||||||
|  |  | ||||||
|  | msgid "progressive" | ||||||
|  | msgstr "进步" | ||||||
|  |  | ||||||
|  | msgid "reserved" | ||||||
|  | msgstr "保留" | ||||||
|  |  | ||||||
|  | msgid "extended" | ||||||
|  | msgstr "扩展" | ||||||
|  |  | ||||||
|  | msgid "unknown" | ||||||
|  | msgstr "未知" | ||||||
|  |  | ||||||
|  | msgid "component" | ||||||
|  | msgstr "组件" | ||||||
|  |  | ||||||
|  | msgid "PAL" | ||||||
|  | msgstr "PAL" | ||||||
|  |  | ||||||
|  | msgid "NTSC" | ||||||
|  | msgstr "NTSC" | ||||||
|  |  | ||||||
|  | msgid "SECAM" | ||||||
|  | msgstr "SECAM" | ||||||
|  |  | ||||||
|  | msgid "MAC" | ||||||
|  | msgstr "MAC" | ||||||
|  |  | ||||||
|  | msgid "Hz" | ||||||
|  | msgstr "赫兹" | ||||||
|  |  | ||||||
|  | msgid "Complete Main (CM)" | ||||||
|  | msgstr "完成主要 (CM)" | ||||||
|  |  | ||||||
|  | msgid "Music and Effects (ME)" | ||||||
|  | msgstr "音乐和效果 (ME)" | ||||||
|  |  | ||||||
|  | msgid "Visually Impaired (VI)" | ||||||
|  | msgstr "视障 (VI)" | ||||||
|  |  | ||||||
|  | msgid "Hearing Impaired (HI)" | ||||||
|  | msgstr "听障 (HI)" | ||||||
|  |  | ||||||
|  | msgid "Dialogue (D)" | ||||||
|  | msgstr "对话 (D)" | ||||||
|  |  | ||||||
|  | msgid "Commentary (C)" | ||||||
|  | msgstr "评论 (C)" | ||||||
|  |  | ||||||
|  | msgid "Emergency (E)" | ||||||
|  | msgstr "紧急 (E)" | ||||||
|  |  | ||||||
|  | msgid "Voice Over (VO)" | ||||||
|  | msgstr "旁白 (VO)" | ||||||
|  |  | ||||||
|  | msgid "Karaoke" | ||||||
|  | msgstr "卡拉OK" | ||||||
|  |  | ||||||
|  | msgid "Ch1" | ||||||
|  | msgstr "Ch1" | ||||||
|  |  | ||||||
|  | msgid "Ch2" | ||||||
|  | msgstr "Ch2" | ||||||
|  |  | ||||||
|  | msgid "C" | ||||||
|  | msgstr "C" | ||||||
|  |  | ||||||
|  | msgid "L" | ||||||
|  | msgstr "L" | ||||||
|  |  | ||||||
|  | msgid "R" | ||||||
|  | msgstr "R" | ||||||
|  |  | ||||||
|  | msgid "S" | ||||||
|  | msgstr "S" | ||||||
|  |  | ||||||
|  | msgid "SL" | ||||||
|  | msgstr "SL" | ||||||
|  |  | ||||||
|  | msgid "SR" | ||||||
|  | msgstr "SR" | ||||||
|  |  | ||||||
|  | msgid "dB" | ||||||
|  | msgstr "dB" | ||||||
|  |  | ||||||
|  | msgid "not indicated" | ||||||
|  | msgstr "没有说明" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "兆赫兹" | ||||||
|  |  | ||||||
|  | msgid "free" | ||||||
|  | msgstr "免费" | ||||||
|  |  | ||||||
|  | msgid "Mbit/s" | ||||||
|  | msgstr "兆位/秒" | ||||||
|  |  | ||||||
|  | msgid "kbit/s" | ||||||
|  | msgstr "千字节/秒" | ||||||
							
								
								
									
										382
									
								
								po/zh_TW.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										382
									
								
								po/zh_TW.po
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,382 @@ | |||||||
|  | # VDR plugin language source file.  | ||||||
|  | # Copyright (C) 2007 Rolf Ahrenberg  | ||||||
|  | # This file is distributed under the same license as the femon package.  | ||||||
|  | # Nan Feng VDR <nfgx@21cn.com>, 2009.2  | ||||||
|  | # | ||||||
|  | msgid "" | ||||||
|  | msgstr "" | ||||||
|  | "Project-Id-Version: femon 1.7.8\n" | ||||||
|  | "Report-Msgid-Bugs-To: <see README>\n" | ||||||
|  | "POT-Creation-Date: 2010-06-23 12:14+0300\n" | ||||||
|  | "PO-Revision-Date: 2009-09-21 21:36+0800\n" | ||||||
|  | "Last-Translator: NanFeng <nfgx@21cn.com>\n" | ||||||
|  | "Language-Team: <vdr@linuxtv.org>\n" | ||||||
|  | "MIME-Version: 1.0\n" | ||||||
|  | "Content-Type: text/plain; charset=UTF-8\n" | ||||||
|  | "Content-Transfer-Encoding: 8bit\n" | ||||||
|  |  | ||||||
|  | msgid "DVB Signal Information Monitor (OSD)" | ||||||
|  | msgstr "衛星信號信息顯示(OSD)" | ||||||
|  |  | ||||||
|  | msgid "Signal Information" | ||||||
|  | msgstr "頻道信息瀏覽" | ||||||
|  |  | ||||||
|  | msgid "Femon not available" | ||||||
|  | msgstr "Femon插件無法使用" | ||||||
|  |  | ||||||
|  | msgid "basic" | ||||||
|  | msgstr "基本" | ||||||
|  |  | ||||||
|  | msgid "transponder" | ||||||
|  | msgstr "轉發器" | ||||||
|  |  | ||||||
|  | msgid "stream" | ||||||
|  | msgstr "數據流" | ||||||
|  |  | ||||||
|  | msgid "AC-3" | ||||||
|  | msgstr "AC-3" | ||||||
|  |  | ||||||
|  | msgid "Classic" | ||||||
|  | msgstr "經典" | ||||||
|  |  | ||||||
|  | msgid "Elchi" | ||||||
|  | msgstr "Elchi" | ||||||
|  |  | ||||||
|  | msgid "ST:TNG" | ||||||
|  | msgstr "ST:TNG" | ||||||
|  |  | ||||||
|  | msgid "DeepBlue" | ||||||
|  | msgstr "DeepBlue" | ||||||
|  |  | ||||||
|  | msgid "Moronimo" | ||||||
|  | msgstr "Moronimo" | ||||||
|  |  | ||||||
|  | msgid "Enigma" | ||||||
|  | msgstr "Enigma" | ||||||
|  |  | ||||||
|  | msgid "EgalsTry" | ||||||
|  | msgstr "EgalsTry" | ||||||
|  |  | ||||||
|  | msgid "Duotone" | ||||||
|  | msgstr "雙色調" | ||||||
|  |  | ||||||
|  | msgid "SilverGreen" | ||||||
|  | msgstr "銀綠" | ||||||
|  |  | ||||||
|  | msgid "Hide main menu entry" | ||||||
|  | msgstr "隱藏主菜單條目." | ||||||
|  |  | ||||||
|  | msgid "Define whether the main menu entry is hidden." | ||||||
|  | msgstr "確定是否進入主菜單是隱藏的." | ||||||
|  |  | ||||||
|  | msgid "Default display mode" | ||||||
|  | msgstr "默認啟動時顯示模式." | ||||||
|  |  | ||||||
|  | msgid "Define the default display mode at startup." | ||||||
|  | msgstr "定義默認啟動時顯示模式." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD skin." | ||||||
|  | msgstr "確定使用的菜單皮膚." | ||||||
|  |  | ||||||
|  | msgid "Define the used OSD theme." | ||||||
|  | msgstr "確定使用的菜單主題." | ||||||
|  |  | ||||||
|  | msgid "Position" | ||||||
|  | msgstr "位置" | ||||||
|  |  | ||||||
|  | msgid "Define the position of OSD." | ||||||
|  | msgstr "確定菜單的位置." | ||||||
|  |  | ||||||
|  | msgid "Downscale OSD size [%]" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Define the downscale ratio for OSD size." | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | msgid "Red limit [%]" | ||||||
|  | msgstr "紅限制[ % ]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for red bar, which is used to indicate a bad signal." | ||||||
|  | msgstr "定義一個限制紅鍵,這是用來表示一個壞的信號." | ||||||
|  |  | ||||||
|  | msgid "Green limit [%]" | ||||||
|  | msgstr "綠限制[ % ]" | ||||||
|  |  | ||||||
|  | msgid "Define a limit for green bar, which is used to indicate a good signal." | ||||||
|  | msgstr "定義一個限制的綠色鍵,這是用來表示一個良好的信號." | ||||||
|  |  | ||||||
|  | msgid "OSD update interval [0.1s]" | ||||||
|  | msgstr "菜單更新間隔時間[0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for OSD updates. The smaller interval generates higher CPU load." | ||||||
|  | msgstr "確定一個OSD的更新時間間隔.較小的間隔產生較高的CPU負載." | ||||||
|  |  | ||||||
|  | msgid "Analyze stream" | ||||||
|  | msgstr "分析流" | ||||||
|  |  | ||||||
|  | msgid "Define whether the DVB stream is analyzed and bitrates calculated." | ||||||
|  | msgstr "確定是否DVB流分析和比特率計算." | ||||||
|  |  | ||||||
|  | msgid "Calculation interval [0.1s]" | ||||||
|  | msgstr "計算時間間隔[0.1s]" | ||||||
|  |  | ||||||
|  | msgid "Define an interval for calculation. The bigger interval generates more stable values." | ||||||
|  | msgstr "定義一個時間間隔來計算.更大的時間價格產生將更穩定." | ||||||
|  |  | ||||||
|  | msgid "Use SVDRP service" | ||||||
|  | msgstr "使用SVDRP服務" | ||||||
|  |  | ||||||
|  | msgid "Define whether the SVDRP service is used in client/server setups." | ||||||
|  | msgstr "定義是否SVDRP服務是用來在客戶機/服務器的設置." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service port" | ||||||
|  | msgstr "SVDRP服務端口" | ||||||
|  |  | ||||||
|  | msgid "Define the port number of SVDRP service." | ||||||
|  | msgstr "定義SVDRP服務的端口號." | ||||||
|  |  | ||||||
|  | msgid "SVDRP service IP" | ||||||
|  | msgstr "SVDRP服務的IP地址" | ||||||
|  |  | ||||||
|  | msgid "Define the IP address of SVDRP service." | ||||||
|  | msgstr "定義SVDRP服務的IP地址." | ||||||
|  |  | ||||||
|  | msgid "Help" | ||||||
|  | msgstr "幫助" | ||||||
|  |  | ||||||
|  | msgid "Video" | ||||||
|  | msgstr "視頻" | ||||||
|  |  | ||||||
|  | msgid "Audio" | ||||||
|  | msgstr "音頻" | ||||||
|  |  | ||||||
|  | msgid "Transponder Information" | ||||||
|  | msgstr "轉發器信息" | ||||||
|  |  | ||||||
|  | msgid "Apid" | ||||||
|  | msgstr "Apid" | ||||||
|  |  | ||||||
|  | msgid "Dpid" | ||||||
|  | msgstr "Dpid" | ||||||
|  |  | ||||||
|  | msgid "Spid" | ||||||
|  | msgstr "Spid" | ||||||
|  |  | ||||||
|  | msgid "Nid" | ||||||
|  | msgstr "Nid" | ||||||
|  |  | ||||||
|  | msgid "Tid" | ||||||
|  | msgstr "Tid" | ||||||
|  |  | ||||||
|  | msgid "Rid" | ||||||
|  | msgstr "Rid" | ||||||
|  |  | ||||||
|  | msgid "Coderate" | ||||||
|  | msgstr "碼速率" | ||||||
|  |  | ||||||
|  | msgid "Stream Information" | ||||||
|  | msgstr "流信息" | ||||||
|  |  | ||||||
|  | msgid "Video Stream" | ||||||
|  | msgstr "視頻流" | ||||||
|  |  | ||||||
|  | msgid "Codec" | ||||||
|  | msgstr "解碼模式" | ||||||
|  |  | ||||||
|  | msgid "Bitrate" | ||||||
|  | msgstr "比特率" | ||||||
|  |  | ||||||
|  | msgid "Aspect Ratio" | ||||||
|  | msgstr "縱橫比" | ||||||
|  |  | ||||||
|  | msgid "Frame Rate" | ||||||
|  | msgstr "幀速率" | ||||||
|  |  | ||||||
|  | msgid "Video Format" | ||||||
|  | msgstr "視頻制式" | ||||||
|  |  | ||||||
|  | msgid "Resolution" | ||||||
|  | msgstr "分辨率" | ||||||
|  |  | ||||||
|  | msgid "Audio Stream" | ||||||
|  | msgstr "音頻流" | ||||||
|  |  | ||||||
|  | msgid "Channel Mode" | ||||||
|  | msgstr "聲道模式" | ||||||
|  |  | ||||||
|  | msgid "Sampling Frequency" | ||||||
|  | msgstr "採樣頻率" | ||||||
|  |  | ||||||
|  | msgid "AC-3 Stream" | ||||||
|  | msgstr "AC-3流" | ||||||
|  |  | ||||||
|  | msgid "Bit Stream Mode" | ||||||
|  | msgstr "比特流模式" | ||||||
|  |  | ||||||
|  | msgid "Audio Coding Mode" | ||||||
|  | msgstr "音頻編碼模式" | ||||||
|  |  | ||||||
|  | msgid "Center Mix Level" | ||||||
|  | msgstr "中心混合級別" | ||||||
|  |  | ||||||
|  | msgid "Surround Mix Level" | ||||||
|  | msgstr "環繞混合級別" | ||||||
|  |  | ||||||
|  | msgid "Dolby Surround Mode" | ||||||
|  | msgstr "杜比環繞聲模式" | ||||||
|  |  | ||||||
|  | msgid "Low Frequency Effects" | ||||||
|  | msgstr "低頻效果" | ||||||
|  |  | ||||||
|  | msgid "Dialogue Normalization" | ||||||
|  | msgstr "對話正常化" | ||||||
|  |  | ||||||
|  | msgid "Fixed" | ||||||
|  | msgstr "固定" | ||||||
|  |  | ||||||
|  | msgid "Analog" | ||||||
|  | msgstr "模擬" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2" | ||||||
|  | msgstr "MPEG-2" | ||||||
|  |  | ||||||
|  | msgid "H.264" | ||||||
|  | msgstr "H.264" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer I" | ||||||
|  | msgstr "MPEG-1 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer II" | ||||||
|  | msgstr "MPEG-1 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-1 Layer III" | ||||||
|  | msgstr "MPEG-1 Layer III" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer I" | ||||||
|  | msgstr "MPEG-2 Layer I" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer II" | ||||||
|  | msgstr "MPEG-2 Layer II" | ||||||
|  |  | ||||||
|  | msgid "MPEG-2 Layer III" | ||||||
|  | msgstr "MPEG-2 Layer III" | ||||||
|  |  | ||||||
|  | msgid "HE-AAC" | ||||||
|  | msgstr "HE-AAC" | ||||||
|  |  | ||||||
|  | msgid "LATM" | ||||||
|  | msgstr "LATM" | ||||||
|  |  | ||||||
|  | msgid "stereo" | ||||||
|  | msgstr "立體聲" | ||||||
|  |  | ||||||
|  | msgid "joint Stereo" | ||||||
|  | msgstr "聯合立體聲" | ||||||
|  |  | ||||||
|  | msgid "dual" | ||||||
|  | msgstr "雙重" | ||||||
|  |  | ||||||
|  | msgid "mono" | ||||||
|  | msgstr "單聲道" | ||||||
|  |  | ||||||
|  | msgid "interlaced" | ||||||
|  | msgstr "隔行掃描" | ||||||
|  |  | ||||||
|  | msgid "progressive" | ||||||
|  | msgstr "進步" | ||||||
|  |  | ||||||
|  | msgid "reserved" | ||||||
|  | msgstr "保留" | ||||||
|  |  | ||||||
|  | msgid "extended" | ||||||
|  | msgstr "擴展" | ||||||
|  |  | ||||||
|  | msgid "unknown" | ||||||
|  | msgstr "未知" | ||||||
|  |  | ||||||
|  | msgid "component" | ||||||
|  | msgstr "組件" | ||||||
|  |  | ||||||
|  | msgid "PAL" | ||||||
|  | msgstr "PAL" | ||||||
|  |  | ||||||
|  | msgid "NTSC" | ||||||
|  | msgstr "NTSC" | ||||||
|  |  | ||||||
|  | msgid "SECAM" | ||||||
|  | msgstr "SECAM" | ||||||
|  |  | ||||||
|  | msgid "MAC" | ||||||
|  | msgstr "MAC" | ||||||
|  |  | ||||||
|  | msgid "Hz" | ||||||
|  | msgstr "赫茲" | ||||||
|  |  | ||||||
|  | msgid "Complete Main (CM)" | ||||||
|  | msgstr "完成主要(CM)" | ||||||
|  |  | ||||||
|  | msgid "Music and Effects (ME)" | ||||||
|  | msgstr "音樂和效果(ME)" | ||||||
|  |  | ||||||
|  | msgid "Visually Impaired (VI)" | ||||||
|  | msgstr "視障(VI)" | ||||||
|  |  | ||||||
|  | msgid "Hearing Impaired (HI)" | ||||||
|  | msgstr "聽障(HI)" | ||||||
|  |  | ||||||
|  | msgid "Dialogue (D)" | ||||||
|  | msgstr "對話(D)" | ||||||
|  |  | ||||||
|  | msgid "Commentary (C)" | ||||||
|  | msgstr "評論(C)" | ||||||
|  |  | ||||||
|  | msgid "Emergency (E)" | ||||||
|  | msgstr "緊急(E)" | ||||||
|  |  | ||||||
|  | msgid "Voice Over (VO)" | ||||||
|  | msgstr "旁白(VO)" | ||||||
|  |  | ||||||
|  | msgid "Karaoke" | ||||||
|  | msgstr "卡拉OK" | ||||||
|  |  | ||||||
|  | msgid "Ch1" | ||||||
|  | msgstr "Ch1" | ||||||
|  |  | ||||||
|  | msgid "Ch2" | ||||||
|  | msgstr "Ch2" | ||||||
|  |  | ||||||
|  | msgid "C" | ||||||
|  | msgstr "C" | ||||||
|  |  | ||||||
|  | msgid "L" | ||||||
|  | msgstr "L" | ||||||
|  |  | ||||||
|  | msgid "R" | ||||||
|  | msgstr "R" | ||||||
|  |  | ||||||
|  | msgid "S" | ||||||
|  | msgstr "S" | ||||||
|  |  | ||||||
|  | msgid "SL" | ||||||
|  | msgstr "SL" | ||||||
|  |  | ||||||
|  | msgid "SR" | ||||||
|  | msgstr "SR" | ||||||
|  |  | ||||||
|  | msgid "dB" | ||||||
|  | msgstr "dB" | ||||||
|  |  | ||||||
|  | msgid "not indicated" | ||||||
|  | msgstr "沒有說明" | ||||||
|  |  | ||||||
|  | msgid "MHz" | ||||||
|  | msgstr "兆赫茲" | ||||||
|  |  | ||||||
|  | msgid "free" | ||||||
|  | msgstr "免費" | ||||||
|  |  | ||||||
|  | msgid "Mbit/s" | ||||||
|  | msgstr "兆位/秒" | ||||||
|  |  | ||||||
|  | msgid "kbit/s" | ||||||
|  | msgstr "千字節/秒" | ||||||
							
								
								
									
										23
									
								
								symbols/eight.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								symbols/eight.xpm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | /* XPM */ | ||||||
|  | static const char *const eight_xpm[] = { | ||||||
|  | "15 18 2 1", | ||||||
|  | ".	c #FFFFFF", | ||||||
|  | "+	c #000000", | ||||||
|  | "+++++++++++++++", | ||||||
|  | "..............+", | ||||||
|  | ".....++++.....+", | ||||||
|  | "....++++++....+", | ||||||
|  | "....++..++....+", | ||||||
|  | "...++....++...+", | ||||||
|  | "...++....++...+", | ||||||
|  | "....++..++....+", | ||||||
|  | ".....++++.....+", | ||||||
|  | ".....++++.....+", | ||||||
|  | "....++..++....+", | ||||||
|  | "...++....++...+", | ||||||
|  | "...++....++...+", | ||||||
|  | "....++..++....+", | ||||||
|  | "....++++++....+", | ||||||
|  | ".....++++.....+", | ||||||
|  | "..............+", | ||||||
|  | "+++++++++++++++"}; | ||||||
							
								
								
									
										23
									
								
								symbols/format1080.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								symbols/format1080.xpm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | /* XPM */ | ||||||
|  | static const char *const format1080_xpm[] = { | ||||||
|  | "40 18 2 1", | ||||||
|  | ".	c #FFFFFF", | ||||||
|  | "+	c #000000", | ||||||
|  | "++++++++++++++++++++++++++++++++++++++++", | ||||||
|  | "+......................................+", | ||||||
|  | "+......++...++++.....++++.....++++.....+", | ||||||
|  | "+...+++++..++++++...++++++...++++++....+", | ||||||
|  | "+...+++++..++..++...++..++...++..++....+", | ||||||
|  | "+......++.++....++.++....++.++....++...+", | ||||||
|  | "+......++.++....++.++....++.++....++...+", | ||||||
|  | "+......++.++....++..++..++..++....++...+", | ||||||
|  | "+......++.++....++...++++...++....++...+", | ||||||
|  | "+......++.++....++...++++...++....++...+", | ||||||
|  | "+......++.++....++..++..++..++....++...+", | ||||||
|  | "+......++.++....++.++....++.++....++...+", | ||||||
|  | "+......++.++....++.++....++.++....++...+", | ||||||
|  | "+......++..++..++...++..++...++..++....+", | ||||||
|  | "+......++..++++++...++++++...++++++....+", | ||||||
|  | "+......++...++++.....++++.....++++.....+", | ||||||
|  | "+......................................+", | ||||||
|  | "++++++++++++++++++++++++++++++++++++++++"}; | ||||||
							
								
								
									
										23
									
								
								symbols/format480.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								symbols/format480.xpm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | /* XPM */ | ||||||
|  | static const char *const format480_xpm[] = { | ||||||
|  | "35 18 2 1", | ||||||
|  | ".	c #FFFFFF", | ||||||
|  | "+	c #000000", | ||||||
|  | "+++++++++++++++++++++++++++++++++++", | ||||||
|  | "+.................................+", | ||||||
|  | "+.........++....++++.....++++.....+", | ||||||
|  | "+........+++...++++++...++++++....+", | ||||||
|  | "+.......++++...++..++...++..++....+", | ||||||
|  | "+......++.++..++....++.++....++...+", | ||||||
|  | "+.....++..++..++....++.++....++...+", | ||||||
|  | "+.....++..++...++..++..++....++...+", | ||||||
|  | "+....++...++....++++...++....++...+", | ||||||
|  | "+...++....++....++++...++....++...+", | ||||||
|  | "+...+++++++++..++..++..++....++...+", | ||||||
|  | "+...+++++++++.++....++.++....++...+", | ||||||
|  | "+.........++..++....++.++....++...+", | ||||||
|  | "+.........++...++..++...++..++....+", | ||||||
|  | "+.........++...++++++...++++++....+", | ||||||
|  | "+.........++....++++.....++++.....+", | ||||||
|  | "+.................................+", | ||||||
|  | "+++++++++++++++++++++++++++++++++++"}; | ||||||
							
								
								
									
										23
									
								
								symbols/format576.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								symbols/format576.xpm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | /* XPM */ | ||||||
|  | static const char *const format576_xpm[] = { | ||||||
|  | "33 18 2 1", | ||||||
|  | ".	c #FFFFFF", | ||||||
|  | "+	c #000000", | ||||||
|  | "+++++++++++++++++++++++++++++++++", | ||||||
|  | "+...............................+", | ||||||
|  | "+...+++++++.++++++++..++++++....+", | ||||||
|  | "+...+++++++.++++++++.++++++++...+", | ||||||
|  | "+...++......++....++.+++...++...+", | ||||||
|  | "+...++............++.++.........+", | ||||||
|  | "+...++...........+++.++.........+", | ||||||
|  | "+...++++++.......++..++.+++.....+", | ||||||
|  | "+...+++++++......++..+++++++....+", | ||||||
|  | "+...++...+++....+++..+++..+++...+", | ||||||
|  | "+.........++....++...++....++...+", | ||||||
|  | "+.........++....++...++....++...+", | ||||||
|  | "+...++....++...+++...++....++...+", | ||||||
|  | "+...++...+++...++....+++..+++...+", | ||||||
|  | "+...+++++++....++....+++++++....+", | ||||||
|  | "+....+++++.....++.....+++++.....+", | ||||||
|  | "+...............................+", | ||||||
|  | "+++++++++++++++++++++++++++++++++"}; | ||||||
							
								
								
									
										23
									
								
								symbols/format720.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								symbols/format720.xpm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | /* XPM */ | ||||||
|  | static const char *const format720_xpm[] = { | ||||||
|  | "34 18 2 1", | ||||||
|  | ".	c #FFFFFF", | ||||||
|  | "+	c #000000", | ||||||
|  | "++++++++++++++++++++++++++++++++++", | ||||||
|  | "+................................+", | ||||||
|  | "+...++++++++...++++.....++++.....+", | ||||||
|  | "+...++++++++.+++++++...++++++....+", | ||||||
|  | "+...++....++.++....++..++..++....+", | ||||||
|  | "+.........++.......++.++....++...+", | ||||||
|  | "+.........++.......++.++....++...+", | ||||||
|  | "+.........++.......++.++....++...+", | ||||||
|  | "+........++......+++..++....++...+", | ||||||
|  | "+.......+++.....+++...++....++...+", | ||||||
|  | "+.......++.....+++....++....++...+", | ||||||
|  | "+.......++....+++.....++....++...+", | ||||||
|  | "+......+++...+++......++....++...+", | ||||||
|  | "+......++....++........++..++....+", | ||||||
|  | "+......++....++++++++..++++++....+", | ||||||
|  | "+......++....++++++++...++++.....+", | ||||||
|  | "+................................+", | ||||||
|  | "++++++++++++++++++++++++++++++++++"}; | ||||||
		Reference in New Issue
	
	Block a user