shithub: h264bsd

Download patch

ref: ffe52bff37ac96bb33d5a544223e820f3e9876c9
parent: a79788d2867014d90423ca7c51590e37b7f2f4a0
author: Sam Leitch <sam@luceva.net>
date: Wed Feb 19 18:05:53 EST 2014

Updated documentation

--- a/README.md
+++ b/README.md
@@ -2,12 +2,15 @@
 
 This is a software-based library that was extracted from the Android project with the intention of being used elsewhere.
 
-Only minor modifications have been made in order to remove the top-level API and add an opaque pointer with alloc and free for encoder storage.
+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](http://en.wikipedia.org/wiki/Foreign_function_interface) systems. 
+The intention is to provide a simple H.264 decoder that can be easily invoked from [ffi](http://en.wikipedia.org/wiki/Foreign_function_interface) systems.
 
 ## Directories
 
 * *src* The modified source.
 * *win* Visual Studio project files for building.
-* *js* JavaScript version of the library created using emscripten.
+* *js* JavaScript version of the library created using [emscripten](http://emscripten.org/).
+* *flex* ActionScript version of the library built using [CrossBridge](http://adobe-flash.github.io/crossbridge/).
+
+This project was heavily inspired by [Broadway.js](https://github.com/mbebenita/Broadway). Much love to them for pioneering the idea.
--- a/src/h264bsd_decoder.c
+++ b/src/h264bsd_decoder.c
@@ -1056,6 +1056,9 @@
         Functional description:
             Convert decoded image data ARGB format.
             ARGB format uses u32 pixels where the MSB is alpha.
+            *Note* While this function is available, it is not heavily optimized.
+            If possible, you should use decoded image data directly. 
+            This function should only be used when there is no other way to get ARGB data.
 
         Inputs:
             width       width of the image in pixels
--- a/win/h264bsd.def
+++ b/win/h264bsd.def
@@ -4,6 +4,7 @@
     h264bsdDecode
     h264bsdShutdown
     h264bsdNextOutputPicture
+    h264bsdNextOutputPictureARGB
     h264bsdPicWidth
     h264bsdPicHeight
     h264bsdVideoRange
@@ -14,3 +15,5 @@
     h264bsdFlushBuffer
     h264bsdAlloc
     h264bsdFree
+    h264bsdConvertToARGB
+    
\ No newline at end of file