Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 41836E00DC2; Wed, 12 Oct 2016 19:14:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.34.46 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 855 seconds by postgrey-1.32 at yocto-www; Wed, 12 Oct 2016 19:14:46 PDT Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0046.outbound.protection.outlook.com [104.47.34.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4F1EEE00C9B for ; Wed, 12 Oct 2016 19:14:46 -0700 (PDT) Received: from BN3PR0301CA0073.namprd03.prod.outlook.com (10.160.152.169) by BY1PR03MB1418.namprd03.prod.outlook.com (10.162.127.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Thu, 13 Oct 2016 02:00:08 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::128) by BN3PR0301CA0073.outlook.office365.com (2a01:111:e400:401e::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12 via Frontend Transport; Thu, 13 Oct 2016 02:00:08 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Thu, 13 Oct 2016 02:00:08 +0000 Received: from carol-OptiPlex-3020.ap.freescale.net (carol-OptiPlex-3020.ap.freescale.net [10.192.241.17]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9D1xvFF011160; Wed, 12 Oct 2016 19:00:06 -0700 From: Yuqing Zhu To: Date: Thu, 13 Oct 2016 09:59:51 +0800 Message-ID: <1476323994-8508-4-git-send-email-carol.zhu@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476323994-8508-1-git-send-email-carol.zhu@nxp.com> References: <1476323994-8508-1-git-send-email-carol.zhu@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131207976082329711; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(229853001)(189998001)(586003)(2351001)(47776003)(110136003)(104016004)(230783001)(8666005)(50226002)(92566002)(8936002)(50466002)(6666003)(6916009)(7846002)(356003)(5660300001)(76176999)(33646002)(105606002)(50986999)(626004)(2950100002)(2870700001)(106466001)(305945005)(77096005)(19580405001)(8676002)(4326007)(19580395003)(81166006)(68736007)(81156014)(5820100001)(11100500001)(36756003)(97736004)(23676002)(85426001)(86362001)(575784001)(2906002)(87936001)(7059030)(2004002)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1418; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD036; 1:+u3va7PzdoUEXfZ/n6h/bUji0T6hCPR8XbkWXBHvuaSVY6ozoNHPaYYMLoq1icFH10TjfBppx8vvN7Dzv0I+MA/PJuframBUznUWmRGy31VANUsyvsNUbBaM//LDgNvP9ppuigNyBMC7ZzHWC/zM8tW1UgL5vwaBXIz3PtyW9pgTQqfodQM2M5cg5MWBcSgT3YfTh5ZhbzlT7ayiNRpOnaSRGI15Y2vDwE+2qZu1HmMbvsBe6rrmiET+3b20gQT/K0fquEX3ZgOr2Zajia92sjDcEuVp1dLY4ZpheAdos8X5xlug22ymLr7xG+ISXUK3+u45X+kQktiaawVfRkHUQ8wFc6updD5rHvsXRsQB2O0mxi96Xkh8L1FQly5vNwG1Zbm3kMNFefFc0ov73wJ1EBra3CqjhdtNf07mgwVg3N+yaLLlt1DGL7HH9GqHki2H24heNPPuLBoXyCHFM5xoTgjEEmRAf95UdIgaOPGEdNWuMGLSGHclOzfgewCqyRgSPuzHRWN4cvblkXm4bKmJ3VGFoXkHuKXJNcQfj/jgcNIhayzQpPBPPxwQCdSZ3k5ehouiOEVhSlQG6igjWIg2JveNmzo4Y5MdXyYQ2iYXc3OXDfE7Rgy35YCiIKcsvQD31rwEh5Eq2qY1bKvksN0xlU/lK2GzMSTjXEJgDPa3sLraGjGyf+T7nzGFO/pqDRW79RfR2/bvjIwCYsrAZTX4vT0dzBmS1vzzR1SINXa1Ol4= X-MS-Office365-Filtering-Correlation-Id: 1cd089f3-66b3-43b4-d06f-08d3f30ca88c X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1418; 2:SKw4KGjUklDfgRJoNbaYd1DrRRK0tJ9lvUmDM1KDDZ4fc5D7af3mHZkeRkgF18AVF4o7i/v/a1YBnCvuIq3Khe89gn5uF0guO1hQssJVnjlT6HDSgB9EFSYfbdLNx/QETCPyaOlsAdu7TDMUeGz6XWHUaGVTZN7SJlEDK2KMoteJY3b+hkJh1pMVS3/eojNkSjp4O2LJPsEwmwwOKmD9ag==; 3:xUVoSyPRFI830c+qtgdifzGS7xCAIiAT6VLn+uvrEdAodexthR7GdVP1kwDXl8YYvmBJPBmHH4k83VeviFHaiR6GF+wwt4ms2dZ9ajix1l2qJCun9J8bXxQaB/X4UgjzWiTVcAjzd+x8zyqPWAHsupyzLB6V4WQGl7tFNOvqDPdyxroWBAOQq8PgWOSNKo0HkYnTCxxJl7cPg6znOL47E9tulu45HpveLke2OH9ILZ3vnxqEIEVbq/3+IDsPRfAi X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1418; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1418; 25:ydDKIVTx4Nb5SuXoPFTxuXyKFnd/9uXBrjbVkzhDIJVQ6uH/DzeRHwDmsKHESnALGqTheNPyDjvAdDxv6d1L8ckq5qPB8MzNe95mNve0+P1sZALwS8xUyO7HssBOh1tlUqJF9ffO1Z5xI4JwDjgHzZ+WrV+JquykTPG4iL0nZp/cmVPwxmj0FVqacYbEo03rumBjCROV/cDJtl203ebFJpSkPU8graoCdxrK8AJjqojw4s+onqt3k/K8ZZw8rjFGnnxVrOLVrh20qJ1MlFnvVQOju9qUFstzeO8la6fy1gZdWqmgYXcXJjK2RDO7TJDqj5pqSMcAJZw1pGUZCyortB6t0GJrSoDSozFuR6l/p+ArQZly4DLSpQbQQV6yaH9b3z5z/ZZpzwE9/Z3j1L6p38RIz30r78lxbHnGadbJ5XaMHY8QhT2gz2iZqzEVKMpW+JJdFB7rYf00+b+QXv0InaCQAVOrGFs1SSmbGdFzdb0LkH0ifoBcqKyBnhq2O9rHyql/EqGtIrU+lMluz29BOY5Bzdp1HJ3rr1AgBGNfIbbjJhRKsRm/Muv48c5SVmRW+sUsOyo7x91U1Svync6LQqLwSZkWUzFQwKuTNN9lzS3V/tpTvCjZddI/p2oQsWKCZN1UEWrfZC/YdPsrZT+GMOFHBV0wGR6QLY7yJaju/yzVeki1PImD+5FLw4hTyYgfuAA8Rw85aUxi8Dd+RrgOgC85HWLzYIYi0rg4/gfgpdKzMs6pH/t4q3mTv6YzKMWj265QXjyt0yE4kfe/Bx+c/EB90mC0aGv7ax55z6Dfh4Y= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1418; 31:88B2CsRvhOx/KFrMQ9B0z8YZBWbJZuDwFFCiYtylWOvN4n9rSVHUc0qC1Dw5WddoPKGrYpFJ5vA23jL6bmEN4BARdjlotZPBj5e62MVDcXFWRA99Y3R7ymMMwQ5oDZxO/QF9fWQ5+7bfjdRLxbb3l7O51eunzmVpGA6F1nvAYt/C+8rsa6k/VaNQxMqvpC+RgJLSWJBDJS80+OXPFaQfRKdxC+HgcNmirxBDT/nIAWzN+FhaExC7FmQcL5PtWNg3DXTeSiQslBC53iPqlo0qNEOBCOiQVY+vG98G3qwcPeo=; 4:U9kZd4WoCjm3fyJf7YaA2/CAIW57A2+DTQEXAsxcTpwZXqWqEzy2W3rJt0ib/FODAuOTaXcfo9r8khWZ93/5JgykWeIpOg6TKgE4DIuNT7TyxxlUBp+5dNs7dVFRilOnSnRw+SS8fSAZDhyDsNiXXW5dVKQRDYI7eecMuhHr+t48vieipvM/xW+NRMOwYYjYbybCh2gWGt4da4ygcjaZqtq2HCqx7daNG6xh2OvGgtsKE0rRP49PHTZb8dYKjvriRIm+pTCvWfbmDKrSIu6Rcxj7cho9kbT9QyECXQenNcCncpMkKdEZwMtdkUCGshMq+HrAJVC4vZMYDj4xVSDqrjO7Pn/ldq/kQVZwgc//vtmWEqrj9OpsgnIoR3gBSJdOZ/WhBTWGdDHI7+Gvyxexm4hcOq+GRKCpjRs0/LMhaMxuDTl8R+LKjBWetLfTObvwL5UvR6fWeA8GfnfNsKnA25RmH535K+aW011qye0LppO2thuPKvehSexLg+Vr4IZnUJVc8Fd341jYlnpR/7OLEByy3Nq2d98OItzxjFTjA76BY50VopgIwuTWkRvk7m+ZX7Meer0h9jbQpvij7OgDSQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(13015025)(5005006)(13018025)(13023025)(13024025)(13017025)(10201501046)(3002001)(6055026); SRVR:BY1PR03MB1418; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR03MB1418; X-Forefront-PRVS: 0094E3478A X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjAzTUIxNDE4OzIzOlBiZDBxekxZdFk5QSt0QVVucTRoRzBQZHNK?= =?utf-8?B?akRHd2J5U2dBeC84NzV0NmZTTTdYWmVnREdSQjFGc1QvSHloSnFLdjFueUlz?= =?utf-8?B?R01pcVVOV2VrRkFsQjlIYWhTRjd3cS8vU3BENTZLak5SazhOS0xSdlhSUTI4?= =?utf-8?B?YjJURzd2U0YwU3hMV28zZWpJYzAzMHhZMUhyYlBXdzliUkVjOTBnWkVUZHFh?= =?utf-8?B?N29KYVRKdUlIZlB1bUEyakFHd3I1bExWQ3JvWTB6dGR0bDVTVkNQRW00Tkxx?= =?utf-8?B?VzgvUnFEM2VZYzJYa01CUGh6V2JJUmlNcHBMalRaazdNMVNBbUhJejQyTklt?= =?utf-8?B?VmRkbFZEZGg5OG1nVVo2NjhGNk45blR2NmEzRlpWVEVqZ2h4aCtzK3lNUHdV?= =?utf-8?B?WjMzeXNxVE1EWVBDWUhQdWV2Yms4UHJXMi9ENjNFYWFWUm9TMlZDOGROZ1Vv?= =?utf-8?B?b0NXN2ZMUzJ5bGh4dllINFBzVlJNK0g3S0JSTVNVVERyVHVCQkxTZFNkamEr?= =?utf-8?B?TWdraHJnZVZ1dUNXMFN0WFNTSUxSTXgreDZ1WC9kU01yT0VZcFp3L0Z5ZExx?= =?utf-8?B?UmJoMkNmRCtyaDA4cVUzdzdPeGlaenhzZlVINnNqd1FYbElPZXgvMGZHU01q?= =?utf-8?B?QzNDQkw0QzB0MTlXRG9wQ2QzVzlaaHpjbldqMEFsWHlQNmFTWlh0Wm9CL003?= =?utf-8?B?a2s1ekhDais0QnBVNDdqUEhpMW9XcUlFZk8rVE9uY0s3WnN0WXlIdDFnVSts?= =?utf-8?B?Q0ljeUZtQVdNRGtpa1RCclBKM3h3YWgvTDd3aC94Y2Vka3BDWE5YTGIrblVh?= =?utf-8?B?Z05VakFCSldYUXB5V2FweitUZjBMWGpDSldaUi96ckgrTHIrQWlJN0wwazBx?= =?utf-8?B?UUZNU2sxT2NhZlB6Y1NLQ25CelF2bGY1SzJyQW12NGh0QjdqbXVoODkrK1oz?= =?utf-8?B?RTllUXU2WHV4QjVPL3MzaFNSN0trV3VQNERWU0ZQN09qMUkvbUl2V2V0SHhn?= =?utf-8?B?c21qNWFESEFLeHhkSWlpOUV5aHA0RFF4SmNvQy80ZHBnbE0wZkJBcXNZL0VE?= =?utf-8?B?QkJEWklmMTB1LzAzeVZHTUovUEN6M3FCMEZabW16ZWhYeVJwaE1mSm9WYjdN?= =?utf-8?B?ejlvcy80TitNRUIyWkxvK0hSaXA1WStUSFh3em9nblhIVHo4R2ZIRWNCZHRY?= =?utf-8?B?TGprNE9kSXNCdm95NWhFa1J1aU1rMmFwNUJ0OW94NnN3OEpubHVLdEt0c3FJ?= =?utf-8?B?ZGMyYlN1d1JiT1lOTTdUZkFaNVpPdTEyRG9OclEvYmU0SmV1S1BtYTN6MWhR?= =?utf-8?B?M2NnTkJMUHN1ZTA0Q3pJekNYUy9iTHQvdkdLbk1RTVJ4ZHRTU1JNcVdXeDBB?= =?utf-8?B?dDV3VlZKakxhbmZmcEVIUVdhRVZzYytoRGNpemtaSVhVeDU5Q0syaVdHMS8r?= =?utf-8?B?aGREZG8wNWJIa0djSFoxV2M0NUVLTTVFRFZmdzZtL2N6OHJPUXRzMUVyeUFi?= =?utf-8?B?Q2NuZXQxWW90aXZaK1l4Q0YzaVQweWI3QmhBM0hZYzFLMFQrNGhjM0NsaE1T?= =?utf-8?B?MTNrUmJWTmhpaG1od0FVampnWVo3ZnV4REFHcFFkY29OdDcxUlFnM2RManEy?= =?utf-8?B?YTdzVEw4SGRQY2tWdFpCbURLSkNsb1cxNWlsTXdFdk1kcEUxQU4rNEZkOEVo?= =?utf-8?B?alFtamtyVDZsczFlaGQrZ3VxT1h5MjdTZy8vRS9GZjRrbHpMODFKcm5neHlH?= =?utf-8?Q?Squ+ko2rlzFvKcnr4QskU41uowH7wkYkCSNCs=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1418; 6:s+6KwO7Ujb1evDJXMGfmqrP3afMwzwgd0KStjaxm7eZW4QZ29tnpv/mJEu2rxZlI4yE4hpaAZQ9w5HRf6Aimeyk332lJH74Gx7P9kv7tN0tLKnOm3W95dyfQKtG/UP6nkdWpvaW8XpXZgZaApYjtQsA8ZSX8y51onxydyGkaxbZhMhqd7SWbV5l3Sl9m/B2KJO/w7ngoHD9D4znslB0oXAoP+yfAeWyKCa4bAEIU/13+PA6SNDlhLYv4aH0DUkl0JSBx+7ocDvaGLu+/On/D+IeicV2T9sMtafKTFQOLDK81Nb2XPmJM7hxHC4x6fug3; 5:EfGD3H6AIZnpt5SQ/SV3hLveKXpHFCs+cI2N3IEokROZ9e+OxqoqeNQZWMzKgPREWqAlg5NjSS9d+rb81cf2BoKtHMljuWYNvLm8xyhYjIN5fff7v4BnIp1c5MgrHXDEPrD8pxC8wB5Dr2ajrfvvwPv7Vq/MtquZtoE4/bue5Ct8yuO0xS0a6lnTM3k8zjvd; 24:nabBlEgudK972rqvaQe02PDkOlccufHmHoKx/1FpgabQy1u4Pp9g0YQE8WZjpbLE4HPUSuB15dPEXGYz4LSKCoQOB+c0ydYlZqchnDsbxPs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1418; 7:F8qxPOWLbvONykBmmG7rp1B3ifcQRDKV/4DmYWl1imXHgwNvY7a0vSys27G+5x0xgjMQskHYa+z3/cxns2161DDQ/OY5nb65Gnr+YJ2hdTfYiokkmxdomNDUUKsNSJcFTlKjQFe5u3xUQJLXPlLwWNEMgbq9ETwBt9M4NmfjdKccDoRD1eLnpTrgAjmJnNEC91fj9lB8LEpYu69Nrsn4ypAM0l6DJ/iF48N6GRTDvafLkwtkBqdLt628NlORjASMz7/PgkIXtWYiqAZOY/q8Dd9zFBnLrOkh99bLiiwwL1IN9uJF3QIasHIaeljqR1WBr/LMmSN36CNynfoQTDDJMOvskjAdQ9MuzjypvN53WWU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2016 02:00:08.0457 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1418 Cc: Yuqing Zhu Subject: [meta-fsl-arm][PATCH 3/6] gstreamer1.0-plugins-bad: Accelerate gldownload with directviv API X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 02:14:52 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 1) Propose a physical buffer pool to upstream in gldownload 2) Bind the physical buffer with texture via dirctviv 3) In gldownload, wrap the physical buffer to gstbuffer, pass to downstream plugins. Signed-off-by: Yuqing Zhu --- ...-glplugin-Accelerate-gldownload-with-dire.patch | 729 +++++++++++++++++++++ ...-Fix-dependence-issue-between-gst-plugin-.patch | 74 +++ .../gstreamer/gstreamer1.0-plugins-bad_%.bbappend | 2 + .../0002-Remove-dependence-on-imx-plugin-git.patch | 433 ++++++++++++ .../gstreamer/gstreamer1.0-plugins-base_%.bbappend | 1 + 5 files changed, 1239 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-MMFMWK-6930-glplugin-Accelerate-gldownload-with-dire.patch create mode 100755 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-Fix-dependence-issue-between-gst-plugin-.patch create mode 100755 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Remove-dependence-on-imx-plugin-git.patch diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-MMFMWK-6930-glplugin-Accelerate-gldownload-with-dire.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-MMFMWK-6930-glplugin-Accelerate-gldownload-with-dire.patch new file mode 100644 index 0000000..1cead36 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-MMFMWK-6930-glplugin-Accelerate-gldownload-with-dire.patch @@ -0,0 +1,729 @@ +From 05bbd82dd527afa44d6b403b02a0dbd198c96859 Mon Sep 17 00:00:00 2001 +From: Jian Li +Date: Fri, 6 Nov 2015 15:00:19 +0800 +Subject: [PATCH 14/18] MMFMWK-6930 [glplugin] Accelerate gldownload with + directviv API +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +1) Propose a physical buffer pool to upstream in gldownload +2) Bind the physical buffer with texture via dirctviv +3) In gldownload, wrap the physical buffer to gstbuffer, pass to + downstream plugins. + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Jian Li +Signed-off-by: Lyon Wang +--- + ext/gl/gstgldownloadelement.c | 91 ++++++++++++ + gst-libs/gst/gl/Makefile.am | 4 + + gst-libs/gst/gl/gstglbufferpool.c | 12 ++ + gst-libs/gst/gl/gstglphymemory.c | 254 ++++++++++++++++++++++++++++++++ + gst-libs/gst/gl/gstglphymemory.h | 43 ++++++ + gst-libs/gst/gl/gstglvivdirecttexture.c | 147 +++++++++--------- + gst-libs/gst/gl/gstglvivdirecttexture.h | 3 + + 7 files changed, 484 insertions(+), 70 deletions(-) + create mode 100644 gst-libs/gst/gl/gstglphymemory.c + create mode 100644 gst-libs/gst/gl/gstglphymemory.h + +diff --git a/ext/gl/gstgldownloadelement.c b/ext/gl/gstgldownloadelement.c +index ff931fa..9ea0146 100644 +--- a/ext/gl/gstgldownloadelement.c ++++ b/ext/gl/gstgldownloadelement.c +@@ -23,6 +23,7 @@ + #endif + + #include ++#include + #include "gstgldownloadelement.h" + + GST_DEBUG_CATEGORY_STATIC (gst_gl_download_element_debug); +@@ -45,6 +46,8 @@ gst_gl_download_element_prepare_output_buffer (GstBaseTransform * bt, + GstBuffer * buffer, GstBuffer ** outbuf); + static GstFlowReturn gst_gl_download_element_transform (GstBaseTransform * bt, + GstBuffer * buffer, GstBuffer * outbuf); ++static gboolean gst_gl_download_element_propose_allocation (GstBaseTransform * ++ bt, GstQuery * decide_query, GstQuery * query); + + static GstStaticPadTemplate gst_gl_download_element_src_pad_template = + GST_STATIC_PAD_TEMPLATE ("src", +@@ -70,6 +73,7 @@ gst_gl_download_element_class_init (GstGLDownloadElementClass * klass) + bt_class->prepare_output_buffer = + gst_gl_download_element_prepare_output_buffer; + bt_class->transform = gst_gl_download_element_transform; ++ bt_class->propose_allocation = gst_gl_download_element_propose_allocation; + + bt_class->passthrough_on_same_caps = TRUE; + +@@ -160,9 +164,24 @@ static GstFlowReturn + gst_gl_download_element_prepare_output_buffer (GstBaseTransform * bt, + GstBuffer * inbuf, GstBuffer ** outbuf) + { ++ GstGLDownloadElement *download = GST_GL_DOWNLOAD_ELEMENT (bt); + GstCaps *src_caps = gst_pad_get_current_caps (bt->srcpad); + GstCapsFeatures *features = NULL; + gint i, n; ++ GstGLMemory *glmem; ++ ++ glmem = gst_buffer_peek_memory (inbuf, 0); ++ if (gst_is_gl_physical_memory (glmem)) { ++ GstGLContext *context = GST_GL_BASE_FILTER (bt)->context; ++ GstVideoInfo info; ++ ++ gst_video_info_from_caps (&info, src_caps); ++ *outbuf = gst_gl_phymem_buffer_to_gstbuffer (context, &info, inbuf); ++ ++ GST_DEBUG_OBJECT (download, "gl download with direct viv."); ++ ++ return GST_FLOW_OK; ++ } + + *outbuf = inbuf; + +@@ -194,3 +213,75 @@ gst_gl_download_element_transform (GstBaseTransform * bt, + { + return GST_FLOW_OK; + } ++ ++static gboolean ++gst_gl_download_element_propose_allocation (GstBaseTransform * bt, ++ GstQuery * decide_query, GstQuery * query) ++{ ++ GstGLContext *context = GST_GL_BASE_FILTER (bt)->context; ++ GstGLDownloadElement *download = GST_GL_DOWNLOAD_ELEMENT (bt); ++ GstAllocationParams params; ++ GstAllocator *allocator = NULL; ++ GstBufferPool *pool = NULL; ++ guint n_pools, i; ++ GstVideoInfo info; ++ GstCaps *caps; ++ GstStructure *config; ++ gsize size; ++ ++ gst_query_parse_allocation (query, &caps, NULL); ++ if (!gst_video_info_from_caps (&info, caps)) { ++ GST_WARNING_OBJECT (bt, "invalid caps specified"); ++ return FALSE; ++ } ++ ++ GST_DEBUG_OBJECT (bt, "video format is %s", gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (&info))); ++ ++ gst_allocation_params_init (¶ms); ++ if (gst_is_gl_physical_memory_supported_fmt (&info)) { ++ allocator = gst_phy_mem_allocator_obtain (); ++ GST_DEBUG_OBJECT (bt, "obtain physical memory allocator %p.", allocator); ++ } ++ ++ if (!allocator) ++ allocator = gst_allocator_find (GST_GL_MEMORY_ALLOCATOR_NAME); ++ ++ if (!allocator) { ++ GST_ERROR_OBJECT (bt, "Can't obtain physical memory allocator."); ++ return FALSE; ++ } ++ ++ gst_query_add_allocation_param (query, allocator, ¶ms); ++ gst_object_unref (allocator); ++ ++ n_pools = gst_query_get_n_allocation_pools (query); ++ for (i = 0; i < n_pools; i++) { ++ gst_query_parse_nth_allocation_pool (query, i, &pool, NULL, NULL, NULL); ++ gst_object_unref (pool); ++ pool = NULL; ++ } ++ ++ //new buffer pool ++ pool = gst_gl_buffer_pool_new (context); ++ config = gst_buffer_pool_get_config (pool); ++ ++ /* the normal size of a frame */ ++ size = info.size; ++ gst_buffer_pool_config_set_params (config, caps, size, 0, 0); ++ gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_GL_SYNC_META); ++ ++ if (!gst_buffer_pool_set_config (pool, config)) { ++ gst_object_unref (pool); ++ GST_WARNING_OBJECT (bt, "failed setting config"); ++ return FALSE; ++ } ++ ++ GST_DEBUG_OBJECT (download, "create pool %p", pool); ++ ++ //propose 3 buffers for better performance ++ gst_query_add_allocation_pool (query, pool, size, 3, 0); ++ ++ gst_object_unref (pool); ++ ++ return TRUE; ++} +diff --git a/gst-libs/gst/gl/Makefile.am b/gst-libs/gst/gl/Makefile.am +index c396603..5c05230 100644 +--- a/gst-libs/gst/gl/Makefile.am ++++ b/gst-libs/gst/gl/Makefile.am +@@ -34,6 +34,7 @@ libgstgl_@GST_API_VERSION@_la_SOURCES = \ + gstgloverlaycompositor.c \ + gstglquery.c \ + gstglvivdirecttexture.c \ ++ gstglphymemory.c \ + gstglcontrolbindingproxy.c + + libgstgl_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl +@@ -68,6 +69,7 @@ libgstgl_@GST_API_VERSION@include_HEADERS = \ + gstgl_fwd.h \ + gstgl_enums.h \ + gstglvivdirecttexture.h \ ++ gstglphymemory.h \ + gl.h + + noinst_HEADERS = \ +@@ -84,6 +86,8 @@ libgstgl_@GST_API_VERSION@_la_LIBADD = \ + $(GST_LIBS) \ + $(GL_LIBS) + ++libgstgl_@GST_API_VERSION@_la_LIBADD += -lgstfsl-$(GST_API_VERSION) ++ + if HAVE_WINDOW_WIN32 + SUBDIRS += win32 + libgstgl_@GST_API_VERSION@_la_LIBADD += win32/libgstgl-win32.la +diff --git a/gst-libs/gst/gl/gstglbufferpool.c b/gst-libs/gst/gl/gstglbufferpool.c +index 90536b0..71c726a 100644 +--- a/gst-libs/gst/gl/gstglbufferpool.c ++++ b/gst-libs/gst/gl/gstglbufferpool.c +@@ -30,6 +30,8 @@ + #include + #endif + ++#include ++ + /** + * SECTION:gstglbufferpool + * @short_description: buffer pool for #GstGLMemory objects +@@ -290,6 +292,16 @@ gst_gl_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer, + } + #endif + ++ if ((g_strcmp0 (priv->allocator->mem_type, GST_GL_PHY_MEM_ALLOCATOR) == 0)) { ++ GstAllocator* allocator = (GstAllocator*) gst_phy_mem_allocator_obtain (); ++ if (!gst_gl_physical_memory_setup_buffer (allocator, buf, priv->gl_params)) { ++ GST_ERROR_OBJECT (pool, "Can't create physcial buffer."); ++ return GST_FLOW_ERROR; ++ } ++ *buffer = buf; ++ return GST_FLOW_OK; ++ } ++ + alloc = GST_GL_MEMORY_ALLOCATOR (priv->allocator); + if (!gst_gl_memory_setup_buffer (alloc, buf, priv->gl_params)) + goto mem_create_failed; +diff --git a/gst-libs/gst/gl/gstglphymemory.c b/gst-libs/gst/gl/gstglphymemory.c +new file mode 100644 +index 0000000..52ae41f +--- /dev/null ++++ b/gst-libs/gst/gl/gstglphymemory.c +@@ -0,0 +1,254 @@ ++/* ++ * GStreamer ++ * Copyright (c) 2015, Freescale Semiconductor, Inc. ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Library General Public ++ * License as published by the Free Software Foundation; either ++ * version 2 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Library General Public License for more details. ++ * ++ * You should have received a copy of the GNU Library General Public ++ * License along with this library; if not, write to the ++ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, ++ * Boston, MA 02110-1301, USA. ++ */ ++ ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ ++#include "gstglvivdirecttexture.h" ++#include "gstglphymemory.h" ++#include "g2d.h" ++ ++GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_PHY_MEMORY); ++#define GST_CAT_DEFAULT GST_CAT_GL_PHY_MEMORY ++ ++typedef struct _GstPhyMemAllocator GstPhyMemAllocator; ++typedef struct _GstPhyMemAllocatorClass GstPhyMemAllocatorClass; ++ ++struct _GstPhyMemAllocator ++{ ++ GstAllocatorPhyMem parent; ++}; ++ ++struct _GstPhyMemAllocatorClass ++{ ++ GstAllocatorPhyMemClass parent_class; ++}; ++ ++GType gst_phy_mem_allocator_get_type (void); ++G_DEFINE_TYPE (GstPhyMemAllocator, gst_phy_mem_allocator, GST_TYPE_ALLOCATOR_PHYMEM); ++ ++static int ++alloc_phymem (GstAllocatorPhyMem *allocator, PhyMemBlock *memblk) ++{ ++ struct g2d_buf *pbuf = NULL; ++ ++ memblk->size = PAGE_ALIGN(memblk->size); ++ ++ pbuf = g2d_alloc (memblk->size, 0); ++ if (!pbuf) { ++ GST_ERROR("G2D allocate %u bytes memory failed: %s", ++ memblk->size, strerror(errno)); ++ return -1; ++ } ++ ++ memblk->vaddr = (guchar*) pbuf->buf_vaddr; ++ memblk->paddr = (guchar*) pbuf->buf_paddr; ++ memblk->user_data = (gpointer) pbuf; ++ GST_DEBUG("G2D allocated memory (%p)", memblk->paddr); ++ ++ return 1; ++} ++ ++static int ++free_phymem (GstAllocatorPhyMem *allocator, PhyMemBlock *memblk) ++{ ++ GST_DEBUG("G2D free memory (%p)", memblk->paddr); ++ gint ret = g2d_free ((struct g2d_buf*)(memblk->user_data)); ++ memblk->user_data = NULL; ++ memblk->vaddr = NULL; ++ memblk->paddr = NULL; ++ memblk->size = 0; ++ ++ return ret; ++} ++ ++static void ++gst_phy_mem_allocator_class_init (GstPhyMemAllocatorClass * klass) ++{ ++ GstAllocatorPhyMemClass *phy_allocator_klass = (GstAllocatorPhyMemClass *) klass; ++ ++ phy_allocator_klass->alloc_phymem = alloc_phymem; ++ phy_allocator_klass->free_phymem = free_phymem; ++} ++ ++static void ++gst_phy_mem_allocator_init (GstPhyMemAllocator * allocator) ++{ ++ GstAllocator *alloc = GST_ALLOCATOR_CAST (allocator); ++ ++ alloc->mem_type = GST_GL_PHY_MEM_ALLOCATOR; ++} ++ ++ ++static gpointer ++gst_phy_mem_allocator_init_instance (gpointer data) ++{ ++ GstAllocator *allocator = ++ g_object_new (gst_phy_mem_allocator_get_type (), NULL); ++ ++ GST_DEBUG_CATEGORY_INIT (GST_CAT_GL_PHY_MEMORY, "glphymemory", 0, ++ "GLPhysical Memory"); ++ ++ gst_allocator_register (GST_GL_PHY_MEM_ALLOCATOR, gst_object_ref (allocator)); ++ ++ return allocator; ++} ++ ++static void ++_finish_texture (GstGLContext * ctx, gpointer *data) ++{ ++ GstGLFuncs *gl = ctx->gl_vtable; ++ ++ gl->Finish (); ++} ++ ++static void ++gst_gl_phy_mem_destroy (GstMemory *mem) ++{ ++ gst_memory_unref (mem); ++} ++ ++ ++GstAllocator * ++gst_phy_mem_allocator_obtain (void) ++{ ++ static GOnce once = G_ONCE_INIT; ++ ++ g_once (&once, gst_phy_mem_allocator_init_instance, NULL); ++ ++ g_return_val_if_fail (once.retval != NULL, NULL); ++ ++ return (GstAllocator *) (g_object_ref (once.retval)); ++} ++ ++gboolean ++gst_is_gl_physical_memory (GstMemory * mem) ++{ ++ GstGLBaseMemory *glmem; ++ g_return_val_if_fail (gst_is_gl_memory (mem), FALSE); ++ ++ glmem = (GstGLBaseMemory*) mem; ++ ++ if (glmem->user_data ++ && GST_IS_MINI_OBJECT_TYPE(glmem->user_data, GST_TYPE_MEMORY)) ++ return gst_memory_is_type ((GstMemory*)glmem->user_data, GST_GL_PHY_MEM_ALLOCATOR); ++ else ++ return FALSE; ++} ++ ++gboolean ++gst_is_gl_physical_memory_supported_fmt (GstVideoInfo * info) ++{ ++ if (GST_VIDEO_INFO_IS_RGB(info) ++ && gst_gl_is_directviv_supported_format (GST_VIDEO_INFO_FORMAT (info))) { ++ return TRUE; ++ } ++ else ++ return FALSE; ++} ++ ++gboolean ++gst_gl_physical_memory_setup_buffer (GstAllocator * allocator, GstBuffer *buffer, ++ GstGLVideoAllocationParams * params) ++{ ++ GstGLBaseMemoryAllocator *gl_alloc; ++ GstMemory *mem = NULL; ++ PhyMemBlock *memblk = NULL; ++ GstGLMemory *glmem = NULL; ++ gsize size; ++ ++ GstVideoInfo * info = params->v_info; ++ GstVideoAlignment * valign = params->valign; ++ ++ GST_DEBUG ("glphymemory setup buffer format %s", gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (info))); ++ ++ if (!gst_is_gl_physical_memory_supported_fmt (info)) { ++ GST_DEBUG ("Not support format."); ++ return FALSE; ++ } ++ ++ //allocator = (GstAllocator*) gst_phy_mem_allocator_obtain (); ++ size = gst_gl_get_plane_data_size (info, valign, 0); ++ mem = gst_allocator_alloc (allocator, size, params->parent.alloc_params); ++ if (!mem) { ++ GST_DEBUG ("Can't allocate physical memory size %d", size); ++ return FALSE; ++ } ++ ++ memblk = gst_memory_query_phymem_block (mem); ++ if (!memblk) { ++ GST_ERROR("Can't find physic memory block."); ++ return FALSE; ++ } ++ ++ gl_alloc = ++ GST_GL_BASE_MEMORY_ALLOCATOR (gst_gl_memory_allocator_get_default ++ (params->parent.context)); ++ ++ params->plane = 0; ++ params->parent.user_data = mem; ++ params->parent.notify = gst_gl_phy_mem_destroy; ++ ++ glmem = (GstGLMemory *)gst_gl_base_memory_alloc (gl_alloc, (GstGLAllocationParams *) params); ++ if (!glmem) { ++ GST_ERROR("Can't get gl memory."); ++ return FALSE; ++ } ++ ++ gst_buffer_append_memory (buffer, (GstMemory *) glmem); ++ ++ gst_buffer_add_video_meta_full (buffer, 0, ++ GST_VIDEO_INFO_FORMAT (info), GST_VIDEO_INFO_WIDTH (info), ++ GST_VIDEO_INFO_HEIGHT (info), 1, info->offset, info->stride); ++ ++ gst_gl_viv_direct_bind_data(params->parent.context, glmem->tex_id, ++ GST_VIDEO_INFO_FORMAT (info), GST_VIDEO_INFO_WIDTH (info), ++ GST_VIDEO_INFO_HEIGHT (info), memblk->vaddr, memblk->paddr); ++ ++ return TRUE; ++} ++ ++GstBuffer * ++gst_gl_phymem_buffer_to_gstbuffer (GstGLContext * ctx, ++ GstVideoInfo * info, GstBuffer *glbuf) ++{ ++ GstBuffer *buf; ++ GstGLBaseMemory *glmem; ++ ++ gst_gl_context_thread_add (ctx, (GstGLContextThreadFunc) _finish_texture, NULL); ++ ++ glmem = gst_buffer_peek_memory (glbuf, 0); ++ ++ buf = gst_buffer_new (); ++ gst_buffer_append_memory (buf, (GstMemory *) glmem->user_data); ++ gst_memory_ref ((GstMemory *)glmem->user_data); ++ ++ gst_buffer_add_video_meta_full (buf, 0, ++ GST_VIDEO_INFO_FORMAT (info), GST_VIDEO_INFO_WIDTH (info), ++ GST_VIDEO_INFO_HEIGHT (info), 1, info->offset, info->stride); ++ GST_BUFFER_FLAGS (buf) = GST_BUFFER_FLAGS (glbuf); ++ GST_BUFFER_PTS (buf) = GST_BUFFER_PTS (glbuf); ++ GST_BUFFER_DTS (buf) = GST_BUFFER_DTS (glbuf); ++ GST_BUFFER_DURATION (buf) = GST_BUFFER_DURATION (glbuf); ++ ++ return buf; ++} ++ +diff --git a/gst-libs/gst/gl/gstglphymemory.h b/gst-libs/gst/gl/gstglphymemory.h +new file mode 100644 +index 0000000..b1a69e7 +--- /dev/null ++++ b/gst-libs/gst/gl/gstglphymemory.h +@@ -0,0 +1,43 @@ ++/* ++ * GStreamer ++ * Copyright (c) 2015, Freescale Semiconductor, Inc. ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Library General Public ++ * License as published by the Free Software Foundation; either ++ * version 2 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Library General Public License for more details. ++ * ++ * You should have received a copy of the GNU Library General Public ++ * License along with this library; if not, write to the ++ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, ++ * Boston, MA 02110-1301, USA. ++ */ ++ ++#ifndef _GST_GL_PHY_MEMORY_H_ ++#define _GST_GL_PHY_MEMORY_H_ ++ ++#include ++#include ++#include ++#include ++ ++#include ++ ++G_BEGIN_DECLS ++ ++#define GST_GL_PHY_MEM_ALLOCATOR "GLPhyMemory" ++ ++GstAllocator *gst_phy_mem_allocator_obtain (void); ++gboolean gst_is_gl_physical_memory (GstMemory * mem); ++gboolean gst_is_gl_physical_memory_supported_fmt (GstVideoInfo * info); ++gboolean gst_gl_physical_memory_setup_buffer (GstAllocator * allocator, GstBuffer *buffer, GstGLVideoAllocationParams * params); ++GstBuffer * gst_gl_phymem_buffer_to_gstbuffer (GstGLContext * ctx, GstVideoInfo * info, GstBuffer *glbuf); ++ ++G_END_DECLS ++ ++#endif /* _GST_GL_PHY_MEMORY_H_ */ +diff --git a/gst-libs/gst/gl/gstglvivdirecttexture.c b/gst-libs/gst/gl/gstglvivdirecttexture.c +index c19b617..e8e0b82 100644 +--- a/gst-libs/gst/gl/gstglvivdirecttexture.c ++++ b/gst-libs/gst/gl/gstglvivdirecttexture.c +@@ -22,6 +22,7 @@ + #include "config.h" + #endif + ++#include + #include "gl.h" + + GST_DEBUG_CATEGORY_EXTERN (gst_gl_upload_debug); +@@ -37,17 +38,28 @@ typedef struct { + gboolean ret; + } GstVivDirectTexture; + ++typedef struct { ++ GstVideoFormat gst_fmt; ++ guint viv_fmt; ++} VIV_FMT_MAP; ++ ++static VIV_FMT_MAP viv_fmt_map_table[] = { ++ {GST_VIDEO_FORMAT_I420, GL_VIV_I420}, ++ {GST_VIDEO_FORMAT_YV12, GL_VIV_YV12}, ++ {GST_VIDEO_FORMAT_NV12, GL_VIV_NV12}, ++ {GST_VIDEO_FORMAT_NV21, GL_VIV_NV21}, ++ {GST_VIDEO_FORMAT_YUY2, GL_VIV_YUY2}, ++ {GST_VIDEO_FORMAT_UYVY, GL_VIV_UYVY}, ++ {GST_VIDEO_FORMAT_RGBA, GL_RGBA}, ++ {GST_VIDEO_FORMAT_RGBx, GL_RGBA}, ++ {GST_VIDEO_FORMAT_BGRA, GL_BGRA_EXT}, ++ {GST_VIDEO_FORMAT_RGB16, GL_RGB565_OES} ++}; ++ + gboolean + gst_is_physical_buffer (GstBuffer *buffer) + { +- +- GstMemory *mem; +- +- mem = gst_buffer_peek_memory (buffer, 0); +- if (!mem->allocator) +- return FALSE; +- +- return g_type_check_instance_is_a (mem->allocator, g_type_from_name("GstAllocatorPhyMem")); ++ return gst_buffer_is_phymem (buffer); + } + + static void +@@ -65,32 +77,64 @@ _do_viv_direct_tex_bind_mem (GstGLContext * context, GstVivDirectTexture * viv_t + } + + gboolean ++gst_gl_is_directviv_supported_format (GstVideoFormat fmt) ++{ ++ gint i; ++ gboolean ret = FALSE; ++ ++ for (i=0; iblock; +- +- GstVideoFormat fmt = GST_VIDEO_INFO_FORMAT (info); ++ PhyMemBlock *memblk; ++ GstVideoMeta *vmeta; ++ GstVideoFormat fmt; + gint width, height; +- GstVideoMeta *vmeta = gst_buffer_get_video_meta (buffer); ++ ++ memblk = gst_buffer_query_phymem_block (buffer); ++ if (!memblk) ++ return FALSE; ++ ++ width = GST_VIDEO_INFO_WIDTH (info); ++ height = GST_VIDEO_INFO_HEIGHT (info); ++ ++ vmeta = gst_buffer_get_video_meta (buffer); ++ fmt = GST_VIDEO_INFO_FORMAT (info); + if (vmeta && (fmt == GST_VIDEO_FORMAT_I420 || fmt == GST_VIDEO_FORMAT_NV12)) { + width = vmeta->stride[0]; + height = vmeta->offset[1] / width; +@@ -100,44 +144,7 @@ gst_gl_viv_direct_bind_gstbuffer (GstGLContext * context, guint tex_id, GstVideo + height = GST_VIDEO_INFO_HEIGHT (info); + } + +- guint viv_fmt; +- switch (fmt) { +- case GST_VIDEO_FORMAT_I420: +- viv_fmt = GL_VIV_I420; +- break; +- case GST_VIDEO_FORMAT_YV12: +- viv_fmt = GL_VIV_YV12; +- break; +- case GST_VIDEO_FORMAT_NV12: +- viv_fmt = GL_VIV_NV12; +- break; +- case GST_VIDEO_FORMAT_NV21: +- viv_fmt = GL_VIV_NV21; +- break; +- case GST_VIDEO_FORMAT_YUY2: +- viv_fmt = GL_VIV_YUY2; +- break; +- case GST_VIDEO_FORMAT_UYVY: +- viv_fmt = GL_VIV_UYVY; +- break; +- case GST_VIDEO_FORMAT_RGBA: +- viv_fmt = GL_RGBA; +- break; +- case GST_VIDEO_FORMAT_BGRA: +- viv_fmt = GL_BGRA_EXT; +- break; +- case GST_VIDEO_FORMAT_RGB16: +- viv_fmt = GL_RGB565_OES; +- break; +- default: +- GST_ERROR ("Not supported format %d for viv direct texture upload.", fmt); +- viv_fmt = GL_NONE; +- return FALSE; +- } +- +- GstVivDirectTexture viv_tex = {tex_id, width, height, viv_fmt, memblk->vaddr, memblk->paddr, FALSE}; +- gst_gl_context_thread_add (context, (GstGLContextThreadFunc) _do_viv_direct_tex_bind_mem, &viv_tex); +- +- return viv_tex.ret; ++ return gst_gl_viv_direct_bind_data (context, tex_id, fmt, width, height, memblk->vaddr, memblk->paddr); + } + ++ +diff --git a/gst-libs/gst/gl/gstglvivdirecttexture.h b/gst-libs/gst/gl/gstglvivdirecttexture.h +index fa88e1a..9a2d123 100644 +--- a/gst-libs/gst/gl/gstglvivdirecttexture.h ++++ b/gst-libs/gst/gl/gstglvivdirecttexture.h +@@ -28,6 +28,9 @@ + G_BEGIN_DECLS + + gboolean gst_is_physical_buffer (GstBuffer *buffer); ++gboolean gst_gl_is_directviv_supported_format (GstVideoFormat fmt); ++gboolean gst_gl_viv_direct_bind_data (GstGLContext * context, guint tex_id, GstVideoFormat fmt, gint width, gint height, ++ gpointer * vaddr, gpointer *paddr); + gboolean gst_gl_viv_direct_bind_gstbuffer (GstGLContext * context, guint tex_id, GstVideoInfo * info, GstBuffer * buffer); + + G_END_DECLS +-- +1.9.1 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-Fix-dependence-issue-between-gst-plugin-.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-Fix-dependence-issue-between-gst-plugin-.patch new file mode 100755 index 0000000..44633cf --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-Fix-dependence-issue-between-gst-plugin-.patch @@ -0,0 +1,74 @@ +From 4f73ba8dde190b0e2d3a7a16b394762f7459ca31 Mon Sep 17 00:00:00 2001 +From: Haihua Hu +Date: Fri, 5 Aug 2016 17:04:02 +0800 +Subject: [PATCH] [MMFMWK-7259]Fix dependence issue between gst-plugin-bad and + imx-gst1.0-plugin + +Change dependence to gst-plugin-base since we have move physical memory allocator +to gst-plugin-base + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Haihua Hu +--- + gst-libs/gst/gl/Makefile.am | 2 +- + gst-libs/gst/gl/gstglphymemory.c | 2 +- + gst-libs/gst/gl/gstglphymemory.h | 2 +- + gst-libs/gst/gl/gstglvivdirecttexture.c | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gst-libs/gst/gl/Makefile.am b/gst-libs/gst/gl/Makefile.am +index 5c05230..55f8a20 100644 +--- a/gst-libs/gst/gl/Makefile.am ++++ b/gst-libs/gst/gl/Makefile.am +@@ -86,7 +86,7 @@ libgstgl_@GST_API_VERSION@_la_LIBADD = \ + $(GST_LIBS) \ + $(GL_LIBS) + +-libgstgl_@GST_API_VERSION@_la_LIBADD += -lgstfsl-$(GST_API_VERSION) ++libgstgl_@GST_API_VERSION@_la_LIBADD += -lg2d + + if HAVE_WINDOW_WIN32 + SUBDIRS += win32 +diff --git a/gst-libs/gst/gl/gstglphymemory.c b/gst-libs/gst/gl/gstglphymemory.c +index 52ae41f..e28546c 100644 +--- a/gst-libs/gst/gl/gstglphymemory.c ++++ b/gst-libs/gst/gl/gstglphymemory.c +@@ -24,7 +24,7 @@ + + #include "gstglvivdirecttexture.h" + #include "gstglphymemory.h" +-#include "g2d.h" ++#include + + GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_PHY_MEMORY); + #define GST_CAT_DEFAULT GST_CAT_GL_PHY_MEMORY +diff --git a/gst-libs/gst/gl/gstglphymemory.h b/gst-libs/gst/gl/gstglphymemory.h +index b1a69e7..ebb9911 100644 +--- a/gst-libs/gst/gl/gstglphymemory.h ++++ b/gst-libs/gst/gl/gstglphymemory.h +@@ -24,7 +24,7 @@ + #include + #include + #include +-#include ++#include + + #include + +diff --git a/gst-libs/gst/gl/gstglvivdirecttexture.c b/gst-libs/gst/gl/gstglvivdirecttexture.c +index e8e0b82..242b7c0 100644 +--- a/gst-libs/gst/gl/gstglvivdirecttexture.c ++++ b/gst-libs/gst/gl/gstglvivdirecttexture.c +@@ -22,7 +22,7 @@ + #include "config.h" + #endif + +-#include ++#include + #include "gl.h" + + GST_DEBUG_CATEGORY_EXTERN (gst_gl_upload_debug); +-- +1.9.1 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend index 16d0ce8..be23ff7 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend @@ -12,6 +12,8 @@ PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \ SRC_URI_append = " file://0001-glplugin-Change-wayland-default-res-to-1024x768.patch \ file://0002-Add-directviv-to-glimagesink-to-improve-playback-per.patch \ + file://0003-MMFMWK-6930-glplugin-Accelerate-gldownload-with-dire.patch \ + file://0004-Fix-dependence-issue-between-gst-plugin-.patch \ " diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Remove-dependence-on-imx-plugin-git.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Remove-dependence-on-imx-plugin-git.patch new file mode 100755 index 0000000..80009a9 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Remove-dependence-on-imx-plugin-git.patch @@ -0,0 +1,433 @@ +From 950fe3a224eb5339c946193413f9373c333ea1f0 Mon Sep 17 00:00:00 2001 +From: Haihua Hu +Date: Fri, 5 Aug 2016 17:08:40 +0800 +Subject: [PATCH] [MMFMWK-7259] Remove dependence on imx plugin git. + +Add physical memory allocator + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Haihua Hu +--- + gst-libs/gst/allocators/Makefile.am | 6 +- + gst-libs/gst/allocators/gstallocatorphymem.c | 314 +++++++++++++++++++++++++++ + gst-libs/gst/allocators/gstallocatorphymem.h | 64 ++++++ + 3 files changed, 382 insertions(+), 2 deletions(-) + create mode 100755 gst-libs/gst/allocators/gstallocatorphymem.c + create mode 100755 gst-libs/gst/allocators/gstallocatorphymem.h + +diff --git a/gst-libs/gst/allocators/Makefile.am b/gst-libs/gst/allocators/Makefile.am +index 5c11b8a..13ffd9c 100644 +--- a/gst-libs/gst/allocators/Makefile.am ++++ b/gst-libs/gst/allocators/Makefile.am +@@ -5,13 +5,15 @@ libgstallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API + libgstallocators_@GST_API_VERSION@_include_HEADERS = \ + allocators.h \ + gstfdmemory.h \ +- gstdmabuf.h ++ gstdmabuf.h \ ++ gstallocatorphymem.h + + noinst_HEADERS = + + libgstallocators_@GST_API_VERSION@_la_SOURCES = \ + gstfdmemory.c \ +- gstdmabuf.c ++ gstdmabuf.c \ ++ gstallocatorphymem.c + + libgstallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM) + libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) +diff --git a/gst-libs/gst/allocators/gstallocatorphymem.c b/gst-libs/gst/allocators/gstallocatorphymem.c +new file mode 100755 +index 0000000..cf5995e +--- /dev/null ++++ b/gst-libs/gst/allocators/gstallocatorphymem.c +@@ -0,0 +1,314 @@ ++/* ++ * Copyright (c) 2013-2015, Freescale Semiconductor, Inc. All rights reserved. ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Library General Public ++ * License as published by the Free Software Foundation; either ++ * version 2 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Library General Public License for more details. ++ * ++ * You should have received a copy of the GNU Library General Public ++ * License along with this library; if not, write to the ++ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, ++ * Boston, MA 02111-1307, USA. ++ */ ++ ++#include ++#include ++#include "gstallocatorphymem.h" ++ ++typedef struct { ++ GstMemory mem; ++ guint8 *vaddr; ++ guint8 *paddr; ++ PhyMemBlock block; ++} GstMemoryPhy; ++ ++static int ++default_copy (GstAllocatorPhyMem *allocator, PhyMemBlock *dst_mem, ++ PhyMemBlock *src_mem, guint offset, guint size) ++{ ++ GST_WARNING ("No default copy implementation for physical memory allocator.\n"); ++ return -1; ++} ++ ++static gpointer ++gst_phymem_map (GstMemory * mem, gsize maxsize, GstMapFlags flags) ++{ ++ GstMemoryPhy *phymem = (GstMemoryPhy*) mem; ++ ++ if (GST_MEMORY_IS_READONLY(mem) && (flags & GST_MAP_WRITE)) { ++ GST_ERROR("memory is read only"); ++ return NULL; ++ } ++ ++ return phymem->vaddr; ++} ++ ++static void ++gst_phymem_unmap (GstMemory * mem) ++{ ++ return; ++} ++ ++static GstMemory * ++gst_phymem_copy (GstMemory * mem, gssize offset, gssize size) ++{ ++ GstAllocatorPhyMemClass *klass; ++ GstMemoryPhy *src_mem = (GstMemoryPhy *)mem; ++ ++ GstMemoryPhy *dst_mem = g_slice_alloc(sizeof(GstMemoryPhy)); ++ if(dst_mem == NULL) { ++ GST_ERROR("Can't allocate for GstMemoryPhy structure.\n"); ++ return NULL; ++ } ++ ++ klass = GST_ALLOCATOR_PHYMEM_CLASS(G_OBJECT_GET_CLASS(mem->allocator)); ++ if(klass == NULL) { ++ GST_ERROR("Can't get class from allocator object.\n"); ++ return NULL; ++ } ++ ++ if(klass->copy_phymem((GstAllocatorPhyMem*)mem->allocator, ++ &dst_mem->block, &src_mem->block, offset, size) < 0) { ++ GST_WARNING ("Copy phymem %d failed.\n", size); ++ return NULL; ++ } ++ ++ GST_DEBUG ("copied phymem, vaddr(%p), paddr(%p), size(%d).\n", ++ dst_mem->block.vaddr, dst_mem->block.paddr, dst_mem->block.size); ++ ++ dst_mem->vaddr = dst_mem->block.vaddr; ++ dst_mem->paddr = dst_mem->block.paddr; ++ ++ gst_memory_init (GST_MEMORY_CAST (dst_mem), ++ mem->mini_object.flags&(~GST_MEMORY_FLAG_READONLY), ++ mem->allocator, NULL, mem->maxsize, mem->align, ++ mem->offset, mem->size); ++ ++ return (GstMemory*)dst_mem; ++} ++ ++static GstMemory * ++gst_phymem_share (GstMemory * mem, gssize offset, gssize size) ++{ ++ GST_ERROR("Not implemented mem_share in gstallocatorphymem.\n"); ++ return NULL; ++} ++ ++static gboolean ++gst_phymem_is_span (GstMemory * mem1, GstMemory * mem2, gsize * offset) ++{ ++ return FALSE; ++} ++ ++static gpointer ++gst_phymem_get_phy (GstMemory * mem) ++{ ++ GstMemoryPhy *phymem = (GstMemoryPhy*) mem; ++ ++ return phymem->paddr; ++} ++ ++static GstMemory * ++base_alloc (GstAllocator * allocator, gsize size, ++ GstAllocationParams * params) ++{ ++ GstAllocatorPhyMemClass *klass; ++ GstMemoryPhy *mem; ++ gsize maxsize, aoffset, offset, align, padding; ++ guint8 *data; ++ ++ mem = g_slice_alloc(sizeof(GstMemoryPhy)); ++ if(mem == NULL) { ++ GST_ERROR("Can allocate for GstMemoryPhy structure.\n"); ++ return NULL; ++ } ++ ++ klass = GST_ALLOCATOR_PHYMEM_CLASS(G_OBJECT_GET_CLASS(allocator)); ++ if(klass == NULL) { ++ GST_ERROR("Can't get class from allocator object.\n"); ++ return NULL; ++ } ++ ++ GST_DEBUG ("allocate params, prefix (%d), padding (%d), align (%d), flags (%x).\n", ++ params->prefix, params->padding, params->align, params->flags); ++ ++ maxsize = size + params->prefix + params->padding; ++ mem->block.size = maxsize; ++ if(klass->alloc_phymem((GstAllocatorPhyMem*)allocator, &mem->block) < 0) { ++ GST_ERROR("Allocate phymem %d failed.\n", maxsize); ++ return NULL; ++ } ++ ++ GST_DEBUG ("allocated phymem, vaddr(%p), paddr(%p), size(%d).\n", ++ mem->block.vaddr, mem->block.paddr, mem->block.size); ++ ++ data = mem->block.vaddr; ++ offset = params->prefix; ++ align = params->align; ++ /* do alignment */ ++ if ((aoffset = ((guintptr)data & align))) { ++ aoffset = (align + 1) - aoffset; ++ data += aoffset; ++ maxsize -= aoffset; ++ } ++ mem->vaddr = mem->block.vaddr + aoffset; ++ mem->paddr = mem->block.paddr + aoffset; ++ ++ GST_DEBUG ("aligned vaddr(%p), paddr(%p), size(%d).\n", ++ mem->block.vaddr, mem->block.paddr, mem->block.size); ++ ++ if (offset && (params->flags & GST_MEMORY_FLAG_ZERO_PREFIXED)) ++ memset (data, 0, offset); ++ ++ padding = maxsize - (offset + size); ++ if (padding && (params->flags & GST_MEMORY_FLAG_ZERO_PADDED)) ++ memset (data + offset + size, 0, padding); ++ ++ gst_memory_init (GST_MEMORY_CAST (mem), params->flags, allocator, NULL, maxsize, align, offset, size); ++ ++ return (GstMemory*)mem; ++} ++ ++static void ++base_free (GstAllocator * allocator, GstMemory * mem) ++{ ++ GstAllocatorPhyMemClass *klass; ++ GstMemoryPhy *phymem; ++ ++ klass = GST_ALLOCATOR_PHYMEM_CLASS(G_OBJECT_GET_CLASS(allocator)); ++ if(klass == NULL) { ++ GST_ERROR("Can't get class from allocator object, can't free %p\n", mem); ++ return; ++ } ++ ++ phymem = (GstMemoryPhy*)mem; ++ ++ GST_DEBUG ("free phymem, vaddr(%p), paddr(%p), size(%d).\n", ++ phymem->block.vaddr, phymem->block.paddr, phymem->block.size); ++ ++ klass->free_phymem((GstAllocatorPhyMem*)allocator, &phymem->block); ++ g_slice_free1(sizeof(GstMemoryPhy), mem); ++ ++ return; ++} ++ ++static int ++default_alloc (GstAllocatorPhyMem *allocator, PhyMemBlock *phy_mem) ++{ ++ GST_ERROR ("No default allocating implementation for physical memory allocation.\n"); ++ return -1; ++} ++ ++static int ++default_free (GstAllocatorPhyMem *allocator, PhyMemBlock *phy_mem) ++{ ++ GST_ERROR ("No default free implementation for physical memory allocation.\n"); ++ return -1; ++} ++ ++G_DEFINE_TYPE (GstAllocatorPhyMem, gst_allocator_phymem, GST_TYPE_ALLOCATOR); ++ ++static void ++gst_allocator_phymem_class_init (GstAllocatorPhyMemClass * klass) ++{ ++ GstAllocatorClass *allocator_class; ++ ++ allocator_class = (GstAllocatorClass *) klass; ++ ++ allocator_class->alloc = base_alloc; ++ allocator_class->free = base_free; ++ klass->alloc_phymem = default_alloc; ++ klass->free_phymem = default_free; ++ klass->copy_phymem = default_copy; ++} ++ ++static void ++gst_allocator_phymem_init (GstAllocatorPhyMem * allocator) ++{ ++ GstAllocator *alloc = GST_ALLOCATOR_CAST (allocator); ++ ++ alloc->mem_map = gst_phymem_map; ++ alloc->mem_unmap = gst_phymem_unmap; ++ alloc->mem_copy = gst_phymem_copy; ++ alloc->mem_share = gst_phymem_share; ++ alloc->mem_is_span = gst_phymem_is_span; ++} ++ ++ ++//global functions ++ ++gboolean ++gst_buffer_is_phymem (GstBuffer *buffer) ++{ ++ gboolean ret = FALSE; ++ PhyMemBlock * memblk; ++ GstMemory *mem = gst_buffer_get_memory (buffer, 0); ++ if(mem == NULL) { ++ GST_ERROR ("Not get memory from buffer.\n"); ++ return FALSE; ++ } ++ ++ if(GST_IS_ALLOCATOR_PHYMEM(mem->allocator)) { ++ if (NULL == ((GstMemoryPhy*)mem)->block.paddr) { ++ GST_WARNING("physical address in memory block is invalid"); ++ ret = FALSE; ++ } else { ++ ret = TRUE; ++ } ++ } ++ ++ gst_memory_unref (mem); ++ ++ return ret; ++} ++ ++PhyMemBlock * ++gst_buffer_query_phymem_block (GstBuffer *buffer) ++{ ++ GstMemory *mem; ++ GstMemoryPhy *memphy; ++ PhyMemBlock *memblk; ++ ++ mem = gst_buffer_get_memory (buffer, 0); ++ if(mem == NULL) { ++ GST_ERROR ("Not get memory from buffer.\n"); ++ return NULL; ++ } ++ ++ if(!GST_IS_ALLOCATOR_PHYMEM(mem->allocator)) { ++ gst_memory_unref (mem); ++ return NULL; ++ } ++ ++ memphy = (GstMemoryPhy*) mem; ++ memblk = &memphy->block; ++ ++ gst_memory_unref (mem); ++ ++ return memblk; ++} ++ ++PhyMemBlock * ++gst_memory_query_phymem_block (GstMemory *mem) ++{ ++ GstMemoryPhy *memphy; ++ PhyMemBlock *memblk; ++ ++ if (!mem) ++ return NULL; ++ ++ if (!GST_IS_ALLOCATOR_PHYMEM(mem->allocator)) ++ return NULL; ++ ++ memphy = (GstMemoryPhy*) mem; ++ memblk = &memphy->block; ++ ++ return memblk; ++} ++ +diff --git a/gst-libs/gst/allocators/gstallocatorphymem.h b/gst-libs/gst/allocators/gstallocatorphymem.h +new file mode 100755 +index 0000000..f0833ae +--- /dev/null ++++ b/gst-libs/gst/allocators/gstallocatorphymem.h +@@ -0,0 +1,64 @@ ++/* ++ * Copyright (c) 2013-2015, Freescale Semiconductor, Inc. All rights reserved. ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Library General Public ++ * License as published by the Free Software Foundation; either ++ * version 2 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Library General Public License for more details. ++ * ++ * You should have received a copy of the GNU Library General Public ++ * License along with this library; if not, write to the ++ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, ++ * Boston, MA 02111-1307, USA. ++ */ ++ ++#ifndef __ALLOCATOR_PHYMEM_H__ ++#define __ALLOCATOR_PHYMEM_H__ ++ ++#include ++#include ++ ++#define PAGE_ALIGN(x) (((x) + 4095) & ~4095) ++ ++#define GST_TYPE_ALLOCATOR_PHYMEM (gst_allocator_phymem_get_type()) ++#define GST_ALLOCATOR_PHYMEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_ALLOCATOR_PHYMEM, GstAllocatorPhyMem)) ++#define GST_ALLOCATOR_PHYMEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_ALLOCATOR_PHYMEM, GstAllocatorPhyMemClass)) ++#define GST_IS_ALLOCATOR_PHYMEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_ALLOCATOR_PHYMEM)) ++#define GST_IS_ALLOCATOR_PHYMEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_ALLOCATOR_PHYMEM)) ++ ++typedef struct _GstAllocatorPhyMem GstAllocatorPhyMem; ++typedef struct _GstAllocatorPhyMemClass GstAllocatorPhyMemClass; ++ ++/* also change gst-libs/gst/gl/gstglvivdirecttexture.c in gst-plugins-bad git ++ * if changed below structure */ ++typedef struct { ++ guint8 *vaddr; ++ guint8 *paddr; ++ guint8 *caddr; ++ gsize size; ++ gpointer *user_data; ++} PhyMemBlock; ++ ++struct _GstAllocatorPhyMem { ++ GstAllocator parent; ++}; ++ ++struct _GstAllocatorPhyMemClass { ++ GstAllocatorClass parent_class; ++ int (*alloc_phymem) (GstAllocatorPhyMem *allocator, PhyMemBlock *phy_mem); ++ int (*free_phymem) (GstAllocatorPhyMem *allocator, PhyMemBlock *phy_mem); ++ int (*copy_phymem) (GstAllocatorPhyMem *allocator, PhyMemBlock *det_mem, ++ PhyMemBlock *src_mem, guint offset, guint size); ++}; ++ ++GType gst_allocator_phymem_get_type (void); ++gboolean gst_buffer_is_phymem (GstBuffer *buffer); ++PhyMemBlock *gst_buffer_query_phymem_block (GstBuffer *buffer); ++PhyMemBlock *gst_memory_query_phymem_block (GstMemory *mem); ++ ++#endif +-- +1.9.1 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend index f1992c3..279a27c 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend @@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" IMX_PATCHES = " file://gstplaybin-remove-flag-deinterlace.patch \ file://0001-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch \ + file://0002-Remove-dependence-on-imx-plugin-git.patch \ " SRC_URI_append_mx6 = "${IMX_PATCHES}" -- 1.9.1