summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2008-05-11 17:42:59 +0200
committerReinhard Nißl <rnissl@gmx.de>2008-05-11 17:42:59 +0200
commit9c1ca7282eba7499c604a5bdaa27b635261025a9 (patch)
tree1838f0f4ef1742d9547d55389090ac51de80fc9b /include
parent8ff78df42588e88762aaf1581f0e86a270f4a59d (diff)
downloadxine-lib-9c1ca7282eba7499c604a5bdaa27b635261025a9.tar.gz
xine-lib-9c1ca7282eba7499c604a5bdaa27b635261025a9.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/xine.h10
1 files changed, 8 insertions, 2 deletions
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')