LCDproc development and user support list

Text archives Help


[Lcdproc] PATCH: Enable picolcd to pass IR codes to LIRC via UDP (redone)


Chronological Thread 
  • From: peter at adpm.de (Peter Marschall)
  • Subject: [Lcdproc] PATCH: Enable picolcd to pass IR codes to LIRC via UDP (redone)
  • Date: Sat, 20 Sep 2008 20:33:07 +0200

On Saturday, 20. September 2008, Jack Cleaver wrote:
> Peter Marschall wrote:
> >[...]
> >
> > One more question: Is p->gap really necessary ? Is it a variable that
> > needs to keep its value across multiple calls of ir_transcode() ?
>
> Yes, it is a kind of running total: a single IR command can (and
> generally will) produce multiple events, each event presenting one
> buffer that needs to be transcoded. A typical IR command requires (I
> think) seven buffers (only repeat codes fit in a single buffer). The
> actual 'length' of one command is the sum of the durations of the marks
> and spaces from all the buffers comprising that command.
> The final gap g, after all buffers have been processed, is the value
> g = f - sum(d)
> where f is a notional fixed duration shared by all commands, and sum(d)
> is the sum of the durations of all the mark and space intervals
> comprising one command.
>
> HTH.
Yepp, it helped.
We need to keep gap a member of PrivateData.

Awaiting your Feedback.
Peter

--
Peter Marschall
peter at adpm.de




Archive powered by MHonArc 2.6.18.

Top of page