mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
Changed video format; added TEV version 3 (XYB colour space)
This commit is contained in:
@@ -5,26 +5,37 @@ CC = gcc
|
||||
CFLAGS = -std=c99 -Wall -Wextra -O2 -D_GNU_SOURCE
|
||||
LIBS = -lm -lz
|
||||
|
||||
# Source files
|
||||
SOURCES = encoder_tev.c
|
||||
TARGET = encoder_tev
|
||||
# Source files and targets
|
||||
SOURCES = encoder_tev.c encoder_tev_xyb.c
|
||||
TARGETS = encoder_tev encoder_tev_xyb
|
||||
|
||||
# Build encoder
|
||||
$(TARGET): $(SOURCES)
|
||||
rm -f $(TARGET)
|
||||
# Build all encoders
|
||||
all: $(TARGETS)
|
||||
|
||||
# Build main encoder
|
||||
encoder_tev: encoder_tev.c
|
||||
rm -f encoder_tev
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
# Build XYB encoder
|
||||
encoder_tev_xyb: encoder_tev_xyb.c
|
||||
rm -f encoder_tev_xyb
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
# Default target
|
||||
$(TARGETS): all
|
||||
|
||||
# Build with debug symbols
|
||||
debug: CFLAGS += -g -DDEBUG
|
||||
debug: $(TARGET)
|
||||
debug: $(TARGETS)
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
# Install (copy to PATH)
|
||||
install: $(TARGET)
|
||||
cp $(TARGET) /usr/local/bin/
|
||||
install: $(TARGETS)
|
||||
cp $(TARGETS) /usr/local/bin/
|
||||
|
||||
# Check for required dependencies
|
||||
check-deps:
|
||||
@@ -38,7 +49,9 @@ help:
|
||||
@echo "TSVM Enhanced Video (TEV) Encoder"
|
||||
@echo ""
|
||||
@echo "Targets:"
|
||||
@echo " encoder_tev - Build the encoder (default)"
|
||||
@echo " all - Build both encoders (default)"
|
||||
@echo " encoder_tev - Build the main TEV encoder"
|
||||
@echo " encoder_tev_xyb - Build the XYB color space encoder"
|
||||
@echo " debug - Build with debug symbols"
|
||||
@echo " clean - Remove build artifacts"
|
||||
@echo " install - Install to /usr/local/bin"
|
||||
@@ -46,7 +59,8 @@ help:
|
||||
@echo " help - Show this help"
|
||||
@echo ""
|
||||
@echo "Usage:"
|
||||
@echo " make"
|
||||
@echo " make # Build both encoders"
|
||||
@echo " ./encoder_tev input.mp4 -o output.tev"
|
||||
@echo " ./encoder_tev_xyb input.mp4 -o output.tev"
|
||||
|
||||
.PHONY: clean install check-deps help debug
|
||||
.PHONY: all clean install check-deps help debug
|
||||
|
||||
Reference in New Issue
Block a user