Skip to content

Commit

Permalink
minivideo: fix build maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Jun 3, 2024
1 parent f81e02c commit 0e1cd83
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 27 deletions.
6 changes: 3 additions & 3 deletions mini_analyser/mini_analyser.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#-------------------------------------------------------------------------------
# mini_analyser build system
# minivideo library must be built first in order for mini_analyser to work
# minivideo library must be built first for mini_analyser to work
#-------------------------------------------------------------------------------

TARGET = mini_analyser
Expand Down Expand Up @@ -78,8 +78,8 @@ LIBS += -lminivideo # dynamic linking

unix {
# Enables AddressSanitizer
#QMAKE_CXXFLAGS += -fsanitize=address,undefined -fno-omit-frame-pointer
#QMAKE_LFLAGS += -fsanitize=address,undefined
#QMAKE_CXXFLAGS += -fsanitize=address,undefined,pointer-compare,pointer-subtract -fno-omit-frame-pointer
#QMAKE_LFLAGS += -fsanitize=address,undefined,pointer-compare,pointer-subtract
}

win32 { DEFINES += _USE_MATH_DEFINES }
Expand Down
22 changes: 11 additions & 11 deletions mini_analyser/src/hw_apis/videobackends_vtb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ static Desc decoder_profiles_vtb[] =
{ CODEC_H264, PROF_H264_HiP, 7680, 3840, 8, avcC_HiP_3840 },
{ CODEC_H264, PROF_H264_HiP, 8192, 4096, 8, nullptr },

{ CODEC_H264, PROF_H264_PHiP, 1280, 720, 8, nullptr },
{ CODEC_H264, PROF_H264_CHiP, 1280, 720, 8, nullptr },
{ CODEC_H264, PROF_H264_Hi444PP, 1280, 720, 8, nullptr },

{ CODEC_H265, PROF_H265_Main, 1920, 1080, 8, hvcC_main_2160 },
{ CODEC_H265, PROF_H265_Main, 4096, 2160, 8, hvcC_main_2160 },
{ CODEC_H265, PROF_H265_Main10, 1920, 1080, 8, hvcC_main10_2160 },
{ CODEC_H265, PROF_H265_Main10, 4096, 2160, 8, hvcC_main10_2160 },
{ CODEC_H265, PROF_H265_MainStill,1280, 720, 8, nullptr },
{ CODEC_H265, PROF_H265_Main12, 1280, 720, 8, nullptr },
{ CODEC_H265, PROF_H265_Main444, 1280, 720, 8, nullptr },
{ CODEC_H264, PROF_H264_PHiP, 1280, 720, 8, nullptr },
{ CODEC_H264, PROF_H264_CHiP, 1280, 720, 8, nullptr },
{ CODEC_H264, PROF_H264_Hi444PP, 1280, 720, 8, nullptr },

{ CODEC_H265, PROF_H265_Main, 1920, 1080, 8, hvcC_main_2160 },
{ CODEC_H265, PROF_H265_Main, 4096, 2160, 8, hvcC_main_2160 },
{ CODEC_H265, PROF_H265_Main10, 1920, 1080, 8, hvcC_main10_2160 },
{ CODEC_H265, PROF_H265_Main10, 4096, 2160, 8, hvcC_main10_2160 },
{ CODEC_H265, PROF_H265_Main_still, 1280, 720, 8, nullptr },
{ CODEC_H265, PROF_H265_Main12, 1280, 720, 8, nullptr },
{ CODEC_H265, PROF_H265_Main444, 1280, 720, 8, nullptr },
};

const size_t decoder_profile_count = sizeof(decoder_profiles_vtb) / sizeof(Desc);
Expand Down
8 changes: 4 additions & 4 deletions mini_extractor/mini_extractor.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ CONFIG += c++11 warn_off
DESTDIR = bin/

# build artifacts
OBJECTS_DIR = build/
MOC_DIR = build/
RCC_DIR = build/
UI_DIR = build/
OBJECTS_DIR = build/$${QT_ARCH}
MOC_DIR = build/$${QT_ARCH}
RCC_DIR = build/$${QT_ARCH}
UI_DIR = build/$${QT_ARCH}

# mini_extractor files
SOURCES += src/main.cpp
Expand Down
8 changes: 4 additions & 4 deletions mini_thumbnailer/mini_thumbnailer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ CONFIG += c++11 warn_off
DESTDIR = bin/

# build artifacts
OBJECTS_DIR = build/
MOC_DIR = build/
RCC_DIR = build/
UI_DIR = build/
OBJECTS_DIR = build/$${QT_ARCH}
MOC_DIR = build/$${QT_ARCH}
RCC_DIR = build/$${QT_ARCH}
UI_DIR = build/$${QT_ARCH}

# mini_thumbnailer files
SOURCES += src/main.cpp
Expand Down
11 changes: 9 additions & 2 deletions minivideo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,16 @@ set(minivideo_SRC
src/export.cpp
src/export_utils.cpp
src/thirdparty/stb_image_write.h
src/demuxer/idr_filter.cpp
src/demuxer/xml_mapper.cpp
src/demuxer/codecs/codec_private_struct.h
src/demuxer/mp4/mp4_struct.h src/demuxer/mp4/mp4.cpp src/demuxer/mp4/mp4_box.cpp
src/demuxer/mp4/mp4_stbl.cpp src/demuxer/mp4/mp4_stsd.cpp src/demuxer/mp4/mp4_meta.cpp src/demuxer/mp4/mp4_picture.cpp src/demuxer/mp4/mp4_gopro.cpp
src/demuxer/mp4/mp4_virb.cpp src/demuxer/mp4/mp4_spatial.cpp src/demuxer/mp4/mp4_convert.cpp
src/demuxer/mp3/mp3_struct.h src/demuxer/mp3/mp3.cpp
src/demuxer/mkv/mkv_struct.h src/demuxer/mkv/mkv.cpp src/demuxer/mkv/ebml.cpp
src/demuxer/mkv/mkv_tracks.cpp src/demuxer/mkv/mkv_cluster.cpp src/demuxer/mkv/mkv_codec.cpp src/demuxer/mkv/mkv_convert.cpp
src/demuxer/esparser/esparser.cpp
src/demuxer/idr_filter.cpp
src/demuxer/xml_mapper.cpp
src/demuxer/mpeg/pes/pes_struct.h src/demuxer/mpeg/pes/pes.cpp
src/demuxer/mpeg/descriptor_struct.h
src/demuxer/mpeg/ps/ps_struct.h src/demuxer/mpeg/ps/ps.cpp
Expand Down Expand Up @@ -240,6 +241,12 @@ set(minivideo_SRC
src/decoder/h264/h264_inter_prediction.cpp
src/decoder/h264/h264_spatial.cpp
src/decoder/h264/h264_transform.cpp
src/decoder/h265/h265_nalu.cpp
src/decoder/h265/h265_parameterset.cpp
src/decoder/h265/h265_parameterset_struct.h
src/decoder/h266/h266_nalu.cpp
src/decoder/h266/h266_parameterset.cpp
src/decoder/h266/h266_parameterset_struct.h
)

# MiniVideo public headers
Expand Down
6 changes: 3 additions & 3 deletions minivideo/minivideo.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CONFIG += c++11 shared_and_static
CONFIG -= qt

# build artifacts
OBJECTS_DIR = build/artifacts
OBJECTS_DIR = build/$${QT_ARCH}/
DESTDIR = build/

# build settings ---------------------------------------------------------------
Expand Down Expand Up @@ -46,8 +46,8 @@ unix {
contains(COMPILER_BASENAME, "clang++") { QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-private-field } # Clang only

# Enables AddressSanitizer
#QMAKE_CXXFLAGS += -fsanitize=address,undefined -fno-omit-frame-pointer
#QMAKE_LFLAGS += -fsanitize=address,undefined
#QMAKE_CXXFLAGS += -fsanitize=address,undefined,pointer-compare,pointer-subtract -fno-omit-frame-pointer
#QMAKE_LFLAGS += -fsanitize=address,undefined,pointer-compare,pointer-subtract
}

linux {
Expand Down

0 comments on commit 0e1cd83

Please sign in to comment.