From patchwork Thu Sep 15 20:36:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasi Inguva X-Patchwork-Id: 590 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp97629vsd; Thu, 15 Sep 2016 13:37:20 -0700 (PDT) X-Received: by 10.194.8.226 with SMTP id u2mr10923632wja.153.1473971840390; Thu, 15 Sep 2016 13:37:20 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id s9si5414819wjv.17.2016.09.15.13.37.20; Thu, 15 Sep 2016 13:37:20 -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=@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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 13233689E38; Thu, 15 Sep 2016 23:37:01 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B7FB6689D1A for ; Thu, 15 Sep 2016 23:36:54 +0300 (EEST) Received: by mail-pf0-f177.google.com with SMTP id 21so9323357pfy.0 for ; Thu, 15 Sep 2016 13:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RpXQusDud9Xxsdw//ycmaLVekIFjg9rbhiZyan5PQgU=; b=IRBUvcJ8nvEYPV5mygh1xFBjCFH5Wjbu1xtXDiBKWsMQ1WhUwLZqfcy6azSTtl6d61 jFj+vZ+WZtvrn4v2j5K17Zj4+Ti4/ygFNW0vrXfRjH6AbRorKFvIl/f/kBfSgsBCn4im uMNXFidOJgyECW2oQHhnHaZbk58kfYq3miHSV4JUl14AM+w9CxtWqJupaeAgbOSoSVpn 05CpEk7cHvijqVv+zg/VUxu/y3h6AciD2u+asjblfP/3OSbxp+pYL9D6uROCc/mlaJrd hT4e0p4UDYO8kVxjyANRmhHr99B5DAtj69HZDmqvqQLodjQ0J1GA20KwdQGLWY34toJ5 FUnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RpXQusDud9Xxsdw//ycmaLVekIFjg9rbhiZyan5PQgU=; b=MBL8tb0qQEICneMeU4aJCwrbf4jJSjm3yn8RlYkUbsQwrZHGscckY+NO+s8om42dXw Zdz2RdSP+GDIssfiS71z1citkFic2lor2P2GfaG9CWpQIeBbj4uDF0NbNDuncRk4Adak c0+oecWCrMjKGQ9tPbH1rWanM/xXUZvA/M04rYUk8NhBxexEmItJaYXLJFqxAeDA+L5j //p0pUfT/l0c75pmD8YEt6ImciBstI+SkVxgKOtcZyHiKxXa7SvKdQjENQforv+sZp8I bPDwlJiUG4LX1eudHWaWfq7NJBMUAeSP/uCWpPHq+QJja22O5jhpx5766s7Vqw3AcWgk nmuw== X-Gm-Message-State: AE9vXwPrLLRkTmzKr0gDnuciuyti8pW0OZtfemVv2QWn+Cr9vk9y58cQHuHVvbQfFETCW4Gb X-Received: by 10.98.210.202 with SMTP id c193mr17659329pfg.161.1473971826596; Thu, 15 Sep 2016 13:37:06 -0700 (PDT) Received: from isasi.mtv.corp.google.com ([172.27.82.89]) by smtp.gmail.com with ESMTPSA id b64sm47082466pfa.82.2016.09.15.13.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Sep 2016 13:37:06 -0700 (PDT) From: Sasi Inguva To: ffmpeg-devel@ffmpeg.org Date: Thu, 15 Sep 2016 13:36:15 -0700 Message-Id: <1473971779-27524-2-git-send-email-isasi@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1473971779-27524-1-git-send-email-isasi@google.com> References: <1473971779-27524-1-git-send-email-isasi@google.com> Subject: [FFmpeg-devel] [PATCH 2/6] avformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding. 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 Cc: Sasi Inguva MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Sasi Inguva --- libavformat/avformat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 21e505d..ae70cc8 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -814,6 +814,9 @@ typedef struct AVIndexEntry { * is known */ #define AVINDEX_KEYFRAME 0x0001 +#define AVINDEX_DISCARD_FRAME 0x0002 /** + * Flag is used to indicate which frame should be discarded after decoding. + */ int flags:2; int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs. 32 bytes due to possible 8-byte alignment). int min_distance; /**< Minimum distance between this and the previous keyframe, used to avoid unneeded searching. */