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 5489E4A49D for ; Thu, 30 May 2024 21:37:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 959C168D582; Fri, 31 May 2024 00:37:08 +0300 (EEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D71CE68D2C1 for ; Fri, 31 May 2024 00:37:01 +0300 (EEST) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-35dce6102f4so513516f8f.3 for ; Thu, 30 May 2024 14:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717105021; x=1717709821; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rhevY05tf6ARQWsikC534BUrZFieCfjG++8xCmfQrdM=; b=GstcMqHuPiMpMgokFr183iCJWfUVY2AgU68ZbwtQXapkn/UyJrato5+xf+IeFBFw5H NqsCU8sOrWQDYWHz717BT42bohKewQNG86ILD2J9ctuKCbDBIsRcndaCO52JkL3+eYAb gmkEVVNtevVB43U3PaArcv/9F+cd5ldNfZzTIUsRJHI3VrVj+Cm5OA9KYG5tdy2+AQmP wbeCEwQgD9iXpmUjVM21aEzTqWok5Shm+v9iWActRKy7+wxNgzF4x5s4SvQPFwRVF1Rn fChpaw7vSxZbP/gjXI+xvsc9Z9c6R8TfEoSyeudgMuB2/ezlx7sWotbcyP/M5grKaW7t TAHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717105021; x=1717709821; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rhevY05tf6ARQWsikC534BUrZFieCfjG++8xCmfQrdM=; b=luRKvwMgzntv0kQ7XkfsoVlnAPRFRiE/w5KYU8j1ZcRrWB73wT2CPFzKHq2F7ofSZK J8RQ7o36bZneKVq8S4T8cM3tk2Q3n0GmLNTx5HnpVPvEpPmU5IBE+s9yQGrRw2U2zAnv tEHzcdqxIfs+qFN0eyyfSAvNi3iwkbozMC3v3Wr7ffjBFuyD4wfqtTt2vCUqm+D1E2t4 0rkq/6HRUIHEmE42JoRqD4Zc7hJyj5z80VPFRQo13z6KF3s9TF1IiAJW3DnfrHT3rOO4 35nA3v+JKPrhemelnnx5SyONpIUwaM25uTezv4xVHoYdco1Nidxgs7oCd3GuiRdCwZY7 67SQ== X-Gm-Message-State: AOJu0YwhJCs9rMXzMBjT75Q4WZXeAVl0dZmcLICu5hHNNPLPEdyc4/tO P9h4d8WUxA83ssZqgAHl1Vad0Nh0Ww+VF8avL82AD3tHtOggdneMSifrBg== X-Google-Smtp-Source: AGHT+IFekqfinae7TiF9oEgADHWASPrXY9XKXNL6YD6dfWQgu0lzvM78+tlX4q9KDQRXa2/GMN/hqg== X-Received: by 2002:adf:feca:0:b0:34d:99ac:dcd0 with SMTP id ffacd0b85a97d-35dc00c9b59mr2835858f8f.49.1717105020778; Thu, 30 May 2024 14:37:00 -0700 (PDT) Received: from localhost.localdomain (114.200-178-91.adsl-dyn.isp.belgacom.be. [91.178.200.114]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04da29csm365812f8f.55.2024.05.30.14.36.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 14:37:00 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 May 2024 23:36:57 +0200 Message-Id: <20240530213657.1033191-2-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240530213657.1033191-1-ramiro.polla@gmail.com> References: <20240530213657.1033191-1-ramiro.polla@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] ffplay: set default scaling_quality to "best" instead of "linear" 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: These values are aliases in SDL, but "best" is a more intuitive name. --- doc/ffplay.texi | 2 +- fftools/ffplay.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/ffplay.texi b/doc/ffplay.texi index 60f883e159..e7ff62ae16 100644 --- a/doc/ffplay.texi +++ b/doc/ffplay.texi @@ -73,7 +73,7 @@ Force format. @item -window_title @var{title} Set window title (default is the input filename). @item -scaling_quality @var{value} -Set SDL_HINT_RENDER_SCALE_QUALITY value (default is "linear"). +Set SDL_HINT_RENDER_SCALE_QUALITY value (default is "best"). @item -left @var{title} Set the x position for the left of the window (default is a centered window). @item -top @var{title} diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 75d2bec777..6575ad14a7 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -3684,7 +3684,7 @@ static const OptionDef options[] = { { "framedrop", OPT_TYPE_BOOL, OPT_EXPERT, { &framedrop }, "drop frames when cpu is too slow", "" }, { "infbuf", OPT_TYPE_BOOL, OPT_EXPERT, { &infinite_buffer }, "don't limit the input buffer size (useful with realtime streams)", "" }, { "window_title", OPT_TYPE_STRING, 0, { &window_title }, "set window title", "window title" }, - { "scaling_quality", OPT_TYPE_STRING, OPT_EXPERT, { &scaling_quality }, "set SDL_HINT_RENDER_SCALE_QUALITY value (default=linear)", "value" }, + { "scaling_quality", OPT_TYPE_STRING, OPT_EXPERT, { &scaling_quality }, "set SDL_HINT_RENDER_SCALE_QUALITY value (default=best)", "value" }, { "left", OPT_TYPE_INT, OPT_EXPERT, { &screen_left }, "set the x position for the left of the window", "x pos" }, { "top", OPT_TYPE_INT, OPT_EXPERT, { &screen_top }, "set the y position for the top of the window", "y pos" }, { "vf", OPT_TYPE_FUNC, OPT_FUNC_ARG | OPT_EXPERT, { .func_arg = opt_add_vfilter }, "set video filters", "filter_graph" }, @@ -3834,7 +3834,7 @@ int main(int argc, char **argv) } window = SDL_CreateWindow(program_name, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, default_width, default_height, flags); if (!scaling_quality) - scaling_quality = "linear"; + scaling_quality = "best"; SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scaling_quality); if (!window) { av_log(NULL, AV_LOG_FATAL, "Failed to create window: %s", SDL_GetError()); -- 2.39.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".