From patchwork Tue Sep 19 08:51:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hendrik Leppkes X-Patchwork-Id: 5190 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp4403003jaa; Tue, 19 Sep 2017 01:52:07 -0700 (PDT) X-Received: by 10.28.216.75 with SMTP id p72mr423226wmg.128.1505811127851; Tue, 19 Sep 2017 01:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505811127; cv=none; d=google.com; s=arc-20160816; b=LzhkOeH76pUr48iR1k1yYJlkDFUbFMFk4dtN4d0qJ5NznsqyPdkkAmkYdZt57ZCHA6 ZL1dhRBy0vVlxjb+XVEqPFSLG/LH9agk0eQnwzrHZ+6jP8GUraksF8bBl+f8plBq2ox9 biHSI6K2dfdV0Jo3UuIQPOU4UT9evrSj4SbN2IXN26l2LKlk+dbeL6R596rlDPoGX+aw 6Er/0e5GX3vOvtbz15+uil59uXeeYjACLQQ9hB3PH1kNzrG8hSK5sQeXNNYYQg67TOYk U0oR3HNdRILqoLXM3FniZc2Rd2S7n/U9TiPeiqkbXGwvQOVd1hsa4zJkEnlf2pDKPkdS +YHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=k5QoPRFkt8NWEdWplLiDfqUsn9CMhPaGL9sigP+sT74=; b=0qJX/aTH8HUTrWXZx3YbMlxpz9q3T/X2OJFwv/uxTVQitTaDCGbK+576C2zxDdxhHA j1DoWnabNaS9qyY+MEI/gRYtj+8E74reKdwP/pAK1rEP4Mm+WFZPHId0tXx6zU0X2yFi ruQg59t9grV5gS3GueDYJeY4VQ8g8/TxPtRujomapk9GwdeZv8cITb6JtzhMlm2Mob+U zRPmAySvGBStMYksZnp3peazVCu73oXQPgAGOLOe2iMzao3/NJrXAR5Myl4D5dbZKOQj Jy8L8/grtPIP2j/mJg4HpK4ta0U5+CGyjDefEOB/ja+1d3zbG9z7CDRDWuedxWHrBHcH 9xOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W0YvgDWL; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a2si7384755wrh.211.2017.09.19.01.52.06; Tue, 19 Sep 2017 01:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W0YvgDWL; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2D9486882A2; Tue, 19 Sep 2017 11:51:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9BA32687EB5 for ; Tue, 19 Sep 2017 11:51:49 +0300 (EEST) Received: by mail-wr0-f182.google.com with SMTP id a43so2446248wrc.0 for ; Tue, 19 Sep 2017 01:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xcWVWOlTWkqRN9zbFB3gNkvKnSv7iGX7uib8+9LnhKc=; b=W0YvgDWLnpiurYRyjVbUEC7SELv6zgAbaXcLP1HIdqjce3kgf6EqS3AOJsx0pxke9u awSmtEseIjwPeTnylVJ5VCHMRWKsjARM7kCKRBE4S+b9wLlGdEEB24rktRni+g7tj6wU vUbYgzRKvBlfSrn7B+chbJ7Zvr8LRXwi9l9ORlSujHrupC0EGLEP/DIYZ1tUPOVHiGhE Zga3oLcRjULS7pi6S703dBodJ3Xg2HjP8xTDFNWewLWyfBzu2BkQEc5VCT2N9VVoxwc6 BtRZJo4nxJrWj7QI40mBykBrWsWUlzyYTq+WF9DFhvLOQd0waDRI0lyszOMDDMDirIxU BB1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=xcWVWOlTWkqRN9zbFB3gNkvKnSv7iGX7uib8+9LnhKc=; b=ODRcHnxr6404urq7TFlKDt01KOKT8uYfI3zbBe7P2uh4TFWnune+ZmE6+4JDVaAX93 iw9vbijcf5sgzZUuUuoKZlaofSzvfM4NeJsg86a5h+86eQh8KIdq3jUECq3IaYxWe13n jqftFPetrUyqtkk3Uvp2CwX0bDzLUUOT4uau1t6T4B6G1vF+rsVFzMDyvKZc5ocfUH81 pFISpCnLdj031Z3/QXitgifoDGdTtTwmgCl4JnV6CzyxYDiztYrTfWwDOoBPYM376/cx 5C86aZrNsk/oB8HP5J2QvYga2hAPIfmu/xSyPYOol0cS7qxIzgHU+Kgs25IuLqHzRhfJ S6Ow== X-Gm-Message-State: AHPjjUjN2hvf7UQsn6BLkD/cnEAAjcyBglWoi+LoF+HZRmaLjRhHtk9T 36HU8EurLsk/rxDNc6vRoIo+gCta X-Google-Smtp-Source: AOwi7QDHCWNNZxsRg4SiQKH2jCbhTIt5Bdjkud+p2hiYHkkDPaHXcNGCMbjcoibIhxLrcEPPDIkXCA== X-Received: by 10.223.160.214 with SMTP id n22mr740476wrn.257.1505811117530; Tue, 19 Sep 2017 01:51:57 -0700 (PDT) Received: from localhost (p4FC4FC40.dip0.t-ipconnect.de. [79.196.252.64]) by smtp.gmail.com with ESMTPSA id t141sm1652418wme.33.2017.09.19.01.51.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Sep 2017 01:51:56 -0700 (PDT) From: Hendrik Leppkes To: ffmpeg-devel@ffmpeg.org Date: Tue, 19 Sep 2017 10:51:58 +0200 Message-Id: <20170919085158.15304-1-h.leppkes@gmail.com> X-Mailer: git-send-email 2.13.2.windows.1 Subject: [FFmpeg-devel] [PATCH] vp9: move VP9SharedContext back to the top of VP9Context X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" VP9SharedContext needs to be the first member so its properties can be safely accessed from hardware accelerators, without the need to share the full VP9Context. --- libavcodec/vp9dec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9dec.h b/libavcodec/vp9dec.h index 96c0e43cd2..66573edc79 100644 --- a/libavcodec/vp9dec.h +++ b/libavcodec/vp9dec.h @@ -89,8 +89,8 @@ typedef struct VP9Block { typedef struct VP9TileData VP9TileData; typedef struct VP9Context { - VP9TileData *td; VP9SharedContext s; + VP9TileData *td; VP9DSPContext dsp; VideoDSPContext vdsp;