Files
libva-v4l2-request-fourier/include/hevc-ctrls.h
T
test0r 4ccbfe923f Strip HEVC build path
Three changes that together make the build compile cleanly against a
current linux-api-headers (>= 5.x post-HEVC-UAPI-rename):

- src/meson.build: comment h265.c + h265.h out of sources/headers.
- include/hevc-ctrls.h: replace bundled HEVC structs with a single
  #include <linux/v4l2-controls.h>. The bundled definitions were
  identical to what later landed in mainline as V4L2_CID_STATELESS_HEVC_*
  (renamed) and v4l2_ctrl_hevc_* (kept the field names but moved into
  the kernel public header). Keeping a duplicate copy now triggers
  redefinition errors. The header is kept as a passthrough rather than
  deleted so any downstream patch that says #include <hevc-ctrls.h>
  still compiles.
- src/picture.c: drop the four HEVC case blocks. Three of them were in
  switches that already had `default: break`, so removing them is
  functionally a no-op. The fourth was the only external reference to
  h265_set_controls — removing it lets the library link cleanly with
  h265.c excluded.

Why this is OK rather than the more ambitious "fix HEVC properly":
RK3566 has no HW HEVC at all (the only decoder block is the Hantro G1
which speaks H.264 / MPEG-2 / VP8). HEVC can come back as a separate
effort once we're on RK3588 silicon AND the library is updated to the
renamed kernel CIDs. For Fourier's first port milestone (H.264 multi-
plane on RK3566 hantro) HEVC is dead weight.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 21:26:28 +00:00

20 lines
861 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Fourier-local: HEVC support stripped from this build. The bundled
* HEVC controls structs and CIDs (V4L2_CID_MPEG_VIDEO_HEVC_*) were
* upstreamed and renamed to V4L2_CID_STATELESS_HEVC_* in mainline
* linux/v4l2-controls.h, making the original duplicated definitions
* conflict on any current kernel. RK3566 has no HW HEVC anyway, so the
* port is starting from H.264 + MPEG-2 only; HEVC can come back as a
* separate effort once a) the host has HEVC silicon (RK3588 hantro/
* VDPU381) and b) the library is updated to the renamed CIDs.
*
* h265.c and h265.h are excluded from src/meson.build; this header is
* left as a placeholder so any stray '#include <hevc-ctrls.h>' from a
* downstream patch keeps compiling.
*/
#ifndef _HEVC_CTRLS_H_
#define _HEVC_CTRLS_H_
#include <linux/v4l2-controls.h>
#endif