Re:sketch implementation
Char Acter <[email protected]> Thu, 27 Mar 2003 00:21:40 -0800 (PST)
| Newsgroups | gmane.comp.video.h264.devel |
|---|---|
| Message-ID | <[email protected]> |
First, thanks Aitor for this work :) > The first draft sketch has a major problem of too > much OO as I see it. Well, we're going to argue between large and fine grained OO. As I see it, things that should certainly be classes (thinking about a decoder here are: An image (your Frame class) The decoder itself The loop filtering Below this, it becomes more risky to use OO. One problem with using virtual functions to allow different classes to implement MMX, SSE, etc. is that two function indirections (thanks to virtual function table) are needed when a function is called. This could be costly, I'm not sure. Codecs like xvid use only one function pointer indirection (e.g. when I do a fast iDCT, I jump to the function pointed to by a funcion pointer whose value was set at initilialization when my processor was detected). If this overhead of the double indirection is not significant, then we certainly should use virtual functions to implement different optimizations. The other reason for not using too much OO is it allows people who know C but not C++ to use the code. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en