mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Conflicts:
lib/libdvbsub/dvbsubtitle.cpp
src/neutrino.cpp
src/nhttpd/tuxboxapi/neutrinoyparser.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 69d8616a91
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-12 (Sun, 12 Mar 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2537,8 +2537,11 @@ void CMoviePlayerGui::showSubtitle(neutrino_msg_data_t data)
|
||||
clearSubtitle();
|
||||
|
||||
for (unsigned i = 0; i < sub->num_rects; i++) {
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 5, 0)
|
||||
uint32_t * colors = (uint32_t *) sub->rects[i]->pict.data[1];
|
||||
|
||||
#else
|
||||
uint32_t * colors = (uint32_t *) sub->rects[i]->data[1];
|
||||
#endif
|
||||
int xoff = (double) sub->rects[i]->x * xc;
|
||||
int yoff = (double) sub->rects[i]->y * yc;
|
||||
int nw = frameBuffer->getWidth4FB_HW_ACC(xoff, (double) sub->rects[i]->w * xc);
|
||||
@@ -2547,9 +2550,14 @@ void CMoviePlayerGui::showSubtitle(neutrino_msg_data_t data)
|
||||
printf("Draw: #%d at %d,%d size %dx%d colors %d (x=%d y=%d w=%d h=%d) \n", i+1,
|
||||
sub->rects[i]->x, sub->rects[i]->y, sub->rects[i]->w, sub->rects[i]->h,
|
||||
sub->rects[i]->nb_colors, xoff, yoff, nw, nh);
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 5, 0)
|
||||
fb_pixel_t * newdata = simple_resize32 (sub->rects[i]->pict.data[0], colors,
|
||||
sub->rects[i]->nb_colors, sub->rects[i]->w, sub->rects[i]->h, nw, nh);
|
||||
#else
|
||||
fb_pixel_t * newdata = simple_resize32 (sub->rects[i]->data[0], colors,
|
||||
sub->rects[i]->nb_colors, sub->rects[i]->w, sub->rects[i]->h, nw, nh);
|
||||
#endif
|
||||
|
||||
frameBuffer->blit2FB(newdata, nw, nh, xoff, yoff);
|
||||
free(newdata);
|
||||
|
||||
|
Reference in New Issue
Block a user