Using loop to iterate through YV12_BUFFER_CONFIG planes. Change-Id: I22f1066eb0022c8d75f65a78435ee4ffecdfe0c9