Allow adding borders to dumps even without lua

Handy for those PAL dumps that are 239/478 high, as such odd sizes could
cause problems.
This commit is contained in:
Ilari Liusvaara 2011-09-15 22:46:20 +03:00
parent 35fe9346ba
commit c38c4f207f
2 changed files with 48 additions and 4 deletions

View file

@ -13,6 +13,10 @@
namespace namespace
{ {
boolean_setting dump_large("large-video", false); boolean_setting dump_large("large-video", false);
numeric_setting dtb("default-top-border", 0, 8191, 0);
numeric_setting dbb("default-bottom-border", 0, 8191, 0);
numeric_setting dlb("default-left-border", 0, 8191, 0);
numeric_setting drb("default-right-border", 0, 8191, 0);
class avi_avsnoop : public av_snooper class avi_avsnoop : public av_snooper
{ {
@ -43,10 +47,10 @@ namespace
struct lua_render_context lrc; struct lua_render_context lrc;
render_queue rq; render_queue rq;
lrc.left_gap = 0; lrc.left_gap = dlb;
lrc.right_gap = 0; lrc.right_gap = drb;
lrc.bottom_gap = 0; lrc.bottom_gap = dbb;
lrc.top_gap = 0; lrc.top_gap = dtb;
lrc.queue = &rq; lrc.queue = &rq;
lrc.width = _frame.width * hscl; lrc.width = _frame.width * hscl;
lrc.height = _frame.height * vscl; lrc.height = _frame.height * vscl;

View file

@ -1021,6 +1021,46 @@ large-video
Always dump at 512x448 or 512x478 regardless of what the console outputs. Always dump at 512x448 or 512x478 regardless of what the console outputs.
\end_layout \end_layout
\begin_layout Subsection
default-left-border
\end_layout
\begin_layout Standard
Set the default left border thickness (unless lua overrides) for dumps.
Range 0-8191.
Default is 0.
\end_layout
\begin_layout Subsection
default-right-border
\end_layout
\begin_layout Standard
Set the default right border thickness (unless lua overrides) for dumps.
Range 0-8191.
Default is 0.
\end_layout
\begin_layout Subsection
default-top-border
\end_layout
\begin_layout Standard
Set the default top border thickness (unless lua overrides) for dumps.
Range 0-8191.
Default is 0.
\end_layout
\begin_layout Subsection
default-bottom-border
\end_layout
\begin_layout Standard
Set the default bottom border thickness (unless lua overrides) for dumps.
Range 0-8191.
Default is 0.
\end_layout
\begin_layout Section \begin_layout Section
Lua functions Lua functions
\end_layout \end_layout