[Mplayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.30,1.31

Alex Beregszaszi alex at fsn.hu
Sun Sep 7 21:21:03 CEST 2003


Hi,

> > example channel order of audio (l,r,lfe,...) and probably others.
> maybe that should be just added to the audio stream packet
Let's discuss this.

Channel types (did I left out some?):
 left
 right
 surround left
 surround right
 center
 lfe (low freq.)

Proposed infopacket entry:
StreamId <aid>
Channelorder "L,C,R,SL,SR,LFE"

or follow the way of ac3? or forgot this as the codecs which support
such features also should have info about order?

So does ac3:
...
    static const uint8_t acmod_defs[6] = {
        0x01, /* C */    
        0x02, /* L R */  
        0x03, /* L C R */
        0x06, /* L R SL SR */  
        0x07, /* L C R SL SR */
        0x07, /* L C R SL SR (+LFE) */
    };

    /* number of channels */
    if (channels < 1 || channels > 6)
        return -1;
    s->acmod = acmod_defs[channels - 1];
    s->lfe = (channels == 6) ? 1 : 0;
...

-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)



More information about the MPlayer-cvslog mailing list