问题
I would like to encode video in my app with VP8. I use RGB24 format in my app but VP8 DirectShow filter accepts only YUV format (http://www.webmproject.org/tools/#directshow_filters).
I've googled the "RGB to YUV directshow filter" but no success. I don't want to write this filter myself from scratch, so I would appreciate if you help me with the information on where to find such filter.
Thanks!
回答1:
You could try Geraint Davies' YUV transform filter to see if it supports the conversion.
回答2:
Starting from Vista you can use Color Converter DSP, does this help?
If you know how to implement a transform filter, I have a fast YUV to RGB algorithm somewhere. I used DirectShow a looong time ago, so I can't be of anymore help than this :P
来源:https://stackoverflow.com/questions/6673609/directshow-rgb-yuv-filter