History

libpostproc: add pp=help support to print the help text via av_log()

Michael Niedermayer committed 14 years ago

Commit f1808e31 parent 7b4e1461 file · +9 −0Browse files

Unified · Split

libpostproc/postprocess.c+9−0
@@ -723,6 +723,15 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality) · 722 unmodified lines
723723 struct PPMode *ppMode;
724724 char *filterToken;
725725
726+ if (!strcmp(name, "help")) {
727+ const char *p;
728+ for (p = pp_help; strchr(p, '\n'); p = strchr(p, '\n') + 1) {
729+ av_strlcpy(temp, p, FFMIN(sizeof(temp), strchr(p, '\n') - p + 2));
730+ av_log(NULL, AV_LOG_INFO, "%s", temp);
731+ }
732+ return NULL;
733+ }
734+
726735 ppMode= av_malloc(sizeof(PPMode));
727736
728737 ppMode->lumMode= 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t