[Ffmpeg-devel] [PATCH] add all and none options for partitions config

Limin Wang lance.lmwang
Mon Mar 26 07:03:12 CEST 2007


Hi,

* Michael Niedermayer <michaelni at gmx.at> [2007-03-24 18:52:11 +0100]:

> Hi
> 
> On Sat, Mar 24, 2007 at 09:53:41PM +0800, Limin Wang wrote:
> > Hi,
> > 
> > $subj, please review it. It'll helpful to configure partitions.
> 
> without checking ... doesnt 0 and -1 have the same effect?

Sorry, I have updated the patch to avoid the warning for int_max checking.


Thanks,
Limin
-------------- next part --------------
Index: libavcodec/utils.c
===================================================================
--- libavcodec/utils.c	(revision 8492)
+++ libavcodec/utils.c	(working copy)
@@ -705,6 +705,8 @@
 {"partp4x4", NULL, 0, FF_OPT_TYPE_CONST, X264_PART_P4X4, INT_MIN, INT_MAX, V|E, "partitions"},
 {"partp8x8", NULL, 0, FF_OPT_TYPE_CONST, X264_PART_P8X8, INT_MIN, INT_MAX, V|E, "partitions"},
 {"partb8x8", NULL, 0, FF_OPT_TYPE_CONST, X264_PART_B8X8, INT_MIN, INT_MAX, V|E, "partitions"},
+{"none", NULL, 0, FF_OPT_TYPE_CONST, 0, INT_MIN, INT_MAX, V|E, "partitions"},
+{"all", NULL, 0, FF_OPT_TYPE_CONST, ~0L, INT_MIN, INT_MAX, V|E, "partitions"},
 {"sc_factor", "multiplied by qscale for each frame and added to scene_change_score", OFFSET(scenechange_factor), FF_OPT_TYPE_INT, 6, 0, INT_MAX, V|E},
 {"mv0_threshold", NULL, OFFSET(mv0_threshold), FF_OPT_TYPE_INT, 256, 0, INT_MAX, V|E},
 {"ivlc", "intra vlc table", 0, FF_OPT_TYPE_CONST, CODEC_FLAG2_INTRA_VLC, INT_MIN, INT_MAX, V|E, "flags2"},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070326/c57eb863/attachment.pgp>



More information about the ffmpeg-devel mailing list