[vlc-devel] [PATCH 1/1] daala: add support for 422 and 444
Francois Cartegnie
fcvlcdev at free.fr
Fri Sep 26 01:22:10 CEST 2014
Le 26/09/2014 01:04, Tristan Matthews a écrit :
> +static const char *const enc_chromafmt_list_text[] = {
> + N_("4:2:0"), N_("4:2:2"), N_("4:4:4")
> +};
> #endif
i18n, Really ?
> +static void SetEncChromaFormat( encoder_t *p_enc, uint32_t i_codec )
> +{
> + p_enc->fmt_in.i_codec = i_codec;
> +
> + switch( i_codec ) {
> + case VLC_CODEC_I420:
> + p_enc->fmt_in.video.i_bits_per_pixel = 12;
> + break;
> + case VLC_CODEC_I422:
> + p_enc->fmt_in.video.i_bits_per_pixel = 16;
> + break;
> + case VLC_CODEC_I444:
> + p_enc->fmt_in.video.i_bits_per_pixel = 24;
> + break;
> + }
> +}
> +
I believe there's a function that already returns that kind of info.
video_format_Setup()
Francois
More information about the vlc-devel
mailing list