Closed Bug 1255688 Opened 9 years ago Closed 9 years ago

The TypeFromSize() function does not support odd width/height.

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: kaku, Assigned: kaku)

References

Details

Attachments

(1 file)

For example: A YV16 image with y-width 21 should have cbcr-width to be 11. So, the code in this line(https://dxr.mozilla.org/mozilla-central/source/gfx/ycbcr/yuv_convert.cpp#42) should be: else if ((ywidth + 1) / 2 == cbcrwidth && yheight == cbcrheight) {
Assignee: nobody → tkuo
Blocks: 1141979
Attachment #8729342 - Flags: review?(jmuizelaar) → review+
Comment on attachment 8729342 [details] MozReview Request: Bug 1255688 - Fix TypeFromSize for YV16 case; r=jrmuizel https://reviewboard.mozilla.org/r/39387/#review52694
Comment on attachment 8729342 [details] MozReview Request: Bug 1255688 - Fix TypeFromSize for YV16 case; r=jrmuizel Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39387/diff/1-2/
Attachment #8729342 - Attachment description: MozReview Request: Bug 1255688 - Fix TypeFromSize for YV16 case; r?jrmuizel → MozReview Request: Bug 1255688 - Fix TypeFromSize for YV16 case; r=jrmuizel
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: