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
9d9e3172
Commit
9d9e3172
authored
Oct 22, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
112 bytes smaller MpegEncContext
Originally committed as revision 2414 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
45686da2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
mpegvideo.c
libavcodec/mpegvideo.c
+4
-0
mpegvideo.h
libavcodec/mpegvideo.h
+2
-2
No files found.
libavcodec/mpegvideo.c
View file @
9d9e3172
...
@@ -447,6 +447,8 @@ int MPV_common_init(MpegEncContext *s)
...
@@ -447,6 +447,8 @@ int MPV_common_init(MpegEncContext *s)
CHECKED_ALLOCZ
(
s
->
q_inter_matrix
,
64
*
32
*
sizeof
(
int
))
CHECKED_ALLOCZ
(
s
->
q_inter_matrix
,
64
*
32
*
sizeof
(
int
))
CHECKED_ALLOCZ
(
s
->
q_intra_matrix16
,
64
*
32
*
2
*
sizeof
(
uint16_t
))
CHECKED_ALLOCZ
(
s
->
q_intra_matrix16
,
64
*
32
*
2
*
sizeof
(
uint16_t
))
CHECKED_ALLOCZ
(
s
->
q_inter_matrix16
,
64
*
32
*
2
*
sizeof
(
uint16_t
))
CHECKED_ALLOCZ
(
s
->
q_inter_matrix16
,
64
*
32
*
2
*
sizeof
(
uint16_t
))
CHECKED_ALLOCZ
(
s
->
input_picture
,
MAX_PICTURE_COUNT
*
sizeof
(
Picture
*
))
CHECKED_ALLOCZ
(
s
->
reordered_input_picture
,
MAX_PICTURE_COUNT
*
sizeof
(
Picture
*
))
}
}
CHECKED_ALLOCZ
(
s
->
blocks
,
64
*
6
*
2
*
sizeof
(
DCTELEM
))
CHECKED_ALLOCZ
(
s
->
blocks
,
64
*
6
*
2
*
sizeof
(
DCTELEM
))
...
@@ -571,6 +573,8 @@ void MPV_common_end(MpegEncContext *s)
...
@@ -571,6 +573,8 @@ void MPV_common_end(MpegEncContext *s)
av_freep
(
&
s
->
q_intra_matrix16
);
av_freep
(
&
s
->
q_intra_matrix16
);
av_freep
(
&
s
->
q_inter_matrix16
);
av_freep
(
&
s
->
q_inter_matrix16
);
av_freep
(
&
s
->
blocks
);
av_freep
(
&
s
->
blocks
);
av_freep
(
&
s
->
input_picture
);
av_freep
(
&
s
->
reordered_input_picture
);
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
){
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
){
free_picture
(
s
,
&
s
->
picture
[
i
]);
free_picture
(
s
,
&
s
->
picture
[
i
]);
...
...
libavcodec/mpegvideo.h
View file @
9d9e3172
...
@@ -302,8 +302,8 @@ typedef struct MpegEncContext {
...
@@ -302,8 +302,8 @@ typedef struct MpegEncContext {
int
linesize
;
///< line size, in bytes, may be different from width
int
linesize
;
///< line size, in bytes, may be different from width
int
uvlinesize
;
///< line size, for chroma in bytes, may be different from width
int
uvlinesize
;
///< line size, for chroma in bytes, may be different from width
Picture
*
picture
;
///< main picture buffer
Picture
*
picture
;
///< main picture buffer
Picture
*
input_picture
[
MAX_PICTURE_COUNT
];
///< next pictures on display order for encoding
Picture
*
*
input_picture
;
///< next pictures on display order for encoding
Picture
*
reordered_input_picture
[
MAX_PICTURE_COUNT
]
;
///< pointer to the next pictures in codedorder for encoding
Picture
*
*
reordered_input_picture
;
///< pointer to the next pictures in codedorder for encoding
/**
/**
* copy of the previous picture structure.
* copy of the previous picture structure.
...
...
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