Skip to content

Commit 32bea4e

Browse files
committed
Bump version numbers and requirements a bit
1 parent 7479322 commit 32bea4e

File tree

6 files changed

+32
-28
lines changed

6 files changed

+32
-28
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ MiniVideo is a **multimedia framework developed from scratch** in C/C++, bundled
88
MiniVideo has been tested with several CPU architectures (x86, SH4, MIPS, ARM).
99
The project uses a dual CMake/QMake build system (CMake is prefered though). Both library and test programs can be installed into your system.
1010

11-
MiniVideo has been initially developed in 2010/2011 during an internship I did in a French company called *httv*, as a small **video decoding library developed from scratch** in C. Its goal was to generate video thumbnails, with a source code easy to read and to understand for learning purpose. After a clean-up pass, the code has been published early 2014 with *httv* permission under the LGPL v3 license (video framework) and GPLv3 (test softwares).
11+
MiniVideo has been initially developed in 2010/2011 during an internship I did in a French company called *httv*, as a small **video decoding library developed from scratch** in C.
12+
Its goal was to generate video thumbnails, with a source code easy to read and to understand for learning purpose.
13+
After a clean-up pass, the code has been published early 2014 with *httv* permission under the LGPL v3 license (video framework) and GPLv3 (test softwares).
1214

1315
The minivideo library can:
1416
* Open video files with various container to demux and remux audios/videos content.
1517
* Open H.264 compressed videos and decode/export intra-coded pictures.
1618
* Extract various metadata from container and elementary streams.
17-
* Map exact container structure to xml file / GUI.
19+
* Map exact container structure to XML file / GUI.
1820

1921
### Supported video codec (decoding)
2022
- H.264 / MPEG-4 part 10 "Advance Video Coding"
@@ -29,7 +31,7 @@ The minivideo library can:
2931
- MP4 / MOV (ISOM container) [.mp4, .mov, .3gp, ...]
3032
- MPEG-PS (MPEG "Program Stream") [.mpg, .mpeg, .vob, ...]
3133
- MPEG-1/2 "elementary stream" [.mpg, .mpeg]
32-
- H.264 / H.265 "elementary stream" ("Annex B" format) [.264, .265]
34+
- H.264 / H.265 / H.266 "elementary stream" ("Annex B" format) [.264, .265, .266]
3335
- MP3 "elementary stream" [.mp3]
3436

3537
### Supported container formats (export modules)

mini_analyser/README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mini_analyser is a software designed to help you extract a maximum of informatio
1717
- MP4 / MOV (ISOM container) [.mp4, .mov, .3gp, ...]
1818
- MPEG-PS (MPEG "Program Stream") [.mpg, .mpeg, .vob, ...]
1919
- MPEG-1/2 "elementary stream" [.mpg, .mpeg]
20-
- H.264 / H.265 "elementary stream" ("Annex B" format) [.264, .265]
20+
- H.264 / H.265 / H.266 "elementary stream" ("Annex B" format) [.264, .265, .266]
2121
- MP3 "elementary stream" [.mp3]
2222

2323
![main screen](https://i.imgur.com/kDJ6NQx.png)
@@ -26,17 +26,21 @@ mini_analyser is a software designed to help you extract a maximum of informatio
2626
![HW decoding checker](https://i.imgur.com/0qGcZxR.png)
2727

2828

29+
Dependencies
30+
------------
31+
32+
- minivideo library must have been built first!
33+
- Qt6
34+
2935
Building mini_analyser
3036
----------------------
3137

32-
minivideo library must have been built first!
33-
3438
You can either use CMake (recommanded, more configurable)
3539
> $ cd minivideo/build
3640
> $ cmake ..
3741
> $ make
3842
39-
Or qmake (simplier)
43+
Or qmake (simpler)
4044
> $ cd minivideo/
4145
> $ qmake
4246
> $ make

mini_analyser/mini_analyser.pro

+6-11
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@
33
# minivideo library must be built first for mini_analyser to work
44
#-------------------------------------------------------------------------------
55

6-
TARGET = mini_analyser
6+
TARGET = mini_analyser
7+
VERSION = 49
8+
DEFINES += VERSION_STR=\\\"r$${VERSION}\\\"
79

8-
VERSION = 48
9-
DEFINES += VERSION_STR=\\\"r$${VERSION}\\\"
10+
CONFIG += c++14
11+
QT += core svg gui widgets svgwidgets printsupport
1012

11-
equals(QT_MAJOR_VERSION, 5) {
12-
CONFIG += c++11
13-
QT += core svg gui widgets printsupport
14-
}
15-
equals(QT_MAJOR_VERSION, 6) {
16-
CONFIG += c++14
17-
QT += core svg gui widgets svgwidgets printsupport
18-
}
13+
!versionAtLeast(QT_VERSION, 6.0) : error("You need at least Qt version 6.0 for $${TARGET}")
1914

2015
# Project files ----------------------------------------------------------------
2116

mini_analyser/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
7676

7777
MiniAnalyserCLI app(argc, argv);
7878

79-
for (auto const &file: qAsConst(files))
79+
for (auto const &file: std::as_const(files))
8080
{
8181
app.cli.printFile(file, cli_details_enabled);
8282
}
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
120120
}
121121

122122
// If files have been passed as arguments, load them
123-
for (auto const &file: qAsConst(files))
123+
for (auto const &file: std::as_const(files))
124124
{
125125
app.gui.loadFile(file);
126126
}

minivideo/CMakeLists.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
cmake_minimum_required(VERSION 3.10)
1+
cmake_minimum_required(VERSION 3.20)
22

33
# MiniVideo "library" build system / CMake edition
44
################################################################################
55

66
project(minivideo)
77

88
set(minivideo_VERSION_MAJOR 0)
9-
set(minivideo_VERSION_MINOR 14)
9+
set(minivideo_VERSION_MINOR 15)
1010
set(minivideo_VERSION_PATCH 0)
1111
set(minivideo_VERSION_STRING ${minivideo_VERSION_MAJOR}.${minivideo_VERSION_MINOR}.${minivideo_VERSION_PATCH})
1212

@@ -103,7 +103,7 @@ endif()
103103
# Build configuration
104104
################################################################################
105105

106-
set(CMAKE_CXX_STANDARD 11)
106+
set(CMAKE_CXX_STANDARD 14)
107107
set(CMAKE_CXX_STANDARD_REQUIRED ON)
108108
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
109109

@@ -265,6 +265,8 @@ set(minivideo_SRC
265265
src/decoder/h266/h266_parameterset_struct.h
266266
)
267267

268+
include_directories(src/)
269+
268270
# MiniVideo public headers
269271
set(minivideo_PUBLIC_HEADERS
270272
src/minivideo.h src/minivideo_export.h

minivideo/minivideo.pro

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
#-------------------------------------------------------------------------------
55

66
TARGET = minivideo
7-
TEMPLATE = lib
7+
VERSION = 0.15.0
88

9-
CONFIG += c++11 shared_and_static
10-
CONFIG -= qt
9+
TEMPLATE = lib
10+
CONFIG += c++14 shared_and_static
1111

1212
# minivideo files --------------------------------------------------------------
1313

1414
SOURCES = $$files(src/*.cpp, true)
1515
HEADERS = $$files(src/*.h, true)
1616

17+
INCLUDEPATH += $${PWD}/src/
18+
1719
# build artifacts --------------------------------------------------------------
1820

1921
OBJECTS_DIR = build/$${QT_ARCH}/
@@ -26,9 +28,8 @@ DESTDIR = bin/$${QT_ARCH}/
2628
# we force MINIVIDEO_SETTINGS_H to make sure we don't use the CMake settings file.
2729
DEFINES += MINIVIDEO_SETTINGS_H
2830

29-
VERSION = 0.14.0
3031
DEFINES += minivideo_VERSION_MAJOR=0
31-
DEFINES += minivideo_VERSION_MINOR=14
32+
DEFINES += minivideo_VERSION_MINOR=15
3233
DEFINES += minivideo_VERSION_PATCH=0
3334

3435
CONFIG(debug, debug|release) { DEFINES += ENABLE_DEBUG=1 }

0 commit comments

Comments
 (0)