After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709241 - applemedia: Enable I420 on input pad
applemedia: Enable I420 on input pad
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.2.0
Other Mac OS
: Normal normal
: 1.2.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 706211
Blocks:
 
 
Reported: 2013-10-02 03:00 UTC by Dominik Röttsches
Modified: 2013-12-31 09:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Enabling I420 (2.77 KB, patch)
2013-10-02 03:01 UTC, Dominik Röttsches
none Details | Review
Enabling I420 (2) (3.03 KB, patch)
2013-10-02 08:30 UTC, Dominik Röttsches
needs-work Details | Review
Enabling I420 (3) (3.09 KB, patch)
2013-10-02 11:11 UTC, Dominik Röttsches
committed Details | Review

Description Dominik Röttsches 2013-10-02 03:00:52 UTC
Based on the patch in bug 706211, we can enable additional formats on the input pad. Adding I420.
Comment 1 Dominik Röttsches 2013-10-02 03:01:28 UTC
Created attachment 256232 [details] [review]
Enabling I420

Shortening the pad definition and adding I420.
Comment 2 Dominik Röttsches 2013-10-02 08:30:38 UTC
Created attachment 256238 [details] [review]
Enabling I420 (2)

Updated:
C-style comments, using variable name instead of N_PLANES macro.
Comment 3 Sebastian Dröge (slomo) 2013-10-02 09:32:43 UTC
Review of attachment 256238 [details] [review]:

::: sys/applemedia/vtenc.c
@@ +800,3 @@
+        pixel_format_type = kCVPixelFormatType_420YpCbCr8Planar;
+      } else {
+        pixel_format_type = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;

For future extensibility please check the video format here :)

Also is it guaranteed that both are always supported? If not it would make sense to implement something to only return what actually is supported from the CAPS query.
Comment 4 Dominik Röttsches 2013-10-02 11:11:21 UTC
Created attachment 256251 [details] [review]
Enabling I420 (3)

(In reply to comment #3)
> Review of attachment 256238 [details] [review]:
> 
> ::: sys/applemedia/vtenc.c
> @@ +800,3 @@
> +        pixel_format_type = kCVPixelFormatType_420YpCbCr8Planar;
> +      } else {
> +        pixel_format_type = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
> 
> For future extensibility please check the video format here :)

Makes sense :-)

> Also is it guaranteed that both are always supported? If not it would make
> sense to implement something to only return what actually is supported from the
> CAPS query.

I have tested this on an iMac and and a Macbook pro - on these Mac OS systems both always work. I don't have any info on whether these are always supported, for neither of the formats. I can try to investigate that separately.
Comment 5 Dominik Röttsches 2013-10-02 11:13:33 UTC
(on iOS for example, that is)
Comment 6 Sebastian Dröge (slomo) 2013-10-02 11:19:21 UTC
Please do that, my guess would be that it converts internally if necessary.


commit b002490ab24ea6d28eab1d7c6f6af9ec42dece14
Author: Dominik Röttsches <dominik.rottsches@intel.com>
Date:   Wed Oct 2 05:49:43 2013 +0300

    vtenc: Add support for I420
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709241
Comment 7 Sebastian Dröge (slomo) 2013-10-02 11:19:49 UTC
(In reply to comment #5)
> (on iOS for example, that is)

An iOS this is not public API though :)