v4l2codecs: Use pragma once

This is a nice cleanup and removes comment referring to D3D notably.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5555>
This commit is contained in:
Nicolas Dufresne 2023-12-14 15:19:56 -05:00 committed by GStreamer Marge Bot
parent 5e6411e2f6
commit 76b36f1493
12 changed files with 14 additions and 49 deletions

View File

@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GST_V4L2_CODEC_ALLOCATOR_H_
#define _GST_V4L2_CODEC_ALLOCATOR_H_
#pragma once
#include <gst/allocators/allocators.h>
#include <gst/gst.h>
@ -55,5 +54,3 @@ void gst_v4l2_codec_allocator_set_flushing (GstV4l2CodecAlloc
gboolean flushing);
guint32 gst_v4l2_codec_memory_get_index (GstMemory * mem);
#endif /* _GST_V4L2_CODECS_ALLOCATOR_H_ */

View File

@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_ALPHA_DECODE_BIN_H__
#define __GST_V4L2_CODEC_ALPHA_DECODE_BIN_H__
#pragma once
#include <gst/gst.h>
#include <gstv4l2decoder.h>
@ -47,11 +46,10 @@ struct _GstV4l2CodecAlphaDecodeBinClass
void gst_v4l2_codec_alpha_decode_bin_register (GstPlugin * plugin,
GClassInitFunc class_init,
gconstpointer class_data,
const gchar * element_name_tmpl,
const gchar * element_name_tmpl,
GstV4l2CodecDevice * device,
guint rank);
G_END_DECLS
#endif /* __GST_V4L2_CODEC_ALPHA_DECODE_BIN_H__ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_AV1_DEC_H__
#define __GST_V4L2_CODEC_AV1_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gstav1decoder.h>
@ -50,5 +49,3 @@ void gst_v4l2_codec_av1_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_D3D11_AV1_DEC_H__ */

View File

@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GST_V4L2_CODEC_DEVICE_H_
#define _GST_V4L2_CODEC_DEVICE_H_
#pragma once
#include <gst/gst.h>
@ -40,5 +39,3 @@ typedef struct {
GType gst_v4l2_codec_device_get_type (void);
GList *gst_v4l2_codec_find_devices (void);
void gst_v4l2_codec_device_list_free (GList *devices);
#endif /* _GST_V4L2_CODECS_DEVICE_H_ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_H264_DEC_H__
#define __GST_V4L2_CODEC_H264_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gsth264decoder.h>
@ -50,5 +49,3 @@ void gst_v4l2_codec_h264_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_D3D11_H264_DEC_H__ */

View File

@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_H265_DEC_H__
#define __GST_V4L2_CODEC_H265_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gsth265decoder.h>
@ -51,5 +50,3 @@ void gst_v4l2_codec_h265_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_D3D11_H265_DEC_H__ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_MPEG2_DEC_H__
#define __GST_V4L2_CODEC_MPEG2_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gstmpeg2decoder.h>
@ -50,5 +49,3 @@ void gst_v4l2_codec_mpeg2_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_V4L2_MPEG2_DEC_H__ */

View File

@ -18,13 +18,12 @@
* Boston, MA 02110-1301, USA.
*/
#pragma once
#include <gst/gst.h>
#include "gstv4l2codecallocator.h"
#ifndef __GST_V4L2_CODEC_POOL_H__
#define __GST_V4L2_CODEC_POOL_H__
#define GST_TYPE_V4L2_CODEC_POOL gst_v4l2_codec_pool_get_type()
G_DECLARE_FINAL_TYPE(GstV4l2CodecPool, gst_v4l2_codec_pool, GST,
V4L2_CODEC_POOL, GstBufferPool)
@ -33,5 +32,3 @@ GstV4l2CodecPool *gst_v4l2_codec_pool_new (GstV4l2CodecAllocator *allocator,
const GstVideoInfoDmaDrm * vinfo_drm);
guint32 gst_v4l2_codec_buffer_get_index (GstBuffer * buffer);
#endif /* __GST_V4L2_CODEC_POOL_H__ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_VP8_DEC_H__
#define __GST_V4L2_CODEC_VP8_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gstvp8decoder.h>
@ -50,5 +49,3 @@ void gst_v4l2_codec_vp8_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_V4L2_CODEC_VP8_DEC_H__ */

View File

@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_CODEC_VP9_DEC_H__
#define __GST_V4L2_CODEC_VP9_DEC_H__
#pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gstvp9decoder.h>
@ -51,5 +50,3 @@ void gst_v4l2_codec_vp9_dec_register (GstPlugin * plugin,
guint rank);
G_END_DECLS
#endif /* __GST_V4L2_CODEC_VP9_DEC_H__ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_DECODER_H__
#define __GST_V4L2_DECODER_H__
#pragma once
#include <gst/gst.h>
#include <gst/video/video.h>
@ -174,5 +173,3 @@ GstBuffer * gst_v4l2_request_dup_pic_buf (GstV4l2Request * request);
gint gst_v4l2_request_get_fd (GstV4l2Request * request);
G_END_DECLS
#endif /* __GST_V4L2_DECODER_H__ */

View File

@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_V4L2_FORMAT_H__
#define __GST_V4L2_FORMAT_H__
#pragma once
#include <gst/gst.h>
#include <gst/video/video.h>
@ -47,5 +46,3 @@ gboolean gst_v4l2_format_from_drm_format (guint32 drm_fourcc,
guint32 * out_pix_fmt);
guint gst_v4l2_format_get_n_planes (GstVideoInfoDmaDrm * info);
#endif /* __GST_V4L2_FORMAT_H__ */