libopenjpegenc: use pix_fmt descriptor to get bpp
authorPaul B Mahol <onemda@gmail.com>
Sun, 25 Mar 2012 23:33:51 +0000 (23:33 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Mar 2012 02:59:18 +0000 (04:59 +0200)
commit8e45005a849c849bbbc28bc16d7ecb4d342b251a
tree7a0a51fdf75f48697183bb43ee312ca25d5bcbcb
parent06b0c6a6559e8f179faaba9641bcb2d68edc7160
libopenjpegenc: use pix_fmt descriptor to get bpp

This will also simplify adding support for RGB565 and similar.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libopenjpegenc.c