Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b23692b3
Commit
b23692b3
authored
Nov 02, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/hevc: reduce whitespace differences to
064698d3
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1a6948fa
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
37 deletions
+48
-37
hevc.c
libavcodec/hevc.c
+1
-2
hevc.h
libavcodec/hevc.h
+2
-1
hevc_parser.c
libavcodec/hevc_parser.c
+0
-0
hevc_ps.c
libavcodec/hevc_ps.c
+1
-2
hevc_sei.c
libavcodec/hevc_sei.c
+4
-4
hevcdsp_template.c
libavcodec/hevcdsp_template.c
+40
-28
No files found.
libavcodec/hevc.c
View file @
b23692b3
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include "libavutil/internal.h"
#include "libavutil/internal.h"
#include "libavutil/md5.h"
#include "libavutil/md5.h"
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixdesc.h"
#include "bytestream.h"
#include "bytestream.h"
...
@@ -1705,6 +1704,7 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0,
...
@@ -1705,6 +1704,7 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0,
const
int
cb_size_split
=
cb_size
>>
1
;
const
int
cb_size_split
=
cb_size
>>
1
;
const
int
x1
=
x0
+
cb_size_split
;
const
int
x1
=
x0
+
cb_size_split
;
const
int
y1
=
y0
+
cb_size_split
;
const
int
y1
=
y0
+
cb_size_split
;
int
more_data
=
0
;
int
more_data
=
0
;
more_data
=
hls_coding_quadtree
(
s
,
x0
,
y0
,
log2_cb_size
-
1
,
cb_depth
+
1
);
more_data
=
hls_coding_quadtree
(
s
,
x0
,
y0
,
log2_cb_size
-
1
,
cb_depth
+
1
);
...
@@ -2209,7 +2209,6 @@ static int decode_nal_unit(HEVCContext *s, const uint8_t *nal, int length)
...
@@ -2209,7 +2209,6 @@ static int decode_nal_unit(HEVCContext *s, const uint8_t *nal, int length)
ctb_addr_ts
=
hls_slice_data_wpp
(
s
,
nal
,
length
);
ctb_addr_ts
=
hls_slice_data_wpp
(
s
,
nal
,
length
);
else
else
ctb_addr_ts
=
hls_slice_data
(
s
);
ctb_addr_ts
=
hls_slice_data
(
s
);
if
(
ctb_addr_ts
>=
(
s
->
sps
->
ctb_width
*
s
->
sps
->
ctb_height
))
{
if
(
ctb_addr_ts
>=
(
s
->
sps
->
ctb_width
*
s
->
sps
->
ctb_height
))
{
s
->
is_decoded
=
1
;
s
->
is_decoded
=
1
;
if
((
s
->
pps
->
transquant_bypass_enable_flag
||
if
((
s
->
pps
->
transquant_bypass_enable_flag
||
...
...
libavcodec/hevc.h
View file @
b23692b3
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "hevcpred.h"
#include "hevcpred.h"
#include "hevcdsp.h"
#include "hevcdsp.h"
#include "internal.h"
#include "internal.h"
#include "thread.h"
#include "thread.h"
#include "videodsp.h"
#include "videodsp.h"
...
@@ -780,6 +779,7 @@ typedef struct HEVCContext {
...
@@ -780,6 +779,7 @@ typedef struct HEVCContext {
AVFrame
*
sao_frame
;
AVFrame
*
sao_frame
;
AVFrame
*
tmp_frame
;
AVFrame
*
tmp_frame
;
AVFrame
*
output_frame
;
AVFrame
*
output_frame
;
HEVCVPS
*
vps
;
HEVCVPS
*
vps
;
const
HEVCSPS
*
sps
;
const
HEVCSPS
*
sps
;
HEVCPPS
*
pps
;
HEVCPPS
*
pps
;
...
@@ -952,6 +952,7 @@ int ff_hevc_transform_skip_flag_decode(HEVCContext *s, int c_idx);
...
@@ -952,6 +952,7 @@ int ff_hevc_transform_skip_flag_decode(HEVCContext *s, int c_idx);
* Get the number of candidate references for the current frame.
* Get the number of candidate references for the current frame.
*/
*/
int
ff_hevc_frame_nb_refs
(
HEVCContext
*
s
);
int
ff_hevc_frame_nb_refs
(
HEVCContext
*
s
);
int
ff_hevc_set_new_ref
(
HEVCContext
*
s
,
AVFrame
**
frame
,
int
poc
);
int
ff_hevc_set_new_ref
(
HEVCContext
*
s
,
AVFrame
**
frame
,
int
poc
);
/**
/**
...
...
libavcodec/hevc_parser.c
View file @
b23692b3
libavcodec/hevc_ps.c
View file @
b23692b3
...
@@ -822,8 +822,7 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
...
@@ -822,8 +822,7 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
sps
->
nb_st_rps
=
get_ue_golomb_long
(
gb
);
sps
->
nb_st_rps
=
get_ue_golomb_long
(
gb
);
if
(
sps
->
nb_st_rps
>
MAX_SHORT_TERM_RPS_COUNT
)
{
if
(
sps
->
nb_st_rps
>
MAX_SHORT_TERM_RPS_COUNT
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Too many short term RPS: %d.
\n
"
,
"Too many short term RPS: %d.
\n
"
,
sps
->
nb_st_rps
);
sps
->
nb_st_rps
);
ret
=
AVERROR_INVALIDDATA
;
ret
=
AVERROR_INVALIDDATA
;
goto
err
;
goto
err
;
...
...
libavcodec/hevc_sei.c
View file @
b23692b3
...
@@ -57,7 +57,7 @@ static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
...
@@ -57,7 +57,7 @@ static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
get_ue_golomb
(
gb
);
// frame_packing_arrangement_id
get_ue_golomb
(
gb
);
// frame_packing_arrangement_id
cancel
=
get_bits1
(
gb
);
// frame_packing_cancel_flag
cancel
=
get_bits1
(
gb
);
// frame_packing_cancel_flag
if
(
cancel
==
0
)
if
(
cancel
==
0
)
{
{
type
=
get_bits
(
gb
,
7
);
// frame_packing_arrangement_type
type
=
get_bits
(
gb
,
7
);
// frame_packing_arrangement_type
quincunx
=
get_bits1
(
gb
);
// quincunx_sampling_flag
quincunx
=
get_bits1
(
gb
);
// quincunx_sampling_flag
...
@@ -68,7 +68,7 @@ static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
...
@@ -68,7 +68,7 @@ static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
// frame0_self_contained_flag frame1_self_contained_flag
// frame0_self_contained_flag frame1_self_contained_flag
skip_bits
(
gb
,
6
);
skip_bits
(
gb
,
6
);
if
(
quincunx
==
0
&&
type
!=
5
)
if
(
quincunx
==
0
&&
type
!=
5
)
skip_bits
(
gb
,
16
);
// frame[01]_grid_position_[xy]
skip_bits
(
gb
,
16
);
// frame[01]_grid_position_[xy]
skip_bits
(
gb
,
8
);
// frame_packing_arrangement_reserved_byte
skip_bits
(
gb
,
8
);
// frame_packing_arrangement_reserved_byte
skip_bits1
(
gb
);
// frame_packing_arrangement_persistance_flag
skip_bits1
(
gb
);
// frame_packing_arrangement_persistance_flag
...
@@ -145,7 +145,7 @@ static int decode_nal_sei_message(HEVCContext *s)
...
@@ -145,7 +145,7 @@ static int decode_nal_sei_message(HEVCContext *s)
}
else
if
(
payload_type
==
1
){
}
else
if
(
payload_type
==
1
){
int
ret
=
decode_pic_timing
(
s
);
int
ret
=
decode_pic_timing
(
s
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped PREFIX SEI %d
\n
"
,
payload_type
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped PREFIX SEI %d
\n
"
,
payload_type
);
skip_bits
(
gb
,
8
*
payload_size
);
skip_bits
(
gb
,
8
*
payload_size
);
return
ret
;
return
ret
;
}
else
if
(
payload_type
==
129
){
}
else
if
(
payload_type
==
129
){
active_parameter_sets
(
s
);
active_parameter_sets
(
s
);
...
@@ -161,7 +161,7 @@ static int decode_nal_sei_message(HEVCContext *s)
...
@@ -161,7 +161,7 @@ static int decode_nal_sei_message(HEVCContext *s)
decode_nal_sei_decoded_picture_hash
(
s
,
payload_size
);
decode_nal_sei_decoded_picture_hash
(
s
,
payload_size
);
else
{
else
{
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped SUFFIX SEI %d
\n
"
,
payload_type
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped SUFFIX SEI %d
\n
"
,
payload_type
);
skip_bits
(
gb
,
8
*
payload_size
);
skip_bits
(
gb
,
8
*
payload_size
);
}
}
return
1
;
return
1
;
}
}
...
...
libavcodec/hevcdsp_template.c
View file @
b23692b3
...
@@ -34,7 +34,8 @@ static void FUNC(put_pcm)(uint8_t *_dst, ptrdiff_t _stride, int size,
...
@@ -34,7 +34,8 @@ static void FUNC(put_pcm)(uint8_t *_dst, ptrdiff_t _stride, int size,
GetBitContext
*
gb
,
int
pcm_bit_depth
)
GetBitContext
*
gb
,
int
pcm_bit_depth
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
for
(
y
=
0
;
y
<
size
;
y
++
)
{
for
(
y
=
0
;
y
<
size
;
y
++
)
{
...
@@ -44,10 +45,12 @@ static void FUNC(put_pcm)(uint8_t *_dst, ptrdiff_t _stride, int size,
...
@@ -44,10 +45,12 @@ static void FUNC(put_pcm)(uint8_t *_dst, ptrdiff_t _stride, int size,
}
}
}
}
static
void
FUNC
(
transquant_bypass4x4
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transquant_bypass4x4
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
for
(
y
=
0
;
y
<
4
;
y
++
)
{
for
(
y
=
0
;
y
<
4
;
y
++
)
{
...
@@ -57,13 +60,14 @@ static void FUNC(transquant_bypass4x4)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
...
@@ -57,13 +60,14 @@ static void FUNC(transquant_bypass4x4)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
}
}
dst
+=
stride
;
dst
+=
stride
;
}
}
}
}
static
void
FUNC
(
transquant_bypass8x8
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transquant_bypass8x8
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
for
(
y
=
0
;
y
<
8
;
y
++
)
{
for
(
y
=
0
;
y
<
8
;
y
++
)
{
...
@@ -75,10 +79,12 @@ static void FUNC(transquant_bypass8x8)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
...
@@ -75,10 +79,12 @@ static void FUNC(transquant_bypass8x8)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
}
}
}
}
static
void
FUNC
(
transquant_bypass16x16
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transquant_bypass16x16
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
for
(
y
=
0
;
y
<
16
;
y
++
)
{
for
(
y
=
0
;
y
<
16
;
y
++
)
{
...
@@ -88,13 +94,14 @@ static void FUNC(transquant_bypass16x16)(uint8_t *_dst, int16_t *coeffs, ptrdiff
...
@@ -88,13 +94,14 @@ static void FUNC(transquant_bypass16x16)(uint8_t *_dst, int16_t *coeffs, ptrdiff
}
}
dst
+=
stride
;
dst
+=
stride
;
}
}
}
}
static
void
FUNC
(
transquant_bypass32x32
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transquant_bypass32x32
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
for
(
y
=
0
;
y
<
32
;
y
++
)
{
for
(
y
=
0
;
y
<
32
;
y
++
)
{
...
@@ -106,9 +113,10 @@ static void FUNC(transquant_bypass32x32)(uint8_t *_dst, int16_t *coeffs, ptrdiff
...
@@ -106,9 +113,10 @@ static void FUNC(transquant_bypass32x32)(uint8_t *_dst, int16_t *coeffs, ptrdiff
}
}
}
}
static
void
FUNC
(
transform_skip
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transform_skip
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
shift
=
13
-
BIT_DEPTH
;
int
shift
=
13
-
BIT_DEPTH
;
#if BIT_DEPTH <= 13
#if BIT_DEPTH <= 13
...
@@ -142,7 +150,7 @@ static void FUNC(transform_4x4_luma_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff
...
@@ -142,7 +150,7 @@ static void FUNC(transform_4x4_luma_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff
} while (0)
} while (0)
int
i
;
int
i
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
shift
=
7
;
int
shift
=
7
;
int
add
=
1
<<
(
shift
-
1
);
int
add
=
1
<<
(
shift
-
1
);
...
@@ -186,7 +194,7 @@ static void FUNC(transform_4x4_luma_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff
...
@@ -186,7 +194,7 @@ static void FUNC(transform_4x4_luma_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff
static
void
FUNC
(
transform_4x4_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transform_4x4_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
i
;
int
i
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
shift
=
7
;
int
shift
=
7
;
int
add
=
1
<<
(
shift
-
1
);
int
add
=
1
<<
(
shift
-
1
);
...
@@ -285,10 +293,11 @@ static void FUNC(transform_8x8_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t _s
...
@@ -285,10 +293,11 @@ static void FUNC(transform_8x8_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t _s
}
}
}
}
static
void
FUNC
(
transform_16x16_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transform_16x16_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
int
i
;
int
i
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
shift
=
7
;
int
shift
=
7
;
int
add
=
1
<<
(
shift
-
1
);
int
add
=
1
<<
(
shift
-
1
);
...
@@ -308,7 +317,8 @@ static void FUNC(transform_16x16_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
...
@@ -308,7 +317,8 @@ static void FUNC(transform_16x16_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
}
}
}
}
static
void
FUNC
(
transform_32x32_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
static
void
FUNC
(
transform_32x32_add
)(
uint8_t
*
_dst
,
int16_t
*
coeffs
,
ptrdiff_t
_stride
)
{
{
#define IT32x32_even(i,w) ( src[ 0*w] * transform[ 0][i] ) + ( src[16*w] * transform[16][i] )
#define IT32x32_even(i,w) ( src[ 0*w] * transform[ 0][i] ) + ( src[16*w] * transform[16][i] )
#define IT32x32_odd(i,w) ( src[ 8*w] * transform[ 8][i] ) + ( src[24*w] * transform[24][i] )
#define IT32x32_odd(i,w) ( src[ 8*w] * transform[ 8][i] ) + ( src[24*w] * transform[24][i] )
...
@@ -320,7 +330,7 @@ static void FUNC(transform_32x32_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
...
@@ -320,7 +330,7 @@ static void FUNC(transform_32x32_add)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t
( src[17*w] * transform[17][i] ) + ( src[19*w] * transform[19][i] ) + ( src[21*w] * transform[21][i] ) + ( src[23*w] * transform[23][i] ) + \
( src[17*w] * transform[17][i] ) + ( src[19*w] * transform[19][i] ) + ( src[21*w] * transform[21][i] ) + ( src[23*w] * transform[23][i] ) + \
( src[25*w] * transform[25][i] ) + ( src[27*w] * transform[27][i] ) + ( src[29*w] * transform[29][i] ) + ( src[31*w] * transform[31][i] )
( src[25*w] * transform[25][i] ) + ( src[27*w] * transform[27][i] ) + ( src[29*w] * transform[29][i] ) + ( src[31*w] * transform[31][i] )
int
i
;
int
i
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
shift
=
7
;
int
shift
=
7
;
int
add
=
1
<<
(
shift
-
1
);
int
add
=
1
<<
(
shift
-
1
);
...
@@ -350,8 +360,8 @@ static void FUNC(sao_band_filter)(uint8_t *_dst, uint8_t *_src,
...
@@ -350,8 +360,8 @@ static void FUNC(sao_band_filter)(uint8_t *_dst, uint8_t *_src,
int
*
borders
,
int
width
,
int
height
,
int
*
borders
,
int
width
,
int
height
,
int
c_idx
,
int
class
)
int
c_idx
,
int
class
)
{
{
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
src
=
(
pixel
*
)
_src
;
pixel
*
src
=
(
pixel
*
)
_src
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
offset_table
[
32
]
=
{
0
};
int
offset_table
[
32
]
=
{
0
};
int
k
,
y
,
x
;
int
k
,
y
,
x
;
...
@@ -423,7 +433,8 @@ static void FUNC(sao_band_filter_2)(uint8_t *dst, uint8_t *src,
...
@@ -423,7 +433,8 @@ static void FUNC(sao_band_filter_2)(uint8_t *dst, uint8_t *src,
int
*
borders
,
int
width
,
int
height
,
int
*
borders
,
int
width
,
int
height
,
int
c_idx
)
int
c_idx
)
{
{
FUNC
(
sao_band_filter
)(
dst
,
src
,
stride
,
sao
,
borders
,
width
,
height
,
c_idx
,
2
);
FUNC
(
sao_band_filter
)(
dst
,
src
,
stride
,
sao
,
borders
,
width
,
height
,
c_idx
,
2
);
}
}
static
void
FUNC
(
sao_band_filter_3
)(
uint8_t
*
_dst
,
uint8_t
*
_src
,
static
void
FUNC
(
sao_band_filter_3
)(
uint8_t
*
_dst
,
uint8_t
*
_src
,
...
@@ -431,7 +442,8 @@ static void FUNC(sao_band_filter_3)(uint8_t *_dst, uint8_t *_src,
...
@@ -431,7 +442,8 @@ static void FUNC(sao_band_filter_3)(uint8_t *_dst, uint8_t *_src,
int
*
borders
,
int
width
,
int
height
,
int
*
borders
,
int
width
,
int
height
,
int
c_idx
)
int
c_idx
)
{
{
FUNC
(
sao_band_filter
)(
_dst
,
_src
,
_stride
,
sao
,
borders
,
width
,
height
,
c_idx
,
3
);
FUNC
(
sao_band_filter
)(
_dst
,
_src
,
_stride
,
sao
,
borders
,
width
,
height
,
c_idx
,
3
);
}
}
static
void
FUNC
(
sao_edge_filter_0
)(
uint8_t
*
_dst
,
uint8_t
*
_src
,
static
void
FUNC
(
sao_edge_filter_0
)(
uint8_t
*
_dst
,
uint8_t
*
_src
,
...
@@ -441,8 +453,8 @@ static void FUNC(sao_edge_filter_0)(uint8_t *_dst, uint8_t *_src,
...
@@ -441,8 +453,8 @@ static void FUNC(sao_edge_filter_0)(uint8_t *_dst, uint8_t *_src,
uint8_t
vert_edge
,
uint8_t
horiz_edge
,
uint8_t
diag_edge
)
uint8_t
vert_edge
,
uint8_t
horiz_edge
,
uint8_t
diag_edge
)
{
{
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
src
=
(
pixel
*
)
_src
;
pixel
*
src
=
(
pixel
*
)
_src
;
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
ptrdiff_t
stride
=
_stride
/
sizeof
(
pixel
);
int
chroma
=
!!
c_idx
;
int
chroma
=
!!
c_idx
;
int
*
sao_offset_val
=
sao
->
offset_val
[
c_idx
];
int
*
sao_offset_val
=
sao
->
offset_val
[
c_idx
];
...
@@ -1080,7 +1092,7 @@ static void FUNC(weighted_pred)(uint8_t denom, int16_t wlxFlag, int16_t olxFlag,
...
@@ -1080,7 +1092,7 @@ static void FUNC(weighted_pred)(uint8_t denom, int16_t wlxFlag, int16_t olxFlag,
int
log2Wd
;
int
log2Wd
;
int
wx
;
int
wx
;
int
ox
;
int
ox
;
int
x
,
y
;
int
x
,
y
;
int
offset
;
int
offset
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
dststride
=
_dststride
/
sizeof
(
pixel
);
ptrdiff_t
dststride
=
_dststride
/
sizeof
(
pixel
);
...
@@ -1118,7 +1130,7 @@ static void FUNC(weighted_pred_avg)(uint8_t denom,
...
@@ -1118,7 +1130,7 @@ static void FUNC(weighted_pred_avg)(uint8_t denom,
int
w1
;
int
w1
;
int
o0
;
int
o0
;
int
o1
;
int
o1
;
int
x
,
y
;
int
x
,
y
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
pixel
*
dst
=
(
pixel
*
)
_dst
;
ptrdiff_t
dststride
=
_dststride
/
sizeof
(
pixel
);
ptrdiff_t
dststride
=
_dststride
/
sizeof
(
pixel
);
...
@@ -1153,9 +1165,9 @@ static void FUNC(weighted_pred_avg)(uint8_t denom,
...
@@ -1153,9 +1165,9 @@ static void FUNC(weighted_pred_avg)(uint8_t denom,
#define TP3 pix[-4 * xstride + 3 * ystride]
#define TP3 pix[-4 * xstride + 3 * ystride]
#define TP2 pix[-3 * xstride + 3 * ystride]
#define TP2 pix[-3 * xstride + 3 * ystride]
#define TP1 pix[-2 * xstride + 3 * ystride]
#define TP1 pix[-2 * xstride + 3 * ystride]
#define TP0 pix[-xstride
+
3 * ystride]
#define TP0 pix[-xstride
+
3 * ystride]
#define TQ0 pix[3 * ystride]
#define TQ0 pix[3 * ystride]
#define TQ1 pix[xstride
+
3 * ystride]
#define TQ1 pix[xstride
+
3 * ystride]
#define TQ2 pix[2 * xstride + 3 * ystride]
#define TQ2 pix[2 * xstride + 3 * ystride]
#define TQ3 pix[3 * xstride + 3 * ystride]
#define TQ3 pix[3 * xstride + 3 * ystride]
...
...
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