title: Getting QualComm encoders to work via MediaCodec API
body: <p>I am trying to do hardware encoding (avc) of NV12 stream using Android MediaCodec API. </p>
  
  <p>When using OMX.qcom.video.encoder.avc, resolutions 1280x720 and 640x480 work fine, while the others (i.e. 640x360, 320x240, 800x480) produce output where chroma component seems shifted (please see <a href="https://docs.google.com/file/d/0B2HmtpwQVhLvWTlJRzZvS2RfVEE/edit?usp=sharing" rel="noreferrer">snapshot</a>).</p>
  
  <p>I have double-checked that the input image is correct by saving it to a jpeg file.
  This problem only occurs on QualComm devices (i.e. Samsung Galaxy S4).</p>
  
  <p>Anyone has this working properly? Any additional setup / quirks necessary?</p>