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
bd6496fa
Commit
bd6496fa
authored
Apr 12, 2016
by
Alexandra Hájková
Committed by
Diego Biurrun
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interplayvideo: Convert to the new bitstream reader
parent
4e250510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interplayvideo.c
libavcodec/interplayvideo.c
+4
-4
No files found.
libavcodec/interplayvideo.c
View file @
bd6496fa
...
...
@@ -40,8 +40,8 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "bitstream.h"
#include "bytestream.h"
#include "get_bits.h"
#include "hpeldsp.h"
#include "internal.h"
...
...
@@ -881,7 +881,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
int
x
,
y
;
unsigned
char
opcode
;
int
ret
;
GetBitContext
gb
;
BitstreamContext
bc
;
bytestream2_skip
(
&
s
->
stream_ptr
,
14
);
/* data starts 14 bytes in */
if
(
!
s
->
is_16bpp
)
{
...
...
@@ -898,10 +898,10 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
s
->
upper_motion_limit_offset
=
(
s
->
avctx
->
height
-
8
)
*
frame
->
linesize
[
0
]
+
(
s
->
avctx
->
width
-
8
)
*
(
1
+
s
->
is_16bpp
);
init_get_bits
(
&
gb
,
s
->
decoding_map
,
s
->
decoding_map_size
*
8
);
bitstream_init
(
&
bc
,
s
->
decoding_map
,
s
->
decoding_map_size
*
8
);
for
(
y
=
0
;
y
<
s
->
avctx
->
height
;
y
+=
8
)
{
for
(
x
=
0
;
x
<
s
->
avctx
->
width
;
x
+=
8
)
{
opcode
=
get_bits
(
&
gb
,
4
);
opcode
=
bitstream_read
(
&
bc
,
4
);
ff_dlog
(
s
->
avctx
,
" block @ (%3d, %3d): encoding 0x%X, data ptr offset %d
\n
"
,
...
...
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