LCOV - code coverage report
Current view: top level - source - PullModeVideoPlaybackDelegate.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2025-08-04 11:40:41 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /*
       2              :  * Copyright (C) 2025 Sky UK
       3              :  *
       4              :  * This library is free software; you can redistribute it and/or
       5              :  * modify it under the terms of the GNU Lesser General Public
       6              :  * License as published by the Free Software Foundation;
       7              :  * version 2.1 of the License.
       8              :  *
       9              :  * This library is distributed in the hope that it will be useful,
      10              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      12              :  * Lesser General Public License for more details.
      13              :  *
      14              :  * You should have received a copy of the GNU Lesser General Public
      15              :  * License along with this library; if not, write to the Free Software
      16              :  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
      17              :  */
      18              : 
      19              : #pragma once
      20              : 
      21              : #include "PullModePlaybackDelegate.h"
      22              : 
      23              : class PullModeVideoPlaybackDelegate : public PullModePlaybackDelegate
      24              : {
      25              : public:
      26              :     explicit PullModeVideoPlaybackDelegate(GstElement *sink);
      27           56 :     ~PullModeVideoPlaybackDelegate() override = default;
      28              : 
      29              :     GstStateChangeReturn changeState(GstStateChange transition) override;
      30              :     gboolean handleEvent(GstEvent *event) override;
      31              :     void getProperty(const Property &type, GValue *value) override;
      32              :     void setProperty(const Property &type, const GValue *value) override;
      33              :     void handleQos(uint64_t processed, uint64_t dropped) const override;
      34              : 
      35              : private:
      36              :     std::unique_ptr<firebolt::rialto::IMediaPipeline::MediaSource> createMediaSource(GstCaps *caps) const;
      37              : 
      38              : private:
      39              :     uint32_t m_maxWidth{0};
      40              :     uint32_t m_maxHeight{0};
      41              :     bool m_stepOnPrerollEnabled{false};
      42              : 
      43              :     std::mutex m_propertyMutex{};
      44              :     // START of variables locked by propertyMutex
      45              :     // rectangle properties
      46              :     std::string m_videoRectangle{"0,0,1920,1080"};
      47              :     bool m_rectangleSettingQueued{false};
      48              :     // immediate output properties
      49              :     bool m_immediateOutput{false};
      50              :     bool m_immediateOutputQueued{false};
      51              :     bool m_syncmodeStreaming{false};
      52              :     bool m_syncmodeStreamingQueued{false};
      53              :     bool m_videoMute{false};
      54              :     bool m_videoMuteQueued{false};
      55              :     // END of variables locked by propertyMutex
      56              : };
        

Generated by: LCOV version 2.0-1