# 使用 Homebrew, dnf 安装 hqx

查看 hqx 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:hqx
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hqx
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install hqx
```

  证据: Fedora Rawhide package metadata: hqx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## 软件包事实

- **软件包键:** brew:hqx
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hqx>
- **版本:** 1.2
- **来源摘要:** Magnification filter designed for pixel art
- **主页:** <https://github.com/grom358/hqx>
- **仓库:** <https://github.com/grom358/hqx>
- **上游文档:** <https://github.com/grom358/hqx#readme>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://github.com/grom358/hqx.git>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- hqx (cli)
- hqx (别名)

## 依赖

- devil

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.2
- 本地数据: OK
- 上游仓库: https://github.com/grom358/hqx
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

hqx is a C library and command-line tool for the hq2x, hq3x, and hq4x pixel-art scaling filters. The upstream README describes hqx as a fast, high-quality magnification filter designed for pixel art.

### 项目历史

The grom358 implementation packages Maxim Stepin's hqx pixel-art scaling family as a buildable Unix library and CLI. Its NEWS file says version 1.0 added 24-bit color support, a command-line tool using the DevIL image library, and an autotools build system.

The README explains the algorithmic shape: each source pixel is evaluated against its 3-by-3 neighborhood, color differences are calculated in YUV space, a 256-entry lookup table selects interpolation patterns, and the result preserves sharp edges better than nearest-neighbor scaling for sprites and line art.

### 采用历史

The README ties hqx to emulator culture, naming Nestopia, bsnes, ZSNES, Snes9x, and FCE Ultra as users of the algorithm family. Homebrew and Fedora packaging make the grom358 library/CLI available outside emulator source trees.

### 使用方式

The documented CLI usage is `hqx -s scaleBy input output`, where the scale is 2, 3, or 4. The library API exposes functions such as `hq4x_32` after `hqxInit()`, allowing applications to scale RGB bitmaps directly.

The filter is intended for images with sharp edges, such as pixel art, line graphics, and cartoon sprites, rather than photographs.

### 为什么软件包爱好者会关心

hqx matters because it packages a once-emulator-specific graphics algorithm as a reusable system library and filter command. That is exactly the sort of niche media primitive package managers keep alive: small, old-school, useful when you need it, and awkward to rederive from scratch.

Its significance is also historical: hq2x/hq3x/hq4x belong to the era when emulator authors competed to make low-resolution console graphics look acceptable on higher-resolution displays without losing pixel-art structure.

### 时间线

- 2001-2002: Archived HiEnd3D hq2x material carries Maxim Stepin copyright dates.
- 1.0: The grom358 NEWS file records 24-bit color support, the DevIL-based command-line tool, and autotools build support.
- 1.2: Homebrew packages the grom358 hqx implementation as version 1.2.

### Related projects

- hq2x, hq3x, and hq4x are the three scaling filters implemented by the package.
- DevIL is the image library required by the documented command-line build.
- Nestopia, bsnes, ZSNES, Snes9x, and FCE Ultra are emulator projects named in the upstream README as users of the hqx algorithm family.
- Scale2x and 2xSaI are neighboring pixel-art scaling algorithms shown alongside hq2x in preserved HiEnd3D comparison material.

### 来源

- <https://formulae.brew.sh/formula/hqx>
- <https://github.com/grom358/hqx>
- <https://github.com/grom358/hqx/blob/master/NEWS>
- <https://web.archive.org/web/20131205091805/http://www.hiend3d.com/hq2x.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hqx
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- dnf - hqx - 1.2-13.fc44: normalized package name match | Fedora Rawhide package metadata: hqx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | High quality upscaling program for pixel-art | https://github.com/grom358/hqx
- dnf - libhqx - 1.2-13.fc44: normalized package name match | Fedora Rawhide package metadata: libhqx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | High quality upscaling library for pixel-art | https://github.com/grom358/hqx
- dnf - libhqx-devel - 1.2-13.fc44: normalized package name match | Fedora Rawhide package metadata: libhqx-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libhqx | https://github.com/grom358/hqx


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [camellia](https://www.automicvault.com/zh-hans/pkg/brew/camellia/) - Shares av.db curated category or tags: c-library, cli, image-processing, media.
- [gdk-pixbuf](https://www.automicvault.com/zh-hans/pkg/brew/gdk-pixbuf/) - Shares av.db curated category or tags: c-library, cli, image-processing, media.
- [imageworsener](https://www.automicvault.com/zh-hans/pkg/brew/imageworsener/) - Shares av.db curated category or tags: cli, image-processing, image-scaling, media.
- [leptonica](https://www.automicvault.com/zh-hans/pkg/brew/leptonica/) - Shares av.db curated category or tags: c-library, cli, image-processing, media.
- [babl](https://www.automicvault.com/zh-hans/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/zh-hans/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [chafa](https://www.automicvault.com/zh-hans/pkg/brew/chafa/) - Shares av.db curated category or tags: cli, image-processing, media.
- [dssim](https://www.automicvault.com/zh-hans/pkg/brew/dssim/) - Shares av.db curated category or tags: cli, image-processing, media.
- [glyph](https://www.automicvault.com/zh-hans/pkg/brew/glyph/) - Both packages work with overlapping file formats or content types. Shared terms: art, cli, image, image-processing, media.
- [jp2a](https://www.automicvault.com/zh-hans/pkg/brew/jp2a/) - Both packages work with overlapping file formats or content types. Shared terms: art, cli, image, image-processing, media.
- [triangle](https://www.automicvault.com/zh-hans/pkg/brew/triangle/) - Both packages work with overlapping file formats or content types. Shared terms: art, cli, image, image-processing, media.

## Combined YAML source

View the package source record on GitHub. [combined/hqx.yml](https://github.com/automic-vault/db/blob/main/combined/hqx.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
