Граф коммитов

148 Коммитов

Автор SHA1 Сообщение Дата
David Major 07a3f14163 Bug 1505819: Don't use yuv_row_win64.cpp on aarch64 clang-cl builds. r=jrmuizel
The _win64.cpp really means "Win64 with SSE" which arm64 can't use.

--HG--
extra : rebase_source : a88f285a4f8e70bffd71cea4159dca7e084652ca
2018-11-08 14:04:11 -05:00
Jean-Yves Avenard b10364a15f Bug 1493198 - P2. Use enum for describing color depth. r=mattwoodrow
Depends on D6662

Differential Revision: https://phabricator.services.mozilla.com/D6663

--HG--
extra : moz-landing-system : lando
2018-09-25 20:44:55 +00:00
Mike Hommey 64ac4a2be7 Bug 1478269 - Fix the outputs and clobbers of inline assembly blocks in yuv_row_posix.cpp. r=jrmuizel
While the current code compiles fine with the file as it is, with LTO
enabled, some functions end up inlined into their callers and their
callers, recursively, and the compiler doesn't know some of the
registers have been modified by the assembly, leading to bad decisions,
and bad behavior at runtime. The same problem would likely happen if we
were using UNIFIED_SOURCES in the directory.

Differential Revision: https://phabricator.services.mozilla.com/D4200
2018-08-29 14:00:26 +09:00
Mike Hommey ce34440dd4 Bug 1478269 - Use symbolic names as input operands. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D4199
2018-08-29 13:59:14 +09:00
Mike Hommey 0706265ea0 Bug 1478269 - Remove ycbcr update script and patches. r=jrmuizel
ycbcr is dead upstream, and has been for almost as long as the code in
the gecko tree hasn't been updated. Let's not pretend that we can
actually run the update script and that having the patches separated
matters, because there's no upstream to apply those patches to anymore.

Update README accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D4198
2018-08-29 13:59:05 +09:00
Dorel Luca 0c1495fc0b Backed out 3 changesets (bug 1478269) for Mochitest failures on dom/canvas/test/test_imagebitmap_extensions.html
Backed out changeset 5766f5561af0 (bug 1478269)
Backed out changeset a4c212f5e8c4 (bug 1478269)
Backed out changeset 07d50175fed9 (bug 1478269)
2018-08-29 05:10:37 +03:00
Mike Hommey 7731ae9fb2 Bug 1478269 - Fix the outputs and clobbers of inline assembly blocks in yuv_row_posix.cpp. r=jrmuizel
While the current code compiles fine with the file as it is, with LTO
enabled, some functions end up inlined into their callers and their
callers, recursively, and the compiler doesn't know some of the
registers have been modified by the assembly, leading to bad decisions,
and bad behavior at runtime. The same problem would likely happen if we
were using UNIFIED_SOURCES in the directory.

Differential Revision: https://phabricator.services.mozilla.com/D4200
2018-08-29 07:28:04 +09:00
Mike Hommey 620d9ab59d Bug 1478269 - Use symbolic names as input operands. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D4199
2018-08-29 07:27:56 +09:00
Mike Hommey a6d9b02dff Bug 1478269 - Remove ycbcr update script and patches. r=jrmuizel
ycbcr is dead upstream, and has been for almost as long as the code in
the gecko tree hasn't been updated. Let's not pretend that we can
actually run the update script and that having the patches separated
matters, because there's no upstream to apply those patches to anymore.

Update README accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D4198
2018-08-29 07:27:23 +09:00
Nathan Froyd 5b13d58730 Bug 1486068 - add aarch64 windows cases to ycbcr's chromium_types.h; r=jrmuizel 2018-08-28 16:53:27 -04:00
Nathan Froyd 309ddc0be2 Bug 1477048 - part 2 - remove non-ipc/chromium moz.build uses of OS_TEST; r=gps
The deletions in xptcall are when we don't even have support for the CPU
in moz.configure, so I assume that people haven't been compiling on
those architectures for quite some time.
2018-07-24 16:08:56 -04:00
David Major b3e88506ef Bug 1422368: Use intrinsics-based YUV functions from Win64 under Win32 clang-cl. r=jrmuizel 2018-04-04 08:41:36 -04:00
David Major 9a28e89f4e Backed out changeset 737b602f4c6f864b34080d0fe57c2ff75de3b909 because I shouldn't back out the original fix until the better one lands. 2018-04-02 17:22:06 -04:00
David Major 152a7fc82e Backed out bug 1422368 fixes because they weren't sufficient. 2018-04-02 17:20:35 -04:00
Sylvestre Ledru 5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
David Major 1bb3a226c5 Bug 1422368 - Work around a clang-cl complilation bug in yuv_row_win.cpp harder. r=jrmuizel
--HG--
extra : histedit_source : f55f9b6a92b88d72a83bf0e2f0da973f445aa47a
2017-12-06 12:24:53 -05:00
Sebastian Hengst b485da50e4 Backed out changeset 5f90362bbc80 (bug 1422368) for Windows static bustage (unresolved externals). r=backout 2017-12-06 20:20:54 +02:00
David Major d68fefde32 Bug 1422368 - Work around a clang-cl complilation bug in yuv_row_win.cpp harder. r=jrmuizel 2017-12-06 12:24:53 -05:00
David Major c6c7ce4333 Bug 1422368 - Work around a clang-cl bug in yuv_row_win.cpp. r=jrmuizel 2017-12-01 16:46:21 -05:00
Jean-Yves Avenard 0fc33ae81a Bug 1215089 - P5: Convert 10/12 bits YUV image to 8 bits prior conversion to RGB. r=mattwoodrow
For now, convert 10/12 bits YUV image to 8 bits. Native support will be tracked in bug 1379948

MozReview-Commit-ID: LOr9X5xxKY7

--HG--
extra : rebase_source : 279e00832543501616af0a4a5958917b72533a4c
2017-09-29 13:43:09 +02:00
Sebastian Hengst d0f721b4ef Backed out changeset 9c974e493c3f (bug 1215089) 2017-10-04 16:25:57 +02:00
Jean-Yves Avenard e54f0e8c27 Bug 1215089 - P4: Convert 10/12 bits YUV image to 8 bits prior conversion to RGB. r=mattwoodrow
For now, convert 10/12 bits YUV image to 8 bits. Native support will be tracked in bug 1379948

MozReview-Commit-ID: LOr9X5xxKY7

--HG--
extra : rebase_source : 90b39f46cbc9d5233965e3693c620466557eb8e7
2017-09-29 13:43:09 +02:00
Makoto Kato 5a2c91137e Bug 1360429 - Part 1. inline arm assember for YCBCR should be on arm only. r=sotaro
ycvcr_to_rgb565 uses inline assember for arm neon.  Since it is different for aarch64's assembler, we should define HAVE_YCBCR_TO_RGB565 on arm32 only.

MozReview-Commit-ID: 4c2n1luvVvC

--HG--
extra : rebase_source : 8ae3f9deb6d0f4e3ab6036b7ce7ec57e0c7e1b57
2017-04-28 13:22:07 +09:00
Randell Jesup 492e274bf6 Bug 1341543: don't use internal-only I4xxToARGBMatrix() functions from libyuv r=sotaro
MozReview-Commit-ID: H0o6ufAlnGx
2017-02-24 14:01:56 -05:00
Randell Jesup 635c96d539 Bug 1341543: Update SIMD_ALIGNED in gfx to match libyuv's definition r=sotaro
MozReview-Commit-ID: 35D3W0Dqrc8
2017-02-24 14:01:56 -05:00
Randell Jesup 8ad25a673c Bug 1284800: Fix build fallout from moving libyuv into a subdirectory r=ted
MozReview-Commit-ID: CDMDXqpGueS
2017-02-24 14:01:56 -05:00
sotaro 176fe53134 Bug 1329383 - Update YUVColorSpace handling in ConvertYCbCrToRGB32() r=nical 2017-01-10 10:09:19 +09:00
karo 00b8886839 Bug 1321076 - Added util functions to help with YUVA to BGRA conversion. r=jya
MozReview-Commit-ID: JZDdbM2gt0g

--HG--
extra : rebase_source : 572dbf59e8a3b41e6c7366d1579a28e365062260
2016-12-21 15:00:46 +13:00
Sotaro Ikeda 1d3ceeff04 Bug 1306521 - Handle VP9 colorspace BT.709 on BasicCompositor r=nical,jwwang,jya,jrmuizel 2016-10-11 19:46:28 -07:00
Sotaro Ikeda 5d8ae5cfad Bug 1295927 - Disable libyuv SIMD scaling on 64bit win r=jrmuizel 2016-08-19 06:18:08 -07:00
Sotaro Ikeda 64b45af818 Bug 1254010 - Scaling during RGB -> YUV conversion with BasicCompositor if possible. basic_compositor_video improved on windows. r=jrmuizel 2016-08-15 18:54:17 -07:00
Sotaro Ikeda 0ca92913eb Bug 1275441 - Use libyuv for scaling YUV color conversion r=jrmuizel 2016-08-04 19:30:01 -07:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Nathan Froyd 1429c7df48 Bug 1278940 - avoid using __attribute__((optimize)) with clang in yuv; r=jrmuizel
clang doesn't understand __attribute__((optimize)) and so complains.
2016-06-24 23:26:40 -04:00
Sotaro Ikeda 6ec321d0df Bug 1256475 - Use libyuv for non scaling YUV color conversion r=jrmuizel 2016-06-08 18:46:42 -07:00
Phil Ringnalda 305ac3c2cf Back out c88f2cb8e4fa (bug 1256475) for Android failures in test_imagebitmap_extensions.html
CLOSED TREE
2016-06-06 22:26:25 -07:00
Sotaro Ikeda d7880ceea1 Bug 1256475 - Use libyuv for non scaling YUV color conversion r=jrmuizel 2016-06-06 20:10:59 -07:00
Kaku Kuo 145a8d24cf Bug 1255688 - Fix TypeFromSize for YV16 case; r=jrmuizel
MozReview-Commit-ID: KATnTZaLLdG

--HG--
extra : transplant_source : %FA%25%DD%95%12%F2m%FBNX%D5%DD%B9j%14%B4%8F%D8%C5%93
2016-03-10 17:58:00 +08:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Nicholas Nethercote 5e3e083956 Bug 1255655 - Const-ify kCoefficientRgbY. r=jrmuizel.
This allows it to be shared between processes.

--HG--
extra : rebase_source : 4a2026ae4b9335bae4d018d6a3f0af40cae3dc15
2016-03-11 13:00:06 +11:00
Nicholas Nethercote 88696a303a Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
This patch:

- Makes the following substitutions (plus necessary namespace qualifiers:

    gfxImageFormat::ARGB32      --> SurfaceFormat::A8R8G8B8_UINT32
    gfxImageFormat::RGB24       --> SurfaceFormat::X8R8G8B8_UINT32
    gfxImageFormat::A8          --> SurfaceFormat::A8
    gfxImageFormat::RGB16_565   --> SurfaceFormat::R5G6B5_UINT16
    gfxImageFormat::Unknown     --> SurfaceFormat::UNKNOWN

- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
  removed soon.

- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
  replace calls to them with CairoFormatToGfxFormat() and
  GfxFormatToCairoFormat().

- Removes ParamTraits<gfxImageFormat>.

- Add namespace qualifiers to SurfaceFormat instances where necessary.

--HG--
extra : rebase_source : f56e92b1593957a9e4e00171100bc7605816e696
2016-01-07 20:57:38 -08:00
Nicholas Nethercote a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nathan Froyd b4f3c3be46 Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel
NS_GFX last meant something prior to bug 648911, which removed support
for non-libxul builds.  Now that it's meaningless, let's get rid of it.
2015-09-07 17:53:36 -04:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Ted Mielczarek 3073ae605d bug 1174701 - Don't use NEON assembly for ARM iOS in gfx/ycbcr. r=jrmuizel
--HG--
extra : commitid : 2MFnSpW8vuK
extra : rebase_source : ad04314f69cf304e1ff220047328b05dcd388685
2015-03-17 14:22:03 -04:00
Ehsan Akhgari d56a32bce4 Bug 1119068 - Clean up some code used for older unsupported MSVC versions; r=bsmedberg 2015-01-12 23:26:31 -05:00
Wes Kocher a49543905d Backout 671a52fff391 2015-01-12 14:46:32 -08:00
Ehsan Akhgari 4acc68bd1e Bug 1119068 - Clean up some code used for older unsupported MSVC versions; r=bsmedberg 2015-01-12 16:35:07 -05:00