QCamera2: mm-jpeg-intf: Handle encode overflow error

1. Pass the size of allocated ion work buffer to OMX
2. Corectly handle the OMX error events

Change-Id: I84c94ddc8dae6472907915f021b8ec7e5df94bfc
2 files changed