find the desired pixel format from the format list of the primary plane