Mercurial > libavcodec.hg
comparison x264.c @ 2742:5bdc60634470 libavcodec
enable x264 multi-threading
author | mru |
---|---|
date | Mon, 30 May 2005 20:34:02 +0000 |
parents | dfa4d2773d13 |
children | cdf74a048614 |
comparison
equal
deleted
inserted
replaced
2741:d5ac91dafaa8 | 2742:5bdc60634470 |
---|---|
152 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; | 152 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; |
153 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; | 153 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; |
154 x4->params.i_fps_num = avctx->time_base.den; | 154 x4->params.i_fps_num = avctx->time_base.den; |
155 x4->params.i_fps_den = avctx->time_base.num; | 155 x4->params.i_fps_den = avctx->time_base.num; |
156 | 156 |
157 x4->params.i_threads = avctx->thread_count; | |
158 | |
157 x4->enc = x264_encoder_open(&x4->params); | 159 x4->enc = x264_encoder_open(&x4->params); |
158 if(!x4->enc) | 160 if(!x4->enc) |
159 return -1; | 161 return -1; |
160 | 162 |
161 avctx->coded_frame = &x4->out_pic; | 163 avctx->coded_frame = &x4->out_pic; |