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
7544ef78
Commit
7544ef78
authored
Jul 03, 2012
by
Michael Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenjpegenc: add support for YUV420/422/444P12/14
Signed-off-by:
Michael Bradshaw
<
mbradshaw@sorensonmedia.com
>
parent
7beeea8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
libopenjpegenc.c
libavcodec/libopenjpegenc.c
+14
-0
No files found.
libavcodec/libopenjpegenc.c
View file @
7544ef78
...
...
@@ -104,6 +104,12 @@ static opj_image_t *mj2_create_image(AVCodecContext *avctx, opj_cparameters_t *p
case
PIX_FMT_YUV420P10
:
case
PIX_FMT_YUV422P10
:
case
PIX_FMT_YUV444P10
:
case
PIX_FMT_YUV420P12
:
case
PIX_FMT_YUV422P12
:
case
PIX_FMT_YUV444P12
:
case
PIX_FMT_YUV420P14
:
case
PIX_FMT_YUV422P14
:
case
PIX_FMT_YUV444P14
:
case
PIX_FMT_YUV420P16
:
case
PIX_FMT_YUV422P16
:
case
PIX_FMT_YUV444P16
:
...
...
@@ -358,6 +364,12 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case
PIX_FMT_YUV444P9
:
case
PIX_FMT_YUV444P10
:
case
PIX_FMT_YUV444P16
:
case
PIX_FMT_YUV420P12
:
case
PIX_FMT_YUV422P12
:
case
PIX_FMT_YUV444P12
:
case
PIX_FMT_YUV420P14
:
case
PIX_FMT_YUV422P14
:
case
PIX_FMT_YUV444P14
:
cpyresult
=
libopenjpeg_copy_unpacked16
(
avctx
,
frame
,
image
);
break
;
default:
...
...
@@ -460,6 +472,8 @@ AVCodec ff_libopenjpeg_encoder = {
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_YUV420P12
,
PIX_FMT_YUV422P12
,
PIX_FMT_YUV444P12
,
PIX_FMT_YUV420P14
,
PIX_FMT_YUV422P14
,
PIX_FMT_YUV444P14
,
PIX_FMT_YUV420P16
,
PIX_FMT_YUV422P16
,
PIX_FMT_YUV444P16
,
PIX_FMT_NONE
},
...
...
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