663 Commits

Author SHA1 Message Date
jcdr428
76e97d2370 Change std::map insert(std::make_pair( to direct assignment
Much clearer to read and debug.
2022-01-23 17:48:19 +01:00
jcdr428
93e21e6324 AVC/HEVC/VVC serialize()/deserialize() are not virtual 2022-01-23 13:49:44 +01:00
jcdr428
518151ea21 Change nanoClockToPts() and ptsToNanoClock() to static inline 2022-01-23 13:15:02 +01:00
jcdr428
bd5804b9c1 Function FOUR_CC moved to lpcmStreamReader.cpp
FOUR_CC is used by lpcmStreamReader only
2022-01-23 12:41:01 +01:00
jcdr428
62a086439a
Add Clang Format Check on push 2022-01-23 11:55:01 +01:00
jcdr428
ab7f68ec76
Merge pull request #548 from jcdr428/master
Remove unused variables
2022-01-23 11:44:33 +01:00
jcdr428
8bbf6a4c4c Clang format check 2022-01-23 11:43:32 +01:00
jcdr428
f3c1d034c6 Remove unused variables
Also:
Add parentheses to clarify precedence of && over ||
Put class members initialization in the same order as declaration
2022-01-23 11:25:30 +01:00
jcdr428
122ac882d2 Fix initialization in the same order as declaration
Plus remove few unused variables.
2022-01-22 22:32:51 +01:00
jcdr428
eb0694107b Allocate HEVC m_slice at initialization 2022-01-22 20:59:37 +01:00
jcdr428
97ed057dc4 Fix memory leak in VVC
Plus vps nal is not compulsory in VVC: not a condition for isSuffix()
2022-01-22 20:42:44 +01:00
jcdr428
49f43aa280 Add m_slice to ~HEVCStreamReader()
Plus: fix SPS initialization in the same order as declaration
2022-01-22 20:31:07 +01:00
jcdr428
16ec154ea1 Fix hevc memory leak
A, HevcSliceHeader member with a new dynamic variable m_nalBuffer is created every time the intDecodeNal method is called.

This commit fixes the leak.
2022-01-22 19:34:40 +01:00
jcdr428
495a3c7881 [bug] Add hevc delta_idx variable
When stRpsIdx == num_short_term_ref_pic_sets, delta_idx must be read from the stream.

Plus removal of struct ShortTermRPS, not needed.
2022-01-22 18:02:37 +01:00
jcdr428
04f604e64a Move hevc variable cpb_cnt_minus1 to local 2022-01-22 11:46:30 +01:00
jcdr428
a91b437bfb Fix MLP stream info 2022-01-21 21:34:47 +01:00
jcdr428
e2b56c8055
Merge pull request #547 from jcdr428/master
Add pure TrueHD codec

Add mlpCodec and mlpStreamReader classes
Transfer MLP/TrueHD part from ac3Codec to mlpCodec
2022-01-21 17:11:59 +01:00
jcdr428
6fdf694a16 Clang format check 2022-01-21 17:09:50 +01:00
jcdr428
be59064694 Add pure TrueHD codec 2022-01-21 16:56:37 +01:00
jcdr428
1233211abc
Merge pull request #546 from jcdr428/master
Deallocate file memory + clang format check
2022-01-20 23:01:54 +01:00
jcdr428
7271126273 Clang format check 2022-01-20 22:59:38 +01:00
jcdr428
fc3c668097 Clang format check 2022-01-20 22:52:26 +01:00
jcdr428
94387a101d Deallocate file memory 2022-01-20 22:23:33 +01:00
jcdr428
938eefbc6c Add switch default to prevent compiler warning 2022-01-15 00:20:22 +01:00
jcdr428
6575bbb7a0
Update hevcStreamReader.cpp 2022-01-14 18:19:19 +01:00
Daniel Kamil Kozar
61f0b0ca8e s/UHD/HEVC/ 2022-01-12 19:12:58 +01:00
Daniel Kamil Kozar
0c38aaf3a8 Bintray is no more 2022-01-12 19:03:03 +01:00
Daniel Kamil Kozar
8b509c05d9 Update README.md 2022-01-12 19:00:56 +01:00
Daniel Kamil Kozar
177169a4f8 Hopefully fix linking errors caused by freetype dependencies 2022-01-12 18:54:17 +01:00
Daniel Kamil Kozar
1d478daf7e
Use static freetype from Homebrew in MacOS native builds (#496) 2022-01-12 12:39:40 +01:00
jcdr428
e654d6331f Group PES stream_id in an enum 2022-01-11 21:48:51 +01:00
jcdr428
0c2f34f29a Group TS descriptors under one single enum 2022-01-11 19:19:30 +01:00
jcdr428
3b5e847b21 Remove unused variables in tsPacket
Also use same order for class members definition and initialization.
2022-01-11 01:50:50 +01:00
jcdr428
53f39657b8 Simplify names of enum class members
The member name is now always prefixed with the class name so can be shortened without risk of confusion / mixing.
2022-01-10 23:24:54 +01:00
jcdr428
38eac9b673 Simplify names of enum IOContextTrackType members 2022-01-10 22:26:21 +01:00
jcdr428
ab2e101732 Add VVC demuxing from MOV/MP4 2022-01-09 22:36:57 +01:00
jcdr428
93a07e89e9 Clean tsPacket.cpp 2022-01-09 21:19:01 +01:00
jcdr428
440546be5b Add ParsedH266TrackData class in Mastroska
Also change the #define CODEC_ID to constexpr.
2022-01-09 18:49:54 +01:00
jcdr428
d753ed9014 Add default in switch to prevent Mac compiler warnings 2022-01-09 17:57:20 +01:00
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