Skip to content
프로젝트

소개

A simple h264 software decoding library

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

h264bsd Build Status

This is a software-based library that was extracted from the Android project with the intention of being used elsewhere.

Some modifications have been made to the original project in order to remove the top-level API, add an alloc and free for encoder storage, convert to ARGB format, and add optimizations for certain platforms.

The intention is to provide a simple H.264 decoder that can be easily invoked from ffi systems.

Implementation Notes

Currently, the process of decoding modifies the input data. This has tripped me a few times in the past so others should be aware of it.

The decoder only works nicely if it has a single consistent stream to deal with. If you want to change the width/height or restart the stream with a new access unit delimiter, it's better to shutdown and init a new decoder.

Directories

  • src The modified source.
  • test Contains test data available for all platforms.
  • win Visual Studio project files and test application.
  • posix Simple c file that loads a test file and runs through a decode loop.
  • js Pure JavaScript version of the library created using [emscripten](http://emscripten.org/ Note: this version is largely deprecated and replaced with the wasm version.
  • wasm JavaScript WebAssembly version created using emscripten.
  • ios XCode project and objective-c wrapper classes.

This project was heavily inspired by Broadway.js. Much love to them for pioneering the idea.

Building

This project generally uses rake as a build tool, since I find it simple, clear, and compatible with many different environments.

On Windows, you can download rake along with Ruby using RubyInstaller On Mac, ruby and rake are already installed

In most cases, once you've installed the dependencies, you can build by changing to the desired directory and running:

rake

Here are very basic instructions for building each version:

wasm and js

wasm and js use emscripten and Terser.

Windows

A Visual Studio project is available for the library as well as a simple test application to ensure it works.

I don't have plans to create a VSCode version of the project any time soon.

iOS

You should only need Xcode in order to build and test the iOS version of the library. A project file for the library and a simple wrapper application is provided.

posix

The posix build has been tested with both gcc and clang and the test application only uses POSIX.2 system calls.

test

The test files are generated from a snippet of the movie "Big Buck Bunny" with uncompressed frames provided by Xiph.org

The encoding is done using FFMPEG

관련 프로젝트 살펴보기

불러오는 중…