Scales, rotates and encodes one frame's planes as a JPEG of size (which the caller computed, never larger than the upright frame). Throws when size does not fit.
size
Scales, rotates and encodes one frame's planes as a JPEG of
size(which the caller computed, never larger than the upright frame). Throws whensizedoes not fit.