fresnel-fourier iter5b-β Phase 6 commit A: NEW src/codec.{h,c} — pixelformat_for_profile helper

Re-introduce after the iter5b-α' revert. Helper maps VAProfile to V4L2
OUTPUT-side FOURCC, used at CreateConfig in commit B to populate the
previously-dead object_config->pixelformat field. β reads from there
at CreateContext (commit C).

Single source of truth for the profile→pixelformat mapping; mirrors
the per-profile probes in config.c::RequestQueryConfigProfiles
(lines 138-188).

Register codec.c in meson.build sources, codec.h in headers.

Signed-off-by: claude-noether <claude-noether@reauktion.de>
This commit is contained in:
claude-noether
2026-05-12 14:10:46 +00:00
parent 6bc29ec582
commit 1c548b136a
3 changed files with 102 additions and 2 deletions
+4 -2
View File
@@ -49,7 +49,8 @@ sources = [
'cap_pool.c',
'h265.c',
'vp8.c',
'vp9.c'
'vp9.c',
'codec.c'
]
headers = [
@@ -74,7 +75,8 @@ headers = [
'cap_pool.h',
'h265.h',
'vp8.h',
'vp9.h'
'vp9.h',
'codec.h'
]
includes = [