1 /* 2 * Copyright (C) 2005-2018 Team Kodi 3 * This file is part of Kodi - https://kodi.tv 4 * 5 * SPDX-License-Identifier: GPL-2.0-or-later 6 * See LICENSES/README.md for more information. 7 */ 8 9 #include "ProcessInfoIOS.h" 10 11 #include "threads/SingleLock.h" 12 13 using namespace VIDEOPLAYER; 14 Create()15CProcessInfo* CProcessInfoIOS::Create() 16 { 17 return new CProcessInfoIOS(); 18 } 19 Register()20void CProcessInfoIOS::Register() 21 { 22 CProcessInfo::RegisterProcessControl("ios", CProcessInfoIOS::Create); 23 } 24 SetSwDeinterlacingMethods()25void CProcessInfoIOS::SetSwDeinterlacingMethods() 26 { 27 // first populate with the defaults from base implementation 28 CProcessInfo::SetSwDeinterlacingMethods(); 29 30 std::list<EINTERLACEMETHOD> methods; 31 { 32 // get the current methods 33 CSingleLock lock(m_videoCodecSection); 34 methods = m_deintMethods; 35 } 36 // add bob deinterlacer for ios 37 methods.push_back(EINTERLACEMETHOD::VS_INTERLACEMETHOD_RENDER_BOB); 38 39 // update with the new methods list 40 UpdateDeinterlacingMethods(methods); 41 } 42 43