in reply to Re^6: encoding hdmi video byte
in thread encoding hdmi video byte
Okay. I took your spec and coded this slow and labourious implementation and applied it to the bytes 0 .. 255:
#! perl -slw use strict; use Data::Dump qw[ pp ]; my %map; for my $i ( 0 .. 255 ) { my @Q; my @D = split '', unpack 'b8', chr $i; $Q[ 0 ] = $D[ 0 ]; $Q[ 1 ] = $D[ 1 ] ^ $Q[ 0 ]; $Q[ 2 ] = $D[ 2 ] ^ $Q[ 1 ]; $Q[ 3 ] = $D[ 3 ] ^ $Q[ 2 ]; $Q[ 4 ] = $D[ 4 ] ^ $Q[ 3 ]; $Q[ 5 ] = $D[ 5 ] ^ $Q[ 4 ]; $Q[ 6 ] = $D[ 6 ] ^ $Q[ 5 ]; $Q[ 7 ] = $D[ 7 ] ^ $Q[ 6 ]; my $outb = ord pack 'b8', "@Q"; $map{ $i } = $outb; } pp \%map;
And it produced this output:
That's a byte to byte mapping table. I then used that to build the translation table I posted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: encoding hdmi video byte
by AnomalousMonk (Archbishop) on Feb 24, 2010 at 23:54 UTC | |
by BrowserUk (Patriarch) on Feb 25, 2010 at 00:12 UTC | |
by hdmiguru (Initiate) on Feb 25, 2010 at 16:36 UTC | |
by AnomalousMonk (Archbishop) on Feb 25, 2010 at 18:16 UTC | |
|
Re^8: encoding hdmi video byte
by hdmiguru (Initiate) on Feb 24, 2010 at 22:01 UTC | |
by AnomalousMonk (Archbishop) on Feb 25, 2010 at 00:43 UTC | |
by BrowserUk (Patriarch) on Feb 25, 2010 at 10:37 UTC | |
by hdmiguru (Initiate) on Feb 25, 2010 at 17:13 UTC |