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
f51e5015
Commit
f51e5015
authored
Nov 02, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: export quarter_sample & divx_packed
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ce451c6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+24
-1
No files found.
libavcodec/mpeg4videodec.c
View file @
f51e5015
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "libavutil/opt.h"
#include "mpegvideo.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "mpeg4video.h"
#include "h263.h"
#include "h263.h"
...
@@ -2276,6 +2277,26 @@ static const AVProfile mpeg4_video_profiles[] = {
...
@@ -2276,6 +2277,26 @@ static const AVProfile mpeg4_video_profiles[] = {
{
FF_PROFILE_MPEG4_ADVANCED_SIMPLE
,
"Advanced Simple Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_SIMPLE
,
"Advanced Simple Profile"
},
};
};
static
const
AVOption
mpeg4_options
[]
=
{
{
"quarter_sample"
,
"1/4 subpel MC"
,
offsetof
(
MpegEncContext
,
quarter_sample
),
FF_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
1
,
0
},
{
"divx_packed"
,
"divx style packed b frames"
,
offsetof
(
MpegEncContext
,
divx_packed
),
FF_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
1
,
0
},
{
NULL
}
};
static
const
AVClass
mpeg4_class
=
{
"MPEG4 Video Decoder"
,
av_default_item_name
,
mpeg4_options
,
LIBAVUTIL_VERSION_INT
,
};
static
const
AVClass
mpeg4_vdpau_class
=
{
"MPEG4 Video VDPAU Decoder"
,
av_default_item_name
,
mpeg4_options
,
LIBAVUTIL_VERSION_INT
,
};
AVCodec
ff_mpeg4_decoder
=
{
AVCodec
ff_mpeg4_decoder
=
{
.
name
=
"mpeg4"
,
.
name
=
"mpeg4"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
...
@@ -2290,7 +2311,8 @@ AVCodec ff_mpeg4_decoder = {
...
@@ -2290,7 +2311,8 @@ AVCodec ff_mpeg4_decoder = {
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-4 part 2"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-4 part 2"
),
.
pix_fmts
=
ff_hwaccel_pixfmt_list_420
,
.
pix_fmts
=
ff_hwaccel_pixfmt_list_420
,
.
profiles
=
NULL_IF_CONFIG_SMALL
(
mpeg4_video_profiles
),
.
profiles
=
NULL_IF_CONFIG_SMALL
(
mpeg4_video_profiles
),
.
update_thread_context
=
ONLY_IF_THREADS_ENABLED
(
ff_mpeg_update_thread_context
)
.
update_thread_context
=
ONLY_IF_THREADS_ENABLED
(
ff_mpeg_update_thread_context
),
.
priv_class
=
&
mpeg4_class
,
};
};
...
@@ -2306,5 +2328,6 @@ AVCodec ff_mpeg4_vdpau_decoder = {
...
@@ -2306,5 +2328,6 @@ AVCodec ff_mpeg4_vdpau_decoder = {
.
capabilities
=
CODEC_CAP_DR1
|
CODEC_CAP_TRUNCATED
|
CODEC_CAP_DELAY
|
CODEC_CAP_HWACCEL_VDPAU
,
.
capabilities
=
CODEC_CAP_DR1
|
CODEC_CAP_TRUNCATED
|
CODEC_CAP_DELAY
|
CODEC_CAP_HWACCEL_VDPAU
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-4 part 2 (VDPAU)"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-4 part 2 (VDPAU)"
),
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_VDPAU_MPEG4
,
PIX_FMT_NONE
},
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_VDPAU_MPEG4
,
PIX_FMT_NONE
},
.
priv_class
=
&
mpeg4_vdpau_class
,
};
};
#endif
#endif
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