原创:转载请注明
Writer数据处理流程:

1, Camera没输出一帧YUVdata都会调用回调函数dataCallbackTimestamp , 并将YUV数据和时间戳信息分别push到mFramesReceived,mFrameTimes。
2, Writer有三个thread,videotrack的thread,writer的thread,audio的thread。
3, Videotrack的thread,调用OMXCodec,通过read,读取YUV数据并通过openmax进行编码。
4, Openmax完成编码后会给omxcodec发送message,omxcodec收到编码完成后的消息,将编码后的数据push到mFilledBuffers。
5, Writer的thread,去查找可写入的数据并写入文件