Commit 151c5791 authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

png: reduce encoding time

(cherry picked from commit f71713fb624d510b88b8dda460fa927bc7c079e1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e0c63aa8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment