Alessandro Decina
839970e07c
applemedia: vtdec: fix mpeg2 video support
2013-12-08 15:31:09 +01:00
Alessandro Decina
938ce6a23d
applemedia: vtdec: make jpeg decoding actually work
2013-12-08 15:25:27 +01:00
Alessandro Decina
1cd62000f5
applemedia: vtdec: fail gracefully when not negotiated
2013-12-08 15:24:58 +01:00
Alessandro Decina
b1a756fda7
applemedia: rewrite VideoToolbox decoder based on GstVideoDecoder
2013-12-08 15:13:26 +01:00
Matthieu Bouron
58be5ce16d
avfvideosrc: declare missing instance variables
...
Fixes build on 32-bit system.
https://bugzilla.gnome.org/show_bug.cgi?id=711844
2013-11-11 14:36:19 +01:00
Andoni Morales Alastruey
31d7c42158
coremediabuffer: keep an extra ref to the image and data buffer
2013-11-07 21:37:29 +01:00
Matthieu Bouron
78f104aa61
applemedia: coremediabuffer: use correct retain/release functions on CMSampleBufferRef buffer
...
Fixes a crash while releasing the sample buffer after the image
buffer it contains.
Also fixes a minor coding style error.
https://bugzilla.gnome.org/show_bug.cgi?id=711606
2013-11-07 18:47:15 +01:00
Matthieu Bouron
c9a8224553
qtkitvideosrc: lower rank to GST_RANK_SECONDARY
...
Makes avfvideosrc be prefered over qtkitvideosrc since it is deprecated
with OS X 10.9.
https://bugzilla.gnome.org/show_bug.cgi?id=711614
2013-11-07 18:44:39 +01:00
Matthieu Bouron
314e01e83f
avfvideosrc: set rank to GST_RANK_PRIMARY
...
Makes avfvideosrc to be used with autodetection.
https://bugzilla.gnome.org/show_bug.cgi?id=711614
2013-11-07 18:44:27 +01:00
Andoni Morales Alastruey
7e195cdcdc
avfvideosrc: fix compiler warning in iOS
2013-11-07 15:24:29 +01:00
Andoni Morales Alastruey
98e849a092
avfvideosrc: fix build in iOS with isEqualTo doesn't exists
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
a2b90eeb8c
avfvideosrc: fix build with older SDK not supporting AVDeviceFormat
...
AVDeviceFormat and AVFrameRateRange are available in iOS since 7.0
so we need a more dynamic approach to support compilation with older
SDK's. We use a NSObject to avoid referencing those types and key-value
coding or preformSelector to access properties.
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
46a61ea036
avfvideosrc: fix checks for HAVE_IOS
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
81cb13be64
avfvideosrc: include config.h
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
ef7f6e4654
avfvideosrc: add more debug
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
606a50e550
avfvideosrc: fix compilation with gcc
...
The synthesize block needs to be moved to fix a compiler error
2013-11-07 15:24:28 +01:00
Andoni Morales Alastruey
94d77829a4
avfvideosrc: sort caps with the highest resolution first
...
When started without any caps filter we prefer the highest
supported resolution.
2013-11-07 15:24:28 +01:00
Matthieu Bouron
66334591cc
avfvideosrc: support screen capture on OSX
...
https://bugzilla.gnome.org/show_bug.cgi?id=711432
2013-11-07 15:24:28 +01:00
Matthieu Bouron
88b5ff76f6
avfvideosrc: minor cosmetic
2013-11-07 15:24:28 +01:00
Matthieu Bouron
752d74b31f
avfvideosrc: use input device formats to set/get caps if available
...
https://bugzilla.gnome.org/show_bug.cgi?id=711211
2013-11-07 15:24:28 +01:00
Matthieu Bouron
35587efdc9
avfvideosrc: update caps if frame size has changed
...
On OSX, setting the pixel format on the output reset the capture device
to its native resolution, so we need to update the caps if the output
frame size has changed before a proper solution is found.
2013-11-07 15:24:28 +01:00
Matthieu Bouron
fae79751ad
avfvideosrc: check if low preset is available
2013-11-07 15:24:28 +01:00
Matthieu Bouron
7f807270fa
avfvideosrc: use a dedicated queue for AVFoundation calls
...
Replace the main queue with a dedicated queue for AVFoundation calls
so the execution on this queue won't block if the main queue
is not running.
2013-11-07 15:24:28 +01:00
Matthieu Bouron
5d612768a4
avfvideosrc: remove trailing space
2013-11-07 15:24:28 +01:00
Matthieu Bouron
19844fab47
avfvideosrc: dispatch AVFoundation calls synchronously in the main queue
2013-11-07 15:24:27 +01:00
Matthieu Bouron
0d74dc802a
applemedia: enable avfvideosrc if AVFoundation is present
2013-11-07 15:24:27 +01:00
Matthieu Bouron
b6925d5c56
avfvideosrc: only enable 1920x1080 preset on iOS
2013-11-07 15:24:27 +01:00
Matthieu Bouron
06d59e7829
applemedia: port avfvideosrc to 1.0
2013-11-07 15:24:27 +01:00
Sebastian Dröge
831c67c07b
applemedia: Link with gmodule for g_module_open() and others
2013-11-04 10:05:40 +01:00
Matthieu Bouron
1b2b879bf4
vtenc: use proper release callback type in CVPixelBufferCreateWithPlanarBytes
...
https://bugzilla.gnome.org/show_bug.cgi?id=711140
2013-10-30 16:27:58 +00:00
Matthieu Bouron
22eaf39c1a
avfvideosrc: fix truncated line
...
https://bugzilla.gnome.org/show_bug.cgi?id=710657
2013-10-30 16:27:58 +00:00
Dominik Röttsches
b002490ab2
vtenc: Add support for I420
...
https://bugzilla.gnome.org/show_bug.cgi?id=709241
2013-10-02 13:18:04 +02:00
Dominik Röttsches
24c79af394
vtenc: Use correct strides, etc from the GstVideoFrame
...
https://bugzilla.gnome.org/show_bug.cgi?id=706211
2013-10-02 13:14:32 +02:00
Sebastian Dröge
4bed01aff9
iosassetsrc: Port to 1.0 and fix some bugs on the way
2013-09-28 20:36:21 +02:00
Andoni Morales Alastruey
e5d5faa67e
iosassetsrc: Add new element from the GStreamer SDK project
2013-09-28 20:36:21 +02:00
Sebastian Dröge
dd19715961
applemedia: avfvideosrc is not ported to 1.0 yet
2013-09-28 20:36:21 +02:00
Alessandro Decina
95d5a8055b
applemedia: atdec: destroy the queue if set_format fails
2013-07-24 09:18:43 +02:00
Alessandro Decina
10d02e381b
applemedia: atdec: remove c++ style comments
2013-07-24 09:15:49 +02:00
Alessandro Decina
d71aaec486
applemedia: atdec: 1st round of fixes
2013-07-24 09:11:59 +02:00
Alessandro Decina
92bcdd9c4b
applemedia: add AudioToolbox based audio decoder
2013-07-23 10:36:47 +02:00
Andoni Morales Alastruey
bab2bf3f11
applemedia: fix release of null pointer
2013-06-18 13:33:14 +02:00
Thiago Santos
eecc951070
applemedia: coremediabuffer: fix leaking of apple media structs
...
remember to release the apple's api buffers to avoid huge leaking
2013-06-18 13:17:52 +02:00
Andoni Morales Alastruey
22be93cd04
applemedia: move defines to CPPFLAGS for obj-c files
2013-06-18 13:02:42 +02:00
Andoni Morales Alastruey
0690238c59
applemedia: fix duplicated symbols with applemedia
2013-05-24 09:39:10 +02:00
Andoni Morales Alastruey
5f4ac8c58f
vtdec: simplify caps setting
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
2f36ffb7d0
applemedia: fix H264 streams with b-frames
...
The decoder output frames in DTS order, even with the flag
kVTDecodeFrame_EnableTemporalProcessing. We store a internal
queue of the decoded frames and push them PTS order.
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
3b249f6761
applemedia: fix segfault with dropped frames
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
d9db0c2d4a
applemedia: improve usage of the VT API
...
Add timing information to CV samples and pass the GstBuffer
as extra data in the decode function
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
db49a77682
applemedia: add support for MPEG-1 too
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
9645d1df2d
applemedia: add support for MPEG-2 decoding
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
5e09d61638
applemedia: use the best colorformat on each platform
...
This saves a colorspace conversion before the sink in OS X
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
c69f41d299
applemedia: replace private function with its public variant
...
FigVideoFormatDescriptionCreateWithSampleDescriptionExtensionAtom
is an un-documented private function which might change its signature
as it already did in the past. Replace it with
CMVideoFormatDescriptionCreate and the also un-documented Extensions
dictionary.
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
9b168e6b4d
applemedia: remove the unneeded buffer factory
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
97bb1edf6c
applemedia: don't use the dynamic API for public frameworks
...
Public frameworks don't need to build the API dynamically, we instead
use the framework directly.
The exception is for VideoToolbox which went public in the 10.8 SDK,
but it's still private in older version of the SDK and iOS. This allow
building the plugin against SDK's where it's not a public framework.
2013-05-20 13:31:02 +02:00
Andoni Morales Alastruey
57b97beb6d
applemedia: move plugins using private frameworks to applemedia-nonpublic
2013-05-20 13:31:02 +02:00
Sebastian Dröge
e51cd4fe2f
gst: Add better support for static plugins
2013-04-15 15:59:22 +02:00
Andoni Morales Alastruey
27c546ad1e
avfvideosrc: fix deadlock draining queue from the same thread
2013-04-15 09:02:37 +02:00
Thiago Santos
23b2b46993
applemedia: fix build for objc
...
The obj-c api version option is required to get applemedia to
build for ios, otherwise it won't find some symbols during linking
2013-03-25 12:56:55 -03:00
Josep Torra
1870a4d58b
applemedia: suppress warnings for deprecated glib API
2013-03-10 22:06:31 +01:00
Ole André Vadla Ravnås
519cefdeee
applemedia: update contact information
2013-02-16 02:51:52 +01:00
Ole André Vadla Ravnås
ad2d6be695
applemedia: fix gst_buffer_get_core_media_meta macro
2013-02-16 02:51:52 +01:00
Ole André Vadla Ravnås
73bcf51f9f
applemedia: port vtenc to 1.0
2013-02-16 02:51:51 +01:00
Ole André Vadla Ravnås
bace18bacc
applemedia: replace usage of deprecated gst_pad_set_caps() in vtdec
2013-02-16 02:51:51 +01:00
Ole André Vadla Ravnås
af6df7292c
applemedia: port vtapi to run on OS X 10.8
2013-02-16 02:51:51 +01:00
Tim-Philipp Müller
9e1b75fda3
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Olivier Crête
9a328a8f71
avfvideosrc: Negotiate format, also support more resolutions
...
This should enable supprt for old and new iPhones with the same code.
2012-10-30 19:32:59 +01:00
Michael Smith
0c2159a220
meta info: register thread-safely.
2012-10-03 11:05:06 -07:00
Mark Nauwelaerts
9cb0cc216d
applemedia: init videoinfo
2012-09-18 13:19:37 +02:00
Mark Nauwelaerts
578861abea
replace gst_element_class_set_details_simple with gst_element_class_set_metadata
2012-09-14 17:27:49 +02:00
Sebastian Dröge
30617d23a3
applemedia: Put the right flags into the right variable
2012-05-30 13:54:11 +02:00
Sebastian Dröge
df5f39658f
configure: Add OBJC specific compiler flags
...
See bug #643939 .
2012-05-30 11:28:53 +02:00
Wim Taymans
1cbd31e3ee
fix for video api update
2012-04-19 14:24:45 +02:00
Sebastian Dröge
7ff3293a44
video: Update for libgstvideo API changes
2012-04-19 12:31:39 +02:00
Matej Knopp
156d80d74b
applemedia: do not link gstinterfaces
2012-04-16 11:19:17 +02:00
Sebastian Dröge
cda192b3b7
gst: Update for GST_PLUGIN_DEFINE() API changes
2012-04-05 18:02:56 +02:00
Alessandro Decina
d36fe4593d
applemedia: update corevideobuffer after buffer meta API change
2012-04-05 09:08:35 +02:00
Alessandro Decina
13334dfa8f
applemedia: update coremediabuffer after buffer meta API change
2012-04-05 09:08:24 +02:00
Alessandro Decina
10387bd629
qtkitvideosrc: update after BaseSrc::fixate API change
2012-04-05 09:08:14 +02:00
Sebastian Dröge
1318a97e0a
gst: Update versioning
2012-04-04 14:44:34 +02:00
Wim Taymans
48ba9063b0
update for buffer api change
2012-03-30 18:15:36 +02:00
Alessandro Decina
8546458617
applemedia: port vtdec
2012-03-03 19:04:36 +01:00
Alessandro Decina
b45250e9d2
applemedia: update signature of CMSampleBufferCreate and CMBlockBufferCreateWithMemoryBlock
...
Change data type for counters passed on the stack from UInt32 to size_t. Fixes
64bit builds.
2012-03-03 19:04:36 +01:00
Alessandro Decina
42dd6a145a
applemedia: update format description helper signature
...
Update the FigVideoFormatDescriptionCreateWithSampleDescriptionExtensionAtom
signature to match the implementation on OSX Lion.
2012-03-03 19:04:36 +01:00
Alessandro Decina
7a4a3833c3
applemedia: port qtkitvideosrc
2012-02-28 08:14:00 +01:00
Wim Taymans
de1f89bf07
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
2012-02-08 16:37:13 +01:00
Alessandro Decina
b6747292e0
qtkitvideosrc: get the framerate from caps
...
...and configure QTKit accordingly. Hardcoding to 30fps was pretty -bad.
2011-08-15 02:10:26 +02:00
Alessandro Decina
e21e8ddd4e
applemedia: bump the rank of qtkitvideosrc to PRIMARY
2011-05-15 10:04:50 +02:00
Leo Singer
369f41913c
applemedia: fix compiler warning: redundant declaration of 'parent_class'
...
GST_BOILERPLATE_FULL declares parent_class as well.
https://bugzilla.gnome.org/show_bug.cgi?id=637532
2010-12-18 21:32:36 +00:00
Ole André Vadla Ravnås
f3d8e3920d
applemedia: only enqueue buffers in the VideoToolbox callbacks
...
These callbacks may fire from any thread, hence we should only enqueue
buffers and let the streaming thread take care of the rest as soon as
the blocking encode or decode operation has finished.
2010-12-10 04:07:05 +01:00
Ole André Vadla Ravnås
f7e5878c9e
applemedia: bring back Leopard compatibility
...
At least as far as miovideosrc is concerned. Turns out that CoreVideo's
CVPixelBufferGetIOSurface is not present in Leopard's version of CoreVideo.
We solve this by making it possible for symbols to be marked as optional.
2010-12-10 04:06:59 +01:00
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
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
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