Optimize YCbCr image resize
Merge branch 'refactor'