Skip to content

Commit

Permalink
Change header macro names
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Aug 10, 2023
1 parent 144a437 commit 9f6532e
Show file tree
Hide file tree
Showing 58 changed files with 125 additions and 125 deletions.
2 changes: 1 addition & 1 deletion libmediation/fs/osdep/file_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ uint64_t File::seek(const int64_t offset, const SeekMethod whence) const
case SeekMethod::smCurrent:
moveMethod = FILE_CURRENT;
break;
default: // SeekMethod::smEnd:
default: // SeekMethod::smEnd:
moveMethod = FILE_END;
break;
}
Expand Down
6 changes: 3 additions & 3 deletions libmediation/types/types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __T_TYPES_H
#define __T_TYPES_H
#ifndef T_TYPES_H_
#define T_TYPES_H_

#include <cstdint>
#include <regex>
Expand Down Expand Up @@ -113,4 +113,4 @@ std::vector<wchar_t> toWide(const std::string&);
std::string toUtf8(const wchar_t*);
#endif

#endif //__T_TYPES_H
#endif //_T_TYPES_H_
4 changes: 2 additions & 2 deletions tsMuxer/BufferedReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BUFFERED_READER_H
#define __BUFFERED_READER_H
#ifndef BUFFERED_READER_H_
#define BUFFERED_READER_H_

#include <containers/safequeue.h>
#include <system/terminatablethread.h>
Expand Down
6 changes: 3 additions & 3 deletions tsMuxer/aac.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <types/types.h>
#ifndef AAC_CODEC_H_
#define AAC_CODEC_H_

#ifndef __AAC_CODEC_H
#define __AAC_CODEC_H
#include <types/types.h>

static constexpr int AAC_HEADER_LEN = 7;

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/aacStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __AAC_STREAM_READER_H
#define __AAC_STREAM_READER_H
#ifndef AAC_STREAM_READER_H_
#define AAC_STREAM_READER_H_

#include "aac.h"
#include "avPacket.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/abstractDemuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ABSTRACT_DEMUXER_H
#define __ABSTRACT_DEMUXER_H
#ifndef ABSTRACT_DEMUXER_H_
#define ABSTRACT_DEMUXER_H_

#include <assert.h>
#include <memory.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/abstractMuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ABSTRACT_MUXER_H
#define __ABSTRACT_MUXER_H
#ifndef ABSTRACT_MUXER_H_
#define ABSTRACT_MUXER_H_

#include <fs/file.h>
#include <fs/systemlog.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/abstractStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ABSTRACT_STREAM_READER_H
#define __ABSTRACT_STREAM_READER_H
#ifndef ABSTRACT_STREAM_READER_H_
#define ABSTRACT_STREAM_READER_H_

#include <fs/file.h>
#include <types/types.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/abstractreader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ABSTRACT_READER_H
#define __ABSTRACT_READER_H
#ifndef ABSTRACT_READER_H_
#define ABSTRACT_READER_H_

#include <types/types.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/ac3Codec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __AC3_CODEC_H
#define __AC3_CODEC_H
#ifndef AC3_CODEC_H_
#define AC3_CODEC_H_

#include "avPacket.h"
#include "mlpCodec.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/ac3StreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __AC3_STREAM_READER_H
#define __AC3_STREAM_READER_H
#ifndef AC3_STREAM_READER_H_
#define AC3_STREAM_READER_H_

#include <deque>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/avCodecs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __AV_CODECS_H
#define __AV_CODECS_H
#ifndef AV_CODECS_H_
#define AV_CODECS_H_

#include <types/types.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/avPacket.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __AV_PACKET_H
#define __AV_PACKET_H
#ifndef AV_PACKET_H_
#define AV_PACKET_H_

#include <types/types.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/bitStream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BITSTREAM_H
#define __BITSTREAM_H
#ifndef BITSTREAM_H_
#define BITSTREAM_H_

#include <assert.h>
#include <limits.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/blank_patterns.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BLANK_PATTERNS_H
#define __BLANK_PATTERNS_H
#ifndef BLANK_PATTERNS_H_
#define BLANK_PATTERNS_H_

uint8_t pattern_ntsc[] = {
0x00, 0x00, 0x00, 0x01, 0x67, 0x4D, 0x40, 0x29, 0xB9, 0x10, 0x16, 0x87, 0xB4, 0x20, 0x01, 0x00, 0x00, 0x03, 0x00,
Expand Down
6 changes: 3 additions & 3 deletions tsMuxer/blurayHelper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _BLURAY_HELPER_H__
#define _BLURAY_HELPER_H__
#ifndef BLURAY_HELPER_H_
#define BLURAY_HELPER_H_

#include <string>
#include <vector>
Expand Down Expand Up @@ -46,4 +46,4 @@ class BlurayHelper : public FileFactory
IsoWriter* m_isoWriter;
};

#endif // _BLURAY_HELPER_H__
#endif // _BLURAY_HELPER_H_
4 changes: 2 additions & 2 deletions tsMuxer/bufferedFileReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BUFFERED_FILE_READER_H
#define __BUFFERED_FILE_READER_H
#ifndef BUFFERED_FILE_READER_H_
#define BUFFERED_FILE_READER_H_

#include <fs/file.h>
#include <fs/systemlog.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/bufferedFileWriter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BUFFERED_FILE_WRITER_H
#define __BUFFERED_FILE_WRITER_H
#ifndef BUFFERED_FILE_WRITER_H_
#define BUFFERED_FILE_WRITER_H_

#include <containers/safequeue.h>
#include <fs/file.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/bufferedReaderManager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __BUFFERED_READER_MANAGER_H
#define __BUFFERED_READER_MANAGER_H
#ifndef BUFFERED_READER_MANAGER_H_
#define BUFFERED_READER_MANAGER_H_

#include <types/types.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/crc32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __CRC32_H
#define __CRC32_H
#ifndef CRC32_H_
#define CRC32_H_

static uint32_t calculateCRC32(uint8_t *p_begin, uint64_t i_count, uint32_t i_crc = 0)
{
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/dtsStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __DTS_STREAM_READER
#define __DTS_STREAM_READER
#ifndef DTS_STREAM_READER_
#define DTS_STREAM_READER_

#include <algorithm>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/dvbSubStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __DVB_SUB_STREAM_READRE
#define __DVB_SUB_STREAM_READRE
#ifndef DVB_SUB_STREAM_READER_
#define DVB_SUB_STREAM_READER_

#include "simplePacketizerReader.h"

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/h264StreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __H264_STREAM_READER_H
#define __H264_STREAM_READER_H
#ifndef H264_STREAM_READER_H_
#define H264_STREAM_READER_H_

#include <iostream>
#include <map>
Expand Down
6 changes: 3 additions & 3 deletions tsMuxer/hevc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __HEVC_H_
#define __HEVC_H_
#ifndef HEVC_H_
#define HEVC_H_

#include "nalUnits.h"

Expand Down Expand Up @@ -179,4 +179,4 @@ struct HevcSliceHeader : public HevcUnit

std::vector<std::vector<uint8_t>> hevc_extract_priv_data(const uint8_t* buff, int size, int* nal_size);

#endif // __HEVC_H_
#endif // _HEVC_H_
6 changes: 3 additions & 3 deletions tsMuxer/hevcStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __HEVC_STREAM_READER_H__
#define __HEVC_STREAM_READER_H__
#ifndef HEVC_STREAM_READER_H_
#define HEVC_STREAM_READER_H_

#include <map>

Expand Down Expand Up @@ -71,4 +71,4 @@ class HEVCStreamReader : public MPEGStreamReader
int m_vpsSizeDiff;
};

#endif // __HEVC_STREAM_READER_H__
#endif // _HEVC_STREAM_READER_H_
4 changes: 2 additions & 2 deletions tsMuxer/ioContextDemuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __IO_CONTEXT_DEMUXER_H
#define __IO_CONTEXT_DEMUXER_H
#ifndef IO_CONTEXT_DEMUXER_H_
#define IO_CONTEXT_DEMUXER_H_

#include <map>
#include <queue>
Expand Down
6 changes: 3 additions & 3 deletions tsMuxer/iso_writer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ISO_WRITER_H__
#define __ISO_WRITER_H__
#ifndef ISO_WRITER_H_
#define ISO_WRITER_H_

#include <fs/file.h>

Expand Down Expand Up @@ -293,4 +293,4 @@ class ISOFile : public AbstractOutputStream
FileEntryInfo* m_entry;
};

#endif // __ISO_WRITER_H__
#endif // ISO_WRITER_H_
4 changes: 2 additions & 2 deletions tsMuxer/lpcmStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LPCM_STREAM_READER_H
#define __LPCM_STREAM_READER_H
#ifndef LPCM_STREAM_READER_H_
#define LPCM_STREAM_READER_H_

#include "avPacket.h"
#include "simplePacketizerReader.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/matroskaDemuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MATROSKA_STREAM_READER_H
#define __MATROSKA_STREAM_READER_H
#ifndef MATROSKA_STREAM_READER_H_
#define MATROSKA_STREAM_READER_H_

#include "ioContextDemuxer.h"
// #include "tsPacket.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mlpCodec.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <types/types.h>

#ifndef __MLP_CODEC_H
#define __MLP_CODEC_H
#ifndef MLP_CODEC_H_
#define MLP_CODEC_H_

static constexpr int MLP_HEADER_LEN = 7;

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mlpStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MLP_STREAM_READER_H
#define __MLP_STREAM_READER_H
#ifndef MLP_STREAM_READER_H_
#define MLP_STREAM_READER_H_

#include "avPacket.h"
#include "mlpCodec.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/movDemuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MOV_DEMUXER_H
#define __MOV_DEMUXER_H
#ifndef MOV_DEMUXER_H_
#define MOV_DEMUXER_H_

#include <map>
#include <queue>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mp3Codec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MP3_CODEC_H
#define __MP3_CODEC_H
#ifndef MP3_CODEC_H_
#define MP3_CODEC_H_

#include <types/types.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mpeg2StreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MPEG2_STREAM_READER_H
#define __MPEG2_STREAM_READER_H
#ifndef MPEG2_STREAM_READER_H_
#define MPEG2_STREAM_READER_H_

#include "avCodecs.h"
#include "mpegStreamReader.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mpegAudioStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MPEG_AUDIO_STREAM_READER
#define __MPEG_AUDIO_STREAM_READER
#ifndef MPEG_AUDIO_STREAM_READER_
#define MPEG_AUDIO_STREAM_READER_

#include "mp3Codec.h"
#include "simplePacketizerReader.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mpegStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MPEG_STREAM_READER_H
#define __MPEG_STREAM_READER_H
#ifndef MPEG_STREAM_READER_H_
#define MPEG_STREAM_READER_H_

#include <algorithm>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/mpegVideo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MPEG_VIDEO_H
#define __MPEG_VIDEO_H
#ifndef MPEG_VIDEO_H_
#define MPEG_VIDEO_H_

/* Start codes. */

Expand Down
6 changes: 3 additions & 3 deletions tsMuxer/muxerManager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __MUXER_MANAGER_H
#define __MUXER_MANAGER_H
#ifndef MUXER_MANAGER_H_
#define MUXER_MANAGER_H_

#include "abstractMuxer.h"
#include "bufferedFileWriter.h"
Expand Down Expand Up @@ -102,4 +102,4 @@ class MuxerManager
bool m_reproducibleIsoHeader = false;
};

#endif // __MUXER_MANAGER_H
#endif // _MUXER_MANAGER_H_
4 changes: 2 additions & 2 deletions tsMuxer/nalUnits.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __NAL_UNITS_H
#define __NAL_UNITS_H
#ifndef NAL_UNITS_H_
#define NAL_UNITS_H_

#include <memory.h>
#include <types/types.h>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/osdep/textSubtitlesRenderFT.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __TEXT_SUBTITLES_RENDER_FT_H
#define __TEXT_SUBTITLES_RENDER_FT_H
#ifndef TEXT_SUBTITLES_RENDER_FT_H_
#define TEXT_SUBTITLES_RENDER_FT_H_

#include <ft2build.h>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/osdep/textSubtitlesRenderWin32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __TEXT_SUBTITLES_RENDER_WIN_H
#define __TEXT_SUBTITLES_RENDER_WIN_H
#ifndef TEXT_SUBTITLES_RENDER_WIN_H_
#define TEXT_SUBTITLES_RENDER_WIN_H_

#include "../textSubtitlesRender.h"
#include "windows.h"
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/programStreamDemuxer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __PROGRAM_STREAM_DEMUXER_H
#define __PROGRAM_STREAM_DEMUXER_H
#ifndef PROGRAM_STREAM_DEMUXER_H_
#define PROGRAM_STREAM_DEMUXER_H_

#include <set>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/psgStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __PGS_STREAM_READER_H
#define __PGS_STREAM_READER_H
#ifndef PGS_STREAM_READER_H_
#define PGS_STREAM_READER_H_

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions tsMuxer/simplePacketizerReader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __SIMPLE_PACKETIZER_READER_H
#define __SIMPLE_PACKETIZER_READER_H
#ifndef SIMPLE_PACKETIZER_READER_H_
#define SIMPLE_PACKETIZER_READER_H_

#include "abstractStreamReader.h"
#include "avCodecs.h"
Expand Down
Loading

0 comments on commit 9f6532e

Please sign in to comment.