applemedia: New plugin for Apple multimedia APIs
authorOle André Vadla Ravnås <oravnas@cisco.com>
Wed, 27 Oct 2010 17:30:11 +0000 (18:30 +0100)
committerOle André Vadla Ravnås <oleavr@gmail.com>
Thu, 28 Oct 2010 13:08:08 +0000 (15:08 +0200)
commit0e4e351b83401ae8dae062ffda390a61e5c020a6
tree24ad8b82eb022d47812dff65679cb1159e9912cd
parent13431420ebbf52cbfc6245e875db78b4fbd3c2ca
applemedia: New plugin for Apple multimedia APIs

Provides the following elements:

qtkitvideosrc: OS X video source relying on the QTKit API. Comes with
hard-coded caps as the API does not provide any way of querying for
formats supported by the hardware. Hasn't been tested a lot, but seems
to work.

miovideosrc: OS X video source which uses the undocumented/private
CoreMediaIOServices API, which is also the one used by iChat.
Present on latest version of Leopard and all versions of Snow Leopard.
Has been tested extensively with built-in cameras and TANDBERG's
PrecisionHD USB camera.

vtenc, vtdec: Generic codec wrappers which make use of the undocumented/
private VideoToolbox API on OS X and iOS. List of codecs are currently
hard-coded to H.264 for vtenc, and H.264 + JPEG for vtdec. Can easily be
expanded by adding new entries to the lists, but haven't yet had time to
do that. Should probably also implement probing as available codecs depend
on the OS and its version, and there doesn't seem to be any way to
enumerate the available codecs.

vth264decbin, vth264encbin: Wrapper bins to make it easier to use
vtdec_h264/vtenc_h264 in live scenarios.

iphonecamerasrc: iPhone camera source relying on the undocumented/private
Celestial API. Tested on iOS 3.1 running on an iPhone 3GS. Stops working
after a few minutes, presumably because of a resource leak. Needs some
love.

Note that the iOS parts haven't yet been ported to iOS 4.x.
43 files changed:
configure.ac
sys/Makefile.am
sys/applemedia/Makefile.am [new file with mode: 0644]
sys/applemedia/celapi.c [new file with mode: 0644]
sys/applemedia/celapi.h [new file with mode: 0644]
sys/applemedia/cmapi.c [new file with mode: 0644]
sys/applemedia/cmapi.h [new file with mode: 0644]
sys/applemedia/coremediabuffer.c [new file with mode: 0644]
sys/applemedia/coremediabuffer.h [new file with mode: 0644]
sys/applemedia/coremediactx.c [new file with mode: 0644]
sys/applemedia/coremediactx.h [new file with mode: 0644]
sys/applemedia/corevideobuffer.c [new file with mode: 0644]
sys/applemedia/corevideobuffer.h [new file with mode: 0644]
sys/applemedia/cvapi.c [new file with mode: 0644]
sys/applemedia/cvapi.h [new file with mode: 0644]
sys/applemedia/dynapi-internal.h [new file with mode: 0644]
sys/applemedia/dynapi.c [new file with mode: 0644]
sys/applemedia/dynapi.h [new file with mode: 0644]
sys/applemedia/iphonecamerasrc.c [new file with mode: 0644]
sys/applemedia/iphonecamerasrc.h [new file with mode: 0644]
sys/applemedia/mioapi.c [new file with mode: 0644]
sys/applemedia/mioapi.h [new file with mode: 0644]
sys/applemedia/miovideodevice.c [new file with mode: 0644]
sys/applemedia/miovideodevice.h [new file with mode: 0644]
sys/applemedia/miovideosrc.c [new file with mode: 0644]
sys/applemedia/miovideosrc.h [new file with mode: 0644]
sys/applemedia/mtapi.c [new file with mode: 0644]
sys/applemedia/mtapi.h [new file with mode: 0644]
sys/applemedia/plugin.m [new file with mode: 0644]
sys/applemedia/qtkitvideosrc.h [new file with mode: 0644]
sys/applemedia/qtkitvideosrc.m [new file with mode: 0644]
sys/applemedia/vtapi.c [new file with mode: 0644]
sys/applemedia/vtapi.h [new file with mode: 0644]
sys/applemedia/vtdec.c [new file with mode: 0644]
sys/applemedia/vtdec.h [new file with mode: 0644]
sys/applemedia/vtenc.c [new file with mode: 0644]
sys/applemedia/vtenc.h [new file with mode: 0644]
sys/applemedia/vth264decbin.c [new file with mode: 0644]
sys/applemedia/vth264decbin.h [new file with mode: 0644]
sys/applemedia/vth264encbin.c [new file with mode: 0644]
sys/applemedia/vth264encbin.h [new file with mode: 0644]
sys/applemedia/vtutil.c [new file with mode: 0644]
sys/applemedia/vtutil.h [new file with mode: 0644]