Commit Graph

590 Commits

Author SHA1 Message Date
diego 5b3208baf2 Replace manual gcc version check by AV_GCC_VERSION_AT_LEAST macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29701 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-22 14:38:49 +00:00
ramiro d41ec8ed48 Cleanup buffer debugs in swScale().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29686 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-16 22:34:48 +00:00
ramiro b769ea34ea Use correct buffers in vertical scaler in unscaled YV12 case.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29685 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-16 22:31:43 +00:00
ramiro b2b8779831 Reset slice direction at end of each frame.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29675 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-13 01:49:40 +00:00
ramiro 03343659ca Remove ; after while(0) in macros.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29674 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-12 20:10:22 +00:00
ramiro 927afdcf6d Document that slices can be bottom to top or top to bottom.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29665 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-09 21:43:25 +00:00
ramiro af8ff1be74 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29654 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-07 16:29:32 +00:00
ramiro eb4187bb17 Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
parameters.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29652 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-06 00:07:35 +00:00
ramiro 8e6405bb82 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29651 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-05 23:35:59 +00:00
ramiro 6d1176f071 Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29650 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-05 23:33:11 +00:00
ramiro c9a80aa682 Curly brackets cosmetics for previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29587 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 23:08:32 +00:00
ramiro 53f310c52c Check for return value of initFilter().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29586 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 23:06:22 +00:00
ramiro db1c65dc6c Revert mistakenly commited hunk.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29585 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 23:03:14 +00:00
ramiro 7f0e696575 swscale: Check for return values of malloc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29584 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 23:02:01 +00:00
ramiro 289d5fc85e swscale-example: Free memory used by input data.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29583 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 03:36:09 +00:00
ramiro 52b42d8abc Restore comment that was partially removed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29582 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-29 02:44:03 +00:00
ramiro ec7e2695a6 swscale-example: Rename src->ref so as to not confuse with src being used in doTest().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29548 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-23 20:31:38 +00:00
ramiro ed3cf3036c swscale-example: Use SWS_BILINEAR instead of hardcoded value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29547 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-23 20:29:49 +00:00
ramiro 62123551eb Fix inconsistent indentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29545 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-22 19:30:19 +00:00
ramiro 728be1cb1a Check return values of sws_allocVec() and sws_getConstVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29543 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-20 01:55:45 +00:00
reimar 9d6b461605 Free initial swscale context, too. Avoids a valgrind warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29538 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-19 08:21:55 +00:00
reimar 78fb0e7f16 Remove useless casts of malloc return value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29537 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-19 08:18:53 +00:00
ramiro 67636ed48b Introduce and use sws_allocVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29536 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-19 01:33:17 +00:00
ramiro 0f89c75f31 Reuse sws_getConstVec() where possible.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29535 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-19 01:32:06 +00:00
ramiro 69cb72414a swscale-example: Make selection of dstW, dstH, and flags more clear.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29527 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-17 02:06:00 +00:00
ramiro 808ac07940 More indentation changes leftover from r29522:
- Align asm code to the column 4 spaces after the call to __asm__();
- Align cases in switch statements to the same column as "switch".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29524 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 21:37:07 +00:00
ramiro b490da35c8 Cosmetics:
- Place curly brackets in the same line as while/for/if/switch/else/do;
- Place curly brackets at column 0 in the next line starting a function.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 21:11:28 +00:00
ramiro 88dafbd9a5 Indent libswscale:
- Use 4 spaces throughout for indentation;
- Fix inconsistent indentation;
- Indent function calls and declarations aligning arguments on multiple lines
  to the column after the opening parentheses;
- Align asm code to the column 4 spaces after the call to __asm__();
- Align cases in switch statements to the same column as "switch".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29522 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 00:32:04 +00:00
ramiro ca774579f7 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29518 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-15 02:35:55 +00:00
ramiro 15fb97be65 Vertical yuv -> yuv16 scaler.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29517 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-14 15:52:40 +00:00
ramiro 28b847afce BGR32 MMX special convertor.
Patch by Peter Schlaile < peter at schlaile dot de >

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29515 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-14 02:15:28 +00:00
ramiro 58a12d7901 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29512 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 19:03:14 +00:00
ramiro 7eaf60438b swscale-example: Don't check for chroma planes in mono formats.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29511 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:39:39 +00:00
ramiro 301a0e4940 MMX2 horizontal scaler: Determine code size at runtime.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29510 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:31:07 +00:00
ramiro a409c31dd1 Protect mmx2 filter code buffers so they are not executable and writeable at
the same time (only mmap for now).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29509 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:29:54 +00:00
ramiro 6f79fc6ff9 Remove duplicate define (it is the same in the lum code).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29508 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:28:55 +00:00
ramiro 054bb3016f Rename "funny" code to "mmx2 filter" code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29507 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:28:17 +00:00
ramiro f4002b6be9 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29506 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 13:18:59 +00:00
ramiro 3c4aba428f swscale-example: Remove hack to end loop by setting variables to break.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29505 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:48:06 +00:00
ramiro fef358505e swscale-example: Don't return random value from main().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29504 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:34:27 +00:00
ramiro 4f3fd1c7ea swscale-example: Check for Gray formats.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29503 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:33:18 +00:00
diego 180b6a88e4 Remove disabled debug code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29485 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-10 10:53:32 +00:00
ramiro 80c0fb98ba Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29484 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-09 15:34:57 +00:00
kostya 1e1a332bbf Remove 'offset' argument from PUTRGB* macros since it's unneeded and caused
pixel swapping during some YUV2RGB conversions.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29483 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-09 15:04:17 +00:00
diego 1407950a2f Remove disabled crufty code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29482 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-08 15:18:48 +00:00
cehoyos fa7e2d8f5c Fix regression when converting to nv12/nv21.
Patch by Guennadi Liakhovetski,  g D liakhovetski A gmx D de 


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29464 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-01 21:30:36 +00:00
ramiro 7c240e0268 MMX2 scaler: Remove {} block leftover from factorization in initMMX2Scaler().
Merge variable declarations to previous {} block and indent.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29454 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:45:47 +00:00
ramiro 878623ad28 MMX2 scaler: factorize initMMX2Scaler().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29453 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:42:46 +00:00
ramiro 7b6fecc8b3 MMX2 scaler: add variable to ease factorization of initMMX2Scaler().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29452 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:41:22 +00:00
ramiro e0af29f2c3 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29451 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:14:47 +00:00