<commit_before>/* GStreamer
 * Copyright (C) <1999> <NAME> <<EMAIL>>
 * Library       <2002> <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GST_VIDEO_H__
#define __GST_VIDEO_H__

#include <gst/gst.h>

#if (G_BYTE_ORDER == G_BIG_ENDIAN)

#define R_MASK_32 0xff000000
#define G_MASK_32 0x00ff0000
#define B_MASK_32 0x0000ff00

#define R_MASK_24 0xff0000
#define G_MASK_24 0x00ff00
#define B_MASK_24 0x0000ff

#else

#define R_MASK_32 0x000000ff
#define G_MASK_32 0x0000ff00
#define B_MASK_32 0x00ff0000

#define R_MASK_24 0x0000ff
#define G_MASK_24 0x00ff00
#define B_MASK_24 0xff0000

#endif

#define R_MASK_16 0xf800
#define G_MASK_16 0x07e0
#define B_MASK_16 0x001f

#define R_MASK_15 0x8c00
#define G_MASK_15 0x03e0
#define B_MASK_15 0x001f

#define SIZE_RANGE GST_PROPS_INT_RANGE (16, 4096)
#define FPS_RANGE GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT)

/* properties for pad templates */
#define GST_VIDEO_RGB_PAD_TEMPLATE_PROPS_24_32 \
        gst_props_new ( \
            "bpp",              GST_PROPS_LIST ( \
                                  GST_PROPS_INT (24), \
                                  GST_PROPS_INT (32) \
                                ), \
            "depth",            GST_PROPS_LIST ( \
                                  GST_PROPS_INT (24), \
                                  GST_PROPS_INT (32) \
                                ), \
            "endianness",       GST_PROPS_INT (G_BIG_ENDIAN), \
            "red_mask",         GST_PROPS_LIST ( \
                                  GST_PROPS_INT (R_MASK_32), \<commit_msg>Fix endianness issues manifested in pngenc.  Fixes #125932<commit_after>/* GStreamer
 * Copyright (C) <1999> <NAME> <<EMAIL>>
 * Library       <2002> <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GST_VIDEO_H__
#define __GST_VIDEO_H__

#include <gst/gst.h>

#define R_MASK_32 0xff000000
#define G_MASK_32 0x00ff0000
#define B_MASK_32 0x0000ff00

#define R_MASK_24 0xff0000
#define G_MASK_24 0x00ff00
#define B_MASK_24 0x0000ff

#define R_MASK_16 0xf800
#define G_MASK_16 0x07e0
#define B_MASK_16 0x001f

#define R_MASK_15 0x8c00
#define G_MASK_15 0x03e0
#define B_MASK_15 0x001f

#define SIZE_RANGE GST_PROPS_INT_RANGE (16, 4096)
#define FPS_RANGE GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT)

/* properties for pad templates */
#define GST_VIDEO_RGB_PAD_TEMPLATE_PROPS_24_32 \
        gst_props_new ( \
            "bpp",              GST_PROPS_LIST ( \
                                  GST_PROPS_INT (24), \
                                  GST_PROPS_INT (32) \
                                ), \
            "depth",            GST_PROPS_LIST ( \
                                  GST_PROPS_INT (24), \
                                  GST_PROPS_INT (32) \
                                ), \
            "endianness",       GST_PROPS_INT (G_BIG_ENDIAN), \
            "red_mask",         GST_PROPS_LIST ( \
                                  GST_PROPS_INT (R_MASK_32), \
{'fraction_non_alphanumeric': 0.06966651439013248, 'fraction_numerical': 0.0708085883965281, 'mean_word_length': 2.3607060629316963, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2853454', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1420, 'n_words': 440}