[FFmpeg-devel] [PATCH] Demuxer for Leitch/Harris' VR native stream format (LXF)

Tomas Härdin tomas.hardin
Wed Sep 29 09:55:28 CEST 2010


On Tue, 2010-09-28 at 19:55 +0200, Michael Niedermayer wrote:
> On Tue, Sep 28, 2010 at 02:59:13PM +0200, Tomas H?rdin wrote:
> [...]
> > +#define LXF_PACKET_HEADER_SIZE  60
> > +#define LXF_HEADER_DATA_SIZE    120
> > +#define LXF_IDENT               "LEITCH\0"
> > +#define LXF_IDENT_LENGTH        8
> > +#define LXF_SAMPLERATE          48000
> > +#define LXF_MAX_AUDIO_PACKET    (8008*15*4)     //15-channel 32-bit NTSC audio frame
> > +
> > +static const AVCodecTag lxf_tags[] = {
> > +    { CODEC_ID_MJPEG,       0 },
> > +    { CODEC_ID_MPEG1VIDEO,  1 },
> > +    { CODEC_ID_MPEG2VIDEO,  2 },    //MpMl, 4:2:0
> > +    { CODEC_ID_MPEG2VIDEO,  3 },    //MpPl, 4:2:2
> > +    { CODEC_ID_DVVIDEO,     4 },    //DV25
> > +    { CODEC_ID_DVVIDEO,     5 },    //DVCPRO
> > +    { CODEC_ID_DVVIDEO,     6 },    //DVCPRO50
> > +    { CODEC_ID_RAWVIDEO,    7 },    //PIX_FMT_ARGB, where alpha is used for chroma keying
> > +    { CODEC_ID_RAWVIDEO,    8 },    //16-bit chroma key
> > +    { CODEC_ID_MPEG2VIDEO,  9 },    //4:2:2 CBP ("Constrained Bytes per Gop")
> > +    { CODEC_ID_NONE,        0 },
> > +};
> > +
> > +typedef struct {
> > +    int channels;                       //number of audio channels. 0 -> no audio
> > +    uint8_t temp[LXF_MAX_AUDIO_PACKET]; //temp buffer for de-planarizing the audio data
> > +    int frame_number;
> > +} LXFDemuxContext;
> 
> the comments dont look doxygen compatible

Fixed. doxygen didn't make use of doxyfied comments in lxf_tags, so I
left them as is. Otherwise they get stripped from the code listing. I
also added a comment for frame_number. Updated patch attached.

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxfdec8.patch
Type: text/x-patch
Size: 14736 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100929/b2ffa5fa/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100929/b2ffa5fa/attachment.pgp>



More information about the ffmpeg-devel mailing list