@@ -609,42 +609,3 @@ int omxResize(ILCLIENT_T *client, IMAGE *inImage, IMAGE *outImage){
609
609
ilclient_cleanup_components (list );
610
610
return ret ;
611
611
}
612
-
613
- int omxAutoResize (ILCLIENT_T * client , IMAGE * inImage , IMAGE * outImage , const int display ,
614
- const int rotation , const char noAspect ){
615
-
616
- outImage -> pData = NULL ;
617
-
618
- uint32_t sWidth , sHeight ;
619
-
620
- if (outImage -> height > 0 && outImage -> width > 0 ){
621
-
622
- if (noAspect ){
623
- return omxResize (client , inImage , outImage );
624
- }
625
-
626
- sWidth = outImage -> width ;
627
- sHeight = outImage -> height ;
628
- }else {
629
- graphics_get_display_size (display , & sWidth , & sHeight );
630
- }
631
-
632
- if (rotation == 90 || rotation == 270 ){
633
- uint32_t rotHeight = sHeight ;
634
- sHeight = sWidth ;
635
- sWidth = rotHeight ;
636
- }
637
-
638
- float dAspect = (float ) sWidth / sHeight ;
639
- float iAspect = (float ) inImage -> width / inImage -> height ;
640
-
641
- if (dAspect > iAspect ){
642
- outImage -> height = sHeight ;
643
- outImage -> width = ALIGN2 ((int ) (sHeight * iAspect ));
644
- }else {
645
- outImage -> width = sWidth ;
646
- outImage -> height = ALIGN2 ((int ) (sWidth / iAspect ));
647
- }
648
-
649
- return omxResize (client , inImage , outImage );
650
- }
0 commit comments