From: Marton Balint <cus@passwd.hu>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v3 1/2] decklink: move queue_size to an argument for ff_decklink_packet_queue_init
Date: Sun, 2 Jul 2023 18:10:03 +0200 (CEST)
Message-ID: <5bb2a048-c795-e2bb-a216-6e8d1878b6a@passwd.hu> (raw)
In-Reply-To: <1688159679-3623-1-git-send-email-dheitmueller@ltnglobal.com>
On Fri, 30 Jun 2023, Devin Heitmueller wrote:
> The existing queue initialization function would always sets it's
> maximum queue size to ctx->queue_size. But because we are introducing
> more queues we may want the sizes to differ between them.
>
> Move the specification of the queue size into an argument, which can
> be passed from the caller.
>
> This patch makes no functional change to the behavior. It is being
> made to accommodate Marton Balin's request to split out the queue
> size for the new VANC queue being introduced in a later patch.
>
> Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
> ---
> libavdevice/decklink_common.cpp | 4 ++--
> libavdevice/decklink_common.h | 2 +-
> libavdevice/decklink_dec.cpp | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp
> index b6cc8d7..5e8d612 100644
> --- a/libavdevice/decklink_common.cpp
> +++ b/libavdevice/decklink_common.cpp
> @@ -390,14 +390,14 @@ int ff_decklink_set_format(AVFormatContext *avctx, decklink_direction_t directio
> return ff_decklink_set_format(avctx, 0, 0, 0, 0, AV_FIELD_UNKNOWN, direction);
> }
>
> -void ff_decklink_packet_queue_init(AVFormatContext *avctx, DecklinkPacketQueue *q)
> +void ff_decklink_packet_queue_init(AVFormatContext *avctx, DecklinkPacketQueue *q, int64_t queue_size)
> {
> struct decklink_cctx *ctx = (struct decklink_cctx *)avctx->priv_data;
This is now unused.
> memset(q, 0, sizeof(DecklinkPacketQueue));
> pthread_mutex_init(&q->mutex, NULL);
> pthread_cond_init(&q->cond, NULL);
> q->avctx = avctx;
> - q->max_q_size = ctx->queue_size;
> + q->max_q_size = queue_size;
> }
Will apply with the change above.
Thanks,
Marton
_______________________________________________
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".
prev parent reply other threads:[~2023-07-02 16:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 21:14 Devin Heitmueller
2023-06-30 21:14 ` [FFmpeg-devel] [PATCH v3 2/2] decklink_enc: add support for SMPTE 2038 VANC packet output Devin Heitmueller
2023-07-02 17:22 ` Marton Balint
2023-07-02 16:10 ` Marton Balint [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5bb2a048-c795-e2bb-a216-6e8d1878b6a@passwd.hu \
--to=cus@passwd.hu \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git