On 7/14/05, James Stembridge jstembridge@gmail.com wrote:
On 7/14/05, mike lewis lachlanlewis@gmail.com wrote:
What I'd really like to know is this: what actually are crop_top / crop_bottom? Are they the amount that is to be cropped in pixels
Yes.
OK, the following patch will "cut" 100 lines from the bottom of the video. This is not exactly what I was hoping for.. What I was hoping for was a way to cut the video before the content was "expanded".
[xine-devel please note this is an already patched version of expand.c adding "centre cut out mode" from
Can anyone offer any advice on how this can be achieved?
Mick
Hi,
mike lewis wrote:
@@ -435,7 +444,13 @@ /* get_frame() allocated an extra high frame */ frame->crop_top += (frame->next->height - frame->height) / 2; frame->crop_bottom += (frame->next->height - frame->height) / 2;
}
if (this->hide_wss) {
frame->crop_top += 0;
frame->crop_bottom += 10;
}
}
_x_post_frame_copy_down(frame, frame->next);
I've changed a few lines above and it should cut off 10 additional lines at the bottom (should work for 16:9 and 4:3), but I haven't tested it.
Be aware that the resulting frame is no longer 16:9 nor 4:3. But as the aspect ratio is not adjusted, it will be stretched vertically by the video output driver to be 16:9 or 4:3.
See also next eMail about this issue.
Bye.