[FFmpeg-devel] [PATCH 4/5] ffmpeg: keep bitdepth where possible
    Christophe Gisquet 
    christophe.gisquet at gmail.com
       
    Wed Aug 20 10:14:32 CEST 2014
    
    
  
Hi,
2014-08-20 10:10 GMT+02:00 Christophe Gisquet <christophe.gisquet at gmail.com>:
> +                if (!(av_get_pix_fmt_loss(enc_ctx->pix_fmt, dec_ctx->pix_fmt, 0)
> +                      & (FF_LOSS_DEPTH|FF_LOSS_COLORSPACE|FF_LOSS_CHROMA))) {
If it was ever useful, this is probably wrong and should rather use
AVPixFmtDescriptor information of:
- is it rgb and planar ?
- are all the components using the same bitdepth?
-- 
Christophe
    
    
More information about the ffmpeg-devel
mailing list