History

avcodec/jpeg2000dec: Add YA16 support

Michael Niedermayer committed 3 years ago

Commit c66e13c1 parent fa618f51 file · +4 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/jpeg2000dec.c+4−0
@@ -449,6 +449,10 @@ static int get_siz(Jpeg2000DecoderContext *s) · 448 unmodified lines
449449 s->cdx[0] == s->cdx[1] && s->cdy[0] == s->cdy[1]) {
450450 s->avctx->pix_fmt = AV_PIX_FMT_YA8;
451451 i = 0;
452+ } else if (ncomponents == 2 && s->precision == 16 &&
453+ s->cdx[0] == s->cdx[1] && s->cdy[0] == s->cdy[1]) {
454+ s->avctx->pix_fmt = AV_PIX_FMT_YA16;
455+ i = 0;
452456 } else if (ncomponents == 1 && s->precision == 8) {
453457 s->avctx->pix_fmt = AV_PIX_FMT_GRAY8;
454458 i = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t