[vlc-commits] [Git][videolan/vlc][master] vlc_es: inline video_format_IsSameChroma()

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Thu Oct 15 10:09:45 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
05f1630e by Steve Lhomme at 2026-10-15T12:00:23+02:00
vlc_es: inline video_format_IsSameChroma()

It was added 61c3237734efa17d989d2fb5396e10fef8510254 when we
were still dealing with masks. We no longer use masks since
a8893dd50d0c8f00f4bfe3fd923d58f1f5803d81.

- - - - -


3 changed files:

- include/vlc_es.h
- src/libvlccore.sym
- src/misc/es_format.c


Changes:

=====================================
include/vlc_es.h
=====================================
@@ -518,8 +518,11 @@ VLC_API video_transform_t video_format_GetTransform(video_orientation_t src, vid
  */
 VLC_API bool video_format_IsSimilar( const video_format_t *, const video_format_t * );
 
-/** Checks whether the video formats have the same chroma and mask */
-VLC_API bool video_format_IsSameChroma( const video_format_t *, const video_format_t * );
+/** Checks whether the video formats have the same chroma */
+static inline bool video_format_IsSameChroma( const video_format_t *f1, const video_format_t *f2 )
+{
+    return f1->i_chroma == f2->i_chroma;
+}
 
 /**
  * It prints details about the given video_format_t


=====================================
src/libvlccore.sym
=====================================
@@ -524,7 +524,6 @@ video_format_TransformTo
 video_format_GetTransform
 video_format_IsSimilar
 video_format_LogDifferences
-video_format_IsSameChroma
 video_format_Setup
 video_format_Print
 vlc_actions_get_id


=====================================
src/misc/es_format.c
=====================================
@@ -206,15 +206,6 @@ void video_format_ApplyRotation( video_format_t *restrict out,
     video_format_TransformTo(out, ORIENT_NORMAL);
 }
 
-bool video_format_IsSameChroma( const video_format_t *f1,
-                                const video_format_t *f2 )
-{
-    if( f1->i_chroma != f2->i_chroma )
-        return false;
-
-    return true;
-}
-
 bool video_format_IsSimilar( const video_format_t *f1,
                              const video_format_t *f2 )
 {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/05f1630e0af0282b14b5a439cd51b9c8eda701d3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/05f1630e0af0282b14b5a439cd51b9c8eda701d3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list