On Sat, Aug 23, 2008 at 09:23:25PM +0200, Michael Niedermayer wrote:
> On Sat, Aug 23, 2008 at 06:23:16PM +0200, Baptiste Coudurier wrote:
> > Michael Niedermayer wrote:
[...]
> > UID is just a way to reference unique metadata in mxf file, enum seems
> > not needed, streams[0] and streams[1] does not necessearly need to have
> > number in sequence.
>
> no, but if they do not then you will have to store many UUIDs, thats the way
> it was originally and it was a huge mess
>
> struct{
> thisUUID
> thatUUID
> moreUUID[10]
> *evenMoreUUID;
> evenMoreUUID_count;
> }
>
> and then
> 1. init
> init_uuid(s->thisUUID);
> init_uuid(s->thatUUID);
> for(i=0; i<10; i++)
> init_uuid(s->moreUUID[i]);
> s->evenMoreUUID= malloc(s->evenMoreUUID_count * sizeof)
> for(i=0; i<s->evenMoreUUID_count; i++)
> init_uuid(s->evenMoreUUID[i]);
> 2. write references (and the same again for the actual references parts)
> write_uuid(s->thisUUID);
> write_uuid(s->thatUUID);
> for(i=0; i<10; i++)
> write_uuid(s->moreUUID[i]);
> for(i=0; i<s->evenMoreUUID_count; i++)
> write_uuid(s->evenMoreUUID[i]);
> 3. free
> av_freep(&s->evenMoreUUID);
>
> that is vs. the current:
>
> 1. init
> nothing
>
> 2. write reference
> write_uuid(THIS_UUID, 0);
> write_uuid(THAT_UUID, 1);
> for(i=0; i<10; i++)
> write_uuid(MORE_UUID, i);
> for(i=0; i<s->evenMoreUUID_count; i++)> write_uuid(EVEN_MORE_UUID[i], i); that of course was meant to be write_uuid(EVEN_MORE_UUID, i); > > 3. free > nothing [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB While the State exists there can be no freedom; when there is freedom there will be no State. -- Vladimir Lenin
signature.asc
Description: Digital signature
_______________________________________________ FFmpeg-soc mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc
