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
d4c2103b
Commit
d4c2103b
authored
Jan 30, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golomb: Convert to the new bitstream reader
parent
ab87af41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
693 additions
and
160 deletions
+693
-160
aic.c
libavcodec/aic.c
+1
-1
cavs.c
libavcodec/cavs.c
+1
-1
cavsdec.c
libavcodec/cavsdec.c
+1
-1
dirac.c
libavcodec/dirac.c
+1
-1
ffv1dec.c
libavcodec/ffv1dec.c
+2
-1
ffv1enc.c
libavcodec/ffv1enc.c
+1
-1
fic.c
libavcodec/fic.c
+2
-1
flacdec.c
libavcodec/flacdec.c
+1
-1
flacenc.c
libavcodec/flacenc.c
+1
-1
golomb.h
libavcodec/golomb.h
+73
-117
golomb_legacy.h
libavcodec/golomb_legacy.h
+573
-0
h264_cavlc.c
libavcodec/h264_cavlc.c
+1
-1
h264_parse.c
libavcodec/h264_parse.c
+1
-1
h264_parser.c
libavcodec/h264_parser.c
+1
-1
h264_ps.c
libavcodec/h264_ps.c
+2
-1
h264_refs.c
libavcodec/h264_refs.c
+1
-1
h264_sei.c
libavcodec/h264_sei.c
+1
-1
h264_slice.c
libavcodec/h264_slice.c
+1
-1
h264dec.c
libavcodec/h264dec.c
+1
-1
hevc_parser.c
libavcodec/hevc_parser.c
+1
-1
hevc_ps.c
libavcodec/hevc_ps.c
+1
-1
hevc_ps_enc.c
libavcodec/hevc_ps_enc.c
+1
-1
hevc_sei.c
libavcodec/hevc_sei.c
+1
-1
hevcdec.c
libavcodec/hevcdec.c
+1
-1
jpeglsdec.c
libavcodec/jpeglsdec.c
+1
-1
jpeglsenc.c
libavcodec/jpeglsenc.c
+1
-1
loco.c
libavcodec/loco.c
+1
-1
ralf.c
libavcodec/ralf.c
+1
-1
rv30.c
libavcodec/rv30.c
+1
-1
rv34.c
libavcodec/rv34.c
+1
-1
rv40.c
libavcodec/rv40.c
+1
-1
shorten.c
libavcodec/shorten.c
+1
-1
svq3.c
libavcodec/svq3.c
+2
-1
golomb.c
libavcodec/tests/golomb.c
+11
-11
hevc.c
libavformat/hevc.c
+1
-1
No files found.
libavcodec/aic.c
View file @
d4c2103b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "bytestream.h"
#include "bytestream.h"
#include "internal.h"
#include "internal.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "idctdsp.h"
#include "idctdsp.h"
#include "thread.h"
#include "thread.h"
#include "unary_legacy.h"
#include "unary_legacy.h"
...
...
libavcodec/cavs.c
View file @
d4c2103b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "h264chroma.h"
#include "h264chroma.h"
#include "idctdsp.h"
#include "idctdsp.h"
#include "internal.h"
#include "internal.h"
...
...
libavcodec/cavsdec.c
View file @
d4c2103b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "cavs.h"
#include "cavs.h"
#include "internal.h"
#include "internal.h"
#include "mpeg12data.h"
#include "mpeg12data.h"
...
...
libavcodec/dirac.c
View file @
d4c2103b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "dirac.h"
#include "dirac.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "mpeg12data.h"
#include "mpeg12data.h"
...
...
libavcodec/ffv1dec.c
View file @
d4c2103b
...
@@ -31,12 +31,13 @@
...
@@ -31,12 +31,13 @@
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "libavutil/timer.h"
#include "libavutil/timer.h"
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "get_bits.h"
#include "get_bits.h"
#include "put_bits.h"
#include "put_bits.h"
#include "rangecoder.h"
#include "rangecoder.h"
#include "golomb.h"
#include "mathops.h"
#include "mathops.h"
#include "ffv1.h"
#include "ffv1.h"
...
...
libavcodec/ffv1enc.c
View file @
d4c2103b
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "put_bits.h"
#include "put_bits.h"
#include "rangecoder.h"
#include "rangecoder.h"
#include "golomb.h"
#include "mathops.h"
#include "mathops.h"
#include "ffv1.h"
#include "ffv1.h"
...
...
libavcodec/fic.c
View file @
d4c2103b
...
@@ -22,10 +22,11 @@
...
@@ -22,10 +22,11 @@
*/
*/
#include "libavutil/common.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
typedef
struct
FICThreadContext
{
typedef
struct
FICThreadContext
{
DECLARE_ALIGNED
(
16
,
int16_t
,
block
)[
64
];
DECLARE_ALIGNED
(
16
,
int16_t
,
block
)[
64
];
...
...
libavcodec/flacdec.c
View file @
d4c2103b
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include "internal.h"
#include "internal.h"
#include "get_bits.h"
#include "get_bits.h"
#include "bytestream.h"
#include "bytestream.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "flac.h"
#include "flac.h"
#include "flacdata.h"
#include "flacdata.h"
#include "flacdsp.h"
#include "flacdsp.h"
...
...
libavcodec/flacenc.c
View file @
d4c2103b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "bswapdsp.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "lpc.h"
#include "lpc.h"
#include "flac.h"
#include "flac.h"
...
...
libavcodec/golomb.h
View file @
d4c2103b
This diff is collapsed.
Click to expand it.
libavcodec/golomb_legacy.h
0 → 100644
View file @
d4c2103b
This diff is collapsed.
Click to expand it.
libavcodec/h264_cavlc.c
View file @
d4c2103b
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "h264dec.h"
#include "h264dec.h"
#include "h264_mvpred.h"
#include "h264_mvpred.h"
#include "h264data.h"
#include "h264data.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include <assert.h>
#include <assert.h>
...
...
libavcodec/h264_parse.c
View file @
d4c2103b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "bytestream.h"
#include "bytestream.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "h264.h"
#include "h264.h"
#include "h264dec.h"
#include "h264dec.h"
#include "h264_parse.h"
#include "h264_parse.h"
...
...
libavcodec/h264_parser.c
View file @
d4c2103b
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "h264.h"
#include "h264.h"
#include "h264_sei.h"
#include "h264_sei.h"
#include "h264_ps.h"
#include "h264_ps.h"
...
...
libavcodec/h264_ps.c
View file @
d4c2103b
...
@@ -28,12 +28,13 @@
...
@@ -28,12 +28,13 @@
#include <inttypes.h>
#include <inttypes.h>
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "mathops.h"
#include "mathops.h"
#include "avcodec.h"
#include "avcodec.h"
#include "h264data.h"
#include "h264data.h"
#include "h264_ps.h"
#include "h264_ps.h"
#include "golomb.h"
#define MAX_LOG2_MAX_FRAME_NUM (12 + 4)
#define MAX_LOG2_MAX_FRAME_NUM (12 + 4)
#define MIN_LOG2_MAX_FRAME_NUM 4
#define MIN_LOG2_MAX_FRAME_NUM 4
...
...
libavcodec/h264_refs.c
View file @
d4c2103b
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
#include <inttypes.h>
#include <inttypes.h>
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "avcodec.h"
#include "avcodec.h"
#include "h264.h"
#include "h264.h"
#include "h264dec.h"
#include "h264dec.h"
#include "golomb.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include <assert.h>
#include <assert.h>
...
...
libavcodec/h264_sei.c
View file @
d4c2103b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "h264_ps.h"
#include "h264_ps.h"
#include "h264_sei.h"
#include "h264_sei.h"
#include "internal.h"
#include "internal.h"
...
...
libavcodec/h264_slice.c
View file @
d4c2103b
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "cabac.h"
#include "cabac.h"
#include "cabac_functions.h"
#include "cabac_functions.h"
#include "error_resilience.h"
#include "error_resilience.h"
#include "golomb_legacy.h"
#include "avcodec.h"
#include "avcodec.h"
#include "h264.h"
#include "h264.h"
#include "h264dec.h"
#include "h264dec.h"
...
@@ -41,7 +42,6 @@
...
@@ -41,7 +42,6 @@
#include "h264chroma.h"
#include "h264chroma.h"
#include "h264_mvpred.h"
#include "h264_mvpred.h"
#include "h264_ps.h"
#include "h264_ps.h"
#include "golomb.h"
#include "mathops.h"
#include "mathops.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include "rectangle.h"
#include "rectangle.h"
...
...
libavcodec/h264dec.c
View file @
d4c2103b
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "cabac_functions.h"
#include "cabac_functions.h"
#include "error_resilience.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "h264.h"
#include "h264.h"
#include "h264dec.h"
#include "h264dec.h"
#include "h2645_parse.h"
#include "h2645_parse.h"
...
@@ -43,7 +44,6 @@
...
@@ -43,7 +44,6 @@
#include "h264chroma.h"
#include "h264chroma.h"
#include "h264_mvpred.h"
#include "h264_mvpred.h"
#include "h264_ps.h"
#include "h264_ps.h"
#include "golomb.h"
#include "mathops.h"
#include "mathops.h"
#include "me_cmp.h"
#include "me_cmp.h"
#include "mpegutils.h"
#include "mpegutils.h"
...
...
libavcodec/hevc_parser.c
View file @
d4c2103b
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "libavutil/common.h"
#include "libavutil/common.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "hevc.h"
#include "hevc.h"
#include "hevcdec.h"
#include "hevcdec.h"
#include "h2645_parse.h"
#include "h2645_parse.h"
...
...
libavcodec/hevc_ps.c
View file @
d4c2103b
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "hevc_data.h"
#include "hevc_data.h"
#include "hevc_ps.h"
#include "hevc_ps.h"
...
...
libavcodec/hevc_ps_enc.c
View file @
d4c2103b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "hevc_ps.h"
#include "hevc_ps.h"
#include "put_bits.h"
#include "put_bits.h"
...
...
libavcodec/hevc_sei.c
View file @
d4c2103b
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "hevcdec.h"
#include "hevcdec.h"
enum
HEVC_SEI_TYPE
{
enum
HEVC_SEI_TYPE
{
...
...
libavcodec/hevcdec.c
View file @
d4c2103b
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include "bswapdsp.h"
#include "bswapdsp.h"
#include "bytestream.h"
#include "bytestream.h"
#include "cabac_functions.h"
#include "cabac_functions.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "hevc.h"
#include "hevc.h"
#include "hevc_data.h"
#include "hevc_data.h"
#include "hevcdec.h"
#include "hevcdec.h"
...
...
libavcodec/jpeglsdec.c
View file @
d4c2103b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "mathops.h"
#include "mathops.h"
#include "mjpeg.h"
#include "mjpeg.h"
...
...
libavcodec/jpeglsenc.c
View file @
d4c2103b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "mathops.h"
#include "mathops.h"
#include "mjpeg.h"
#include "mjpeg.h"
...
...
libavcodec/loco.c
View file @
d4c2103b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "mathops.h"
#include "mathops.h"
...
...
libavcodec/ralf.c
View file @
d4c2103b
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "avcodec.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#include "unary_legacy.h"
#include "unary_legacy.h"
#include "ralfdata.h"
#include "ralfdata.h"
...
...
libavcodec/rv30.c
View file @
d4c2103b
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
*/
*/
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideo.h"
#include "golomb.h"
#include "rv34.h"
#include "rv34.h"
#include "rv30data.h"
#include "rv30data.h"
...
...
libavcodec/rv34.c
View file @
d4c2103b
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#include "avcodec.h"
#include "avcodec.h"
#include "error_resilience.h"
#include "error_resilience.h"
#include "golomb_legacy.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideo.h"
#include "golomb.h"
#include "internal.h"
#include "internal.h"
#include "mathops.h"
#include "mathops.h"
#include "mpeg_er.h"
#include "mpeg_er.h"
...
...
libavcodec/rv40.c
View file @
d4c2103b
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "avcodec.h"
#include "golomb_legacy.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideo.h"
#include "golomb.h"
#include "rv34.h"
#include "rv34.h"
#include "rv40vlc2.h"
#include "rv40vlc2.h"
...
...
libavcodec/shorten.c
View file @
d4c2103b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bytestream.h"
#include "get_bits.h"
#include "get_bits.h"
#include "golomb.h"
#include "golomb
_legacy
.h"
#include "internal.h"
#include "internal.h"
#define MAX_CHANNELS 8
#define MAX_CHANNELS 8
...
...
libavcodec/svq3.c
View file @
d4c2103b
...
@@ -43,12 +43,13 @@
...
@@ -43,12 +43,13 @@
#include <inttypes.h>
#include <inttypes.h>
#include "libavutil/attributes.h"
#include "libavutil/attributes.h"
#include "golomb_legacy.h"
#include "internal.h"
#include "internal.h"
#include "avcodec.h"
#include "avcodec.h"
#include "mpegutils.h"
#include "mpegutils.h"
#include "h264dec.h"
#include "h264dec.h"
#include "h264data.h"
#include "h264data.h"
#include "golomb.h"
#include "hpeldsp.h"
#include "hpeldsp.h"
#include "mathops.h"
#include "mathops.h"
#include "rectangle.h"
#include "rectangle.h"
...
...
libavcodec/tests/golomb.c
View file @
d4c2103b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "libavutil/mem.h"
#include "libavutil/mem.h"
#include "libavcodec/
get_bits
.h"
#include "libavcodec/
bitstream
.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/golomb.h"
#include "libavcodec/golomb.h"
...
@@ -33,7 +33,7 @@ int main(void)
...
@@ -33,7 +33,7 @@ int main(void)
int
i
,
ret
=
0
;
int
i
,
ret
=
0
;
uint8_t
*
temp
;
uint8_t
*
temp
;
PutBitContext
pb
;
PutBitContext
pb
;
GetBitContext
gb
;
BitstreamContext
bc
;
temp
=
av_malloc
(
SIZE
);
temp
=
av_malloc
(
SIZE
);
if
(
!
temp
)
if
(
!
temp
)
...
@@ -44,11 +44,11 @@ int main(void)
...
@@ -44,11 +44,11 @@ int main(void)
set_ue_golomb
(
&
pb
,
i
);
set_ue_golomb
(
&
pb
,
i
);
flush_put_bits
(
&
pb
);
flush_put_bits
(
&
pb
);
init_get_bits
(
&
gb
,
temp
,
8
*
SIZE
);
bitstream_init8
(
&
bc
,
temp
,
SIZE
);
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
int
j
,
s
=
show_bits
(
&
gb
,
25
);
int
j
,
s
=
bitstream_peek
(
&
bc
,
25
);
j
=
get_ue_golomb
(
&
gb
);
j
=
get_ue_golomb
(
&
bc
);
if
(
j
!=
i
)
{
if
(
j
!=
i
)
{
fprintf
(
stderr
,
"get_ue_golomb: expected %d, got %d. bits: %7x
\n
"
,
fprintf
(
stderr
,
"get_ue_golomb: expected %d, got %d. bits: %7x
\n
"
,
i
,
j
,
s
);
i
,
j
,
s
);
...
@@ -62,11 +62,11 @@ int main(void)
...
@@ -62,11 +62,11 @@ int main(void)
set_ue_golomb
(
&
pb
,
EXTEND
(
i
));
set_ue_golomb
(
&
pb
,
EXTEND
(
i
));
flush_put_bits
(
&
pb
);
flush_put_bits
(
&
pb
);
init_get_bits
(
&
gb
,
temp
,
8
*
SIZE
);
bitstream_init8
(
&
bc
,
temp
,
SIZE
);
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
int
j
,
s
=
show_bits_long
(
&
gb
,
32
);
int
j
,
s
=
bitstream_peek
(
&
bc
,
32
);
j
=
get_ue_golomb_long
(
&
gb
);
j
=
get_ue_golomb_long
(
&
bc
);
if
(
j
!=
EXTEND
(
i
))
{
if
(
j
!=
EXTEND
(
i
))
{
fprintf
(
stderr
,
"get_ue_golomb_long: expected %d, got %d. "
fprintf
(
stderr
,
"get_ue_golomb_long: expected %d, got %d. "
"bits: %8x
\n
"
,
EXTEND
(
i
),
j
,
s
);
"bits: %8x
\n
"
,
EXTEND
(
i
),
j
,
s
);
...
@@ -79,11 +79,11 @@ int main(void)
...
@@ -79,11 +79,11 @@ int main(void)
set_se_golomb
(
&
pb
,
i
-
COUNT
/
2
);
set_se_golomb
(
&
pb
,
i
-
COUNT
/
2
);
flush_put_bits
(
&
pb
);
flush_put_bits
(
&
pb
);
init_get_bits
(
&
gb
,
temp
,
8
*
SIZE
);
bitstream_init8
(
&
bc
,
temp
,
SIZE
);
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
for
(
i
=
0
;
i
<
COUNT
;
i
++
)
{
int
j
,
s
=
show_bits
(
&
gb
,
25
);
int
j
,
s
=
bitstream_peek
(
&
bc
,
25
);
j
=
get_se_golomb
(
&
gb
);
j
=
get_se_golomb
(
&
bc
);
if
(
j
!=
i
-
COUNT
/
2
)
{
if
(
j
!=
i
-
COUNT
/
2
)
{
fprintf
(
stderr
,
"get_se_golomb: expected %d, got %d. bits: %7x
\n
"
,
fprintf
(
stderr
,
"get_se_golomb: expected %d, got %d. bits: %7x
\n
"
,
i
-
COUNT
/
2
,
j
,
s
);
i
-
COUNT
/
2
,
j
,
s
);
...
...
libavformat/hevc.c
View file @
d4c2103b
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "libavcodec/avcodec.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/golomb.h"
#include "libavcodec/golomb
_legacy
.h"
#include "libavcodec/hevc.h"
#include "libavcodec/hevc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "avc.h"
#include "avc.h"
...
...
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