Alessandro Decina
0b6e0b7b13
qtkitvideosrc: reset the queue condition to NO_FRAMES in unlockStop.
...
Fixes a segfault in create: when going PLAYING -> PAUSED -> PLAYING.
2010-12-09 12:04:10 +01:00
Alessandro Decina
ec6c307334
qtkitvideosrc: run the mainRunLoop for a while if not running.
...
QTCaptureSession::addInput and QTCaptureSession::addOutput call
NSObject::performSelectorOnMainThread internally so they need the mainRunLoop to
run at least for a while to complete.
2010-12-09 11:55:57 +01:00
Benjamin Gaignard
b4ff7c94d7
sys: Add android audioflingersink
2010-12-03 17:46:27 +01:00
Alessandro Decina
536a30f2df
applemedia: don't use the deprecated g_strcasecmp function.
...
Replace g_strcasecmp with g_ascii_strcasecmp.
2010-12-01 23:21:33 +01:00
Alessandro Decina
aae72680bd
Fix compiler warnings with gcc 4.2.1 on OSX.
2010-12-01 23:20:36 +01:00
Olivier Crête
ecb7674640
shm: Don't pass the ShmPipe to the function closing the shm area
2010-11-24 19:12:10 -05:00
Olivier Crête
56c4a9b692
shm: Use the right counter when freeing buffers
2010-11-24 19:12:10 -05:00
Olivier Crête
a770d7a707
shmalloc: Manually decide to use GLib or not in the shmalloc
...
So make it easier for embedders to use it with or without Glib
2010-11-24 19:12:10 -05:00
Olivier Crête
01f1cc20d7
shm: Remove duplicated arguement
2010-11-24 19:12:10 -05:00
Olivier Crête
70b8d2ab93
shm: Fix socket leak on connect() error
2010-11-24 19:12:10 -05:00
Olivier Crête
225bc1dd0b
shm: sp_client_recv returns negative on error, so make the retval signed
2010-11-24 19:12:10 -05:00
Olivier Crête
2aaf51af49
shm: Rename confusingly named variable
2010-11-24 19:12:10 -05:00
Olivier Crête
de9905db03
shm: Change permissions on old shm areas too
...
Change the permissions on old shm areas
2010-11-24 19:12:10 -05:00
Olivier Crête
0b99919c55
shm: Use the macro for the last error too
2010-11-24 19:12:10 -05:00
Olivier Crête
a533c30ab8
shm: Use "ablock" for all ShmAllocBlock variables
...
Use the ablock variable name for ShmAllocBlocks and block for
ShmBlock
2010-11-24 19:12:10 -05:00
Olivier Crête
b14a0d64ec
shm: Add more comments
2010-11-24 19:12:10 -05:00
Youness Alaoui
768319b866
shm: stylist improvements
2010-11-24 19:12:10 -05:00
Youness Alaoui
a7b27bc2d0
shm: Explain some fields
...
Explain what some of the fields in the allocator actually mean
2010-11-24 19:12:10 -05:00
Andoni Morales Alastruey
7c43c2fa06
dvbbasebin: Add TDT to the initial pids filter for dvbsrc. Fixes #635200 .
2010-11-19 18:04:12 +01:00
Ole André Vadla Ravnås
abdb30c567
celvideosrc: fix nasty deadlock
...
We cannot call any CMBufferQueue functions while holding the lock that
our callback also depends on. So now we make use of CMBufferQueue's
trigger API in order to get notified when the queue has data.
2010-11-12 00:44:42 +01:00
Ole André Vadla Ravnås
de76e9fdb6
cmapi: cover CMBufferQueue's trigger API
2010-11-12 00:44:42 +01:00
Ole André Vadla Ravnås
e4db4257d5
celvideosrc: unlock should also notify
...
Otherwise we depend on being woken up by the CoreMedia queue getting
its next buffer.
2010-11-12 00:44:42 +01:00
Ole André Vadla Ravnås
ebd2a6d6e9
applemedia: don't push synchronously from callback
...
The codec that called us might be holding locks to shared resources, so
we should never push downstream from within its buffer callback.
Note that a GstBufferList is not used here because we need to preserve
the buffer metadata held by our GstBuffer subclasses.
2010-11-11 00:22:31 +01:00
Ole André Vadla Ravnås
6b63954f63
vtenc: bump H.264 level from 1.3 to 3.0
...
This should be turned into a property.
2010-11-11 00:22:31 +01:00
Ole André Vadla Ravnås
6e909dc474
celvideosrc: add basic device selection support
2010-11-11 00:22:31 +01:00
Ole André Vadla Ravnås
2382f10b98
cvapi: add wrapper for IO surface access
...
To be used in a future video sink for zero-copy rendering.
2010-11-11 00:22:31 +01:00
Ole André Vadla Ravnås
420943972c
celapi: add capture port type constants
2010-11-11 00:22:31 +01:00
Ole André Vadla Ravnås
d10e029f51
applemedia: biplanar is actually NV12, not I420
...
D'oh!
2010-11-08 23:58:25 +01:00
Ole André Vadla Ravnås
d865feca82
vtenc: remove keyframe enforcement workaround
...
Was only needed for old iOS where the H.264 encoder didn't support
kVTEncodeFrameOptionKey_ForceKeyFrame.
2010-11-08 23:58:25 +01:00
Ole André Vadla Ravnås
abba3a4126
cvapi: add a few extra bits of wrapping
2010-11-08 23:58:25 +01:00
Ole André Vadla Ravnås
b4654f537f
applemedia: lock CVPixelBuffer read-only
...
As per Apple's docs, this may improve performance by avoiding redundant
invalidations of existing caches of the buffer contents.
2010-11-08 23:58:24 +01:00
Ole André Vadla Ravnås
6428d306ea
celvideosrc: put planar first in template caps
2010-11-08 14:02:50 +01:00
Ole André Vadla Ravnås
c2672f71cd
applemedia: improve vtenc/vtdec performance
...
Profiling of H.264 encode and decode revealed that conversions
between packed and planar were happening behind the scenes.
Hence we now choose I420 instead of YUY2.
2010-11-08 14:02:50 +01:00
Ole André Vadla Ravnås
1eb9190ad9
celvideosrc: measure fps when statistics is enabled
...
Also refactor timestamping slightly.
2010-11-05 16:52:58 +01:00
Ole André Vadla Ravnås
b7368c34fd
celvideosrc: update to new Celestial and MediaToolbox APIs
...
This means celvideosrc is no longer compatible with iOS 3.x.
2010-11-05 15:32:37 +01:00
Ole André Vadla Ravnås
bf095e891f
celvideosrc: fix debug category description
2010-11-05 15:32:37 +01:00
Ole André Vadla Ravnås
517f3a75c2
celapi: update to reflect new API on iOS 4.x
...
Also add remaining property constants for device and stream.
2010-11-05 15:32:37 +01:00
Ole André Vadla Ravnås
da5da05540
mtapi: update to reflect new API on iOS 4.x
...
Also add remaining property constants for device and stream.
2010-11-05 15:32:37 +01:00
Ole André Vadla Ravnås
8402211bac
applemedia: make video source element details consistent
...
Inspired by the v4l2src element details.
2010-11-04 19:27:25 +01:00
Ole André Vadla Ravnås
445d7502c4
applemedia: consistently use gst_element_class_set_details_simple
2010-11-04 19:27:25 +01:00
Ole André Vadla Ravnås
5d71ad0d52
celvideosrc: update e-mail address
2010-11-04 19:27:25 +01:00
Ole André Vadla Ravnås
44df8abea8
applemedia: rename iphonecamerasrc to celvideosrc
...
This is in order to improve consistency with the other three sources.
2010-11-04 19:27:25 +01:00
Ole André Vadla Ravnås
8b22f855ec
avfvideosrc: don't explicitly empty the buffer queue
...
We're holding the only reference to it so there's no need to explicitly
empty it right before letting go of our reference.
2010-11-04 17:58:59 +01:00
Ole André Vadla Ravnås
89e5b60130
avfvideosrc: make buffer offset start from zero
2010-11-04 17:52:05 +01:00
Ole André Vadla Ravnås
86e2539816
qtkitvideosrc: implement zero-copy by using buffer-factory
...
This means we'll wrap each CoreVideo buffer inside a GstBuffer instead of
making a copy.
2010-11-04 17:52:05 +01:00
Ole André Vadla Ravnås
835b2988b6
bufferfactory: add support for wrapping CVBuffer
2010-11-04 17:52:05 +01:00
Ole André Vadla Ravnås
3a44d4c1f9
qtkitvideosrc: fix up refcounting
...
Should keep a strong reference to the device, but we don't need to manage
the reference count of elements of an NSMutableArray as it takes care of
that for us.
2010-11-04 17:52:04 +01:00
Ole André Vadla Ravnås
b39609b405
qtkitvideosrc: simplify timestamping algorithm
...
Aligning timestamps on duration boundaries, skipping frames and so forth
are clearly things that fall outside the scope of a video source.
2010-11-04 17:52:04 +01:00
Ole André Vadla Ravnås
3ba76f825d
applemedia: add new iOS video source based on AVFoundation
...
This element makes use of the documented AVFoundation framework made
available starting with iOS 4.0, and hence this means we can finally
capture video using a public API.
2010-11-04 14:32:10 +01:00
Ole André Vadla Ravnås
50c6e05924
applemedia: fix stream-format caps used for H.264
...
The stream-format's "avc-sample" member is now called just "avc".
2010-11-04 14:32:09 +01:00