The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xPLRioNet MVP Video Transcoding


  • Subject: Re: xPLRioNet MVP Video Transcoding
  • From: Tom Van den Panhuyzen <tomvdp@xxxxxxxxx>
  • Date: Sun, 27 Feb 2005 17:24:05 +0100
  • References: <4221844c.559060db.4cbe.066cSMTPIN_ADDED@mx.gmail.com>


> I'd like to ask any vb.net (or c.net) programmers out there if they
can
> solve an issue for me that would reduce the processing time. The video
comes
> in to xplrionet as type 'char' but has to be converted to type 'byte'.
> Currently I'm having to loop 200,000 times a packet doing
> bytevar(x)=asc(charvar(x)). Is there a faster/better way of doing this
> please?

Try:
arByte = Encoding.ASCII.GetBytes(arChar)

You will need to add System.Text to the Imports.
There are other encodings in case the original encoding isn't ASCII
(but Unicode, etc).

Hth,
Tom


xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.