Commit 8a2d6cd0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

es_format: remove left RGB shifts

This carried no data, was rarely used and waste 12 bytes per format.
parent 8ffc8639
...@@ -366,9 +366,6 @@ struct video_format_t ...@@ -366,9 +366,6 @@ struct video_format_t
unsigned int i_frame_rate_base; /**< frame rate denominator */ unsigned int i_frame_rate_base; /**< frame rate denominator */
uint32_t i_rmask, i_gmask, i_bmask; /**< color masks for RGB chroma */ uint32_t i_rmask, i_gmask, i_bmask; /**< color masks for RGB chroma */
int i_lrshift;
int i_lgshift;
int i_lbshift;
video_palette_t *p_palette; /**< video palette from demuxer */ video_palette_t *p_palette; /**< video palette from demuxer */
video_orientation_t orientation; /**< picture orientation */ video_orientation_t orientation; /**< picture orientation */
video_color_primaries_t primaries; /**< color primaries */ video_color_primaries_t primaries; /**< color primaries */
......
...@@ -34,16 +34,6 @@ ...@@ -34,16 +34,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_es.h> #include <vlc_es.h>
/**
* It transforms a color mask into right and left shifts
* FIXME copied from video_output.c
*/
static void MaskToShift( int *pi_left, uint32_t i_mask )
{
*pi_left = ctz(i_mask);
}
/* */ /* */
void video_format_FixRgb( video_format_t *p_fmt ) void video_format_FixRgb( video_format_t *p_fmt )
{ {
...@@ -79,10 +69,6 @@ void video_format_FixRgb( video_format_t *p_fmt ) ...@@ -79,10 +69,6 @@ void video_format_FixRgb( video_format_t *p_fmt )
return; return;
} }
} }
MaskToShift( &p_fmt->i_lrshift, p_fmt->i_rmask );
MaskToShift( &p_fmt->i_lgshift, p_fmt->i_gmask );
MaskToShift( &p_fmt->i_lbshift, p_fmt->i_bmask );
} }
void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma, void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
......
...@@ -118,9 +118,6 @@ filter_t *filter_NewBlend( vlc_object_t *p_this, ...@@ -118,9 +118,6 @@ filter_t *filter_NewBlend( vlc_object_t *p_this,
p_blend->fmt_out.video.i_rmask = p_dst_chroma->i_rmask; p_blend->fmt_out.video.i_rmask = p_dst_chroma->i_rmask;
p_blend->fmt_out.video.i_gmask = p_dst_chroma->i_gmask; p_blend->fmt_out.video.i_gmask = p_dst_chroma->i_gmask;
p_blend->fmt_out.video.i_bmask = p_dst_chroma->i_bmask; p_blend->fmt_out.video.i_bmask = p_dst_chroma->i_bmask;
p_blend->fmt_out.video.i_lrshift= p_dst_chroma->i_lrshift;
p_blend->fmt_out.video.i_lgshift= p_dst_chroma->i_lgshift;
p_blend->fmt_out.video.i_lbshift= p_dst_chroma->i_lbshift;
/* The blend module will be loaded when needed with the real /* The blend module will be loaded when needed with the real
* input format */ * input format */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment