History

Remove the macro of vp9_lookahead_push

angiebird committed 7 years ago

Commit 53a0b131 parent b1021be3 files · +7 −12Browse files

Unified · Split

3 files
  1. vp9/encoder/vp9_encoder.c +1 −4
  2. vp9/encoder/vp9_lookahead.c +5 −4
  3. vp9/encoder/vp9_lookahead.h +1 −4
vp9/encoder/vp9_encoder.c+1−4
@@ -5365,10 +5365,7 @@ int vp9_receive_raw_frame(VP9_COMP *cpi, vpx_enc_frame_flags_t frame_flags, · 5364 unmodified lines
53655365 vpx_usec_timer_start(&timer);
53665366
53675367 if (vp9_lookahead_push(cpi->lookahead, sd, time_stamp, end_time,
5368−#if CONFIG_VP9_HIGHBITDEPTH
5369− use_highbitdepth,
5370−#endif // CONFIG_VP9_HIGHBITDEPTH
5371− frame_flags))
5368+ use_highbitdepth, frame_flags))
53725369 res = -1;
53735370 vpx_usec_timer_mark(&timer);
53745371 cpi->time_receive_data += vpx_usec_timer_elapsed(&timer);
vp9/encoder/vp9_lookahead.c+5−4
@@ -83,10 +83,7 @@ bail: · 82 unmodified lines
8383 #define USE_PARTIAL_COPY 0
8484
8585 int vp9_lookahead_push(struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src,
86− int64_t ts_start, int64_t ts_end,
87−#if CONFIG_VP9_HIGHBITDEPTH
88− int use_highbitdepth,
89−#endif
86+ int64_t ts_start, int64_t ts_end, int use_highbitdepth,
9087 vpx_enc_frame_flags_t flags) {
9188 struct lookahead_entry *buf;
9289 #if USE_PARTIAL_COPY
@@ -101,6 +98,10 @@ int vp9_lookahead_push(struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src, · 8 unmodified lines
10198 int subsampling_x = src->subsampling_x;
10299 int subsampling_y = src->subsampling_y;
103100 int larger_dimensions, new_dimensions;
101+#if !CONFIG_VP9_HIGHBITDEPTH
102+ (void)use_highbitdepth;
103+ assert(use_highbitdepth == 0);
104+#endif
104105
105106 if (ctx->sz + 1 + MAX_PRE_FRAMES > ctx->max_sz) return 1;
106107 ctx->sz++;
vp9/encoder/vp9_lookahead.h+1−4
@@ -73,10 +73,7 @@ void vp9_lookahead_destroy(struct lookahead_ctx *ctx); · 72 unmodified lines
7373 * \param[in] active_map Map that specifies which macroblock is active
7474 */
7575 int vp9_lookahead_push(struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src,
76− int64_t ts_start, int64_t ts_end,
77−#if CONFIG_VP9_HIGHBITDEPTH
78− int use_highbitdepth,
79−#endif
76+ int64_t ts_start, int64_t ts_end, int use_highbitdepth,
8077 vpx_enc_frame_flags_t flags);
8178
8279 /**\brief Get the next source buffer to encode

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t