ffmpegcolorspace: speedup caps transformation
authorEdward Hervey <bilboed@bilboed.com>
Fri, 7 May 2010 15:16:28 +0000 (17:16 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 7 May 2010 15:38:46 +0000 (17:38 +0200)
commit0d451ad9cb605942068f12e0393a2127ac8703c1
tree22fc3b9fdbe8ef3a4517a137d847e82c090a8cc8
parent20d643ccdab602cb7ee5cb9ba8e273282bf1f090
ffmpegcolorspace: speedup caps transformation

* don't re-create our possible caps every single time, just use the
  template caps.
* don't intersect the caps against the template, basetransform has already
  done that for us.

62% speedup of _transform_caps() (instruction calls, measured with callgrind)
gst/ffmpegcolorspace/gstffmpegcolorspace.c