rockbox/apps/plugins/h264_player/h264_player.make
David Cormier e0136bc7f4 ipod6g: add hardware H.264 video playback
Add S5L8702 VPU-B initialization, reset, bitstream input, frame output,
and cache maintenance to the iPod 6G target. Advertise it with
HAVE_HW_H264 and append a capability-gated decoder interface to the
plugin API.

Keep MP4 parsing, AAC decode and mixer output, A/V synchronization,
playback controls, resume state, and presentation in the multi-file
h264_player plugin. The target layer exposes decoder operations only.

Accept non-fragmented MP4/M4V containing Constrained Baseline H.264
through level 3.0, up to 640x480 at 30 fps, with optional AAC-LC audio.
Validate codec configuration and all sample-table relationships before
activating the hardware.

Read MP4 tables in bulk, boost the CPU while preparing them, and report
staged loading progress so long movies do not appear to hang during
startup.

Register the viewer and document its format limits and controls. The
libm4a compatibility fixes needed by video-first containers remain in
the preceding standalone change.

Tested on an iPod Classic 6G through an isolated Rolo nightly runtime:
H.264/AAC playback and M4V startup succeeded. Normal and
isolated-runtime iPod 6G builds also complete, and git diff --check is
clean.

Change-Id: I1e96c65c7d0b4231a94f602f8052f1b26d6e4a80
2026-09-13 08:07:59 -04:00

26 lines
1 KiB
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
#
H264PLAYERSRCDIR := $(APPSDIR)/plugins/h264_player
H264PLAYERBUILDDIR := $(BUILDDIR)/apps/plugins/h264_player
ROCKS += $(H264PLAYERBUILDDIR)/h264_player.rock
H264PLAYER_SRC := $(call preprocess, $(H264PLAYERSRCDIR)/SOURCES)
H264PLAYER_OBJ := $(call c2obj, $(H264PLAYER_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(H264PLAYER_SRC)
$(H264PLAYERBUILDDIR)/h264_player.rock: $(H264PLAYER_OBJ)
$(H264PLAYERBUILDDIR)/%.o: $(H264PLAYERSRCDIR)/%.c \
$(H264PLAYERSRCDIR)/h264_player.make
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) \
$(PLUGINFLAGS) -c $< -o $@