Skip to content

Commit d60e6e2

Browse files
kixelatedclaude
andcommitted
Correct upstream attribution and add AI-generated disclosure
The crate was built from discord's forks, not Intel's repos directly: discord/cros-libva @ discord-0.0.13 and discord/cros-codecs @ discord-0.0.5 (both BSD-3-Clause, ChromiumOS copyright). Point the README, Cargo.toml, and lib.rs at the actual sources + tags, soften the "verbatim" claim (how closely files track upstream varies), and add the missing attribution header to src/encode.rs (adapted from cros-codecs). Also disclose that the crate is AI-generated and bitstream-unvalidated in the description and README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1add424 commit d60e6e2

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "moq-vaapi"
33
version = "0.0.1"
4-
description = "VA-API H.264 hardware encoder, vendored and trimmed from cros-libva + discord/cros-codecs"
4+
description = "(AI GENERATED) VA-API H.264 hardware encoder, derived from discord/cros-libva + discord/cros-codecs"
55
authors = ["The ChromiumOS Authors", "Discord", "Luke Curley <kixelated@gmail.com>"]
66
repository = "https://github.com/moq-dev/vaapi"
77
license = "BSD-3-Clause"

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# moq-vaapi
22

3+
> **⚠️ AI GENERATED.** This crate was written by an AI agent (Claude), using the
4+
> repositories below as references. How closely individual files track upstream
5+
> varies and the emitted bitstream has not been validated at playback — treat the
6+
> whole thing as derived, unverified work and review before relying on it.
7+
38
A small, self-contained **VA-API H.264 hardware encoder** for Linux (Intel / AMD),
4-
vendored and trimmed from [cros-libva](https://github.com/intel/cros-libva) and
5-
[discord/cros-codecs](https://github.com/discord/cros-codecs) (BSD-3-Clause).
9+
derived from
10+
[discord/cros-libva @ discord-0.0.13](https://github.com/discord/cros-libva/tree/discord-0.0.13)
11+
and
12+
[discord/cros-codecs @ discord-0.0.5](https://github.com/discord/cros-codecs/tree/discord-0.0.5)
13+
— both BSD-3-Clause, themselves forks of Intel's
14+
[cros-libva](https://github.com/intel/cros-libva) (ChromiumOS).
615

716
It exists to give [moq](https://github.com/moq-dev/moq)'s `moq-video` a thin,
817
crates.io-publishable VA-API encoder brick instead of a multi-backend framework

src/encode.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright 2022 The ChromiumOS Authors
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
//
5+
// Adapted from discord/cros-codecs (encoder/stateless/h264/vaapi.rs), itself
6+
// BSD-3-Clause / Copyright The ChromiumOS Authors. See LICENSE.cros-codecs.
7+
18
//! Thin VA-API H.264 encoder built on the vendored libva binding.
29
//!
310
//! Reuses the backend-agnostic bitstream layer ([`crate::codec::h264`]) from

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! The starting point to using this crate is to open a [`Display`], from which a [`Context`] and
88
//! [`Surface`]s can be allocated and used for doing actual work.
99
10-
// Most of this crate is vendored verbatim from cros-libva + discord/cros-codecs
10+
// Most of this crate is derived from discord/cros-libva + discord/cros-codecs
1111
// (BSD-3-Clause). Don't subject upstream code to this workspace's strict lints;
1212
// the build script also emits custom `libva_*_or_higher` cfgs.
1313
#![allow(dead_code, unused_imports, unexpected_cfgs, mismatched_lifetime_syntaxes)]

0 commit comments

Comments
 (0)