[FFmpeg-devel] [PATCH] mov demuxer: use int64_t for next_ts (PR #20313)

2025-08-21 Thread muiz2 via ffmpeg-devel
e PTS, hence try to offset it so that we -- 2.49.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] lavc: add ProRes RAW videotoolbox hwaccel (PR #20298)

2025-08-20 Thread wangbin via ffmpeg-devel
, +.init = ff_videotoolbox_common_init, + .uninit = ff_videotoolbox_uninit, +.priv_data_size = sizeof(VTContext), +}; + #endif /* CONFIG_VIDEOTOOLBOX */ -- 2.49.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] Announce FFmpeg 8.0

2025-08-20 Thread Lynne via ffmpeg-devel
ual, we recommend that users, distributors, and system integrators to upgrade unless they use current git master. + + September 30th, 2024, FFmpeg 7.1 "Péter" FFmpeg 7.1 "Péter", a new -- 2.50.0 ___________ ffmpeg-devel mailing list ff

[FFmpeg-devel] [PATCH] lavc/Makefile: Make EXIF non-optional (PR #20317)

2025-08-22 Thread frankplow via ffmpeg-devel
.o jfdctfst.o jfdctint.o -- 2.49.1 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] A few new decoders and a parser from almpeg (PR #20325)

2025-08-23 Thread michaelni via ffmpeg-devel
PR #20325 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20325 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20325.patch These are taken from before the switch to GPLv3+ If people prefer, we can merge the GPLv3+ switch for these modules too and put them under --enab

Re: [FFmpeg-devel] [Proposal] drawvg filter

2025-08-23 Thread Ayose via ffmpeg-devel
On 2025-08-20 22:58:26 +0200, Michael Niedermayer wrote: > > On Mon, Aug 18, 2025 at 07:22:56AM +0100, Ayose via ffmpeg-devel wrote: > > This is a proposal to add a new filter to FFmpeg: drawvg, to draw > > vector graphics on top of a video, using libcairo. > > > >

[FFmpeg-devel] [PATCH] libavformat/oggparseopus.c: Parse comments from secondary chained streams header packet. (PR #20327)

2025-08-24 Thread toots via ffmpeg-devel
pus-chained-meta.txt +++ b/tests/ref/fate/ogg-opus-chained-meta.txt @@ -13,7 +13,8 @@ Stream ID: 0, frame PTS: 3528, metadata: N/A Stream ID: 0, packet PTS: 4488, packet DTS: 4488 Stream ID: 0, frame PTS: 4488, metadata: N/A Stream ID: 0, packet PTS: -312, packet DTS: -312 -Stream ID: 0, fram

[FFmpeg-devel] [PATCH] Forgejo update (PR #20263)

2025-08-16 Thread erkinalp via ffmpeg-devel
+ b/README.md @@ -41,6 +41,4 @@ GPL. Please refer to the LICENSE file for detailed information. ## Contributing -Patches should be submitted to the ffmpeg-devel mailing list using -`git format-patch` or `git send-email`. Github pull requests should be -avoided because they are not part of

[FFmpeg-devel] [PATCH] aacdec_usac: use RefStruct to track unfinished extension buffers [Lynnes version + 2 bugfixes] (PR #20261)

2025-08-16 Thread michaelni via ffmpeg-devel
t *gb2 = gb; GetBitContext gbc; if (!(pl_frag_start && pl_frag_end)) { -ret = init_get_bits8(&gbc, e->ext.pl_data, pl_len); +ret = init_get_bits8(&gbc, e->ext.pl_buf, pl_len); if (ret < 0) return ret; @@

[FFmpeg-devel] [Proposal] drawvg filter

2025-08-17 Thread Ayose via ffmpeg-devel
t is still missing is to port the documentation to Texinfo. I used Markdown because it is what I'm most used to. If the filter is accepted, I guess than pandoc can do most of the required changes, so it should be easy. _______ ffmpeg-devel mailing list ffmp

[FFmpeg-devel] [PATCH] libavutil/riscv: add fallthrough comment to switch (PR #20282)

2025-08-18 Thread kxxt via ffmpeg-devel
9.1 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavutil/riscv: avoid redefinition of _GNU_SOURCE (PR #20281)

2025-08-18 Thread kxxt via ffmpeg-devel
bavutil/macros.h" -- 2.49.1 ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH] ff_lxf_uncompress realloc vs av_fast_realloc fix (PR #20280)

2025-08-18 Thread michaelni via ffmpeg-devel
@@ -940,6 +940,8 @@ static int dxv_decode(AVCodecContext *avctx, AVFrame *frame, } break; } +if (avctx->coded_height / 2 / TEXTURE_BLOCK_H < 1) +return AVERROR_INVALIDDATA; texdsp_ctx.slice_count = av_clip(avctx->thread_count, 1,

[FFmpeg-devel] Patches to add libomt OpenMediaTransport support to FFmpeg

2025-08-19 Thread ffmpeg--- via ffmpeg-devel
ow if you have any questions Best Regards Mark Gilbert ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with su

[FFmpeg-devel] [PATCH] hwcontext_vulkan: transfer EXCLUSIVE images to correct queue families (PR #20286)

2025-08-19 Thread vytskalt via ffmpeg-devel
_SRC_OPTIMAL, -VK_QUEUE_FAMILY_IGNORED); +p->nb_img_qfs > 1 ? VK_QUEUE_FAMILY_IGNORED : p->img_qfs[0]); vk->CmdPipelineBarrier2(cmd_buf, &(VkDependencyInfo) { .sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO, -- 2.49.1 ____

[FFmpeg-devel] [PATCH v2] avformat/libopenmpt: implement file reading callbacks

2025-09-04 Thread Paper via ffmpeg-devel
_freep(&buf); +openmpt->module = openmpt_module_create(openmpt_cbs, s->pb, openmpt_logfunc, s, NULL); if (!openmpt->module) return AVERROR_INVALIDDATA; #endif -- 2.51.0 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] swscale: Disable avx2 hscale 8to15 on IceLake and below due to Intel Gather Data Sampling mitigation performance loss (PR #20446)

2025-09-05 Thread legrosbuffle via ffmpeg-devel
rval |= AV_CPU_FLAG_SLOW_GATHER; } -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] Optimize vvc_apply_bdof_block_8x (PR #20448)

2025-09-05 Thread welder via ffmpeg-devel
b.ne0b ret -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/mpegaudiodec_template: Don't modify AVCodecContext.priv_data (PR #20431)

2025-09-06 Thread mkver via ffmpeg-devel
late.c @@ -1792,7 +1792,9 @@ static av_cold int decode_init_mp3on4(AVCodecContext * avctx) s->mp3decctx[i]->adu_mode = 1; s->mp3decctx[i]->avctx = avctx; s->mp3decctx[i]->mpadsp = s->mp3decctx[0]->mpadsp; +#if USE_FLOATS s->mp3decctx[i]-&

[FFmpeg-devel] [PATCH 2/3] lavc: Split out common components used by vulkan prores encoder

2025-09-06 Thread IndecisiveTurtle via ffmpeg-devel
DARD, +PRORES_PROFILE_HQ, +PRORES_PROFILE_, +PRORES_PROFILE_XQ, +}; + +enum { +QUANT_MAT_PROXY = 0, +QUANT_MAT_PROXY_CHROMA, +QUANT_MAT_LT, +QUANT_MAT_STANDARD, +QUANT_MAT_HQ, +QUANT_MAT_XQ_LUMA, + QUANT_MAT_DEFAULT, +}; + +typedef struct prores_profile { +const char *full_name; +uint32_ttag; +int min_quant; +int max_quant; +int br_tab[NUM_MB_LIMITS]; +int quant; +int quant_chroma; +} prores_profile; + +typedef struct ProresContext { +AVClass *class; +DECLARE_ALIGNED(16, int16_t, blocks)[MAX_PLANES][64 * 4 * MAX_MBS_PER_SLICE]; +DECLARE_ALIGNED(16, uint16_t, emu_buf)[16*16]; +int16_t quants[MAX_STORED_Q][64]; +int16_t quants_chroma[MAX_STORED_Q][64]; +int16_t custom_q[64]; +int16_t custom_chroma_q[64]; +const uint8_t *quant_mat; +const uint8_t *quant_chroma_mat; +const uint8_t *scantable; + +void (*fdct)(FDCTDSPContext *fdsp, const uint16_t *src, + ptrdiff_t linesize, int16_t *block); +FDCTDSPContext fdsp; + +const AVFrame *pic; +int mb_width, mb_height; +int mbs_per_slice; +int num_chroma_blocks, chroma_factor; +int slices_width; +int slices_per_picture; +int pictures_per_frame; // 1 for progressive, 2 for interlaced +int cur_picture_idx; +int num_planes; +int bits_per_mb; +int force_quant; +int alpha_bits; +int warn; + +char *vendor; +int quant_sel; + +int frame_size_upper_bound; + +int profile; +const struct prores_profile *profile_info; + +int *slice_q; + +struct ProresThreadData *tdata; +} ProresContext; + +av_cold int ff_prores_kostya_encode_init(AVCodecContext *avctx, ProresContext *ctx, + enum AVPixelFormat pixfmt); + +uint8_t* ff_prores_kostya_write_frame_header(AVCodecContext *avctx, ProresContext *ctx, + uint8_t **orig_buf, int flags, + enum AVColorPrimaries color_primaries, + enum AVColorTransferCharacteristic color_trc, + enum AVColorSpace colorspace); + +uint8_t* ff_prores_kostya_write_picture_header(ProresContext *ctx, uint8_t *buf); + +FF_VISIBILITY_POP_HIDDEN + +#endif \ No newline at end of file -- 2.50.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avfilter/Makefile: Add dependencies for premultiply_dynamic filter (PR #20441)

2025-09-07 Thread mkver via ffmpeg-devel
l.o opencl.o \ -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/vaapi_encode: skip AVBR if HRD parameters are set (PR #20424)

2025-09-04 Thread cgutman via ffmpeg-devel
____ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] libavformat/rtsp.c:fix warning:‘%s’ directive output may be truncated (PR #20443)

2025-09-05 Thread caifan via ffmpeg-devel
off, i = 0; i < rt->nb_rtsp_streams; ++i) { -char transport[MAX_URL_SIZE]; +char transport[MAX_URL_SIZE - 13]; /* * WMS serves all UDP data over a single connection, the RTX, which -- 2.49.1 _______ ffmpeg-devel mai

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: allow low latency RC with HEVC on Apple Silicon (PR #20453)

2025-09-05 Thread cgutman via ffmpeg-devel
D_HEVC))) { CFDictionarySetValue(enc_info, compat_keys.kVTVideoEncoderSpecification_EnableLowLatencyRateControl, kCFBooleanTrue); -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/aarch64/vvc: Implement dmvr_h_8 (PR #20451)

2025-09-05 Thread welder via ffmpeg-devel
16 - 8) +b.ne12b +ret +endfunc + function ff_vvc_dmvr_hv_8_neon, export=1 tmp0.req x7 tmp1.req x8 -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an

[FFmpeg-devel] [PATCH 3/3] lavc: implement a Vulkan-based prores encoder

2025-09-04 Thread IndecisiveTurtle via ffmpeg-devel
From: IndecisiveTurtle Adds a vulkan implementation of the reference prores kostya encoder. Provides about 3-4x speedup over the CPU code --- configure |1 + libavcodec/Makefile |1 + libavcodec/allcodecs.c

[FFmpeg-devel] [PATCH 1/3] vulkan: Support samplerless images

2025-09-04 Thread IndecisiveTurtle via ffmpeg-devel
if (desc[i].type == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE || desc[i].type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE) { if (desc[i].mem_layout) { int len = strlen(desc[i].mem_layout); if (desc[i].mem_layout[len - 1] == 'i' &&

[FFmpeg-devel] [PATCH] avformat/mov: Remove unused variable (PR #20434)

2025-09-04 Thread mkver via ffmpeg-devel
et_tag_id("Orientation"); -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] Replace uxtl with umull in dmvr_hv_8 (PR #20442)

2025-09-04 Thread welder via ffmpeg-devel
v6.8h, v4.8b, v0.8b +umlal v6.8h, v5.8b, v1.8b urshr v6.4h, v6.4h, #(8 - 6) str d6, [x13], #8 -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email

[FFmpeg-devel] [PATCH] avcodec/cbrt_table: use dynamic buffer instead of static array (PR #20392)

2025-09-01 Thread yibofang via ffmpeg-devel
AAC_RENAME(ff_cbrt_tab)[i] = CBRT(cbrt_tab_dbl[i]); + +av_free(cbrt_tab_dbl); } } -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/mfenc: fix memory leak with D3D11 input surfaces (PR #20383)

2025-08-31 Thread cgutman via ffmpeg-devel
mf(&c->functions, &c->mft); -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] [GSoC 25] lavc: add a shader-based Prores hwaccel (PR #20381)

2025-08-31 Thread averne via ffmpeg-devel
PR #20381 opened by averne URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20381 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20381.patch The first few commits prepare the ground for the addition of the actual hwaccel, in the last commit. Provisionary benchmark: - AMD Radeon 6700XT: 1

[FFmpeg-devel] [PATCH] avcodec/mfenc: add low_latency encoder parameter (PR #20384)

2025-08-31 Thread cgutman via ffmpeg-devel
quot;, "Low latency mode", OFFSET(opt_enc_lowlatency), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, VE}, {NULL} }; -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avfilter/vf_frei0r: fix time not being passed in seconds (PR #20379)

2025-08-31 Thread breunigs via ffmpeg-devel
4, 4,1, 307200, 0x9c203210 -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] feature/classify_neon (PR #20377)

2025-08-31 Thread george.zaguri via ffmpeg-devel
eight, vb_pos, (int16_t*)gradient_tmp); +FUNC(ff_alf_classify)(class_idx, transpose_idx, _src, _src_stride, width, height, vb_pos, (int16_t*)gradient_tmp); } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/cbrt_tablegen: Avoid static array used only once (PR #20404)

2025-09-02 Thread mkver via ffmpeg-devel
dx; idx2 < TMP_LUT_SIZE; idx2 += i) + tmp_lut[idx2] *= cbrt_val; + } +} +} diff --git a/libavcodec/cbrt_tablegen_template.c b/libavcodec/cbrt_tablegen_template.c index 06ae152f71..4f6aa7e484 100644 --- a/libavcodec/cbrt_tablegen_template.c +++ b/libavcodec/cbrt_tablegen_template.c @@ -24,6 +24,7 @@ #define BUILD_TABLES 1 #include "libavutil/tablegen.h" #include "cbrt_tablegen.h" +#include "cbrt_tablegen_common.c" #include "tableprint.h" int main(void) -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] Re: [PATCH] doc/examples/vaapi_encode: fix invalid check on fwrite (PR #20396)

2025-09-02 Thread mypopy--- via ffmpeg-devel
On Tue, Sep 2, 2025 at 6:13 PM Zhao Zhili via ffmpeg-devel wrote: > > PR #20396 opened by Zhao Zhili (quink) > URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20396 > Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20396.patch > > Firstly, the order of the parame

[FFmpeg-devel] [PATCH] avformat/avformat: Make AVFMT_FLAG_ID3V2_AUTO private (PR #20419)

2025-09-03 Thread mkver via ffmpeg-devel
pters(s, id3v2_extra_meta)) < 0) +goto close; +if ((ret = ff_id3v2_parse_priv(s, id3v2_extra_meta)) < 0) + goto close; ff_id3v2_free_extra_meta(&id3v2_extra_meta); } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] WIP: libavcodec/riscv: add RVV optimized idct_32x32_8 and idct_16x16_8 for HEVC (PR #20426)

2025-09-03 Thread CheryDan via ffmpeg-devel
pth) { +case 8: +RVV_FNASSIGN(c->put_hevc_qpel, 0, 0, pel_pixels, rvv_128); +RVV_FNASSIGN(c->put_hevc_epel, 0, 0, pel_pixels, rvv_128); +break; +default: +break; + }

[FFmpeg-devel] [PATCH] Fix: change integer (PR #20427)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
&format_info, sizeof(format_info { -av_log(avctx, AV_LOG_ERROR, "Failed to query format plane count: 0x%x\n", hr); +av_log(avctx, AV_LOG_ERROR, "Failed to query format plane count: 0x%lx\n", hr); err = AVERROR_EXTERNAL; goto fail; } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] Fix: undefined reference to `ff_lavf_cbs_type_av1' (PR #20428)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
#define CBS_PREFIX lavf_cbs #define CBS_WRITE 0 #define CBS_TRACE 0 +#define CBS_AV1 0 #define CBS_H264 0 #define CBS_H265 0 #define CBS_H266 0 -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] Fix: change integer (PR #20429)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
x\n", hr); +av_log(avctx, AV_LOG_ERROR, "Failed to query format plane count: 0x%lx\n", hr); err = AVERROR_EXTERNAL; goto fail; } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avformat/libopenmpt: implement file reading callbacks

2025-09-04 Thread Paper via ffmpeg-devel
VERROR_INVALIDDATA; +return AVERROR_INVALIDDATA; #endif +ret = openmpt_module_set_render_param(openmpt->module, +OPENMPT_MODULE_RENDER_INTERPOLATIONFILTER_LENGTH, +openmpt->interp); +if (!ret) { +av_log(s, AV_LOG_ERROR, "Invalid interpolation setting: %d\n", openmpt->interp); +return AVERROR(EINVAL); +} + if (openmpt->subsong >= openmpt_module_get_num_subsongs(openmpt->module)) { av_log(s, AV_LOG_ERROR, "Invalid subsong index: %d\n", openmpt->subsong); return AVERROR(EINVAL); -- 2.51.0 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avutil/hwcontext_d3d12va: added resource and heap flags to DeviceContext (PR #20437)

2025-09-04 Thread jianhuaw via ffmpeg-devel
9715076 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 60 -#define LIBAVUTIL_VERSION_MINOR 12 +#define LIBAVUTIL_VERSION_MINOR 13 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBA

[FFmpeg-devel] [PATCH] WIP:Fix function file_open,file_read,file_write,file_close,file_seek conflict with Nuttx (PR #20435)

2025-09-04 Thread caifan via ffmpeg-devel
*displaymatrix); +#define file_read ff_file_read /* read file contents into a string */ char *file_read(const char *filename); -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/pcm_tablegen: Fix hardcoded-tables if alaw,mulaw,vidc codecs disabled (PR #20436)

2025-09-04 Thread mkver via ffmpeg-devel
law); +#endif +#if CONFIG_PCM_MULAW_ENCODER +pcm_ulaw_tableinit(); WRITE_ARRAY("static const", uint8_t, linear_to_ulaw); +#endif +#if CONFIG_PCM_VIDC_ENCODER +pcm_vidc_tableinit(); WRITE_ARRAY("static const", uint8_t, linear_to_vidc); +#endif return 0; } -- 2.49.1 _

[FFmpeg-devel] [PATCH] libavcodec/v4l2_buffers.c:warning: "USEC_PER_SEC" redefined (PR #20430)

2025-09-04 Thread caifan via ffmpeg-devel
2m.h" +#ifndef USEC_PER_SEC #define USEC_PER_SEC 100 +#endif + static AVRational v4l2_timebase = { 1, USEC_PER_SEC }; static inline V4L2m2mContext *buf_to_m2mctx(V4L2Buffer *buf) -- 2.49.1 ___________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg

[FFmpeg-devel] [PATCH] libavformat/vorbiscomment.c:fix warning:‘%03d’directive output may be truncated (PR #20433)

2025-09-04 Thread caifan via ffmpeg-devel
int h, m, s, ms; s = av_rescale(chp->start, chp->time_base.num, chp->time_base.den); -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] swscale/ops: Fix linking with x86 assembly disabled (PR #20432)

2025-09-04 Thread mkver via ffmpeg-devel
uot;libavutil/avassert.h" -#include +#include "libavutil/bswap.h" #include "libavutil/rational.h" #include "ops.h" diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c index 8704f77227..3b5a060f64 100644 --- a/libswscale/x86/ops.c +++ b/libswscale/x86/ops.c

[FFmpeg-devel] [PATCH] avutil/hwcontext_drm: fix mapping when dst format is unset (PR #20425)

2025-09-03 Thread cgutman via ffmpeg-devel
gt;sw_format != dst->format) return AVERROR(ENOSYS); err = drm_map_frame(hwfc, dst, src, flags); -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/amfenc: avoid unnecessary output delay in low delay mode (PR #20473)

2025-09-08 Thread cgutman via ffmpeg-devel
gt;encoded_frame + max_b_frames + 1) // too soon to poll +if(ctx->submitted_frame <= ctx->encoded_frame + output_delay) // too soon to poll return ret; } } -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] fate/prores: Fix missing dependency (PR #20465)

2025-09-08 Thread averne via ffmpeg-devel
TER) += $(FATE_PRORES) fate-prores: $(FATE_PRORES) -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/d3d12va_encode: texture array support for H264 (PR #20475)

2025-09-09 Thread ArazIusubov via ffmpeg-devel
quot;, 32) }, +{ LEVEL("4",40) }, +{ LEVEL("4.1", 41) }, +{ LEVEL("4.2", 42) }, +{ LEVEL("5",50) }, +{ LEVEL("5.1", 51) }, +{ LEVEL("5.2", 52) }, +{ LEVEL("6",60) }, +{ LEVEL("6.1", 61) }, +{ LEVEL("6.2"

[FFmpeg-devel] [PATCH] tests/checkasm/sw_ops: Avoid 1 << 32 (PR #20515)

2025-09-13 Thread mkver via ffmpeg-devel
pat), UINT32_MAX >> (32 - total), 1, num, type, type, { .op = SWS_OP_UNPACK, .type = type, .pack = pack, -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avfilter/vf_libplacebo: clear linear target before use (PR #20486)

2025-09-10 Thread ronag via ffmpeg-devel
/* Draw first frame opaque, others with blending */ -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/aacenc: add high energy check to exclude unsuitable bands from PNS (PR #20521)

2025-09-14 Thread Agent45 via ffmpeg-devel
reshold*thr_mult*freq_boost || + spread < spread_threshold || + min_energy < pns_transient_energy_r * max_energy) { sce->can_pns[w*16+g] = 0; } else { sce->can_pns[w*16+g] = 1; -- 2.49.1 _____

[FFmpeg-devel] [PATCH] avcodec/aarch64/vvc: Optimize dmvr_hv_10 (PR #20517)

2025-09-14 Thread welder via ffmpeg-devel
v16.4h, v17.4s str d16, [x14], #8 4: -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/rkmppdec: Don't fill the decoder in low-delay mode (PR #20518)

2025-09-14 Thread cgutman via ffmpeg-devel
eslots > 1 && !decoder->eos_reached && !(avctx->flags & AV_CODEC_FLAG_LOW_DELAY)) return AVERROR(EAGAIN); } -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/aarch64/vvc: Unroll vvc_bdof_grad_filter_8x_neon (PR #20519)

2025-09-14 Thread welder via ffmpeg-devel
.8h}, [gv0], #32 + +subsheight, height, #1 +st1 {v26.8h,v27.8h}, [gv1], #32 + +b.ne16b +ret + .unreq gh0 .unreq gh1 .unreq gv0 -- 2.49.1 _______ ffmpeg-devel mailing list -- ffmpeg-de

[FFmpeg-devel] [PATCH] swresample/swresample_internal: Use union for float, int matrix (PR #20505)

2025-09-12 Thread mkver via ffmpeg-devel
ix_any_func Signed-off-by: Andreas Rheinhardt --- libswresample/rematrix_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c index b70e7489b0..450a276663 100644 --- a/libswresample/rematrix_template.c +++ b/libswresample/rematrix_template.c @@ -105,7 +105,7 @@ static void RENAME(mix8to2)(uint8_t *const *out_, const uint8_t *const *in_, } } -static mix_any_func_type *RENAME(get_mix_any_func)(SwrContext *s) +static mix_any_func_type *RENAME(get_mix_any_func)(const SwrContext *s) { if ( !av_channel_layout_compare(&s->out_ch_layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO) && ( !av_channel_layout_compare(&s->in_ch_layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1) -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/bsf/noise: Avoid allocation for string (PR #20506)

2025-09-12 Thread mkver via ffmpeg-devel
lt; 0) { -av_log(ctx, AV_LOG_ERROR, "Error in parsing expr for amount: %s\n", s->amount_str); +av_log(ctx, AV_LOG_ERROR, "Error in parsing expr for amount: %s\n", amount_str); return ret; } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] swscale/x86/ops: Fix leak (PR #20507)

2025-09-12 Thread mkver via ffmpeg-devel
ree = SIZE > 2 ? av_free : NULL, \ +.free = (1 << SIZE) > 2 ? av_free : NULL, \ .dither_size = SIZE, \ ); -- 2.49.1 _________

[FFmpeg-devel] [PATCH] avcodec: Add av_cold to flush,init,close functions missing it (PR #20509)

2025-09-12 Thread mkver via ffmpeg-devel
PR #20509 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20509 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20509.patch >From 343b38b29fe048358237807660224d8074b664df Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 5 Sep 2025 01:09:49 +0200 Subject: [PATC

[FFmpeg-devel] [PATCH] avcodec/vvc/data: Mark tables as hidden (PR #20510)

2025-09-12 Thread mkver via ffmpeg-devel
EC_VVC_DATA_H */ -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] swresample/resample, soxr_resample: Use designated initializers (PR #20508)

2025-09-13 Thread mkver via ffmpeg-devel
9.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/rkmppdec: Close decoder generically on init failure (PR #20512)

2025-09-13 Thread mkver via ffmpeg-devel
_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_NOT_INIT_THREADSAFE, \ }; RKMPP_DEC(h264, AV_CODEC_ID_H264, "h264_mp4toannexb") -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] ff-tmp-exif-clear (PR #20513)

2025-09-13 Thread michaelni via ffmpeg-devel
t->size, required_size); +av_fast_mallocz(&ret->entries, &ret->size, required_size); if (!ret->entries) goto fail; } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/mjpegdec: Explain buf_size/width/height check (PR #20495)

2025-09-11 Thread michaelni via ffmpeg-devel
s->buf_size * 4LL) return AVERROR_INVALIDDATA; -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] lavc/librsvgdec: Fix compilation with librsvg 2.50.3. (PR #20389)

2025-09-01 Thread Lastique via ffmpeg-devel
ff_get_buffer(avctx, frame, 0); if (ret < 0) -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] ffprobe: add support for printing downmix frame side data (PR #20401)

2025-09-02 Thread ngaullier via ffmpeg-devel
print_val_double("surround_mix_level_ltrt", downmix_info->surround_mix_level_ltrt, avtext_unit_decibel_str); +print_val_double("lfe_mix_level", downmix_info->lfe_mix_level, avtext_unit_decibel_str); +av_bprint_finalize(&pbuf, NULL); +} + static void print_displaymatrix(AVTextForma

[FFmpeg-devel] [PATCH] Fix: change integer %zu (PR #20408)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
n", l - s->layers, s->poc); return 0; -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avformat/aviobuf: Don't pretend to support avio_context_free(NULL) (PR #20416)

2025-09-03 Thread mkver via ffmpeg-devel
av_freep(&s->protocol_whitelist); av_freep(&s->protocol_blacklist); } -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] Re: [PATCH] doc/examples/vaapi_encode: fix invalid check on fwrite (PR #20396)

2025-09-03 Thread mypopy--- via ffmpeg-devel
On Wed, Sep 3, 2025 at 2:45 PM Zhao Zhili wrote: > > > On Sep 3, 2025, at 11:30, mypopy--- via ffmpeg-devel < > [email protected]> wrote: > > On Tue, Sep 2, 2025 at 6:13 PM Zhao Zhili via ffmpeg-devel > wrote: > > > PR #20396 opened by Zhao Zhili (q

[FFmpeg-devel] [PATCH] avcodec/mpegaudiodec: allocate tables dynamically to reduce .bss (PR #20393)

2025-09-03 Thread yibofang via ffmpeg-devel
+ff_table_4_3_exp = (int8_t *)av_calloc(TABLE_4_3_SIZE, sizeof(int8_t)); +ff_table_4_3_value = (uint32_t *)av_calloc(TABLE_4_3_SIZE, sizeof(uint32_t)); +#endif + for (int i = 1; i < TABLE_4_3_SIZE; i++) { double f, fm; int e, m; -- 2.49.1 _______

[FFmpeg-devel] [PATCH] Double filters.h removed (PR #20409)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
til/vulkan.c +++ b/libavutil/vulkan.c @@ -2279,7 +2279,7 @@ static int create_shader_object(FFVulkanContext *s, FFVulkanShader *shd, if (vk->GetShaderBinaryDataEXT(s->hwctx->act_dev, shd->object, &shader_size, NULL) == VK_SUCCESS) -av_log(s,

[FFmpeg-devel] [PATCH] Double filters.h removed (PR #20410)

2025-09-03 Thread Jamaika1 via ffmpeg-devel
ude "avfilter.h" #include "drawutils.h" #include "filters.h" -#include "filters.h" #include "formats.h" #include "video.h" -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avutil/version: bump minor after recent change (PR #20418)

2025-09-03 Thread jianhuaw via ffmpeg-devel
INT(LIBAVUTIL_VERSION_MAJOR, \ -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/mjpegdec: Avoid mixing return value and error code, avoid branch (PR #20497)

2025-09-11 Thread mkver via ffmpeg-devel
ts(&s->gb, 8); diff --git a/libavcodec/mxpegdec.c b/libavcodec/mxpegdec.c index 9a5110a814..8861a3969d 100644 --- a/libavcodec/mxpegdec.c +++ b/libavcodec/mxpegdec.c @@ -179,6 +179,12 @@ static int mxpeg_check_dimensions(MXpegDecodeContext *s, MJpegDecodeContext *jpg return AVERROR(EINVAL); } } +if (reference_ptr->width != jpg->picture_ptr->width || +reference_ptr->height != jpg->picture_ptr->height || +reference_ptr->format != jpg->picture_ptr->format) { +av_log(jpg->avctx, AV_LOG_ERROR, "Reference mismatching\n"); +return AVERROR_INVALIDDATA; +} } return 0; -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/Makefile: Add adpcm_vima->adpcm.o dependency (PR #20498)

2025-09-11 Thread mkver via ffmpeg-devel
data.o OBJS-$(CONFIG_ADPCM_XA_DECODER) += adpcm.o adpcm_data.o OBJS-$(CONFIG_ADPCM_XMD_DECODER) += adpcm.o adpcm_data.o OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o adpcm_data.o -- 2.49.1 ___ ffmpeg-devel mailing list -- ffmpeg

[FFmpeg-devel] [PATCH] avformat/flvenc: event_flags is a variable of AVStream (PR #20499)

2025-09-11 Thread jiangjie via ffmpeg-devel
av_rescale(ts, AV_TIME_BASE, 1000), -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] fftools/cmdutils: Rename file_read to ff_file_read to avoid symbol conflict (PR #20500)

2025-09-11 Thread caifan via ffmpeg-devel
otation(const int32_t *displaymatrix); /* read file contents into a string */ -char *file_read(const char *filename); +char *ff_file_read(const char *filename); /* Remove keys in dictionary b from dictionary a */ void remove_avoptions(AVDictionary **a, AVDictionary *b); -- 2.49.1 ____

[FFmpeg-devel] [PATCH] Cleanup packet-level BOS/EOS logic. (PR #20640)

2025-10-01 Thread toots via ffmpeg-devel
l_duration = 0; diff --git a/libavformat/oggparsevp8.c b/libavformat/oggparsevp8.c index 676b3a0f8e..679ef64d76 100644 --- a/libavformat/oggparsevp8.c +++ b/libavformat/oggparsevp8.c @@ -27,7 +27,7 @@ #define VP8_HEADER_SIZE 26 -static int vp8_header(AVFormatContext *s, int idx) +static int vp8_heade

[FFmpeg-devel] Re: [PATCH v2] ogg/vorbis: implement header packet skip in chained ogg bitstreams.

2025-10-01 Thread Yalda via ffmpeg-devel
20327 is merged, thanks. On Mon, Sep 29, 2025 at 1:24 PM Yalda wrote: > > Romain, > > Thank you for the clarity. > I approved. Will push in ~48 hours if there is no more concerns here. _______ ffmpeg-devel mailing list -- ffmpeg-deve

[FFmpeg-devel] [PATCH] Allow the user to limit metadata length and bext coding history (PR #20642)

2025-10-02 Thread michaelni via ffmpeg-devel
0) { av_free(coding_history); return ret; } -coding_history[size] = 0; +if (read_len < size) +avio_skip(s->pb, size - read_len); + +coding_history[read_len] = 0; if ((ret = av_dict_set(&s->metadata, "coding_histor

[FFmpeg-devel] [PATCH] avfilter_flite_voicefile_support (PR #20644)

2025-10-03 Thread Y0SH1M4S73R via ffmpeg-devel
array_add_nofree(&loaded_voice_entries, &loaded_voice_entry_capacity, entry) < 0) +if (av_dynarray_add_nofree(&loaded_voice_entries, &loaded_voice_entry_capacity, entry) < 0) return AVERROR(ENOMEM); loaded_voice_entry_count++; } else { for (int i = 0; i < loaded_voice_entry_capacity; i++) { -if(!loaded_voice_entries[i]) { +if (!loaded_voice_entries[i]) { loaded_voice_entries[i] = entry; loaded_voice_entry_count++; break; -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avfilter: add raw PCM dump between AVFilter links (PR #20715)

2025-10-17 Thread yibofang via ffmpeg-devel
int sample_rate;///< samples per second AVChannelLayout ch_layout; ///< channel layout of current buffer (see libavutil/channel_layout.h) +intdump_pcm; ///< flag to dump pcm +int*dump_pcm_fds; ///< dump files +unsigned nb_dump_pcm_fds; ///< number of dump file + /** * Define the time base used by the PTS of the frames/samples * which will pass through this link. -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] libavformat/dashenc: preserve metadata from container and streams (PR #20594)

2025-10-17 Thread damitha via ffmpeg-devel
PR #20594 opened by damitha URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20594 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20594.patch Currently metadata is dropped at the container and stream level when dash muxer is used. This is fixing that >From 7b3b20a1e8719ff922e509623f3763

[FFmpeg-devel] [PATCH] avcodec/vlc: Clear val8/16 in vlc_multi_gen() (PR #20673)

2025-10-17 Thread michaelni via ffmpeg-devel
if (is16bit) table[j].val16[0] = single->table[j].sym; else -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] Miscellaneous aacdec_usac cleanups (PR #20627)

2025-10-17 Thread Lynne via ffmpeg-devel
c->core_frame_len; +N >>= 3; ret = decode_spectrum_ac(ac, sce->coeffs + win*128, gb, &ue->ac, arith_reset_flag && (win == 0), lg, N); -- 2.49.1 _______ ffmpeg-devel m

[FFmpeg-devel] [PATCH] vf_blend (PR #20634)

2025-10-17 Thread mkver via ffmpeg-devel
case BLEND_GEOMETRIC:param->blend = blend_geometric_##nbits##bit; break; \ +case BLEND_HARMONIC: param->blend = blend_harmonic_##nbits##bit; break; \ case BLEND_BLEACH: param->blend = blend_bleach_##depth##bit; break; \ case BLEND_STAIN: param-&g

[FFmpeg-devel] [PATCH] WIP: avfilter: add Bungee audio stretch filter (PR #20697)

2025-10-17 Thread kupix via ffmpeg-devel
, 2 deletions(-) diff --git a/Changelog b/Changelog index 9986e89452..42bfa1cd1d 100644 --- a/Changelog +++ b/Changelog @@ -7,6 +7,7 @@ version : - gfxcapture: Windows.Graphics.Capture based window/monitor capture - hxvs demuxer for HXVS/HXVT IP camera format - MPEG-H 3D Audio decoding via mpeghdec +- Bungee and Bungee Pro audio stretch filters version 8.0: @@ -45,7 +46,6 @@ version 8.0: - ffprobe -codec option - HDR10+ metadata passthrough when decoding/encoding with libaom-av1 -- Bungee audio stretch and pitch shift filter version 7.1: - Raw Captions with Time (RCWT) closed caption demuxer diff --git a/doc/filters.texi b/doc/filters.texi index 69afa5fc29..00189d41bf 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -4294,7 +4294,7 @@ Feed level (in Hz). @section bungee -Stretch audio timescale and/or modify pitch using Bungee Basic. +Stretch audio timescale and/or modify pitch using Bungee. This filter accepts the following parameters: @table @option @@ -4302,6 +4302,8 @@ This filter accepts the following parameters: Controls the speed or tempo of the output audio. The default value 1 will not change speed. @item pitch Sets a pitch adjustment as a frequency multiplier. The default value 1 will have no effect on pitch. +@item resample +Controls whether Bungee should apply any resampling necessary to change pitch on the input or output of the filter. @end table -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/x86/fpel: Port ff_put_pixels8_mmx() to SSE2 (PR #20706)

2025-10-17 Thread mkver via ffmpeg-devel
2); dsp->put_vc1_mspel_pixels_tab[0][0] = put_vc1_mspel_mc00_16_sse2; +dsp->put_vc1_mspel_pixels_tab[1][0] = put_vc1_mspel_mc00_8_sse2; dsp->avg_vc1_mspel_pixels_tab[0][0] = avg_vc1_mspel_mc00_16_sse2; } if (EXTERNAL_SSSE3(cpu_flags)) { -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avfilter: D3D12 scale video filter support (PR #20708)

2025-10-17 Thread ArazIusubov via ffmpeg-devel
const AVFilterPad scale_d3d12_inputs[] = { +{ + .name = "default", +.type = AVMEDIA_TYPE_VIDEO, +.filter_frame = scale_d3d12_filter_frame, +}, +}; + +static const AVFilterPad scale_d3d12_outputs[] = { +{ +.name = "default", +.type = AVMEDIA_TYPE_VIDEO, +.config_props = scale_d3d12_config_props, +}, +}; + +#define OFFSET(x) offsetof(ScaleD3D12Context, x) +#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) + +static const AVOption scale_d3d12_options[] = { +{ "width", "Output video width",OFFSET(w_expr), AV_OPT_TYPE_STRING,{.str = "iw"}, .flags = FLAGS }, +{ "height", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING,{.str = "ih"}, .flags = FLAGS }, +{ "format", "Output video pixel format", OFFSET(format), AV_OPT_TYPE_PIXEL_FMT, { .i64 = AV_PIX_FMT_NONE }, INT_MIN, INT_MAX, .flags=FLAGS }, +{ NULL } +}; + +AVFILTER_DEFINE_CLASS(scale_d3d12); + +const FFFilter ff_vf_scale_d3d12 = { +.p.name = "scale_d3d12", +.p.description= NULL_IF_CONFIG_SMALL("Scale video using Direct3D12"), +.priv_size= sizeof(ScaleD3D12Context), +.p.priv_class = &scale_d3d12_class, +.init = scale_d3d12_init, +.uninit = scale_d3d12_uninit, +FILTER_INPUTS(scale_d3d12_inputs), +FILTER_OUTPUTS(scale_d3d12_outputs), +FILTER_SINGLE_PIXFMT(AV_PIX_FMT_D3D12), +.p.flags = AVFILTER_FLAG_HWDEVICE, +.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, +}; -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] swscale/output: Fix unsigned cast position in yuv2* (PR #20698)

2025-10-17 Thread michaelni via ffmpeg-devel
, int V = 1 << 18; for (j = 0; j < lumFilterSize; j++) -Y += (unsigned)(lumSrc[j][i] * lumFilter[j]); +Y += lumSrc[j][i] * (unsigned)lumFilter[j]; for (j = 0; j < chrFilterSize; j++) -U += (unsigned)(chrUSrc[j][i] *

[FFmpeg-devel] [PATCH] h264qpel (PR #20645)

2025-10-17 Thread mkver via ffmpeg-devel
PR #20645 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20645 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20645.patch >From 549383606f01ac1cf481c0b69b923ed44fcb99d4 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 4 Oct 2025 07:29:35 +0200 Subject: [PATC

[FFmpeg-devel] [PATCH] avcodec/mjpegdec: Remove unnecessary reload (PR #20664)

2025-10-17 Thread mkver via ffmpeg-devel
code > MIN_CACHE_BITS - 16) -UPDATE_CACHE(re, &s->gb); - { int cache = GET_CACHE(re, &s->gb); int sign = (~cache) >> 31; -- 2.49.1 ___________ ffmpeg-devel mailing list -- [email protected]

[FFmpeg-devel] [PATCH] avcodec/x86/h263_loopfilter: Port loop filter to SSE2 (PR #20636)

2025-10-17 Thread mkver via ffmpeg-devel
declare_func(void, uint8_t *, int, int); for (size_t y = 0; y < 32; y++) for (size_t x = 0; x < 32; x++) -- 2.49.1 _______ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH] avcodec/pngenc: Mark unreachable default switch cases as such (PR #20641)

2025-10-02 Thread mkver via ffmpeg-devel
t;color_type = PNG_COLOR_TYPE_PALETTE; break; default: -return -1; +av_unreachable("Already checked via CODEC_PIXFMTS"); } s->bits_per_pixel = ff_png_get_nb_channels(s->color_type) * s->bit_depth; -- 2.49.1 ___

[FFmpeg-devel] [PATCH] avfilter/x86/vf_{pullup,spp}: Port functions to SSE2, SSSE3 (PR #20696)

2025-10-12 Thread mkver via ffmpeg-devel
se2 (const uint8_t *a, const uint8_t *b, ptrdiff_t s); +int ff_pullup_filter_comb_ssse3(const uint8_t *a, const uint8_t *b, ptrdiff_t s); +int ff_pullup_filter_var_sse2 (const uint8_t *a, const uint8_t *b, ptrdiff_t s); av_cold void ff_pullup_init_x86(PullupContext *s) { #if HAVE_X86ASM int cpu_flags = av_get_cpu_flags(); -if (EXTERNAL_MMX(cpu_flags)) { -s->diff = ff_pullup_filter_diff_mmx; -s->comb = ff_pullup_filter_comb_mmx; -s->var = ff_pullup_filter_var_mmx; +if (EXTERNAL_SSE2(cpu_flags)) { +s->diff = ff_pullup_filter_diff_sse2; +s->var = ff_pullup_filter_var_sse2; +} +if (EXTERNAL_SSSE3(cpu_flags)) { +s->comb = ff_pullup_filter_comb_ssse3; } #endif } -- 2.49.1 ___ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]

[FFmpeg-devel] [PATCH 1/3] avformat/whip whep: create rtc for common RTC code shared by whip and whep

2025-10-12 Thread baigao via ffmpeg-devel
--- libavformat/Makefile |2 +- libavformat/{whip.c => rtc.c} | 856 +--- libavformat/rtc.h | 220 ++ libavformat/whip.c| 1386 + 4 files changed, 264 insertions(+), 2200 deletions(-) copy libavformat/{whip

<    2   3   4   5   6   7   8   9   10   11   >