OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [src_fpga/] [build/] [dehex.pl] - Rev 100

Compare with Previous | Blame | View Log

#!/usr/local/bin/perl
 
 
 
open(INF, $ARGV[0]) || die("\nCan't open $ARGV[0] for reading: $!\n");
open(OUTF, ">$ARGV[1]") || die("\nCan't open $ARGV[1] for writing: $!\n");
 
binmode OUTF;
 
while ($temp=<INF>) {
    chop($temp);
    $s = length($temp);
    $byteCount += $s/2;
    print OUTF pack("H$s", $temp);
}
 
close INF;
close OUTF;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.