| 41 | } |
| 42 | CV_INLINE IplROI RectToROI( RECT r ); |
| 43 | CV_INLINE IplROI RectToROI( RECT r ) |
| 44 | { |
| 45 | IplROI roi; |
| 46 | r = NormalizeRect( r ); |
| 47 | roi.xOffset = r.left; |
| 48 | roi.yOffset = r.top; |
| 49 | roi.width = r.right - r.left; |
| 50 | roi.height = r.bottom - r.top; |
| 51 | roi.coi = 0; |
| 52 | |
| 53 | return roi; |
| 54 | } |
| 55 | void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin ) |
| 56 | { |
| 57 | assert( bmi && width >= 0 && height >= 0 && (bpp == 8 || bpp == 24 || bpp == 32)); |
nothing calls this directly
no test coverage detected