From patchwork Fri Sep 24 06:28:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Shun Ho X-Patchwork-Id: 30544 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp1195487iob; Thu, 23 Sep 2021 23:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlgBHlz8H5OrptuK8G+iQB1jzJMXdePjPLl5fJjHo9UxmNv1MMLM3rkEVjinU7+TE3yL0Q X-Received: by 2002:a17:906:ece1:: with SMTP id qt1mr9348395ejb.281.1632465016304; Thu, 23 Sep 2021 23:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632465016; cv=none; d=google.com; s=arc-20160816; b=U3sHQ3Ei9fAbNSKpSmRmaXAGbqVQJtOUh55TmaC8nNI6prJztDd0h/pzxx92bYTxlV mxt3yVEAQ3wp0H5iXMLOR5iUPbzZPa0raSbjDJP5iz/w/hI9rUvMS3f6hXhIOxHk1iht PuwNGchrH9rgasJCZ0cyAwRa2Tu5HzhlfX1d7G0hX4bmsw4jbPXVfSLgPne2UPZc9M5k g+NenEkKq0jpEZXfk7tdqKwH03/B7mukLz1v0Sz45n1ERW+fFNZ1F8BbBbqaoIVu1RA2 uKmyJXeC8rmX6xbYPtcjh2/85YzZQgLL1ZQbZD5JH2R0bvISV5HKTU5qnDRc3J/Zsa+1 YVNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=n1P6AJpgZ002GlnW26VayoD82mlt5oFHjyeQj2SsZFs=; b=gNc9jezxT5suU2BrgLm6zX9vyaazLBAwM6R1fy0dGTvgmsMDAYv7IEJPWO82Mn2RcP a9RQxCWhfyKs5FRXCYAJO9u9SVEOvtADZiv/pa9hJ0PahHpUttYN0C39/o4KDvLeFHeK HVSCfiY70zngOddHba4kYz0QS/Zm6PD0aTjgKtImmzMS6/401FlnxYfEK+Rf8wEzqTlI WUCszCNnEVA/rtzUQUpcvMxBfVtXC7ykWRHypBtWugHoM7be/pY1nOT7NAagRnpC4czS EhmD4dX9IRY+9JRfUNeIfUHNwE3bdm4yBw5BUQdvyTcdQDBQD4xhtd7eaNAurFLPbb4l YEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=jVL1Jh09; 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=QUARANTINE 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 n16si6760555edt.465.2021.09.23.23.30.15; Thu, 23 Sep 2021 23:30:16 -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=20210112 header.b=jVL1Jh09; 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=QUARANTINE 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 4948D68A5E6; Fri, 24 Sep 2021 09:30:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 91B67680208 for ; Fri, 24 Sep 2021 09:30:03 +0300 (EEST) Received: by mail-pj1-f41.google.com with SMTP id on12-20020a17090b1d0c00b001997c60aa29so7100017pjb.1 for ; Thu, 23 Sep 2021 23:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X3/cPksW8Fx584hwYJFvghQ1NhDjzBjmnZLlB9kSSts=; b=jVL1Jh09tXmjqR61Sc+xVCGPOtFC5BxeJJ7+ab2QkvYiornfKaYwJBrhGadLVLKkYQ a8gbLtTKJgyRzGoSCwu5Yjxl3jVGFC4l2J7qDD5ahjpNpbzrXAcdHsrfuZoD2+ixYmHs 2RGfRtX5APiiULJsuy2S7YsvAxZC1wqkTMibiVyRty7kxfhphLSvGg6FgaV64hgE+Iqj KP++lIf6/CpmaaAQrCI0uEB1MIp1Jsv5Wrbkv7eDUtiuyjG8v+9UwIyyVUNJ/xauv6O9 h0fuw/+kwEO2/P8mfOhdth2BY/Zh2lJGbjffBGzkJSAqwGsPsty4mdY2AhQQOLYvjdRJ rMKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X3/cPksW8Fx584hwYJFvghQ1NhDjzBjmnZLlB9kSSts=; b=gPDuYkBg46g43xKKs8Z5guDcBZFjzbhVKJ7LLhmehCKIqGFod4RFbrOdxj6uDGKckQ ESM9BGdPEc+bavGsdyGWHdED8chRIgM2jBTfVZkyq9RR1uRitcY8PNRjK9BQRJ6VXMO5 /fQZqqGX9x87M0v2ZZ1ptFy/D5/BbohT0HRVMv245xz/cbeNEm4lYuoltbNmtiBVPHjM jxQvPuHfhkS8BF+Nz0669T3O+C+Sb8iwq8TMqJDwk1CiQQYLPtTP18seXGq3BslZZ0p3 owla0Sk5sg6vXvc4KyI8UTuwijSzg/YHx83tgITrHMjekyagn9+Tvz5dozm0dZxW0zyi qsww== X-Gm-Message-State: AOAM531RcHcGs8brf3dTXjXzKaDZh4/BM/P28kVOOOI9L/DJLPJUDFpQ ZbAtIxWqylkvhSHFIjWoKxCrz5cTYzw0Vw== X-Received: by 2002:a17:902:bd8d:b0:13a:8c8:a2b2 with SMTP id q13-20020a170902bd8d00b0013a08c8a2b2mr7807947pls.89.1632465001320; Thu, 23 Sep 2021 23:30:01 -0700 (PDT) Received: from localhost.localdomain ([103.252.202.177]) by smtp.gmail.com with ESMTPSA id d3sm7427886pfn.156.2021.09.23.23.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 23:30:00 -0700 (PDT) From: Ho Ming Shun To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Sep 2021 14:28:34 +0800 Message-Id: <20210924062838.7461-1-cyph1984@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/4] Switch mmaldec to decoupled dataflow X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Cc: Ho Ming Shun Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: gv66bbRpLSgw This series switches mmaldec to use the decoupled dataflow API to reduce excessive buffering in the driver. At the same time, remove dependency on sizeof(AVPacket) which is deprecated. Also fix all compile warnings. Ho Ming Shun (4): avcodec/mmaldec: use decoupled dataflow avcodec/mmaldec: use avpkt from DecodeSimpleContext avcodec/mmaldec: re-use AVPacket for extra_data avcodec/mmaldec: fix pointer type warning libavcodec/mmaldec.c | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-)