comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: read 12 bit array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: read 12 bit array [message #75586 is a reply to message #75585] Thu, 31 March 2011 07:54 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Mar 31, 9:52 am, Wox <s...@nomail.com> wrote:
> Hi all,
>
> Does anyone have an idea how to read a 12bit array from a file (not
> ASCII, just a binary dump).
>
> Thanks,
>
> Wout

You can read the bytes one by one with readu and then manually
split each set of 2 bytes into it's corresponding 12 bits components
following the patter 12+4, 8+8, 4+12 etc.

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: hardware renderer
Next Topic: Bringing widgets to the front

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:09:48 PDT 2025

Total time taken to generate the page: 0.00280 seconds