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
1aa8c57b
Commit
1aa8c57b
authored
Sep 26, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1/8 resolution decoding
Originally committed as revision 3511 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6aeb03d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
dsputil.c
libavcodec/dsputil.c
+18
-0
dsputil.h
libavcodec/dsputil.h
+1
-0
jrevdct.c
libavcodec/jrevdct.c
+4
-0
No files found.
libavcodec/dsputil.c
View file @
1aa8c57b
...
...
@@ -3382,6 +3382,19 @@ static void ff_jref_idct2_add(uint8_t *dest, int line_size, DCTELEM *block)
add_pixels_clamped2_c
(
block
,
dest
,
line_size
);
}
static
void
ff_jref_idct1_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
uint8_t
*
cm
=
cropTbl
+
MAX_NEG_CROP
;
dest
[
0
]
=
cm
[(
block
[
0
]
+
4
)
>>
3
];
}
static
void
ff_jref_idct1_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
uint8_t
*
cm
=
cropTbl
+
MAX_NEG_CROP
;
dest
[
0
]
=
cm
[
dest
[
0
]
+
((
block
[
0
]
+
4
)
>>
3
)];
}
/* init static data */
void
dsputil_static_init
(
void
)
{
...
...
@@ -3430,6 +3443,11 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx)
c
->
idct_add
=
ff_jref_idct2_add
;
c
->
idct
=
j_rev_dct2
;
c
->
idct_permutation_type
=
FF_NO_IDCT_PERM
;
}
else
if
(
avctx
->
lowres
==
3
){
c
->
idct_put
=
ff_jref_idct1_put
;
c
->
idct_add
=
ff_jref_idct1_add
;
c
->
idct
=
j_rev_dct1
;
c
->
idct_permutation_type
=
FF_NO_IDCT_PERM
;
}
else
{
if
(
avctx
->
idct_algo
==
FF_IDCT_INT
){
c
->
idct_put
=
ff_jref_idct_put
;
...
...
libavcodec/dsputil.h
View file @
1aa8c57b
...
...
@@ -44,6 +44,7 @@ void ff_fdct248_islow (DCTELEM *data);
void
j_rev_dct
(
DCTELEM
*
data
);
void
j_rev_dct4
(
DCTELEM
*
data
);
void
j_rev_dct2
(
DCTELEM
*
data
);
void
j_rev_dct1
(
DCTELEM
*
data
);
void
ff_fdct_mmx
(
DCTELEM
*
block
);
void
ff_fdct_mmx2
(
DCTELEM
*
block
);
...
...
libavcodec/jrevdct.c
View file @
1aa8c57b
...
...
@@ -1640,5 +1640,9 @@ void j_rev_dct2(DCTBLOCK data){
data
[
1
+
1
*
DCTSTRIDE
]
=
(
d01
-
d11
)
>>
3
;
}
void
j_rev_dct1
(
DCTBLOCK
data
){
data
[
0
]
=
(
data
[
0
]
+
4
)
>>
3
;
}
#undef FIX
#undef CONST_BITS
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