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
1307c11c
Commit
1307c11c
authored
Dec 12, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/avdct: support >8bit per sample dcts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c1d9283b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
avdct.c
libavcodec/avdct.c
+3
-0
avdct.h
libavcodec/avdct.h
+2
-0
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/avdct.c
View file @
1307c11c
...
...
@@ -63,6 +63,8 @@ static const AVOption avdct_options[] = {
{
"xvidmmx"
,
"experimental / for debugging"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_IDCT_XVID
},
INT_MIN
,
INT_MAX
,
V
|
E
|
D
,
"idct"
},
{
"faani"
,
"floating point AAN IDCT (experimental / for debugging)"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_IDCT_FAAN
},
INT_MIN
,
INT_MAX
,
V
|
D
|
E
,
"idct"
},
{
"simpleauto"
,
"experimental / for debugging"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_IDCT_SIMPLEAUTO
},
INT_MIN
,
INT_MAX
,
V
|
E
|
D
,
"idct"
},
{
"bits_per_sample"
,
""
,
OFFSET
(
bits_per_sample
),
AV_OPT_TYPE_INT
,
{.
i64
=
8
},
0
,
14
,
0
,},
{
NULL
},
};
...
...
@@ -99,6 +101,7 @@ int avcodec_dct_init(AVDCT *dsp)
avctx
->
idct_algo
=
dsp
->
idct_algo
;
avctx
->
dct_algo
=
dsp
->
dct_algo
;
avctx
->
bits_per_raw_sample
=
dsp
->
bits_per_sample
;
#define COPY(src, name) memcpy(&dsp->name, &src.name, sizeof(dsp->name))
...
...
libavcodec/avdct.h
View file @
1307c11c
...
...
@@ -65,6 +65,8 @@ typedef struct AVDCT {
void
(
*
get_pixels
)(
int16_t
*
block
/* align 16 */
,
const
uint8_t
*
pixels
/* align 8 */
,
ptrdiff_t
line_size
);
int
bits_per_sample
;
}
AVDCT
;
/**
...
...
libavcodec/version.h
View file @
1307c11c
...
...
@@ -29,7 +29,7 @@
#include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 56
#define LIBAVCODEC_VERSION_MINOR 1
4
#define LIBAVCODEC_VERSION_MINOR 1
5
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
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