Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
7f13b33a
Commit
7f13b33a
authored
11 years ago
by
Jim Bankoski
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "cpplint issues resolved in vp9_postproc.c"
parents
1a2f4fd2
7a59efe7
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_postproc.c
+18
-22
vp9/common/vp9_postproc.c
with
18 additions
and
22 deletions
vp9/common/vp9_postproc.c
+
18
−
22
View file @
7f13b33a
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
* be found in the AUTHORS file in the root of the source tree.
*/
*/
#include
<math.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
"./vpx_config.h"
#include
"./vpx_config.h"
#include
"vpx_scale/yv12config.h"
#include
"vpx_scale/yv12config.h"
...
@@ -18,11 +21,6 @@
...
@@ -18,11 +21,6 @@
#include
"./vp9_rtcd.h"
#include
"./vp9_rtcd.h"
#include
"./vpx_scale_rtcd.h"
#include
"./vpx_scale_rtcd.h"
#include
<math.h>
#include
<stdlib.h>
#include
<stdio.h>
#define RGB_TO_YUV(t) \
#define RGB_TO_YUV(t) \
( (0.257*(float)(t >> 16)) + (0.504*(float)(t >> 8 & 0xff)) + \
( (0.257*(float)(t >> 16)) + (0.504*(float)(t >> 8 & 0xff)) + \
(0.098*(float)(t & 0xff)) + 16), \
(0.098*(float)(t & 0xff)) + 16), \
...
@@ -155,7 +153,6 @@ void vp9_post_proc_down_and_across_c(const uint8_t *src_ptr,
...
@@ -155,7 +153,6 @@ void vp9_post_proc_down_and_across_c(const uint8_t *src_ptr,
p_dst
=
dst_ptr
;
p_dst
=
dst_ptr
;
for
(
col
=
0
;
col
<
cols
;
col
++
)
{
for
(
col
=
0
;
col
<
cols
;
col
++
)
{
int
kernel
=
4
;
int
kernel
=
4
;
int
v
=
p_src
[
col
];
int
v
=
p_src
[
col
];
...
@@ -257,7 +254,7 @@ void vp9_mbpost_proc_across_ip_c(uint8_t *src, int pitch,
...
@@ -257,7 +254,7 @@ void vp9_mbpost_proc_across_ip_c(uint8_t *src, int pitch,
void
vp9_mbpost_proc_down_c
(
uint8_t
*
dst
,
int
pitch
,
void
vp9_mbpost_proc_down_c
(
uint8_t
*
dst
,
int
pitch
,
int
rows
,
int
cols
,
int
flimit
)
{
int
rows
,
int
cols
,
int
flimit
)
{
int
r
,
c
,
i
;
int
r
,
c
,
i
;
const
short
*
rv3
=
&
vp9_rv
[
63
&
rand
()];
const
short
*
rv3
=
&
vp9_rv
[
63
&
rand
()];
// NOLINT
for
(
c
=
0
;
c
<
cols
;
c
++
)
{
for
(
c
=
0
;
c
<
cols
;
c
++
)
{
uint8_t
*
s
=
&
dst
[
c
];
uint8_t
*
s
=
&
dst
[
c
];
...
@@ -408,7 +405,6 @@ static void fillrd(struct postproc_state *state, int q, int a) {
...
@@ -408,7 +405,6 @@ static void fillrd(struct postproc_state *state, int q, int a) {
next
=
next
+
j
;
next
=
next
+
j
;
}
}
}
}
for
(;
next
<
256
;
next
++
)
for
(;
next
<
256
;
next
++
)
...
@@ -416,7 +412,7 @@ static void fillrd(struct postproc_state *state, int q, int a) {
...
@@ -416,7 +412,7 @@ static void fillrd(struct postproc_state *state, int q, int a) {
}
}
for
(
i
=
0
;
i
<
3072
;
i
++
)
{
for
(
i
=
0
;
i
<
3072
;
i
++
)
{
state
->
noise
[
i
]
=
char_dist
[
rand
()
&
0xff
];
state
->
noise
[
i
]
=
char_dist
[
rand
()
&
0xff
];
// NOLINT
}
}
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
i
=
0
;
i
<
16
;
i
++
)
{
...
@@ -680,13 +676,14 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -680,13 +676,14 @@ int vp9_post_proc_frame(struct VP9Common *cm,
#if 0 && CONFIG_POSTPROC_VISUALIZER
#if 0 && CONFIG_POSTPROC_VISUALIZER
if (flags & VP9D_DEBUG_TXT_FRAME_INFO) {
if (flags & VP9D_DEBUG_TXT_FRAME_INFO) {
char message[512];
char message[512];
sprintf(message, "F%1dG%1dQ%3dF%3dP%d_s%dx%d",
snprintf(message, sizeof(message) -1,
(cm->frame_type == KEY_FRAME),
"F%1dG%1dQ%3dF%3dP%d_s%dx%d",
cm->refresh_golden_frame,
(cm->frame_type == KEY_FRAME),
cm->base_qindex,
cm->refresh_golden_frame,
cm->filter_level,
cm->base_qindex,
flags,
cm->filter_level,
cm->mb_cols, cm->mb_rows);
flags,
cm->mb_cols, cm->mb_rows);
vp9_blit_text(message, cm->post_proc_buffer.y_buffer,
vp9_blit_text(message, cm->post_proc_buffer.y_buffer,
cm->post_proc_buffer.y_stride);
cm->post_proc_buffer.y_stride);
}
}
...
@@ -707,7 +704,7 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -707,7 +704,7 @@ int vp9_post_proc_frame(struct VP9Common *cm,
for (j = 0; j < mb_cols; j++) {
for (j = 0; j < mb_cols; j++) {
char zz[4];
char zz[4];
sprintf(zz, "%c", mi[mb_index].mbmi.mode + 'a');
s
n
printf(zz,
sizeof(zz) - 1,
"%c", mi[mb_index].mbmi.mode + 'a');
vp9_blit_text(zz, y_ptr, post->y_stride);
vp9_blit_text(zz, y_ptr, post->y_stride);
mb_index++;
mb_index++;
...
@@ -716,7 +713,6 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -716,7 +713,6 @@ int vp9_post_proc_frame(struct VP9Common *cm,
mb_index++; /* border */
mb_index++; /* border */
y_ptr += post->y_stride * 16 - post->y_width;
y_ptr += post->y_stride * 16 - post->y_width;
}
}
}
}
...
@@ -740,9 +736,9 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -740,9 +736,9 @@ int vp9_post_proc_frame(struct VP9Common *cm,
mi[mb_index].mbmi.skip_coeff);
mi[mb_index].mbmi.skip_coeff);
if (cm->frame_type == KEY_FRAME)
if (cm->frame_type == KEY_FRAME)
sprintf(zz, "a");
s
n
printf(zz,
sizeof(zz) - 1,
"a");
else
else
sprintf(zz, "%c", dc_diff + '0');
s
n
printf(zz,
sizeof(zz) - 1,
"%c", dc_diff + '0');
vp9_blit_text(zz, y_ptr, post->y_stride);
vp9_blit_text(zz, y_ptr, post->y_stride);
mb_index++;
mb_index++;
...
@@ -751,7 +747,6 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -751,7 +747,6 @@ int vp9_post_proc_frame(struct VP9Common *cm,
mb_index++; /* border */
mb_index++; /* border */
y_ptr += post->y_stride * 16 - post->y_width;
y_ptr += post->y_stride * 16 - post->y_width;
}
}
}
}
...
@@ -894,8 +889,9 @@ int vp9_post_proc_frame(struct VP9Common *cm,
...
@@ -894,8 +889,9 @@ int vp9_post_proc_frame(struct VP9Common *cm,
constrain_line(lx0, &x1, ly0 + 1, &y1, width, height);
constrain_line(lx0, &x1, ly0 + 1, &y1, width, height);
vp9_blit_line(lx0, x1, ly0 + 1, y1, y_buffer, y_stride);
vp9_blit_line(lx0, x1, ly0 + 1, y1, y_buffer, y_stride);
} else
} else
{
vp9_blit_line(lx0, x1, ly0, y1, y_buffer, y_stride);
vp9_blit_line(lx0, x1, ly0, y1, y_buffer, y_stride);
}
}
}
mi++;
mi++;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets