From patchwork Thu Sep 7 19:27:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Gisquet X-Patchwork-Id: 34988 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4e27:b0:149:dfde:5c0a with SMTP id gk39csp35382pzb; Thu, 7 Sep 2023 12:27:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7UtGMqlPvjKHbslxHd10P97JxIusMCbdcA/uDsJ4/1AMbtl7mub1kS1PgCJc4rWHphQ5b X-Received: by 2002:a17:906:3151:b0:993:fba5:cdf1 with SMTP id e17-20020a170906315100b00993fba5cdf1mr253710eje.22.1694114876484; Thu, 07 Sep 2023 12:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694114876; cv=none; d=google.com; s=arc-20160816; b=bOgyCuYRQqMzhEFqk71hXigNgiOOZp7ttGeQh1ZYgVGu31sYBvcEhMQUzJZMfnPUPN WS3hmqYlweNnJP/fSpo9o7wmEuPUgQpcoroAtAp9sixqaQagdmo66fBz6+qzVywCDQDU 2YcJsFbed3LPnTa/VN8MF06zscnUXkbA9qWEt1Woza52MSEP2vKn1HgfsO/9/pjeO6WL C3YNnWWHZouUQ6FOzWLWnTnmvkEJ4yydr5sSRTK4yZgam7v2TVrj2jBpL+CNfttQQ9QJ /V2aNbXP/zv6sVnD9LbB0JMVtZPsM2nELSrhiJiB+4q/KGtzVWCjaVB61yI0hN4obhS4 GjTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=L8fK8e00va845BJqTvpE2wNIA2usUFrzUi8RENgI7PY=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=trMFiJeNV7DuOvKEmf0tauWTB7xdOVO0d2XI9VmspfuOVtDr2VbVQsM60SN5ftNhHy 3Aonj3iuSaQk7ULdtfNsbepLhK6DGo2ECV4RKDrG/3LhbORZjRQVUKZlu5WJV2SYW1S3 d8I/JiCoKpbieuY58MRYjUkW7YstbsizzxtSh3ngyFLqXVcXgWN3+4i8EsGjTkvuH1H0 7RqJ+xLhmoGnry7jHXD2CVNjFllSAz9AOX4W5z4l3sBWFmSh3b7/jdfi3IwkJdOWiosi 6TrcUBIy7DJDPj9jRvNNybS/xHmJKw5SszUzmwDvw77QZaFQfhlhbvCAKeFrWXpw2Bf1 rbmA== ARC-Authentication-Results: i=1; mx.google.com; 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 cw13-20020a170906c78d00b009a9f5afdab7si32591ejb.647.2023.09.07.12.27.41; Thu, 07 Sep 2023 12:27:56 -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; 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 1DCEC68C873; Thu, 7 Sep 2023 22:27:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AE2F268C767 for ; Thu, 7 Sep 2023 22:27:31 +0300 (EEST) Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:8a7:6440:a506:2525:387f:fe6d]) (Authenticated sender: christophe.gisquet@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id E95E0780510 for ; Thu, 7 Sep 2023 21:27:30 +0200 (CEST) From: Christophe Gisquet To: ffmpeg-devel@ffmpeg.org Date: Thu, 7 Sep 2023 21:27:19 +0200 Message-ID: <20230907192721.50459-1-christophe.gisquet@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/2] cached bistream: small improvements 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: DhjmPE9eOV+w Preparatory patch independently beneficial. Note: all of these are for the sake of simplicity, from 2020, but needed cleaner rebasing. Christophe Gisquet (2): Expose and start using skip_remaining read_xbits: request fewer bits libavcodec/bitstream.h | 8 +++++--- libavcodec/bitstream_template.h | 36 +++++++++++++++++++++------------ libavcodec/get_bits.h | 1 + 3 files changed, 29 insertions(+), 16 deletions(-)