631 |
return; |
return; |
632 |
stop_conv_timer(); |
stop_conv_timer(); |
633 |
|
|
|
if ((pFrame->general & XVID_CHROMAOPT)) { |
|
|
image_chroma_optimize(&pEnc->queue[pEnc->queue_tail], |
|
|
pEnc->mbParam.width, pEnc->mbParam.height, pEnc->mbParam.edged_width); |
|
|
} |
|
|
|
|
634 |
pEnc->queue_size++; |
pEnc->queue_size++; |
635 |
pEnc->queue_tail = (pEnc->queue_tail + 1) % pEnc->mbParam.max_bframes; |
pEnc->queue_tail = (pEnc->queue_tail + 1) % pEnc->mbParam.max_bframes; |
636 |
} |
} |
850 |
} |
} |
851 |
stop_conv_timer(); |
stop_conv_timer(); |
852 |
|
|
|
if ((pFrame->general & XVID_CHROMAOPT)) { |
|
|
image_chroma_optimize(&pEnc->current->image, |
|
|
pEnc->mbParam.width, pEnc->mbParam.height, pEnc->mbParam.edged_width); |
|
|
} |
|
|
|
|
853 |
// queue input frame, and dequue next image |
// queue input frame, and dequue next image |
854 |
if (pEnc->queue_size > 0) |
if (pEnc->queue_size > 0) |
855 |
{ |
{ |
1238 |
return XVID_ERR_FORMAT; |
return XVID_ERR_FORMAT; |
1239 |
stop_conv_timer(); |
stop_conv_timer(); |
1240 |
|
|
|
if ((pFrame->general & XVID_CHROMAOPT)) { |
|
|
image_chroma_optimize(&pEnc->current->image, |
|
|
pEnc->mbParam.width, pEnc->mbParam.height, pEnc->mbParam.edged_width); |
|
|
} |
|
|
|
|
1241 |
if (pFrame->general & XVID_EXTRASTATS) |
if (pFrame->general & XVID_EXTRASTATS) |
1242 |
{ image_copy(&pEnc->sOriginal, &pEnc->current->image, |
{ image_copy(&pEnc->sOriginal, &pEnc->current->image, |
1243 |
pEnc->mbParam.edged_width, pEnc->mbParam.height); |
pEnc->mbParam.edged_width, pEnc->mbParam.height); |