Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1ef5561a
Commit
1ef5561a
authored
Jun 09, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenjpeg: YUVA422P and YUVA444P support
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
75f8f702
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
libopenjpegdec.c
libavcodec/libopenjpegdec.c
+3
-3
libopenjpegenc.c
libavcodec/libopenjpegenc.c
+6
-2
No files found.
libavcodec/libopenjpegdec.c
View file @
1ef5561a
...
...
@@ -39,9 +39,9 @@
// similar pix_fmts with higher bpp.
#define RGB_PIXEL_FORMATS PIX_FMT_RGB24,PIX_FMT_RGBA,PIX_FMT_RGB48,PIX_FMT_RGBA64
#define GRAY_PIXEL_FORMATS PIX_FMT_GRAY8,PIX_FMT_GRAY8A,PIX_FMT_GRAY16
#define YUV_PIXEL_FORMATS PIX_FMT_YUV410P,PIX_FMT_YUV411P, \
PIX_FMT_YUV420P,PIX_FMT_YUV422P,PIX_FMT_YUVA42
0
P, \
PIX_FMT_YUV440P,PIX_FMT_YUV444P, \
#define YUV_PIXEL_FORMATS PIX_FMT_YUV410P,PIX_FMT_YUV411P,
PIX_FMT_YUVA420P,
\
PIX_FMT_YUV420P,PIX_FMT_YUV422P,PIX_FMT_YUVA42
2
P, \
PIX_FMT_YUV440P,PIX_FMT_YUV444P,
PIX_FMT_YUVA444P,
\
PIX_FMT_YUV420P9,PIX_FMT_YUV422P9,PIX_FMT_YUV444P9, \
PIX_FMT_YUV420P10,PIX_FMT_YUV422P10,PIX_FMT_YUV444P10, \
PIX_FMT_YUV420P16,PIX_FMT_YUV422P16,PIX_FMT_YUV444P16
...
...
libavcodec/libopenjpegenc.c
View file @
1ef5561a
...
...
@@ -96,6 +96,8 @@ static opj_image_t *mj2_create_image(AVCodecContext *avctx, opj_cparameters_t *p
case
PIX_FMT_YUV440P
:
case
PIX_FMT_YUV444P
:
case
PIX_FMT_YUVA420P
:
case
PIX_FMT_YUVA422P
:
case
PIX_FMT_YUVA444P
:
case
PIX_FMT_YUV420P9
:
case
PIX_FMT_YUV422P9
:
case
PIX_FMT_YUV444P9
:
...
...
@@ -342,6 +344,8 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case
PIX_FMT_YUV440P
:
case
PIX_FMT_YUV444P
:
case
PIX_FMT_YUVA420P
:
case
PIX_FMT_YUVA422P
:
case
PIX_FMT_YUVA444P
:
cpyresult
=
libopenjpeg_copy_unpacked8
(
avctx
,
frame
,
image
);
break
;
case
PIX_FMT_GRAY16
:
...
...
@@ -451,8 +455,8 @@ AVCodec ff_libopenjpeg_encoder = {
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_RGB24
,
PIX_FMT_RGBA
,
PIX_FMT_RGB48
,
PIX_FMT_RGBA64
,
PIX_FMT_GRAY8
,
PIX_FMT_GRAY8A
,
PIX_FMT_GRAY16
,
PIX_FMT_YUV420P
,
PIX_FMT_YUV422P
,
PIX_FMT_YUVA420P
,
PIX_FMT_YUV440P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUV411P
,
PIX_FMT_YUV410P
,
PIX_FMT_YUV440P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUVA422P
,
PIX_FMT_YUV411P
,
PIX_FMT_YUV410P
,
PIX_FMT_YUVA444P
,
PIX_FMT_YUV420P9
,
PIX_FMT_YUV422P9
,
PIX_FMT_YUV444P9
,
PIX_FMT_YUV420P10
,
PIX_FMT_YUV422P10
,
PIX_FMT_YUV444P10
,
PIX_FMT_YUV420P16
,
PIX_FMT_YUV422P16
,
PIX_FMT_YUV444P16
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment