Projects
home:jnweiger
dvswitch-git
thin_title_safe_area.diff
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File thin_title_safe_area.diff of Package dvswitch-git
--- src/video_effect.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) Index: dvswitch-0.9-1-da15ba4/src/video_effect.c =================================================================== --- dvswitch-0.9-1-da15ba4.orig/src/video_effect.c +++ dvswitch-0.9-1-da15ba4/src/video_effect.c @@ -36,10 +36,11 @@ void video_effect_show_title_safe(struct height >>= chroma_shift_vert; border_vert >>= chroma_shift_vert; bias = chroma_bias; } +#ifdef THICK_TITLE_SAFE_AREA for (unsigned y = 0; y != height; ++y) { uint8_t * p, * end; // Do left border @@ -54,10 +55,30 @@ void video_effect_show_title_safe(struct p += width - 2 * border_horiz; // else continue across top border or bottom border while (p != end) *p = (*p + bias) / 2, ++p; } +#else + for (unsigned y = border_vert-2 ; y <= height-border_vert+1; ++y) + { + uint8_t * p, * end; + + // Do left border + p = dest.planes.data[plane] + dest.planes.linesize[plane] * y; + end = p + border_horiz; + p += border_horiz-2; + while (p != end) + *p = (*p + bias) / 2, ++p; + end = p + width - border_horiz - border_horiz + 2; + if (y >= border_vert && y < height - border_vert) + // Skip to right border + p += width - 2 * border_horiz; + // else continue across top border or bottom border + while (p != end) + *p = (*p + bias) / 2, ++p; + } +#endif } } void video_effect_brighten(struct raw_frame_ref dest, struct rectangle d_rect)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.