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
e557584a
Commit
e557584a
authored
Mar 26, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg12: Move Mpeg1Context declaration to the only place it is used
parent
1b6d6674
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
mpeg12.h
libavcodec/mpeg12.h
+0
-15
mpeg12dec.c
libavcodec/mpeg12dec.c
+15
-0
No files found.
libavcodec/mpeg12.h
View file @
e557584a
...
@@ -41,21 +41,6 @@ extern VLC ff_mb_btype_vlc;
...
@@ -41,21 +41,6 @@ extern VLC ff_mb_btype_vlc;
extern
VLC
ff_mb_pat_vlc
;
extern
VLC
ff_mb_pat_vlc
;
extern
VLC
ff_mv_vlc
;
extern
VLC
ff_mv_vlc
;
typedef
struct
Mpeg1Context
{
MpegEncContext
mpeg_enc_ctx
;
int
mpeg_enc_ctx_allocated
;
/* true if decoding context allocated */
int
repeat_field
;
/* true if we must repeat the field */
AVPanScan
pan_scan
;
/**< some temporary storage for the panscan */
int
slice_count
;
int
swap_uv
;
//indicate VCR2
int
save_aspect_info
;
int
save_width
,
save_height
,
save_progressive_seq
;
AVRational
frame_rate_ext
;
///< MPEG-2 specific framerate modificator
int
sync
;
///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
int
closed_gop
;
///< GOP is closed
int
extradata_decoded
;
}
Mpeg1Context
;
extern
uint8_t
ff_mpeg12_static_rl_table_store
[
2
][
2
][
2
*
MAX_RUN
+
MAX_LEVEL
+
3
];
extern
uint8_t
ff_mpeg12_static_rl_table_store
[
2
][
2
][
2
*
MAX_RUN
+
MAX_LEVEL
+
3
];
void
ff_mpeg12_common_init
(
MpegEncContext
*
s
);
void
ff_mpeg12_common_init
(
MpegEncContext
*
s
);
...
...
libavcodec/mpeg12dec.c
View file @
e557584a
...
@@ -43,6 +43,21 @@
...
@@ -43,6 +43,21 @@
//#undef NDEBUG
//#undef NDEBUG
//#include <assert.h>
//#include <assert.h>
typedef
struct
Mpeg1Context
{
MpegEncContext
mpeg_enc_ctx
;
int
mpeg_enc_ctx_allocated
;
/* true if decoding context allocated */
int
repeat_field
;
/* true if we must repeat the field */
AVPanScan
pan_scan
;
/**< some temporary storage for the panscan */
int
slice_count
;
int
swap_uv
;
//indicate VCR2
int
save_aspect_info
;
int
save_width
,
save_height
,
save_progressive_seq
;
AVRational
frame_rate_ext
;
///< MPEG-2 specific framerate modificator
int
sync
;
///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
int
closed_gop
;
///< GOP is closed
int
extradata_decoded
;
}
Mpeg1Context
;
/* as H.263, but only 17 codes */
/* as H.263, but only 17 codes */
static
int
mpeg_decode_motion
(
MpegEncContext
*
s
,
int
fcode
,
int
pred
)
static
int
mpeg_decode_motion
(
MpegEncContext
*
s
,
int
fcode
,
int
pred
)
{
{
...
...
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