1 /* GStreamer NVENC plugin 2 * Copyright (C) 2015 Centricular Ltd 3 * Copyright (C) 2018 Seungha Yang <pudding8757@gmail.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GST_NV_HEVC_ENC_H_INCLUDED__ 22 #define __GST_NV_HEVC_ENC_H_INCLUDED__ 23 24 #include "gstnvbaseenc.h" 25 26 #define GST_TYPE_NV_H265_ENC \ 27 (gst_nv_h265_enc_get_type()) 28 #define GST_NV_H265_ENC(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NV_H265_ENC,GstNvH265Enc)) 30 #define GST_NV_H265_ENC_CLASS(klass) \ 31 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NV_H265_ENC,GstNvH265EncClass)) 32 #define GST_NV_H265_ENC_GET_CLASS(obj) \ 33 (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_NV_H265_ENC,GstNvH265EncClass)) 34 #define GST_IS_NV_H265_ENC(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NV_H265_ENC)) 36 #define GST_IS_NV_H265_ENC_CLASS(obj) \ 37 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NV_H265_ENC)) 38 39 typedef struct { 40 GstNvBaseEnc base_nvenc; 41 42 /* the supported input formats */ 43 GValue * supported_profiles; /* OBJECT LOCK */ 44 45 GstVideoCodecState *input_state; 46 gboolean gl_input; 47 48 /* supported interlacing input modes. 49 * 0 = none, 1 = fields, 2 = interleaved */ 50 gint interlace_modes; 51 } GstNvH265Enc; 52 53 typedef struct { 54 GstNvBaseEncClass video_encoder_class; 55 } GstNvH265EncClass; 56 57 G_GNUC_INTERNAL 58 GType gst_nv_h265_enc_get_type (void); 59 60 #endif /* __GST_NV_HEVC_ENC_H_INCLUDED__ */ 61