751 Commits

Author SHA1 Message Date
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
jcdr428
6ec39bc5aa
Merge pull request #532 from jcdr428/master
Prevent compiler warning
2022-01-02 13:49:04 +01:00
jcdr428
fa5dc67656 Prevent compiler warning
enumeration values not handled in switch
2022-01-02 13:46:51 +01:00
jcdr428
273dc69366
Merge pull request #531 from jcdr428/Tidy_metaDemuxer
Tidy-up metaDemuxer class
2022-01-02 13:37:34 +01:00
jcdr428
a0b62c29cf Clang format check 2022-01-02 13:31:46 +01:00
jcdr428
812033a5fd Tidy-up metaDemuxer class
Reduce memory footprint of detectTrackReader
Correct types, make casting explicit
Add "srtToFloat" method
2022-01-02 13:26:53 +01:00
jcdr428
dcf9d37bb7
Merge pull request #530 from jcdr428/Tidy_MKV_classes
Tidy-up Matroska classes
2022-01-02 11:01:16 +01:00
jcdr428
d2c4b5b0eb Clang check 2022-01-02 10:51:16 +01:00
jcdr428
4b98ed95b1 Tidy-up Matroska classes
Fix switch case fallthroughs
Make casts explicit
Initialize all members
2022-01-02 10:42:12 +01:00
jcdr428
84621bdf34
Merge pull request #529 from jcdr428/Update_Mov
Tidy-up MOV class
2022-01-01 21:19:58 +01:00
jcdr428
0ab71dafd9 Tidy-up MOC class
Initialize all members.
Fix typing/casting.
Note that the class is written for atoms less than 4 GB, it would have to be rewritten for larger files.
2022-01-01 21:00:00 +01:00
jcdr428
30243e4e0e
Merge pull request #528 from jcdr428/master
Tidy-up aac class
2022-01-01 19:30:14 +01:00
jcdr428
1a5c569fd7 Clang format check 2022-01-01 19:28:25 +01:00
jcdr428
c5407c8605 Tidy-up aac class
Remove unused members.
Initialize all members.
2022-01-01 19:23:10 +01:00
jcdr428
5f2a09b183
Merge pull request #527 from jcdr428/Update_textSubtitle
Tidy-up textSubtitles classes
2022-01-01 19:02:06 +01:00
jcdr428
c779b04f5f Clang format check 2022-01-01 19:00:08 +01:00
jcdr428
34226e22b2 Tidy-up textSubtitles classes
Remove unused members.
Initialize all class members.
Make casts explicit.
Change enum type to enum class type.
More precise calculations of RGB<->YCbCr.
2022-01-01 18:55:28 +01:00
jcdr428
ea7d050790
Merge pull request #526 from jcdr428/Update_AC3
Simplify AC3 Classes
2022-01-01 12:06:04 +01:00
jcdr428
fcefaf14ad Clang format check 2022-01-01 12:03:55 +01:00
jcdr428
9c41fadf28 Simplify AC3 Classes
Remove unused members.
Initialize all members.
Change frameDuration (in nanoseconds) from double to uint64.
2022-01-01 11:53:28 +01:00
jcdr428
b526aa57d5
Merge pull request #525 from jcdr428/Simplify_DTS_Class
Simplify dts class
2021-12-31 21:53:57 +01:00
jcdr428
57734e53de Fix 2021-12-31 20:58:56 +01:00
jcdr428
e00982e7e8 Simplify DTS Stream Reader
Initialize all class members.
Remove unused variables.
Fix switch fallthroughs.
2021-12-31 20:55:42 +01:00
jcdr428
ce632ae77d
Merge pull request #524 from jcdr428/Simplify_VC1_Class
Simplify VC1 classes
2021-12-31 18:07:17 +01:00