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 DFAD64449C for ; Tue, 11 Apr 2023 20:39:16 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2992868BA7B; Tue, 11 Apr 2023 23:39:15 +0300 (EEST) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 883846808A9 for ; Tue, 11 Apr 2023 23:39:08 +0300 (EEST) Received: by mail-ot1-f46.google.com with SMTP id cp25-20020a056830661900b00693ce5a2f3eso4479460otb.8 for ; Tue, 11 Apr 2023 13:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681245546; x=1683837546; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=e+uxRkI6VMSSv9WgxazVHqwPzLy5G/B6v8YEvwh7KHM=; b=FLl2KwA8Y/b/prq7OqxBGcdqear5YZYU1XC9Prkmv1OtDlA59lWTDt5oCa91/Az5vp 6NapmZpS7a1qIaJ742vXXODct8PNW028T0rDSxsFBRvwpznK1b6rncPiD1tkGoe1yVpO ol8ZvUTlJyCBUoWmLiSrZEeCH5cauNQ8Har4i3Lz16J8DFP6xs1a6TNlTEd8EVpFGgSn jE1k25XxyPh8LFgLGB+p+a90g4WW5BcIb5PhpMvY/uhXZMoKGR7Q3Y/CvOfE8yNX/IVV t+BrC4OcKBVvtQ+tPEvarLnq9BvC4aJLsSDUbjEV+nwM6+L2vI6zyhuenhuYIa2FE6Xl Dfmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681245546; x=1683837546; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e+uxRkI6VMSSv9WgxazVHqwPzLy5G/B6v8YEvwh7KHM=; b=Q5x6n54vjdm/ddIjEWu36SKpv1fPx1LrFDHyfdOjN3ESTE2VJttYJ64d5c6ItTTe18 qgmpsCtXUNiIA4Gx77wW9uFNuUlSZA/SG8iE9O7MOyZHtrMA+DkSYo3bKiibqs2c5bUq 3I42ayk8wAbNMaOZ6Ou8h1GmqHAfvkOdI/s8DlVyg2A0NoeeWQRS6TeBGHZJRh10uln7 ySG3KRb5a56CzOy9JJObEv67dbgF3dc+xKqJhZmj4UD3Je7oC4ZneeVsHjvl5BkuEX8C a63gxU6C+zorvRsYTbOqXTIWAHdI0lDkw2WFcGC9PVykurgQE2lPMy4GArOBB7zojNCb WVDA== X-Gm-Message-State: AAQBX9eM1xduGmUpbWpx0pzuITDlz41pQmbnIazyjFYJYCUzn+Js+LVx vvRWDq/CWeivpBroFSuy35uhtzhEVxM= X-Google-Smtp-Source: AKy350byNko3Fy0et3Kjav4ZazGmSVG0iQ4OCZQhwKoDAjeIAlimV/XDsuys975ZqhVRypCAMEWCng== X-Received: by 2002:a9d:7504:0:b0:6a1:3dfc:4e44 with SMTP id r4-20020a9d7504000000b006a13dfc4e44mr6917504otk.27.1681245546099; Tue, 11 Apr 2023 13:39:06 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id d23-20020a9d4f17000000b006a3df644d31sm3857534otl.37.2023.04.11.13.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 13:39:05 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Apr 2023 17:38:49 -0300 Message-Id: <20230411203851.65044-1-jamrial@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/avcodec: add an event flags field to AVCodecContext 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: Signed-off-by: James Almer --- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 14 ++++++++++++++ libavcodec/version.h | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 44ba3ad634..59216231f9 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 API changes, most recent first: +2023-04-11 - xxxxxxxxxx - lavc 60.10.100 - avcodec.h + Add event_flags to AVCodecContext. + 2023-04-04 - xxxxxxxxxx - lavu 58.6.100 - hdr_dynamic_metadata.h Add AV_HDR_PLUS_MAX_PAYLOAD_SIZE. av_dynamic_hdr_plus_create_side_data() now accepts a user provided diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 1e91b9cb53..6cc54edab9 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2087,6 +2087,20 @@ typedef struct AVCodecContext { * an error. */ int64_t frame_num; + + /** + * Flags indicating events happening on the stream, a combination of + * AVCTX_EVENT_FLAG_*. + * + * - decoding: may be set by the decoder in avcodec_open2(), + * avcodec_send_packet() and avcodec_receive_frame(). Flags must be + * cleared by the user once the event has been handled. + * - encoding: may be set by the user after avcodec_open2(), to + * indicate a user-triggered event. The encoder will clear the flags + * for events it has handled in avcodec_send_frame() and + * avcodec_receive_{packet,frame}(). + */ + int event_flags; } AVCodecContext; /** diff --git a/libavcodec/version.h b/libavcodec/version.h index 230d5fa13e..80e2ae630d 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,7 +29,7 @@ #include "version_major.h" -#define LIBAVCODEC_VERSION_MINOR 9 +#define LIBAVCODEC_VERSION_MINOR 10 #define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ -- 2.40.0 _______________________________________________ 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".