From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 0F99A408B1 for ; Sat, 1 Oct 2022 06:14:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 693CC68BA05; Sat, 1 Oct 2022 09:14:04 +0300 (EEST) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9753D68B3FD for ; Sat, 1 Oct 2022 09:13:57 +0300 (EEST) Received: by mail-wr1-f47.google.com with SMTP id s14so9779737wro.0 for ; Fri, 30 Sep 2022 23:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=H+3ei9ArsW2y5Zt1OyxWyiVFotUkmo5SCkz8BIfpx3E=; b=dKjeYsqehVIa1rGv8DO9ok8WBBA5M/WEFWfAhSbr89X9kZhXAch+aidBN/33rr/2dA DjA9eonFBeKDPgDBFUmT9z5GRuiE8WdzznEdOc0X75avXGKT52Fyvgbbh8NF/zJOce06 wvhdoCxmRnrCJrlntRY9/M4jHvRZuueHDdlZntpa0uqMZ0WGZFMv6d9nzKqKZOKOkQ3q TAxEynjnGhtnkRKxlF95RTfzH5+bqWkO41c4kyOuD0kK28vNLxV3182BUjuUpLjhI5zL RKFu5cX/nJ6QV8T2qLXe0p0Jd62zS/Y/HYgaZn9RSfylREzc3jPnA8IlhGi4+USJ530R PSeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=H+3ei9ArsW2y5Zt1OyxWyiVFotUkmo5SCkz8BIfpx3E=; b=JXjCgqJg8hIFfSWXyuIKy5gkhSWn/DH+zHJjq1kFXwOnRq1JdIIIhtTzeMR+AqHqmJ ayjxNlyTLaiStSopYKPrTK9ppDu9wmIT+f/4DuWLgbIqw4eP55djg7d/rd0t23cASWuc /5N7EZtZ/DZGPtGE86vWtWBdHCzTS9R2TMTggNrUM6QVqygw0cpMU0J2PBjIh40S6tMz azsWgkzbcFwnUmsZOmbI9tq+WimoWDKYDyzr3XCYORf1vcv0tkVxyXvy5DEvwLs0qz8k JO/lO2Zz+Ci3Es1y7Ub27jCXmgMgvqTP5/y7wdCLpaoAatHaTTJ5zGN2HfExQRV8K5yk ZUfg== X-Gm-Message-State: ACrzQf2jGLZUmSklUqbysmw5vubsr2kOil0PF3KR1w1g+6j9gmNxCBKg GuBwOMf59LYkY4hW1K39UOLen7V3Wbmang== X-Google-Smtp-Source: AMsMyM5y/hdT6m63mfSFHoZctLLxzs0wo5tQla/pdZ7xmxEhJ0RN+IX5yt+fwip09EELoE96hJkYEQ== X-Received: by 2002:adf:fb10:0:b0:22c:caa4:da2d with SMTP id c16-20020adffb10000000b0022ccaa4da2dmr7813448wrr.139.1664604836425; Fri, 30 Sep 2022 23:13:56 -0700 (PDT) Received: from localhost.localdomain (178-222-23-217.dynamic.isp.telekom.rs. [178.222.23.217]) by smtp.gmail.com with ESMTPSA id bv14-20020a0560001f0e00b0022ae8b862a7sm4171739wrb.35.2022.09.30.23.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 23:13:55 -0700 (PDT) From: OvchinnikovDmitrii To: ffmpeg-devel@ffmpeg.org Date: Sat, 1 Oct 2022 08:13:39 +0200 Message-Id: <20221001061341.662-1-ovchinnikov.dmitrii@gmail.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [crop support for matroska demuxer 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters. 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: OvchinnikovDmitrii Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- libavcodec/avcodec.h | 8 ++++++++ libavcodec/codec_par.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7365eb5cc0..66df571afc 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -585,6 +585,14 @@ typedef struct AVCodecContext { */ int coded_width, coded_height; + /** + * The dimensions of the crop, usually from container. + */ + int crop_top; + int crop_left; + int crop_bottom; + int crop_right; + /** * the number of pictures in a group of pictures, or 0 for intra_only * - encoding: Set by user. diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h index 7660791a12..c730a79957 100644 --- a/libavcodec/codec_par.h +++ b/libavcodec/codec_par.h @@ -210,6 +210,14 @@ typedef struct AVCodecParameters { * Audio only. The channel layout and number of channels. */ AVChannelLayout ch_layout; + + /** + * The dimensions of the crop, usually from container. + */ + int crop_top; + int crop_left; + int crop_bottom; + int crop_right; } AVCodecParameters; /** -- 2.30.0.windows.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".