Mercurial > libavcodec.hg
comparison imgconvert.c @ 1044:c6b3af81d79e libavcodec
100000l
author | michaelni |
---|---|
date | Wed, 29 Jan 2003 22:44:34 +0000 |
parents | 19de1445beb2 |
children | 3f316a471019 |
comparison
equal
deleted
inserted
replaced
1043:747790b270cf | 1044:c6b3af81d79e |
---|---|
1292 lum++; | 1292 lum++; |
1293 dst++; | 1293 dst++; |
1294 } | 1294 } |
1295 #else | 1295 #else |
1296 | 1296 |
1297 { | |
1298 mmx_t rounder; | |
1299 rounder.uw[0]=4; | |
1300 rounder.uw[1]=4; | |
1301 rounder.uw[2]=4; | |
1302 rounder.uw[3]=4; | |
1303 pxor_r2r(mm7,mm7); | |
1304 movq_m2r(rounder,mm6); | |
1305 } | |
1297 for (;size > 3; size-=4) { | 1306 for (;size > 3; size-=4) { |
1298 DEINT_LINE_LUM | 1307 DEINT_LINE_LUM |
1299 lum_m4+=4; | 1308 lum_m4+=4; |
1300 lum_m3+=4; | 1309 lum_m3+=4; |
1301 lum_m2+=4; | 1310 lum_m2+=4; |
1326 lum_m1++; | 1335 lum_m1++; |
1327 lum++; | 1336 lum++; |
1328 } | 1337 } |
1329 #else | 1338 #else |
1330 | 1339 |
1340 { | |
1341 mmx_t rounder; | |
1342 rounder.uw[0]=4; | |
1343 rounder.uw[1]=4; | |
1344 rounder.uw[2]=4; | |
1345 rounder.uw[3]=4; | |
1346 pxor_r2r(mm7,mm7); | |
1347 movq_m2r(rounder,mm6); | |
1348 } | |
1331 for (;size > 3; size-=4) { | 1349 for (;size > 3; size-=4) { |
1332 DEINT_INPLACE_LINE_LUM | 1350 DEINT_INPLACE_LINE_LUM |
1333 lum_m4+=4; | 1351 lum_m4+=4; |
1334 lum_m3+=4; | 1352 lum_m3+=4; |
1335 lum_m2+=4; | 1353 lum_m2+=4; |
1408 pix_fmt != PIX_FMT_YUV444P) | 1426 pix_fmt != PIX_FMT_YUV444P) |
1409 return -1; | 1427 return -1; |
1410 if ((width & 3) != 0 || (height & 3) != 0) | 1428 if ((width & 3) != 0 || (height & 3) != 0) |
1411 return -1; | 1429 return -1; |
1412 | 1430 |
1413 #ifdef HAVE_MMX | |
1414 { | |
1415 mmx_t rounder; | |
1416 rounder.uw[0]=4; | |
1417 rounder.uw[1]=4; | |
1418 rounder.uw[2]=4; | |
1419 rounder.uw[3]=4; | |
1420 pxor_r2r(mm7,mm7); | |
1421 movq_m2r(rounder,mm6); | |
1422 } | |
1423 #endif | |
1424 | |
1425 | |
1426 for(i=0;i<3;i++) { | 1431 for(i=0;i<3;i++) { |
1427 if (i == 1) { | 1432 if (i == 1) { |
1428 switch(pix_fmt) { | 1433 switch(pix_fmt) { |
1429 case PIX_FMT_YUV420P: | 1434 case PIX_FMT_YUV420P: |
1430 width >>= 1; | 1435 width >>= 1; |