ReFormationPro / Gstreamer-H264-Encryption

Experimental GStreamer plugin for encrypting / decrypting H264 streams with AES
https://medium.com/@oguzhanoztaskin/gstreamer-h264-encryption-plugin-cf2c7b43c383
GNU General Public License v3.0
4 stars 1 forks source link

Header-comments cleanup. Unused includes cleanup #8

Open inobelar opened 2 weeks ago

inobelar commented 2 weeks ago

The reason for this 'cleanup' PR, is minor garbage in header-comments, due (as I can see) to project initially generated from template.

Changes: 1) AUTHORS file moved from gst-h264-encryption directory to root 2) COPYING in gst-h264-encryption directory removed, since exactly the same placed in root directory (so now its not duplicated) 3) As header-comment used everywhere (except files of AES lib):

    /*
     * GStreamer H264 Encryption Plugin
     *
     * Copyright (C) 2024 Oguzhan Oztaskin <oguzhanoztaskin@gmail.com>
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     *
     * This program 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 General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program.  If not, see <https://www.gnu.org/licenses/>.
     */
- Since, as I can see, you choosed `GPLv3`. Template for it given from [here](https://gist.github.com/ilg-ul/aa6de96c993719667f07?permalink_comment_id=5153420#gistcomment-5153420)
- Inspired by GStreamer's small GPLv2 header comments, like in [gstudp](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-good/gst/udp/gstudp.c?ref_type=heads#L1-18)

4) Removed unused includes in some places 5) Some includes was annotated with #include <xxx.h> // for: yyy for clarity 6) Improved readability of some 'include guards', for example: __GST_H264ENCRYPTIONBASEPRIVATE_H__ -> __GST_H264_ENCRYPTION_BASE_PRIVATE_H__ 7) Removed 'extra' semicolons in G_DEFINE_TYPE(...), GST_ELEMENT_REGISTER_DEFINE() macro 8) Changed project name in meson.build from gst-template to gst-h264-encryption