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
ffc00df0
Commit
ffc00df0
authored
Mar 19, 2016
by
Alexandra Hájková
Committed by
Diego Biurrun
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cavs: Convert to the new bitstream reader
parent
0c89ff82
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
95 deletions
+95
-95
cavs.c
libavcodec/cavs.c
+4
-4
cavs.h
libavcodec/cavs.h
+2
-2
cavsdec.c
libavcodec/cavsdec.c
+89
-89
No files found.
libavcodec/cavs.c
View file @
ffc00df0
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
*/
*/
#include "avcodec.h"
#include "avcodec.h"
#include "
get_bits
.h"
#include "
bitstream
.h"
#include "golomb
_legacy
.h"
#include "golomb.h"
#include "h264chroma.h"
#include "h264chroma.h"
#include "idctdsp.h"
#include "idctdsp.h"
#include "internal.h"
#include "internal.h"
...
@@ -603,8 +603,8 @@ void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC,
...
@@ -603,8 +603,8 @@ void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC,
mv_pred_median
(
h
,
mvP
,
mvA
,
mvB
,
mvC
);
mv_pred_median
(
h
,
mvP
,
mvA
,
mvB
,
mvC
);
if
(
mode
<
MV_PRED_PSKIP
)
{
if
(
mode
<
MV_PRED_PSKIP
)
{
mvP
->
x
+=
get_se_golomb
(
&
h
->
gb
);
mvP
->
x
+=
get_se_golomb
(
&
h
->
bc
);
mvP
->
y
+=
get_se_golomb
(
&
h
->
gb
);
mvP
->
y
+=
get_se_golomb
(
&
h
->
bc
);
}
}
set_mvs
(
mvP
,
size
);
set_mvs
(
mvP
,
size
);
}
}
...
...
libavcodec/cavs.h
View file @
ffc00df0
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
#ifndef AVCODEC_CAVS_H
#ifndef AVCODEC_CAVS_H
#define AVCODEC_CAVS_H
#define AVCODEC_CAVS_H
#include "bitstream.h"
#include "cavsdsp.h"
#include "cavsdsp.h"
#include "blockdsp.h"
#include "blockdsp.h"
#include "h264chroma.h"
#include "h264chroma.h"
#include "idctdsp.h"
#include "idctdsp.h"
#include "get_bits.h"
#include "videodsp.h"
#include "videodsp.h"
#define SLICE_MAX_START_CODE 0x000001af
#define SLICE_MAX_START_CODE 0x000001af
...
@@ -167,7 +167,7 @@ typedef struct AVSContext {
...
@@ -167,7 +167,7 @@ typedef struct AVSContext {
IDCTDSPContext
idsp
;
IDCTDSPContext
idsp
;
VideoDSPContext
vdsp
;
VideoDSPContext
vdsp
;
CAVSDSPContext
cdsp
;
CAVSDSPContext
cdsp
;
GetBitContext
gb
;
BitstreamContext
bc
;
AVSFrame
cur
;
///< currently decoded frame
AVSFrame
cur
;
///< currently decoded frame
AVSFrame
DPB
[
2
];
///< reference frames
AVSFrame
DPB
[
2
];
///< reference frames
int
dist
[
2
];
///< temporal distances from current frame to ref frames
int
dist
[
2
];
///< temporal distances from current frame to ref frames
...
...
libavcodec/cavsdec.c
View file @
ffc00df0
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