mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
1fb7cda048
Make sure we include the svt headers first and then undefine TRUE and FALSE so we will only ever be using glib's defines for those. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5424>
41 lines
895 B
C
41 lines
895 B
C
/*
|
|
* Copyright(c) 2019 Intel Corporation
|
|
* Authors: Jun Tian <jun.tian@intel.com> Xavier Hallade <xavier.hallade@intel.com>
|
|
* SPDX - License - Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#ifndef _GST_SVTAV1ENC_H_
|
|
#define _GST_SVTAV1ENC_H_
|
|
|
|
#include <EbSvtAv1.h>
|
|
#include <EbSvtAv1Enc.h>
|
|
|
|
/*
|
|
* SVT-AV1 headers define TRUE and FALSE defines which can conflict
|
|
* or replace glib's defines. This is why we include the SVT-AV1
|
|
* headers first and the glib.h so we will only be using glib's
|
|
* TRUE/FALSE defines.
|
|
*/
|
|
#ifdef TRUE
|
|
#undef TRUE
|
|
#endif
|
|
#ifdef FALSE
|
|
#undef FALSE
|
|
#endif
|
|
|
|
#include <glib.h>
|
|
|
|
#include <string.h>
|
|
#include <gst/video/video.h>
|
|
#include <gst/video/gstvideoencoder.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GST_TYPE_SVTAV1ENC (gst_svtav1enc_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (GstSvtAv1Enc, gst_svtav1enc, GST, SVTAV1ENC, GstVideoEncoder);
|
|
|
|
GST_ELEMENT_REGISTER_DECLARE (svtav1enc);
|
|
|
|
G_END_DECLS
|
|
#endif
|