⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271398 in webkit


Ignore:
Timestamp:
Jan 12, 2021, 4:10:08 AM (6 years ago)
Author:
calvaris@igalia.com
Message:

[GStreamer] Switch from ENABLE_ to USE_ in native audio/video and text sink options
​https://bugs.webkit.org/show_bug.cgi?id=220515

Reviewed by Philippe Normand.

.:

  • Source/cmake/GStreamerDefinitions.cmake: Add USE_ definitions.
  • Source/cmake/WebKitFeatures.cmake: Remove global ENABLE_

definitions.

Source/WebCore:

ENABLE(TEXT_SINK), ENABLE(NATIVE_AUDIO) and ENABLE(NATIVE_VIDEO)
turned into USE(GSTREAMER_...).

This also disables soft-colorbalance when native video is active.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::setPlaybackFlags):

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r271391 r271398  
     12021-01-12  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer] Switch from ENABLE_ to USE_ in native audio/video and text sink options
     4        https://bugs.webkit.org/show_bug.cgi?id=220515
     5
     6        Reviewed by Philippe Normand.
     7
     8        * Source/cmake/GStreamerDefinitions.cmake: Add USE_ definitions.
     9        * Source/cmake/WebKitFeatures.cmake: Remove global ENABLE_
     10        definitions.
     11
    1122021-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r271397 r271398  
     12021-01-12  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer] Switch from ENABLE_ to USE_ in native audio/video and text sink options
     4        https://bugs.webkit.org/show_bug.cgi?id=220515
     5
     6        Reviewed by Philippe Normand.
     7
     8        ENABLE(TEXT_SINK), ENABLE(NATIVE_AUDIO) and ENABLE(NATIVE_VIDEO)
     9        turned into USE(GSTREAMER_...).
     10
     11        This also disables soft-colorbalance when native video is active.
     12
     13        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     14        (WebCore::setPlaybackFlags):
     15
    1162021-01-12  Philippe Normand  <pnormand@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r271397 r271398  
    27052705    unsigned hasNativeVideo = getGstPlayFlag("native-video");
    27062706    unsigned hasNativeAudio = getGstPlayFlag("native-audio");
     2707    unsigned hasSoftwareColorBalance = getGstPlayFlag("soft-colorbalance");
    27072708
    27082709    unsigned flags = 0;
    … …  
    27122713    flags = flags & ~hasNativeAudio;
    27132714    flags = flags & ~hasNativeVideo;
    2714 
    2715 #if !ENABLE(TEXT_SINK)
     2715    flags = flags & ~hasSoftwareColorBalance;
     2716
     2717#if !USE(GSTREAMER_TEXT_SINK)
    27162718    hasText = 0x0;
    27172719#endif
    27182720
    2719 #if !ENABLE(NATIVE_VIDEO)
     2721#if USE(GSTREAMER_NATIVE_VIDEO)
     2722    hasSoftwareColorBalance = 0x0;
     2723#else
    27202724    hasNativeVideo = 0x0;
    27212725#endif
    27222726
    2723 #if !ENABLE(NATIVE_AUDIO)
     2727#if !USE(GSTREAMER_NATIVE_AUDIO)
    27242728    hasNativeAudio = 0x0;
    27252729#endif
    27262730
    2727     GST_INFO_OBJECT(pipeline, "text %s, audio %s (native %s), video %s (native %s)", boolForPrinting(hasText), boolForPrinting(hasAudio),
    2728         boolForPrinting(hasNativeAudio), boolForPrinting(hasVideo), boolForPrinting(hasNativeVideo));
    2729     flags |= hasText | hasAudio | hasVideo | hasNativeVideo | hasNativeAudio;
     2731    GST_INFO_OBJECT(pipeline, "text %s, audio %s (native %s), video %s (native %s, software color balance %s)", boolForPrinting(hasText),
     2732        boolForPrinting(hasAudio), boolForPrinting(hasNativeAudio), boolForPrinting(hasVideo), boolForPrinting(hasNativeVideo),
     2733        boolForPrinting(hasSoftwareColorBalance));
     2734    flags |= hasText | hasAudio | hasVideo | hasNativeVideo | hasNativeAudio | hasSoftwareColorBalance;
    27302735    g_object_set(pipeline, "flags", flags, nullptr);
    27312736    GST_DEBUG_OBJECT(pipeline, "current pipeline flags %x", flags);
  • trunk/Source/cmake/GStreamerDefinitions.cmake

    r271355 r271398  
    11WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VIDEO PUBLIC ON)
    22WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_AUDIO PUBLIC ON)
    3 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TEXT_SINK PRIVATE ON)
    43
    54WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SOURCE PUBLIC ON)
    … …  
    98WEBKIT_OPTION_DEFINE(USE_WPE_VIDEO_PLANE_DISPLAY_DMABUF "Whether to enable support for client-side video rendering" PRIVATE OFF)
    109WEBKIT_OPTION_DEFINE(USE_GSTREAMER_FULL "Whether to enable support for static GStreamer builds" PRIVATE OFF)
     10WEBKIT_OPTION_DEFINE(USE_GSTREAMER_NATIVE_VIDEO "Toggle native video support in GStreamer media player" PRIVATE OFF)
     11WEBKIT_OPTION_DEFINE(USE_GSTREAMER_NATIVE_AUDIO "Toggle native audio support in GStreamer media player" PRIVATE OFF)
     12WEBKIT_OPTION_DEFINE(USE_GSTREAMER_TEXT_SINK "Toggle text sink support in GStreamer media player" PRIVATE ON)
  • trunk/Source/cmake/WebKitFeatures.cmake

    r271355 r271398  
    285285    WEBKIT_OPTION_DEPEND(ENABLE_TOUCH_SLIDER ENABLE_TOUCH_EVENTS)
    286286    WEBKIT_OPTION_DEPEND(ENABLE_WEBXR ENABLE_WEBGL)
    287     WEBKIT_OPTION_DEFINE(ENABLE_NATIVE_VIDEO "Toggle native video support in GStreamer media player" PRIVATE OFF)
    288     WEBKIT_OPTION_DEFINE(ENABLE_NATIVE_AUDIO "Toggle native audio support in GStreamer media player" PRIVATE OFF)
    289     WEBKIT_OPTION_DEFINE(ENABLE_TEXT_SINK "Toggle text sink support in GStreamer media player" PRIVATE OFF)
    290287endmacro()
    291288
Note: See TracChangeset for help on using the changeset viewer.