History

vp9cx_set_ref.c: remove unused 'cfg' parameter

Cleans -Wextra/-Wunused-parameter warning: warning: unused parameter ‘cfg’

Johann committed 10 years ago

Commit db325811 parent bce23ab1 file · +9 −11Browse files

Showing the changes to examples (1 of 1 file). Show all

Unified · Split

examples/vp9cx_set_ref.c+9−11
@@ -190,8 +190,7 @@ static void find_mismatch(const vpx_image_t *const img1, · 189 unmodified lines
190190 }
191191
192192 static void testing_decode(vpx_codec_ctx_t *encoder, vpx_codec_ctx_t *decoder,
193− vpx_codec_enc_cfg_t *cfg, unsigned int frame_out,
194− int *mismatch_seen) {
193+ unsigned int frame_out, int *mismatch_seen) {
195194 vpx_image_t enc_img, dec_img;
196195 struct vp9_ref_frame ref_enc, ref_dec;
197196
@@ -225,11 +224,10 @@ static void testing_decode(vpx_codec_ctx_t *encoder, vpx_codec_ctx_t *decoder, · 27 unmodified lines
225224 vpx_img_free(&dec_img);
226225 }
227226
228−static int encode_frame(vpx_codec_ctx_t *ecodec, vpx_codec_enc_cfg_t *cfg,
229− vpx_image_t *img, unsigned int frame_in,
230− VpxVideoWriter *writer, int test_decode,
231− vpx_codec_ctx_t *dcodec, unsigned int *frame_out,
232− int *mismatch_seen) {
227+static int encode_frame(vpx_codec_ctx_t *ecodec, vpx_image_t *img,
228+ unsigned int frame_in, VpxVideoWriter *writer,
229+ int test_decode, vpx_codec_ctx_t *dcodec,
230+ unsigned int *frame_out, int *mismatch_seen) {
233231 int got_pkts = 0;
234232 vpx_codec_iter_t iter = NULL;
235233 const vpx_codec_cx_pkt_t *pkt = NULL;
@@ -270,7 +268,7 @@ static int encode_frame(vpx_codec_ctx_t *ecodec, vpx_codec_enc_cfg_t *cfg, · 34 unmodified lines
270268
271269 // Mismatch checking
272270 if (got_data && test_decode) {
273− testing_decode(ecodec, dcodec, cfg, *frame_out, mismatch_seen);
271+ testing_decode(ecodec, dcodec, *frame_out, mismatch_seen);
274272 }
275273
276274 return got_pkts;
@@ -397,7 +395,7 @@ int main(int argc, char **argv) { · 120 unmodified lines
397395 }
398396 }
399397
400− encode_frame(&ecodec, &cfg, &raw, frame_in, writer, test_decode, &dcodec,
398+ encode_frame(&ecodec, &raw, frame_in, writer, test_decode, &dcodec,
401399 &frame_out, &mismatch_seen);
402400 frame_in++;
403401 if (mismatch_seen) break;
@@ -405,8 +403,8 @@ int main(int argc, char **argv) { · 1 unmodified line
405403
406404 // Flush encoder.
407405 if (!mismatch_seen)
408− while (encode_frame(&ecodec, &cfg, NULL, frame_in, writer, test_decode,
409− &dcodec, &frame_out, &mismatch_seen)) {
406+ while (encode_frame(&ecodec, NULL, frame_in, writer, test_decode, &dcodec,
407+ &frame_out, &mismatch_seen)) {
410408 }
411409
412410 printf("\n");

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