From 9c1ca7282eba7499c604a5bdaa27b635261025a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Sun, 11 May 2008 17:42:59 +0200 Subject: Extend xine_get_current_frame to provide cropping and interlacing information. Cropping information is necessary for frame formats like 1920x1080 which are coded as 1920x1088, i. e. 8 lines are cropped away at the bottom. The information whether a frame is interlaced is necessary for proper upscaling of 4:2:0 frame formats as it must be done per field when the frame is interlaced. Otherwise choma and luma won't match. Make input_vdr.c compile again due to changed xine_get_current_frame. --- include/xine.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/xine.h b/include/xine.h index 6eaac8975..47580fd5d 100644 --- a/include/xine.h +++ b/include/xine.h @@ -411,12 +411,18 @@ int xine_get_current_frame (xine_stream_t *stream, int xine_get_current_frame_s (xine_stream_t *stream, int *width, int *height, int *ratio_code, int *format, - uint8_t *img, int *size) XINE_PROTECTED; + uint8_t *img, int *size, + int *interlaced, + int *crop_left, int *crop_right, + int *crop_top, int *crop_bottom) XINE_PROTECTED; int xine_get_current_frame_alloc (xine_stream_t *stream, int *width, int *height, int *ratio_code, int *format, - uint8_t **img, int *size) XINE_PROTECTED; + uint8_t **img, int *size, + int *interlaced, + int *crop_left, int *crop_right, + int *crop_top, int *crop_bottom) XINE_PROTECTED; /* xine image formats */ #define XINE_IMGFMT_YV12 (('2'<<24)|('1'<<16)|('V'<<8)|'Y') -- cgit v1.2.3