Re: to be effcient or not to be efficient

"Toby Hudon" <[email protected]>
Newsgroups gmane.comp.multimedia.media-api
Message-ID <[email protected]>
----- Original Message -----
From: Steve Lhomme <[email protected]>
Date: Wed, 07 Jan 2004 19:44:01 +0100
To: "The attempt to create a new,  open standard codec API" <[email protected]>
Subject: Re: [Media-api] to be effcient or not to be efficient

> Attila Kinali wrote:
> 
> >>Consider this :
> >>struct _blah {
> >>	uint16 Size;
> >>	uint8  FieldA;
> >>	uint32 FieldB;
> >>	char   FieldC[30];
> >>};
> >>
> >>Now (after a few years) you realise that you need FieldA to be on 2 
> >>octets instead of 1. You simply can't. And you can with EBML.
> > 
> > 
> > Yes, but you can foretell whether there could be a need to extend
> > a field as you already know what kind of information is available.
> > Beside, i would consider a new version of the API if such a change
> > is needed.
> 
> So what happens to the older apps ?
> 

This is why I did my design the way I did. Since all the old messages are still there they all work fine, just as they did before.

> >>OK, so what would you use ? The output pulls the data (no lock needed) ? 
> >>The input pushes the data (lock needed while data are not needed yet) ? 
> >>How is seeking handled ? When you're in the middle of decoding an I 
> >>frame for example ?
> > 
> > 
> > Can't say. I know mplayer G1 and vlc use a push system while
> > mplayer G2 will use a pull system (Rich/Arpi said that there are
> > some problems with push systems that can be circumvented with pull
> > systems), but i lack to much experience to decide this.
> 
> I read MPlayer G2 vp. Actually there is push/pull/in-place processing... 
> I hope you don't have to implement all of them for each filter :/
> 

This was another one of the reasons I wanted this system. I don't like the idea of having a whole mess of functions and making every single codec, filter, etc implement ALL of them, even if it's just a return "I don't support this" function. It's irritating and unnecessary, and anytime you add something you break them all. I want to avoid that.


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.