Skip to content

Commit 183df46

Browse files
Remove unused part
1 parent 0adaba5 commit 183df46

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

omx_image.c

-39
Original file line numberDiff line numberDiff line change
@@ -609,42 +609,3 @@ int omxResize(ILCLIENT_T *client, IMAGE *inImage, IMAGE *outImage){
609609
ilclient_cleanup_components(list);
610610
return ret;
611611
}
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-
}

omx_image.h

-6
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,4 @@ int omxDecodeJpeg(ILCLIENT_T *client, FILE *jpegFile, IMAGE *jpeg);
5252
* use rgba instead. */
5353
int omxResize(ILCLIENT_T *client, IMAGE *inImage, IMAGE *outImage);
5454

55-
/** Resizes inImage to outImage. Make sure to set width,
56-
* height and colorSpace of outImage before calling this.
57-
* Takes screen resolution and rotation into account. */
58-
int omxAutoResize(ILCLIENT_T *client, IMAGE *inImage, IMAGE *outImage, const int display,
59-
const int rotation, const char noAspect);
60-
6155
#endif

0 commit comments

Comments
 (0)