Skip to content

Commit

Permalink
Merge branch 'master' into submit_replace_fopen
Browse files Browse the repository at this point in the history
  • Loading branch information
softworkz committed May 25, 2022
2 parents a5266db + 8d788c5 commit b43ed59
Show file tree
Hide file tree
Showing 34 changed files with 682 additions and 399 deletions.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ version 5.1:
- pixelize video filter
- colormap video filter
- colorchart video source filter
- blurdetect filter
- multiply video filter
- PGS subtitle frame merge bitstream filter
- blurdetect filter


version 5.0:
Expand Down
29 changes: 29 additions & 0 deletions doc/filters.texi
Original file line number Diff line number Diff line change
Expand Up @@ -8131,6 +8131,35 @@ tblend=all_mode=grainextract
@subsection Commands
This filter supports same @ref{commands} as options.

@anchor{blockdetect}
@section blockdetect

Determines blockiness of frames without altering the input frames.

Based on Remco Muijs and Ihor Kirenko: "A no-reference blocking artifact measure for adaptive video processing." 2005 13th European signal processing conference.

The filter accepts the following options:

@table @option
@item period_min
@item period_max
Set minimum and maximum values for determining pixel grids (periods).
Default values are [3,24].

@item planes
Set planes to filter. Default is first only.
@end table

@subsection Examples

@itemize
@item
Determine blockiness for the first plane and search for periods within [8,32]:
@example
blockdetect=period_min=8:period_max=32:planes=1
@end example
@end itemize

@anchor{blurdetect}
@section blurdetect

Expand Down
7 changes: 6 additions & 1 deletion ffbuild/common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ $(foreach VAR,$(SILENT),$(eval override $(VAR) = @$($(VAR))))
$(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL))
endif

# Prepend to a recursively expanded variable without making it simply expanded.
PREPEND = $(eval $(1) = $(patsubst %,$$(%), $(2)) $(value $(1)))

# NASM requires -I path terminated with /
IFLAGS := -I. -I$(SRC_LINK)/
CPPFLAGS := $(IFLAGS) $(CPPFLAGS)
Expand All @@ -37,7 +40,9 @@ CCFLAGS = $(CPPFLAGS) $(CFLAGS)
OBJCFLAGS += $(EOBJCFLAGS)
OBJCCFLAGS = $(CPPFLAGS) $(CFLAGS) $(OBJCFLAGS)
ASFLAGS := $(CPPFLAGS) $(ASFLAGS)
CXXFLAGS := $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS)
# Use PREPEND here so that later (target-dependent) additions to CPPFLAGS
# end up in CXXFLAGS.
$(call PREPEND,CXXFLAGS, CPPFLAGS CFLAGS)
X86ASMFLAGS += $(IFLAGS:%=%/) -I$(<D)/ -Pconfig.asm

HOSTCCFLAGS = $(IFLAGS) $(HOSTCPPFLAGS) $(HOSTCFLAGS)
Expand Down

0 comments on commit b43ed59

Please sign in to comment.