dmsdk
[Top] [All Lists]

Re: Digital Media on Irix 6.5 AES output question

To: dmsdk@xxxxxxxxxxx
Subject: Re: Digital Media on Irix 6.5 AES output question
From: Michael Pruett <mpruett@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Jun 2001 09:32:06 -0700 (PDT)
In-reply-to: <20010627182013.A30320@xxxxxxxxxxxxxxxx> from "Calle Lejdfors" at Jun 27, 2001 06:20:13 PM
Sender: owner-dmsdk@xxxxxxxxxxx
> Hello.
> 
> I tried doing the open two ports thingie in AL but I can't get the
> decoder to recognize the AC-3 stream. This is how I do it (simplified):
> 
>  0. Set NA bit in the stream channel status word and setup output port
>     to 24 byte sample width with 2 complement sample format.
>  1. Read AC-3 stream preamble+burst from file. 
>  2. Pack 32 bit preamble and burst into a 32 bit integer array in
>     16 bit chunks. 

Break the AC-3 stream into 24-bit chunks.

AES allows for 24 bits per sample, and that space is used no matter how
many bits you give the AL or dmSDK.  If you use 16-bit samples, AL or
dmSDK will fill in the high-order 8 bits of each sample as the sign
extension (0xff for negative samples and 0x00 for positive sampes).

Michael

<Prev in Thread] Current Thread [Next in Thread>