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
2f4b476e
Commit
2f4b476e
authored
Feb 18, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msmpeg4: Split encoding backend code off from general backend code.
parent
eb727387
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
734 additions
and
690 deletions
+734
-690
Makefile
libavcodec/Makefile
+7
-5
msmpeg4.c
libavcodec/msmpeg4.c
+15
-685
msmpeg4.h
libavcodec/msmpeg4.h
+12
-0
msmpeg4data.c
libavcodec/msmpeg4data.c
+4
-0
msmpeg4data.h
libavcodec/msmpeg4data.h
+4
-0
msmpeg4enc.c
libavcodec/msmpeg4enc.c
+692
-0
No files found.
libavcodec/Makefile
View file @
2f4b476e
...
...
@@ -272,12 +272,14 @@ OBJS-$(CONFIG_MPEG4_VAAPI_HWACCEL) += vaapi_mpeg4.o
OBJS-$(CONFIG_MSMPEG4V1_DECODER)
+=
msmpeg4.o
msmpeg4data.o
OBJS-$(CONFIG_MSMPEG4V2_DECODER)
+=
msmpeg4.o
msmpeg4data.o
h263dec.o
\
h263.o
ituh263dec.o
mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V2_ENCODER)
+=
msmpeg4.o
msmpeg4data.o
h263dec.o
\
h263.o
ituh263dec.o
mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V2_ENCODER)
+=
msmpeg4.o
msmpeg4enc.o
msmpeg4data.o
\
h263dec.o
h263.o
ituh263dec.o
\
mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V3_DECODER)
+=
msmpeg4.o
msmpeg4data.o
h263dec.o
\
h263.o
ituh263dec.o
mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V3_ENCODER)
+=
msmpeg4.o
msmpeg4data.o
h263dec.o
\
h263.o
ituh263dec.o
mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V3_ENCODER)
+=
msmpeg4.o
msmpeg4enc.o
msmpeg4data.o
\
h263dec.o
h263.o
ituh263dec.o
\
mpeg4videodec.o
OBJS-$(CONFIG_MSRLE_DECODER)
+=
msrle.o
msrledec.o
OBJS-$(CONFIG_MSVIDEO1_DECODER)
+=
msvideo1.o
OBJS-$(CONFIG_MSZH_DECODER)
+=
lcldec.o
...
...
@@ -429,7 +431,7 @@ OBJS-$(CONFIG_WMV2_DECODER) += wmv2dec.o wmv2.o \
msmpeg4.o
msmpeg4data.o
\
intrax8.o
intrax8dsp.o
OBJS-$(CONFIG_WMV2_ENCODER)
+=
wmv2enc.o
wmv2.o
\
msmpeg4.o
msmpeg4data.o
\
msmpeg4.o
msmpeg4
enc.o
msmpeg4
data.o
\
mpeg4videodec.o
ituh263dec.o
h263dec.o
OBJS-$(CONFIG_WNV1_DECODER)
+=
wnv1.o
OBJS-$(CONFIG_WS_SND1_DECODER)
+=
ws-snd1.o
...
...
libavcodec/msmpeg4.c
View file @
2f4b476e
This diff is collapsed.
Click to expand it.
libavcodec/msmpeg4.h
View file @
2f4b476e
...
...
@@ -22,19 +22,29 @@
#ifndef AVCODEC_MSMPEG4_H
#define AVCODEC_MSMPEG4_H
#include <stdint.h>
#include "config.h"
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "msmpeg4data.h"
#include "put_bits.h"
#define INTER_INTRA_VLC_BITS 3
#define MB_NON_INTRA_VLC_BITS 9
#define MB_INTRA_VLC_BITS 9
#define II_BITRATE 128*1024
#define MBAC_BITRATE 50*1024
#define DC_MAX 119
extern
VLC
ff_mb_non_intra_vlc
[
4
];
extern
VLC
ff_inter_intra_vlc
;
void
ff_msmpeg4_code012
(
PutBitContext
*
pb
,
int
n
);
void
ff_msmpeg4_common_init
(
MpegEncContext
*
s
);
void
ff_msmpeg4_encode_block
(
MpegEncContext
*
s
,
DCTELEM
*
block
,
int
n
);
void
ff_msmpeg4_handle_slices
(
MpegEncContext
*
s
);
void
ff_msmpeg4_encode_motion
(
MpegEncContext
*
s
,
int
mx
,
int
my
);
...
...
@@ -43,6 +53,8 @@ int ff_msmpeg4_coded_block_pred(MpegEncContext * s, int n,
int
ff_msmpeg4_decode_motion
(
MpegEncContext
*
s
,
int
*
mx_ptr
,
int
*
my_ptr
);
int
ff_msmpeg4_decode_block
(
MpegEncContext
*
s
,
DCTELEM
*
block
,
int
n
,
int
coded
,
const
uint8_t
*
scan_table
);
int
ff_msmpeg4_pred_dc
(
MpegEncContext
*
s
,
int
n
,
int16_t
**
dc_val_ptr
,
int
*
dir_ptr
);
int
ff_wmv2_decode_mb
(
MpegEncContext
*
s
,
DCTELEM
block
[
6
][
64
]);
#define CONFIG_MSMPEG4_DECODER (CONFIG_MSMPEG4V1_DECODER || \
...
...
libavcodec/msmpeg4data.c
View file @
2f4b476e
...
...
@@ -29,6 +29,10 @@
#include "msmpeg4data.h"
uint32_t
ff_v2_dc_lum_table
[
512
][
2
];
uint32_t
ff_v2_dc_chroma_table
[
512
][
2
];
uint8_t
ff_static_rl_table_store
[
NB_RL_TABLES
][
2
][
2
*
MAX_RUN
+
MAX_LEVEL
+
3
];
VLC
ff_msmp4_mb_i_vlc
;
VLC
ff_msmp4_dc_luma_vlc
[
2
];
VLC
ff_msmp4_dc_chroma_vlc
[
2
];
...
...
libavcodec/msmpeg4data.h
View file @
2f4b476e
...
...
@@ -59,6 +59,10 @@ extern const uint8_t ff_wmv1_scantable[WMV1_SCANTABLE_COUNT][64];
#define NB_RL_TABLES 6
extern
RLTable
ff_rl_table
[
NB_RL_TABLES
];
extern
uint8_t
ff_static_rl_table_store
[
NB_RL_TABLES
][
2
][
2
*
MAX_RUN
+
MAX_LEVEL
+
3
];
extern
uint32_t
ff_v2_dc_lum_table
[
512
][
2
];
extern
uint32_t
ff_v2_dc_chroma_table
[
512
][
2
];
extern
const
uint8_t
ff_wmv1_y_dc_scale_table
[
32
];
extern
const
uint8_t
ff_wmv1_c_dc_scale_table
[
32
];
...
...
libavcodec/msmpeg4enc.c
0 → 100644
View file @
2f4b476e
This diff is collapsed.
Click to expand it.
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