A lightweight, high-performance cross-platform camera capture library with video file playback support, plus Rust bindings.
轻量级、高性能的跨平台相机捕获库,支持视频文件播放,并提供 Rust bindings。
Hardware-accelerated conversion with AVX2, Apple Accelerate, NEON
支持 AVX2、Apple Accelerate、NEON 硬件加速
Pre-built binaries for all supported platforms
所有支持平台的预编译二进制文件
Loading release information...
正在加载版本信息...
Hardware-accelerated pixel format conversion with up to 10x speedup using AVX2, Apple Accelerate, and NEON.
硬件加速的像素格式转换,使用 AVX2、Apple Accelerate 和 NEON 可提升高达 10 倍性能。
No third-party dependencies - uses only system frameworks for maximum portability.
无第三方库依赖,仅使用系统框架,实现最大可移植性。
Native support for Windows dual backends (DirectShow by default, Media Foundation also supported), macOS/iOS (AVFoundation), and Linux (V4L2).
原生支持 Windows 双后端(默认 DirectShow,同时支持 Media Foundation)、macOS/iOS (AVFoundation) 和 Linux (V4L2)。
Support for RGB, BGR, YUV (NV12/I420) with automatic format conversion.
支持 RGB、BGR、YUV(NV12/I420)及自动格式转换。
Both modern C++ API and pure C99 interface for various project integration and language bindings.
同时提供现代 C++ API 和纯 C99 接口,支持各种项目集成和语言绑定。
Comprehensive test suite with 95%+ accuracy validation and 50+ test cases.
完整测试套件,95%+ 精度验证,50+ 测试用例。
DirectShow default + Media Foundation support
MSVC 2019+
AVFoundation
Xcode 11+, macOS 10.13+
AVFoundation
Xcode 11+, iOS 13.0+
V4L2
GCC 7+ / Clang 6+
Yes. While TCM does not have a direct translation for PTSD, the condition is often seen as a severe disturbance of the Shen (leading to fear and insomnia) and a stagnation of Liver Qi (leading to irritability and emotional repression). Acupuncture and herbs can be very effective at calming the nervous system and releasing trapped emotional energy.
Strong determination, perseverance through hardships, and deep inner wisdom.
Located between the eyebrows, used to calm the central nervous system and ease anxiety.
The clinical protocols are highly specific. For example, a patient with a Liver Qi stagnation pattern causing anxiety and irritability may be treated with acupuncture points on the Liver and Gallbladder channels, such as and Yang Ling Quan (GB34) . A patient with Heart Blood deficiency causing insomnia and poor memory might be prescribed the classic herbal formula Suan Zao Ren Tang (Sour Jujube Decoction) and treated with acupuncture points like Shen Men (HT7) and Zu San Li (ST36) .
A key resource for this topic is foundational work, The Psyche in Chinese Medicine , which explores how mental-emotional disharmonies are diagnosed and treated. You can find detailed overviews in the Elsevier Sample Chapters or the Maciocia Online PDF excerpt . The Five "Shen" (Spirits) the psyche in chinese medicine pdf
Offers detailed insights into the role of the emotions and the spirit in clinical practice.
Emotional restraint or chronic stress causes Liver Qi to constrict. Because the Liver is responsible for the smooth flow of all energy in the body, this stagnation leads to mood swings, PMS, frustration, and a physical feeling of a lump in the throat (known as Globus Hystericus or Plumstone Qi). 5. Holistic Modalities for Balancing the Psyche
by Beinfield and Korngold—specifically the chapters on the Five Shen.
Deep concentration, clear analytical thinking, and efficient studying. For example, a patient with a Liver Qi
When a person’s Shen is healthy, their eyes are bright, their mind is sharp, and they adapt easily to life’s stressors. When the Shen is disturbed, it can manifest as anxiety, insomnia, confusion, or severe mental illness. 2. The Five Shen (Wu Shen) and the Organ Systems
Various PDF archives highlight how modern practitioners treat anxiety, depression, and PTSD using traditional methods. Conclusion
Acupuncture stimulates specific points along the body's meridians to release endorphins, regulate the nervous system, and break up stagnant Qi. Points like (between the eyebrows) and Heart 7 (Shenmen) are universally used to instantly calm an overactive mind and ground a scattered Shen. Herbal Medicine
The Heart is considered the emperor of the body, and it houses the Shen. When your Heart energy (Qi) and blood are abundant, your Shen is well-anchored, leading to a calm mind, clear thinking, and restful sleep. The Zhi provides the drive
Depletes Lung Qi, causing shortness of breath and a weak immune system.
Strong instincts, clear boundaries, and the ability to experience grief and let it go.
Causes Qi to rise, resulting in headaches, dizziness, or irritability.
The Zhi provides the drive, ambition, and determination needed to achieve your goals. It is your foundational reserve of life force energy.
git clone https://github.com/wysaid/CameraCapture.git
cd CameraCapture
./scripts/build_and_install.sh
include(FetchContent)
FetchContent_Declare(ccap
GIT_REPOSITORY https://github.com/wysaid/CameraCapture.git
GIT_TAG main)
FetchContent_MakeAvailable(ccap)
target_link_libraries(your_app PRIVATE ccap::ccap)
brew tap wysaid/ccap
brew install ccap
cargo add ccap-rs
# Recommended in Cargo.toml:
# ccap = { package = "ccap-rs", version = "<latest>" }
find_package(ccap REQUIRED)
target_link_libraries(your_app ccap::ccap)
| Platform平台 | Compiler编译器 | Requirements要求 |
|---|---|---|
| Windows | MSVC 2019+ | DirectShow default + Media Foundation support |
| macOS | Xcode 11+ | macOS 10.13+ |
| iOS | Xcode 11+ | iOS 13.0+ |
| Linux | GCC 7+ / Clang 6+ | V4L2 (Linux 2.6+) |
Build Requirements: CMake 3.14+, C++17 (C++ interface), C99 (C interface) 构建要求:CMake 3.14+,C++17(C++ 接口),C99(C 接口)