Subject: [bug#75106] [PATCH v2 1/2] gnu: Add libyuv.

From: Andrew Wong <[email-masked]>
Date: Wed, 25 Dec 2024 20:43:36 -0500

Change-Id: I631ea22fcb033013e377c17a12fb8a24248abd70
---
 gnu/packages/image.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7337a27b88..db022a4e81 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -120,6 +120,33 @@ (define-module (gnu packages image)
   #:use-module (guix deprecation)
   #:use-module (srfi srfi-1))
 
+(define-public libyuv
+  (package
+    (name "libyuv")
+    (version "2021.4") ;last stable rel. April 2024
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://chromium.googlesource.com/libyuv/libyuv")
+             (commit "4620f1705822fd6ab99939f43ce63099bd3d9ae0")))
+       (sha256
+        (base32 "17vdm2g5qvrby7xa3agiqwh7ips33dxg6sw18s3q2xkfil4xw3mm"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (home-page "https://chromium.googlesource.com/libyuv/libyuv/")
+    (synopsis "YUV scaling and conversion functionality")
+    (description
+     "libyuv is an open source project that includes YUV scaling and
+conversion functionality.  Scale YUV to prepare content for
+compression, with point, bilinear or box filter.  Convert to YUV from
+webcam formats for compression, and to RGB formats for
+rendering/effects.  Rotate by 90/180/270 degrees to adjust for mobile
+devices in portrait mode.")
+    (license license:expat)))
+
 (define-public converseen
   (package
     (name "converseen")
-- 
2.46.0