[vlc-commits] png: reduce encoding time
Tristan Matthews
git at videolan.org
Wed May 6 02:45:41 CEST 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue May 5 20:41:24 2015 -0400| [f71713fb624d510b88b8dda460fa927bc7c079e1] | committer: Tristan Matthews
png: reduce encoding time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f71713fb624d510b88b8dda460fa927bc7c079e1
---
modules/codec/png.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 33f7515..36ed444 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -372,6 +372,11 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
return NULL;
}
+ /* Disable filtering to speed-up encoding */
+ png_set_filter( p_png, 0, PNG_NO_FILTERS );
+ /* 1 == best speed */
+ png_set_compression_level( p_png, 1 );
+
/* save buffer start */
uint8_t *p_start = p_block->p_buffer;
size_t i_start = p_block->i_buffer;
More information about the vlc-commits
mailing list