Mercurial > mplayer.hg
comparison libswscale/yuv2rgb_altivec.c @ 28461:75586eb0750d
Prefix visible YUV2RGB functions with sws_
author | kostya |
---|---|
date | Mon, 09 Feb 2009 14:31:53 +0000 |
parents | e9e41961f16e |
children | 61e4dbf0da9e |
comparison
equal
deleted
inserted
replaced
28460:12c0dfccf149 | 28461:75586eb0750d |
---|---|
688 inputs of widths a multiple of 16 | 688 inputs of widths a multiple of 16 |
689 and heights a multiple 2 | 689 and heights a multiple 2 |
690 | 690 |
691 So we just fall back to the C codes for this. | 691 So we just fall back to the C codes for this. |
692 */ | 692 */ |
693 SwsFunc yuv2rgb_init_altivec (SwsContext *c) | 693 SwsFunc sws_yuv2rgb_init_altivec (SwsContext *c) |
694 { | 694 { |
695 if (!(c->flags & SWS_CPU_CAPS_ALTIVEC)) | 695 if (!(c->flags & SWS_CPU_CAPS_ALTIVEC)) |
696 return NULL; | 696 return NULL; |
697 | 697 |
698 /* | 698 /* |
748 | 748 |
749 } | 749 } |
750 return NULL; | 750 return NULL; |
751 } | 751 } |
752 | 752 |
753 void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4],int brightness,int contrast, int saturation) | 753 void sws_yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4],int brightness,int contrast, int saturation) |
754 { | 754 { |
755 union { | 755 union { |
756 signed short tmp[8] __attribute__ ((aligned(16))); | 756 signed short tmp[8] __attribute__ ((aligned(16))); |
757 vector signed short vec; | 757 vector signed short vec; |
758 } buf; | 758 } buf; |