mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
postproc/postprocess_template: split first part of block loop
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2a9b9579ab
commit
d9e3fe8c22
@ -3471,11 +3471,9 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
|||||||
for(x=0; x<width; ){
|
for(x=0; x<width; ){
|
||||||
int startx = x;
|
int startx = x;
|
||||||
int endx = FFMIN(width, x+32);
|
int endx = FFMIN(width, x+32);
|
||||||
|
uint8_t *dstBlockStart = dstBlock;
|
||||||
|
const uint8_t *srcBlockStart = srcBlock;
|
||||||
for(; x < endx; x+=BLOCK_SIZE){
|
for(; x < endx; x+=BLOCK_SIZE){
|
||||||
const int stride= dstStride;
|
|
||||||
av_unused uint8_t *tmpXchg;
|
|
||||||
|
|
||||||
|
|
||||||
#if TEMPLATE_PP_MMXEXT && HAVE_6REGS
|
#if TEMPLATE_PP_MMXEXT && HAVE_6REGS
|
||||||
/*
|
/*
|
||||||
prefetchnta(srcBlock + (((x>>2)&6) + 5)*srcStride + 32);
|
prefetchnta(srcBlock + (((x>>2)&6) + 5)*srcStride + 32);
|
||||||
@ -3522,6 +3520,16 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
|||||||
/* else if(mode & CUBIC_BLEND_DEINT_FILTER)
|
/* else if(mode & CUBIC_BLEND_DEINT_FILTER)
|
||||||
RENAME(deInterlaceBlendCubic)(dstBlock, dstStride);
|
RENAME(deInterlaceBlendCubic)(dstBlock, dstStride);
|
||||||
*/
|
*/
|
||||||
|
dstBlock+=8;
|
||||||
|
srcBlock+=8;
|
||||||
|
}
|
||||||
|
|
||||||
|
dstBlock = dstBlockStart;
|
||||||
|
srcBlock = srcBlockStart;
|
||||||
|
|
||||||
|
for(x = startx; x < endx; x+=BLOCK_SIZE){
|
||||||
|
const int stride= dstStride;
|
||||||
|
av_unused uint8_t *tmpXchg;
|
||||||
|
|
||||||
if(isColor){
|
if(isColor){
|
||||||
QP= QPptr[x>>qpHShift];
|
QP= QPptr[x>>qpHShift];
|
||||||
|
Loading…
Reference in New Issue
Block a user