Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
ee33eb40
Commit
ee33eb40
authored
13 years ago
by
Michael Bradshaw
Committed by
Carl Eugen Hoyos
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
libopenjpegenc: Rename four conversion functions.
parent
7e62315c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/libopenjpegenc.c
+12
-12
12 additions, 12 deletions
libavcodec/libopenjpegenc.c
with
12 additions
and
12 deletions
libavcodec/libopenjpegenc.c
+
12
−
12
View file @
ee33eb40
...
...
@@ -197,7 +197,7 @@ static av_cold int libopenjpeg_encode_init(AVCodecContext *avctx)
return
0
;
}
static
int
libopenjpeg_copy_
rgba
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
,
int
numcomps
)
static
int
libopenjpeg_copy_
packed8
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
,
int
numcomps
)
{
int
compno
;
int
x
;
...
...
@@ -222,7 +222,7 @@ static int libopenjpeg_copy_rgba(AVCodecContext *avctx, AVFrame *frame, opj_imag
return
1
;
}
static
int
libopenjpeg_copy_
rgb
16
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
,
int
numcomps
)
static
int
libopenjpeg_copy_
packed
16
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
,
int
numcomps
)
{
int
compno
;
int
x
;
...
...
@@ -248,7 +248,7 @@ static int libopenjpeg_copy_rgb16(AVCodecContext *avctx, AVFrame *frame, opj_ima
return
1
;
}
static
int
libopenjpeg_copy_
yuv
8
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
)
static
int
libopenjpeg_copy_
unpacked
8
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
)
{
int
compno
;
int
x
;
...
...
@@ -276,7 +276,7 @@ static int libopenjpeg_copy_yuv8(AVCodecContext *avctx, AVFrame *frame, opj_imag
return
1
;
}
static
int
libopenjpeg_copy_
yuv
16
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
)
static
int
libopenjpeg_copy_
unpacked
16
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
,
opj_image_t
*
image
)
{
int
compno
;
int
x
;
...
...
@@ -325,29 +325,29 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf
switch
(
avctx
->
pix_fmt
)
{
case
PIX_FMT_GRAY8
:
cpyresult
=
libopenjpeg_copy_
rgba
(
avctx
,
frame
,
image
,
1
);
cpyresult
=
libopenjpeg_copy_
packed8
(
avctx
,
frame
,
image
,
1
);
break
;
case
PIX_FMT_GRAY16
:
cpyresult
=
libopenjpeg_copy_
rgb
16
(
avctx
,
frame
,
image
,
1
);
cpyresult
=
libopenjpeg_copy_
packed
16
(
avctx
,
frame
,
image
,
1
);
break
;
case
PIX_FMT_RGB24
:
cpyresult
=
libopenjpeg_copy_
rgba
(
avctx
,
frame
,
image
,
3
);
cpyresult
=
libopenjpeg_copy_
packed8
(
avctx
,
frame
,
image
,
3
);
break
;
case
PIX_FMT_RGBA
:
cpyresult
=
libopenjpeg_copy_
rgba
(
avctx
,
frame
,
image
,
4
);
cpyresult
=
libopenjpeg_copy_
packed8
(
avctx
,
frame
,
image
,
4
);
break
;
case
PIX_FMT_RGB48
:
cpyresult
=
libopenjpeg_copy_
rgb
16
(
avctx
,
frame
,
image
,
3
);
cpyresult
=
libopenjpeg_copy_
packed
16
(
avctx
,
frame
,
image
,
3
);
break
;
case
PIX_FMT_RGBA64
:
cpyresult
=
libopenjpeg_copy_
rgb
16
(
avctx
,
frame
,
image
,
4
);
cpyresult
=
libopenjpeg_copy_
packed
16
(
avctx
,
frame
,
image
,
4
);
break
;
case
PIX_FMT_YUV420P
:
case
PIX_FMT_YUV422P
:
case
PIX_FMT_YUV440P
:
case
PIX_FMT_YUV444P
:
case
PIX_FMT_YUVA420P
:
cpyresult
=
libopenjpeg_copy_
yuv
8
(
avctx
,
frame
,
image
);
cpyresult
=
libopenjpeg_copy_
unpacked
8
(
avctx
,
frame
,
image
);
break
;
case
PIX_FMT_YUV420P9
:
case
PIX_FMT_YUV420P10
:
...
...
@@ -358,7 +358,7 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf
case
PIX_FMT_YUV444P9
:
case
PIX_FMT_YUV444P10
:
case
PIX_FMT_YUV444P16
:
cpyresult
=
libopenjpeg_copy_
yuv
16
(
avctx
,
frame
,
image
);
cpyresult
=
libopenjpeg_copy_
unpacked
16
(
avctx
,
frame
,
image
);
break
;
default:
av_log
(
avctx
,
AV_LOG_ERROR
,
"The frame's pixel format '%s' is not supported
\n
"
,
av_get_pix_fmt_name
(
avctx
->
pix_fmt
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment