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
115e63c8
Commit
115e63c8
authored
Jun 11, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/utvideo: add support for UQY2
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b21f6748
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
242 additions
and
40 deletions
+242
-40
utvideo.c
libavcodec/utvideo.c
+6
-0
utvideo.h
libavcodec/utvideo.h
+3
-1
utvideodec.c
libavcodec/utvideodec.c
+233
-39
No files found.
libavcodec/utvideo.c
View file @
115e63c8
...
...
@@ -39,3 +39,9 @@ int ff_ut_huff_cmp_len(const void *a, const void *b)
const
HuffEntry
*
aa
=
a
,
*
bb
=
b
;
return
(
aa
->
len
-
bb
->
len
)
*
256
+
aa
->
sym
-
bb
->
sym
;
}
int
ff_ut10_huff_cmp_len
(
const
void
*
a
,
const
void
*
b
)
{
const
HuffEntry
*
aa
=
a
,
*
bb
=
b
;
return
(
aa
->
len
-
bb
->
len
)
*
1024
+
aa
->
sym
-
bb
->
sym
;
}
libavcodec/utvideo.h
View file @
115e63c8
...
...
@@ -76,6 +76,7 @@ typedef struct UtvideoContext {
int
compression
;
int
interlaced
;
int
frame_pred
;
int
pro
;
int
slice_stride
;
uint8_t
*
slice_bits
,
*
slice_buffer
[
4
];
...
...
@@ -83,12 +84,13 @@ typedef struct UtvideoContext {
}
UtvideoContext
;
typedef
struct
HuffEntry
{
uint
8_t
sym
;
uint
16_t
sym
;
uint8_t
len
;
uint32_t
code
;
}
HuffEntry
;
/* Compare huffman tree nodes */
int
ff_ut_huff_cmp_len
(
const
void
*
a
,
const
void
*
b
);
int
ff_ut10_huff_cmp_len
(
const
void
*
a
,
const
void
*
b
);
#endif
/* AVCODEC_UTVIDEO_H */
libavcodec/utvideodec.c
View file @
115e63c8
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