Opened 15 years ago

Last modified 15 years ago

#1641 new enhancement

Make it configurable if cropdetect rounds up or down

Reported by: quetschke@… Owned by: reimar
Priority: normal Component: vf
Version: HEAD Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Currently cropdetect always rounds down crop values for width and height to avoid black bars. Make this configurable and force a round up mode by choosing a negative round value. I know this will leave black borders around the picture and is therefore not optimal for compression efficiency, but it will avoid that picture information is lost.

Attachments (3)

bug_1641.diff (3.5 KB ) - added by quetschke@… 15 years ago.
Patch to add proposed functionality.
bug_1641v2.diff (4.4 KB ) - added by quetschke@… 15 years ago.
New patch for cropdetect enhancement
bug_1641_man.diff (895 bytes ) - added by quetschke@… 15 years ago.
Documentation patch for man page

Download all attachments as: .zip

Change History (11)

by quetschke@…, 15 years ago

Attachment: bug_1641.diff added

Patch to add proposed functionality.

comment:1 by quetschke@…, 15 years ago

comment:2 by quetschke@…, 15 years ago

Severity: normalenhancement

comment:3 by quetschke@…, 15 years ago

Please disregard my previous patch. It had problems when calculating the x and y offset in "round-up" mode.

The following patch fixes those problems and also includes a work-around for video files where line 0 holds some closed caption information and then the black bars from a letterboxed video follow. This happens frequently with digital SD transmissions in American cable.

by quetschke@…, 15 years ago

Attachment: bug_1641v2.diff added

New patch for cropdetect enhancement

comment:4 by quetschke@…, 15 years ago

by quetschke@…, 15 years ago

Attachment: bug_1641_man.diff added

Documentation patch for man page

comment:5 by quetschke@…, 15 years ago

comment:6 by quetschke@…, 15 years ago

attachments.isobsolete: 01

comment:7 by quetschke@…, 15 years ago

attachments.isobsolete: 10

comment:8 by quetschke@…, 15 years ago

attachments.ispatch: 01
attachments.mimetype: text/x-difftext/plain, 1
Note: See TracTickets for help on using tickets.