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 1888B41422 for ; Sat, 1 Oct 2022 07:07:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 84CBB68BABE; Sat, 1 Oct 2022 10:07:29 +0300 (EEST) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DC4FE68B8C5 for ; Sat, 1 Oct 2022 10:07:22 +0300 (EEST) Received: by mail-lf1-f50.google.com with SMTP id 10so9949326lfy.5 for ; Sat, 01 Oct 2022 00:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=UAzEy6fk5VXCAdrdju4NXSDK9K9P/BDiwhBqJutko0U=; b=mSBV7yInNkXsa0lxTbnPJlYYsdbfh6JztoxhkU4N4exCF9sbQ5Voi0F5E+PFUEuaOP hsKlI15wHA4XjniKvRENyH9aoH0DCAv8yvMvu4EB34Ec8RfYHeETxjOGP7ohGc2/aX4E +e60MHSlDIuHvRLC5T45t2aWQsSFeCpqCbK5GrJF1QZCGiWrqAhyJxqQUPNF16qM8GS4 lcOJ0LXTIyQLFQFooJepUx9iz3rZgYhUYbdP0APNNhwbVBAFyCQ/iD36lOZP7v8SilpT DP+OYjp+DMxTEgqZ6C1Mh/BJ91NVVfPvALDjP/hoUt15tOfmn7dFl50Naxce62He0+0O nIgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=UAzEy6fk5VXCAdrdju4NXSDK9K9P/BDiwhBqJutko0U=; b=L27FA/1B5D6dCt6+b6MVm05PQGK4TL4ytL38r3HHFrNAi5Jhwlka1duSFxpZYBT6Es lSUUFS7H7JHfLrxbAXnLO6Z6To6gErQ1WTnFOlgQcwh5Vb0kBwttYpGqXLZ1kgbiiYNW GS2bt4VSmrq/uJX+Jra2Qud01Adcb9NLDUDdPjyTyIFZ1/K92/73lQNtUJj1IIC94bBx YJtOiYxOAhYO8oQyd82+NCrSlUyDSNTrOC8IWNZw0RKRG19O0W2PGrryIBTnn0eQEYOa mpDmjeQUUsU78oi9xArASeeL5IgZQRiVjtm8PK8BEgmFL8oPvSYOKdr65VVDtm0YyXhD FTgw== X-Gm-Message-State: ACrzQf1JjzHVPcyo8CdyZ1TRzLW5muz8Hh0zmQsx5p5KVF4V4NZgqqlS 72jMRkZAfZHgS49zoCd2OgMKP/4W5UfrTCSDJrESwrwk X-Google-Smtp-Source: AMsMyM6ntDsqhja95H+fyJyDIsoSclpI/EmB+N5qKcMtNusXYx6tRmzuabotEisk5guQFnDwPH56qxtEIXSPHdzXqaI= X-Received: by 2002:a05:6512:3a93:b0:49b:d321:b5ea with SMTP id q19-20020a0565123a9300b0049bd321b5eamr4034508lfu.684.1664608040673; Sat, 01 Oct 2022 00:07:20 -0700 (PDT) MIME-Version: 1.0 References: <20221001061341.662-1-ovchinnikov.dmitrii@gmail.com> In-Reply-To: <20221001061341.662-1-ovchinnikov.dmitrii@gmail.com> From: Hendrik Leppkes Date: Sat, 1 Oct 2022 09:06:58 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [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 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: On Sat, Oct 1, 2022 at 8:14 AM OvchinnikovDmitrii wrote: > > --- > 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; > All of these should be size_t (and in AVCodecContext as well, naturally), matching the type in AVFrame. - Hendrik _______________________________________________ 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".