# SDL: Moved rgb24\_yuv420\_std() to the correct header

**URL:** <https://discourse.libsdl.org/t/sdl-moved-rgb24-yuv420-std-to-the-correct-header/49081>\
**Category:** SDL Commits\
**Created:** [February 7, 2024, 10:44pm UTC](https://discourse.libsdl.org/t/sdl-moved-rgb24-yuv420-std-to-the-correct-header/49081 "2024-02-07T22:44:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [February 7, 2024, 10:44pm UTC](https://discourse.libsdl.org/t/sdl-moved-rgb24-yuv420-std-to-the-correct-header/49081/1 "2024-02-07T22:44:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/dd726cb09760431acc7f740c1a1584a262360fa2>

```diff
From dd726cb09760431acc7f740c1a1584a262360fa2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 7 Feb 2024 14:42:12 -0800
Subject: [PATCH] Moved rgb24_yuv420_std() to the correct header

---
 src/video/yuv2rgb/yuv_rgb_sse.h | 7 -------
 src/video/yuv2rgb/yuv_rgb_std.h | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/video/yuv2rgb/yuv_rgb_sse.h b/src/video/yuv2rgb/yuv_rgb_sse.h
index d7c0620a47c5..bfad8564ac25 100644
--- a/src/video/yuv2rgb/yuv_rgb_sse.h
+++ b/src/video/yuv2rgb/yuv_rgb_sse.h
@@ -223,13 +223,6 @@ void yuvnv12_abgr_sseu(
         YCbCrType yuv_type);
 
 
-// rgb to yuv, standard c implementation
-void rgb24_yuv420_std(
- uint32_t width, uint32_t height,
- const uint8_t *rgb, uint32_t rgb_stride,
- uint8_t *y, uint8_t *u, uint8_t *v, uint32_t y_stride, uint32_t uv_stride,
- YCbCrType yuv_type);
-
 // rgb to yuv, sse implementation
 // pointers must be 16 byte aligned, and strides must be divisible by 16
 void rgb24_yuv420_sse(
diff --git a/src/video/yuv2rgb/yuv_rgb_std.h b/src/video/yuv2rgb/yuv_rgb_std.h
index 3812baf50361..5791b7aa217c 100644
--- a/src/video/yuv2rgb/yuv_rgb_std.h
+++ b/src/video/yuv2rgb/yuv_rgb_std.h
@@ -128,3 +128,10 @@ void yuvnv12_abgr_std(
         const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride,
         uint8_t *rgb, uint32_t rgb_stride,
         YCbCrType yuv_type);
+
+// rgb to yuv, standard c implementation
+void rgb24_yuv420_std(
+ uint32_t width, uint32_t height,
+ const uint8_t *rgb, uint32_t rgb_stride,
+ uint8_t *y, uint8_t *u, uint8_t *v, uint32_t y_stride, uint32_t uv_stride,
+ YCbCrType yuv_type);

```
