vout_subpicture: remove write-only original size in rendered subpicture

It was only used by the display modules rendering (scaled) regions.
That was always set to the video placement dimensions in the display, which they already know about.
This commit is contained in:
Steve Lhomme 2024-03-06 13:43:07 +01:00
parent 2b6405c7f4
commit 664f251966
4 changed files with 0 additions and 8 deletions

View File

@ -216,8 +216,6 @@ struct vlc_render_subpicture
{
struct VLC_VECTOR(struct subpicture_region_rendered *) regions; /**< list of regions to render */
int64_t i_order; /** an increasing unique number */
unsigned i_original_picture_width; /**< original width of the movie */
unsigned i_original_picture_height;/**< original height of the movie */
};
typedef struct vlc_render_subpicture vlc_render_subpicture;

View File

@ -103,8 +103,6 @@ vlc_render_subpicture *vlc_render_subpicture_New( void )
vlc_render_subpicture *p_subpic = malloc( sizeof(*p_subpic) );
if( unlikely(p_subpic == NULL ) )
return NULL;
p_subpic->i_original_picture_width = 0;
p_subpic->i_original_picture_height = 0;
vlc_vector_init(&p_subpic->regions);
return p_subpic;
}

View File

@ -1270,8 +1270,6 @@ static vlc_render_subpicture *SpuRenderSubpictures(spu_t *spu,
if (unlikely(output == NULL))
return NULL;
output->i_order = p_entries[i_subpicture - 1].subpic->i_order;
output->i_original_picture_width = fmt_dst->i_visible_width;
output->i_original_picture_height = fmt_dst->i_visible_height;
struct subpicture_region_rendered *output_last_ptr;
/* Allocate area array for subtitle overlap */

View File

@ -177,8 +177,6 @@ static void test_opengl_offscreen(
vlc_render_subpicture *subpicture = vlc_render_subpicture_New();
assert(subpicture != NULL);
subpicture->i_original_picture_width = 4;
subpicture->i_original_picture_height = 4;
struct subpicture_region_rendered *p_region = calloc(1, sizeof(*p_region));
assert(p_region != NULL);