824 Commits

Author SHA1 Message Date
jcdr428
5fe4ab36c5 Move HEVC NalType enum inside NalUnit class 2022-01-09 17:40:35 +01:00
jcdr428
e36b3bc0b1 Move NALType enum inside NALUnit class 2022-01-09 17:15:58 +01:00
jcdr428
79a85dc01a [Bug] Change NalTypes from HEVC to VVC
Place enum NalType inside VvcUnit class to prevent unintended use outside of class
2022-01-09 16:33:01 +01:00
jcdr428
caedaf294d Change Readstate enum to enum class 2022-01-09 14:47:33 +01:00
jcdr428
1471faa8cc Change Commands enum to enum class 2022-01-09 14:43:40 +01:00
jcdr428
347e0f9045 Tidy-up matroskaDemuxer class
Remove unused enum
Remove obsolete commented code
2022-01-09 14:09:19 +01:00
jcdr428
b3bb81f9db Check rename function return value for failure 2022-01-09 01:11:23 +01:00
jcdr428
676d3f5564 Initialize member variable in MPEGGOPHeader() class 2022-01-09 01:02:55 +01:00
jcdr428
e970b9372b Add explicit switch fallthroughs in convertUTF.h 2022-01-09 00:58:17 +01:00
jcdr428
fa1333a6f9 Initialize MPEGGOPHeader() 2022-01-09 00:55:02 +01:00
jcdr428
5163c6d355 Set explicit casts
Change variable types when feasible to avoid casting
2022-01-09 00:38:15 +01:00
jcdr428
12e22f40d4 Change few variable types 2022-01-08 23:29:17 +01:00
jcdr428
0bb0b444f0 Change variable "m_interliaveInfo" to "m_interleaveInfo" 2022-01-08 23:17:50 +01:00
jcdr428
db3ca6e670 Set explicit casts in ioContextDemuxer
Sort out few signed/unsiged mismatch
2022-01-08 23:11:16 +01:00
jcdr428
f52ccd9942 Explicit casts in simplePacketizerReader 2022-01-08 23:05:55 +01:00
jcdr428
541f8320bc Set explicit casts in mpegStreamReader
Plus: change checkPulldownSync method so that there is no division.
2022-01-08 23:02:46 +01:00
jcdr428
007dcfa320 Fix casts in iso writer class
Set explicit casts.
2022-01-08 22:25:39 +01:00
jcdr428
507eb830b6 Linux does not accept localtime_s... 2022-01-08 20:56:29 +01:00
jcdr428
ea050a4e9a Replace header ctime with time.h for Linux 2022-01-08 20:45:31 +01:00
jcdr428
05b7250903 Make switch/case fallthroughs explicit in convertUTF 2022-01-08 20:41:31 +01:00
jcdr428
0d2f4df8ea Fix gmt time in writeTimestamp 2022-01-08 20:18:51 +01:00
jcdr428
4f7c63d7fd Fix cast in write method 2022-01-08 19:52:34 +01:00
jcdr428
3add56ca0f Tidy-up programStreamDemuxer class 2022-01-08 19:27:06 +01:00
jcdr428
a2fda7978d Fix types class cast 2022-01-08 18:21:04 +01:00
jcdr428
958af809e6 Fix previous commit 2022-01-08 17:01:23 +01:00
jcdr428
9ea7d26769 Fix casts in lpcmStreamReader class
Also correct "curChankLen" to "curChunkLen"
2022-01-08 16:47:40 +01:00
jcdr428
4275bec141 Change stream_type to enum
There was a mix between stream type, track type and container data type. To change stream_type to enum class allows to separate the types.

Also the stream_type enums have been separated between Blu_ray, H.222, ATSC or DVB types.

Plus few casts sorted out.
2022-01-08 15:20:46 +01:00
jcdr428
1838598a47 Correct casts in tsMuxer.cpp
In particular, all pts variables shall be int64_t.
Plus: add explicit variable casts
2022-01-08 00:58:28 +01:00
jcdr428
03ad61688f Optimizations on hevc classes 2022-01-07 22:56:19 +01:00
jcdr428
3d6f22c504 Tidy up mpeg2 classes 2022-01-07 19:49:09 +01:00
jcdr428
68534dd808 Tidy-up h264 classes
Initialize all class members
Remove unnecessary variables
Correct few variable types
Add explicit casts
2022-01-06 22:56:43 +01:00
jcdr428
7d1faf8a69 Fix bug introduced by e9cfbce4 2022-01-06 21:19:41 +01:00
jcdr428
917d1dbb37 Change throwFileError()
With flag FORMAT_MESSAGE_ALLOCATE_BUFFER, no need to define size of char buffer.
2022-01-05 20:09:11 +01:00
jcdr428
fc0150b61c Modif. to previous commit 2022-01-05 20:04:42 +01:00
jcdr428
ec89ab3247 Retrieve error description
With flag FORMAT_MESSAGE_ALLOCATE_BUFFER, size of message is automatically defined.
2022-01-05 19:58:20 +01:00
jcdr428
ea9f3a75cd Reduce stack size of doTruncatedFile() 2022-01-04 23:56:04 +01:00
jcdr428
edd52b51bc Fix bool isDVBL 2022-01-04 23:49:03 +01:00
jcdr428
2c840ef52b Change getBits(1) to getBit()
Reduced to below 16 KB.
2022-01-04 23:46:27 +01:00
jcdr428
e9cfbce4ef Initialise class member variables 2022-01-04 23:34:51 +01:00
jcdr428
8854bfbcc4 Initialize local variables 2022-01-04 22:36:55 +01:00
jcdr428
b4c67d03e8 [bug] Change FileEntryInfo type from class to struct 2022-01-04 22:10:13 +01:00
jcdr428
598e838baf Reduce use of stack by createMPLSFile()
The function uses 103120 bytes of stack.
2022-01-04 22:05:25 +01:00
jcdr428
717bee2745 Fix previous commit for Linux 2022-01-04 21:54:00 +01:00
jcdr428
c2736c5a13 Change enum SeekMethod to enum cass type 2022-01-04 21:47:23 +01:00
jcdr428
fb513aaa0c [bug] Fix throwFileError()
Size in FormatMessage is DWORD type.

Plus: unnecessary large size of stack, reduced to below 16 KB.
2022-01-04 21:40:17 +01:00
jcdr428
bffd99a8c8 Ovverride isSecondary() member function 2022-01-04 21:25:27 +01:00
Daniel Kamil Kozar
e0279f3d2c
Fix incorrect colour value interpretation in the FreeType renderer (#536)
BIG_ENDIAN might be defined by system headers, and it apparently is on both
Linux and recent macOS versions. Get rid of this completely, replace the union
by a struct and use endianness-independent constructs to obtain the values of
individual colour channels.

Also fix some minor warnings in the renderer code.

Fixes #507.
2022-01-04 00:46:24 +01:00
jcdr428
b0adc81369
Merge pull request #535 from jcdr428/master
Add isSecondary() Method

Methods were missing in DTS and AC3 streamreaders.
2022-01-03 21:46:15 +01:00
jcdr428
6808e99688 Fix isSecondary() Method 2022-01-03 21:35:02 +01:00
Daniel Kamil Kozar
72509eba6a
Use .ec3 as the extension for Dolby Digital Plus (E-AC3) files (#534)
Used this chance to finally rework file dialog filter string creation : the names of the extension groups are now clearly split so they appear separate in translation files.

Also fixed a bug in demux code - the AC3 would have an .ac3 extension regardless of the actual format due to the if for A_AC3 occurring twice.

Fixes #533 .
2022-01-03 00:18:51 +01:00