ganzhijie / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

ARGBDetectEndian #375

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When YUV is converted to ARGB, A=255.
Write a function that scans an ARGB image, and guesses the endian.

Original issue reported on code.google.com by fbarch...@google.com on 21 Oct 2014 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by fbarch...@google.com on 4 Nov 2014 at 11:50

GoogleCodeExporter commented 9 years ago
A C version was written for chromium
https://codereview.chromium.org/663183002

Original comment by fbarch...@google.com on 5 Nov 2014 at 12:17

GoogleCodeExporter commented 9 years ago

Original comment by fbarch...@google.com on 5 Nov 2014 at 6:30

GoogleCodeExporter commented 9 years ago
Fixed in r1155.  Does 2x pixels.
BenchmarkARGBDetect_Opt (806 ms)

Consider SSE2 version using pmovmskb

Original comment by fbarch...@google.com on 5 Nov 2014 at 11:24