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
d37faad0
Commit
d37faad0
authored
Nov 02, 2018
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpeg: Use profile names in the encoder and decoder
parent
aefbb2bf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
1 deletion
+16
-1
codec_desc.c
libavcodec/codec_desc.c
+1
-0
mjpegdec.c
libavcodec/mjpegdec.c
+2
-0
mjpegenc.c
libavcodec/mjpegenc.c
+2
-0
profiles.c
libavcodec/profiles.c
+9
-0
profiles.h
libavcodec/profiles.h
+1
-0
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/codec_desc.c
View file @
d37faad0
...
...
@@ -81,6 +81,7 @@ static const AVCodecDescriptor codec_descriptors[] = {
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Motion JPEG"
),
.
props
=
AV_CODEC_PROP_INTRA_ONLY
|
AV_CODEC_PROP_LOSSY
,
.
mime_types
=
MT
(
"image/jpeg"
),
.
profiles
=
NULL_IF_CONFIG_SMALL
(
ff_mjpeg_profiles
),
},
{
.
id
=
AV_CODEC_ID_MJPEGB
,
...
...
libavcodec/mjpegdec.c
View file @
d37faad0
...
...
@@ -43,6 +43,7 @@
#include "mjpeg.h"
#include "mjpegdec.h"
#include "jpeglsdec.h"
#include "profiles.h"
#include "put_bits.h"
#include "tiff.h"
#include "exif.h"
...
...
@@ -2796,6 +2797,7 @@ AVCodec ff_mjpeg_decoder = {
.
capabilities
=
AV_CODEC_CAP_DR1
,
.
max_lowres
=
3
,
.
priv_class
=
&
mjpegdec_class
,
.
profiles
=
NULL_IF_CONFIG_SMALL
(
ff_mjpeg_profiles
),
.
caps_internal
=
FF_CODEC_CAP_INIT_THREADSAFE
|
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
,
.
hw_configs
=
(
const
AVCodecHWConfigInternal
*
[])
{
...
...
libavcodec/mjpegenc.c
View file @
d37faad0
...
...
@@ -38,6 +38,7 @@
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"
#include "profiles.h"
static
int
alloc_huffman
(
MpegEncContext
*
s
)
{
...
...
@@ -418,6 +419,7 @@ AVCodec ff_mjpeg_encoder = {
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_NONE
},
.
priv_class
=
&
mjpeg_class
,
.
profiles
=
NULL_IF_CONFIG_SMALL
(
ff_mjpeg_profiles
),
};
#endif
...
...
libavcodec/profiles.c
View file @
d37faad0
...
...
@@ -161,4 +161,13 @@ const AVProfile ff_prores_profiles[] = {
{
FF_PROFILE_UNKNOWN
}
};
const
AVProfile
ff_mjpeg_profiles
[]
=
{
{
FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT
,
"Baseline"
},
{
FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT
,
"Sequential"
},
{
FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT
,
"Progressive"
},
{
FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS
,
"Lossless"
},
{
FF_PROFILE_MJPEG_JPEG_LS
,
"JPEG LS"
},
{
FF_PROFILE_UNKNOWN
}
};
#endif
/* !CONFIG_SMALL */
libavcodec/profiles.h
View file @
d37faad0
...
...
@@ -34,5 +34,6 @@ extern const AVProfile ff_vp9_profiles[];
extern
const
AVProfile
ff_av1_profiles
[];
extern
const
AVProfile
ff_sbc_profiles
[];
extern
const
AVProfile
ff_prores_profiles
[];
extern
const
AVProfile
ff_mjpeg_profiles
[];
#endif
/* AVCODEC_PROFILES_H */
libavcodec/version.h
View file @
d37faad0
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 38
#define LIBAVCODEC_VERSION_MICRO 10
1
#define LIBAVCODEC_VERSION_MICRO 10
2
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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