diff options
author | Gautam Ramakrishnan <gautamramk@gmail.com> | 2020-04-23 07:06:07 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-23 20:30:07 +0300 |
commit | e58766ba12bc86f54af1d8078cbe02f45b1686aa (patch) | |
tree | a3a29742cb9c9ebf6c682d893ddaa5fd4413d00b /libavcodec/jpeg2000.h | |
parent | b136a983035e41058804fdab59078fdaaf5c5e86 (diff) |
libavcodec/jpeg2000dec.c: ROI marker support
This patch adds support for decoding images
with a Region of Interest. Allows decoding
samples such as p0_03.j2k. This patch should
fix ticket #4681.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/jpeg2000.h')
-rw-r--r-- | libavcodec/jpeg2000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index 7b78c0193e..0f82716981 100644 --- a/libavcodec/jpeg2000.h +++ b/libavcodec/jpeg2000.h @@ -210,6 +210,7 @@ typedef struct Jpeg2000Component { int *i_data; int coord[2][2]; // border coordinates {{x0, x1}, {y0, y1}} -- can be reduced with lowres option int coord_o[2][2]; // border coordinates {{x0, x1}, {y0, y1}} -- original values from jpeg2000 headers + uint8_t roi_shift; // ROI scaling value for the component } Jpeg2000Component; /* misc tools */ |