home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 1 / amigaformatcd01.iso / pd / graphics / mpeg_encode / doc / extensions < prev    next >
Encoding:
Text File  |  1996-04-30  |  1.7 KB  |  42 lines

  1. EXTENSIONS
  2. ----------
  3.  
  4. This is a list of things that we'd like to incorporate into the encoder.
  5. If you succeed in implementing any of them, please let us know!
  6.  
  7. *  better B-frame search technique
  8. *  use DCT-space when computing error terms
  9. *  vary the q-scale according to the error term
  10. *  other motion vector search techniques
  11. *  modify the program to have a finer-grained parallelism option -- we
  12.    can probably encode slices in parallel (this will only be useful if we
  13.    want to do a few B-frames using exhaustive search)
  14. *  adhere to bit-rate requirements
  15. *  include system layer
  16.  
  17.  
  18. CREATING YOUR OWN MOTION SEARCH ROUTINES
  19. ----------------------------------------
  20.  
  21. Adding your own special motion search routine is very easy.  We'll explain
  22. adding a P-frame search routine; adding a B-frame routine is similar.
  23.  
  24. First, edit the procedures PMotionSearch and SetPSearchAlg (both in the
  25. file psearch.c) to recognize your new search routine.  You probably want
  26. to define a constant
  27.     PSEARCH_<your search name> in headers/search.h
  28.  
  29. Have PMotionSearch call your search procedure just as it calls the other
  30. standard search procedures.  Make sure your procedure follows the guidelines
  31. in the comments for PMotionSearch.
  32.  
  33. Note:  The encoder uses MAD as its search criterion.  The reason for this:
  34.     "Among the various criteria that can be used as a measure of the
  35.      match between the two blocks, the mean absolute difference (MAD)
  36.      is favored because it requires no multiplication and gives
  37.      similar performance as the mean squared error (MSE)."
  38.     - Liu and Zaccarin,
  39.       "New Fast Algorithms for the Estimation of Block Motion Vectors,"
  40.       IEEE Transactions on Circuits and Systems for Video Technology
  41.       Volume 3 No. 2 (April 1993)
  42.