This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 40000d0f5bd6f2ddd162db1131f8a832ea04d64f
Author:     Shiyou Yin <[email protected]>
AuthorDate: Wed Aug 12 15:34:24 2026 +0800
Commit:     Niklas Haas <[email protected]>
CommitDate: Fri Aug 21 10:39:13 2026 +0000

    swscale/loongarch: enable planar GBRP/GBRAP luma input optimization
    
    Benchmark results:
      name                          ticks (vs ref)
      planar_gbrp_to_y_512_c:        78.8
      planar_gbrp_to_y_512_lsx:      19.9 ( 3.74x)
      planar_gbrp_to_y_512_lasx:     10.4 ( 7.46x)
      planar_gbrap_to_y_512_c:       79.4
      planar_gbrap_to_y_512_lsx:     20.5 ( 3.61x)
      planar_gbrap_to_y_512_lasx:    15.5 ( 5.12x)
---
 libswscale/loongarch/input_lasx.c | 1 +
 libswscale/loongarch/input_lsx.c  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libswscale/loongarch/input_lasx.c 
b/libswscale/loongarch/input_lasx.c
index 046f395ae5..99e2fba936 100644
--- a/libswscale/loongarch/input_lasx.c
+++ b/libswscale/loongarch/input_lasx.c
@@ -226,6 +226,7 @@ av_cold void ff_sws_init_input_lasx(SwsInternal *c)
         break;
     case AV_PIX_FMT_GBRAP:
     case AV_PIX_FMT_GBRP:
+        c->readLumPlanar = planar_rgb_to_y_lasx;
         c->readChrPlanar = planar_rgb_to_uv_lasx;
         break;
     }
diff --git a/libswscale/loongarch/input_lsx.c b/libswscale/loongarch/input_lsx.c
index c0e5627690..252fd31ed4 100644
--- a/libswscale/loongarch/input_lsx.c
+++ b/libswscale/loongarch/input_lsx.c
@@ -46,6 +46,7 @@ av_cold void ff_sws_init_input_lsx(SwsInternal *c)
         break;
     case AV_PIX_FMT_GBRAP:
     case AV_PIX_FMT_GBRP:
+        c->readLumPlanar = planar_rgb_to_y_lsx;
         c->readChrPlanar = planar_rgb_to_uv_lsx;
         break;
     }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to