Mercurial > mplayer.hg
comparison libvo/vo_dxr2.c @ 8063:4c7ef4aeb88b
Overlay cropping options. Patch by Mark <CompGuy284 at attbi dot com> extanded
by myself a bit
author | albeu |
---|---|
date | Sat, 02 Nov 2002 22:46:09 +0000 |
parents | 3fac0256a842 |
children | 2406eb28a601 |
comparison
equal
deleted
inserted
replaced
8062:ed2d3e7e7e36 | 8063:4c7ef4aeb88b |
---|---|
71 static int ck_gmax = 0x20; | 71 static int ck_gmax = 0x20; |
72 static int ck_g = 0; | 72 static int ck_g = 0; |
73 static int ck_bmin = 0x40; | 73 static int ck_bmin = 0x40; |
74 static int ck_bmax = 0xFF; | 74 static int ck_bmax = 0xFF; |
75 static int ck_b = 0xFF; | 75 static int ck_b = 0xFF; |
76 | 76 static int cr_left = 0, cr_right = 0; |
77 static int cr_top = 55, cr_bot = 300; | |
77 | 78 |
78 config_t dxr2_opts[] = { | 79 config_t dxr2_opts[] = { |
79 { "overlay", &use_ol, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 80 { "overlay", &use_ol, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
80 { "nooverlay", &use_ol, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | 81 { "nooverlay", &use_ol, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
81 { "overlay-ratio", &ol_ratio, CONF_TYPE_INT, CONF_RANGE, 1, 2500, NULL }, | 82 { "overlay-ratio", &ol_ratio, CONF_TYPE_INT, CONF_RANGE, 1, 2500, NULL }, |
123 { "ck-gmax", &ck_gmax, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, | 124 { "ck-gmax", &ck_gmax, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, |
124 { "ck-g", &ck_g, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, | 125 { "ck-g", &ck_g, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, |
125 { "ck-bmin", &ck_bmin, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, | 126 { "ck-bmin", &ck_bmin, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, |
126 { "ck-bmax", &ck_bmax, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, | 127 { "ck-bmax", &ck_bmax, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, |
127 { "ck-b", &ck_b, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, | 128 { "ck-b", &ck_b, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL}, |
129 { "cr-left", &cr_left, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL}, | |
130 { "cr-right", &cr_right, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL}, | |
131 { "cr-top", &cr_top, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL}, | |
132 { "cr-bot", &cr_bot, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL}, | |
128 | 133 |
129 { NULL,NULL, 0, 0, 0, 0, NULL} | 134 { NULL,NULL, 0, 0, 0, 0, NULL} |
130 }; | 135 }; |
131 | 136 |
132 static vo_info_t vo_info = { | 137 static vo_info_t vo_info = { |
412 dxr2_sixArg_t oc; | 417 dxr2_sixArg_t oc; |
413 dxr2_oneArg_t om; | 418 dxr2_oneArg_t om; |
414 dxr2_twoArg_t win; | 419 dxr2_twoArg_t win; |
415 dxr2_fourArg_t crop; | 420 dxr2_fourArg_t crop; |
416 | 421 |
417 crop.arg1=0; | 422 crop.arg1= cr_left; |
418 crop.arg2=0; | 423 crop.arg2= cr_right; |
419 crop.arg3=55; | 424 crop.arg3 = cr_top; |
420 crop.arg4=300; | 425 crop.arg4 = cr_bot; |
421 ioctl(dxr2_fd, DXR2_IOC_SET_OVERLAY_CROPPING, &crop); | 426 ioctl(dxr2_fd, DXR2_IOC_SET_OVERLAY_CROPPING, &crop); |
422 | 427 |
423 oc.arg1 = 0x40; | 428 oc.arg1 = 0x40; |
424 oc.arg2 = 0xff; | 429 oc.arg2 = 0xff; |
425 oc.arg3 = 0x40; | 430 oc.arg3 = 0x40; |