Mercurial > libavcodec.hg
comparison libxvidff.c @ 6665:c22932db0ebb libavcodec
Make Xvid wrapper use threads (with support for newest CVS Xvid only)
Patch by Thorsten Jordan ( tjordan macrosystem de )
author | superdump |
---|---|
date | Tue, 22 Apr 2008 20:21:21 +0000 |
parents | 48759bfbd073 |
children | 33d3c14d5a57 |
comparison
equal
deleted
inserted
replaced
6664:646a886bafe2 | 6665:c22932db0ebb |
---|---|
190 xvid_enc_create.height = x->ysize = avctx->height; | 190 xvid_enc_create.height = x->ysize = avctx->height; |
191 | 191 |
192 /* XviD can determine the proper profile to use */ | 192 /* XviD can determine the proper profile to use */ |
193 /* xvid_enc_create.profile = XVID_PROFILE_S_L3; */ | 193 /* xvid_enc_create.profile = XVID_PROFILE_S_L3; */ |
194 | 194 |
195 /* We don't use zones or threads */ | 195 /* We don't use zones */ |
196 xvid_enc_create.zones = NULL; | 196 xvid_enc_create.zones = NULL; |
197 xvid_enc_create.num_zones = 0; | 197 xvid_enc_create.num_zones = 0; |
198 xvid_enc_create.num_threads = 0; | 198 |
199 xvid_enc_create.num_threads = avctx->thread_count; | |
199 | 200 |
200 xvid_enc_create.plugins = plugins; | 201 xvid_enc_create.plugins = plugins; |
201 xvid_enc_create.num_plugins = 0; | 202 xvid_enc_create.num_plugins = 0; |
202 | 203 |
203 /* Initialize Buffers */ | 204 /* Initialize Buffers */ |