title: processing .raw file image with ffmpeg api or C code
body: <p>I am trying to process a .raw image file captured using vrl2, it's a h264 encoded image with yuv422 color space from a Logitech c920 webcam, <a href="http://www.cybercom.net/~dcoffin/dcraw/" rel="nofollow noreferrer">dcraw</a> is not working for me however from my <a href="https://stackoverflow.com/questions/15031183/processing-raw-images-using-ffmpeg-or-opencv">previous question</a> this command is working fine with low performance (a 32kb jpg image however using opencv capture I get a 900kb image for the same 640x480 resolution):</p>
  
  <blockquote>
    <p>ffmpeg -f rawvideo -s 640x480 -pix_fmt yuyv422 -i frame-1.raw
    frame-1.jpg</p>
  </blockquote>
  
  <p>I need a code written in C or the ffmpeg api/OpenCV etc .. to do the same as this command,I don't want to use QProcess in Qt(I am working on a server using Qt where I am trying to send the raw file from a Raspberry PI to the server and process it their), dcraw output is a corrupted image.</p>