Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: patches/to_upstream/15_webp_ffmpeg.patch

Issue 4533003: patched ffmpeg nov 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 diff -rpu -N orig/libavformat/Makefile ffmpeg-mt/libavformat/Makefile 1 diff -wurp -N orig/libavformat/Makefile ffmpeg-mt/libavformat/Makefile
2 --- orig/libavformat/Makefile» 2010-10-21 12:02:06 -0700 2 --- orig/libavformat/Makefile» 2010-11-04 08:10:25 -0700
3 +++ ffmpeg-mt/libavformat/Makefile» 2010-10-21 12:03:27 -0700 3 +++ ffmpeg-mt/libavformat/Makefile» 2010-11-04 08:10:29 -0700
4 @@ -283,6 +283,8 @@ OBJS-$(CONFIG_WC3_DEMUXER) 4 @@ -284,6 +284,8 @@ OBJS-$(CONFIG_WC3_DEMUXER)
5 OBJS-$(CONFIG_WEBM_MUXER) += matroskaenc.o matroska.o \ 5 OBJS-$(CONFIG_WEBM_MUXER) += matroskaenc.o matroska.o \
6 riff.o isom.o avc.o \ 6 riff.o isom.o avc.o \
7 flacenc_header.o 7 flacenc_header.o
8 +OBJS-$(CONFIG_WEBP_DEMUXER) += webpdec.o webp.o 8 +OBJS-$(CONFIG_WEBP_DEMUXER) += webpdec.o webp.o
9 +OBJS-$(CONFIG_WEBP_MUXER) += webpenc.o webp.o 9 +OBJS-$(CONFIG_WEBP_MUXER) += webpenc.o webp.o
10 OBJS-$(CONFIG_WSAUD_DEMUXER) += westwood.o 10 OBJS-$(CONFIG_WSAUD_DEMUXER) += westwood.o
11 OBJS-$(CONFIG_WSVQA_DEMUXER) += westwood.o 11 OBJS-$(CONFIG_WSVQA_DEMUXER) += westwood.o
12 OBJS-$(CONFIG_WV_DEMUXER) += wv.o apetag.o 12 OBJS-$(CONFIG_WV_DEMUXER) += wv.o apetag.o
13 diff -rpu -N orig/libavformat/Makefile~ ffmpeg-mt/libavformat/Makefile~ 13 diff -wurp -N orig/libavformat/Makefile~ ffmpeg-mt/libavformat/Makefile~
14 --- orig/libavformat/Makefile~ 1969-12-31 16:00:00 -0800 14 --- orig/libavformat/Makefile~ 1969-12-31 16:00:00 -0800
15 +++ ffmpeg-mt/libavformat/Makefile~» 2010-10-21 11:59:57 -0700 15 +++ ffmpeg-mt/libavformat/Makefile~» 2010-11-04 08:10:29 -0700
16 @@ -0,0 +1,327 @@ 16 @@ -0,0 +1,327 @@
17 +include $(SUBDIR)../config.mak 17 +include $(SUBDIR)../config.mak
18 + 18 +
19 +NAME = avformat 19 +NAME = avformat
20 +FFLIBS = avcodec avcore avutil 20 +FFLIBS = avcodec avcore avutil
21 + 21 +
22 +HEADERS = avformat.h avio.h 22 +HEADERS = avformat.h avio.h
23 + 23 +
24 +OBJS = allformats.o \ 24 +OBJS = allformats.o \
25 + cutils.o \ 25 + cutils.o \
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 + 334 +
335 +# libavdevice dependencies 335 +# libavdevice dependencies
336 +OBJS-$(CONFIG_JACK_INDEV) += timefilter.o 336 +OBJS-$(CONFIG_JACK_INDEV) += timefilter.o
337 + 337 +
338 +EXAMPLES = output 338 +EXAMPLES = output
339 +TESTPROGS = timefilter 339 +TESTPROGS = timefilter
340 + 340 +
341 +include $(SUBDIR)../subdir.mak 341 +include $(SUBDIR)../subdir.mak
342 + 342 +
343 +$(SUBDIR)output-example$(EXESUF): ELIBS = -lswscale 343 +$(SUBDIR)output-example$(EXESUF): ELIBS = -lswscale
344 diff -rpu -N orig/libavformat/allformats.c ffmpeg-mt/libavformat/allformats.c 344 diff -wurp -N orig/libavformat/allformats.c ffmpeg-mt/libavformat/allformats.c
345 --- orig/libavformat/allformats.c» 2010-10-21 12:02:05 -0700 345 --- orig/libavformat/allformats.c» 2010-11-04 08:10:25 -0700
346 +++ ffmpeg-mt/libavformat/allformats.c» 2010-10-21 12:03:27 -0700 346 +++ ffmpeg-mt/libavformat/allformats.c» 2010-11-04 08:10:29 -0700
347 @@ -215,6 +215,7 @@ void av_register_all(void) 347 @@ -215,6 +215,7 @@ void av_register_all(void)
348 REGISTER_MUXDEMUX (WAV, wav); 348 REGISTER_MUXDEMUX (WAV, wav);
349 REGISTER_DEMUXER (WC3, wc3); 349 REGISTER_DEMUXER (WC3, wc3);
350 REGISTER_MUXER (WEBM, webm); 350 REGISTER_MUXER (WEBM, webm);
351 + REGISTER_MUXDEMUX (WEBP, webp); 351 + REGISTER_MUXDEMUX (WEBP, webp);
352 REGISTER_DEMUXER (WSAUD, wsaud); 352 REGISTER_DEMUXER (WSAUD, wsaud);
353 REGISTER_DEMUXER (WSVQA, wsvqa); 353 REGISTER_DEMUXER (WSVQA, wsvqa);
354 REGISTER_DEMUXER (WV, wv); 354 REGISTER_DEMUXER (WV, wv);
355 diff -rpu -N orig/libavformat/webp.c ffmpeg-mt/libavformat/webp.c 355 diff -wurp -N orig/libavformat/webp.c ffmpeg-mt/libavformat/webp.c
356 --- orig/libavformat/webp.c 1969-12-31 16:00:00 -0800 356 --- orig/libavformat/webp.c 1969-12-31 16:00:00 -0800
357 +++ ffmpeg-mt/libavformat/webp.c» 2010-10-21 12:03:27 -0700 357 +++ ffmpeg-mt/libavformat/webp.c» 2010-11-04 08:10:29 -0700
358 @@ -0,0 +1,34 @@ 358 @@ -0,0 +1,34 @@
359 +/* 359 +/*
360 + * Copyright (c) 2010, Google, Inc. 360 + * Copyright (c) 2010, Google, Inc.
361 + * 361 + *
362 + * This file is part of FFmpeg. 362 + * This file is part of FFmpeg.
363 + * 363 + *
364 + * FFmpeg is free software; you can redistribute it and/or 364 + * FFmpeg is free software; you can redistribute it and/or
365 + * modify it under the terms of the GNU Lesser General Public 365 + * modify it under the terms of the GNU Lesser General Public
366 + * License as published by the Free Software Foundation; either 366 + * License as published by the Free Software Foundation; either
367 + * version 2.1 of the License, or (at your option) any later version. 367 + * version 2.1 of the License, or (at your option) any later version.
(...skipping 15 matching lines...) Expand all
383 + 383 +
384 +#include "webp.h" 384 +#include "webp.h"
385 + 385 +
386 +const AVMetadataConv ff_webp_metadata_conv[] = { 386 +const AVMetadataConv ff_webp_metadata_conv[] = {
387 + { "IART", "artist" }, 387 + { "IART", "artist" },
388 + { "ICOP", "copyright" }, 388 + { "ICOP", "copyright" },
389 + { "INAM", "title" }, 389 + { "INAM", "title" },
390 + { "ICMT", "comment" }, 390 + { "ICMT", "comment" },
391 + { 0 } 391 + { 0 }
392 +}; 392 +};
393 diff -rpu -N orig/libavformat/webp.h ffmpeg-mt/libavformat/webp.h 393 diff -wurp -N orig/libavformat/webp.h ffmpeg-mt/libavformat/webp.h
394 --- orig/libavformat/webp.h 1969-12-31 16:00:00 -0800 394 --- orig/libavformat/webp.h 1969-12-31 16:00:00 -0800
395 +++ ffmpeg-mt/libavformat/webp.h» 2010-10-21 12:03:27 -0700 395 +++ ffmpeg-mt/libavformat/webp.h» 2010-11-04 08:10:29 -0700
396 @@ -0,0 +1,35 @@ 396 @@ -0,0 +1,35 @@
397 +/* 397 +/*
398 + * Copyright (c) 2010, Google, Inc. 398 + * Copyright (c) 2010, Google, Inc.
399 + * 399 + *
400 + * This file is part of FFmpeg. 400 + * This file is part of FFmpeg.
401 + * 401 + *
402 + * FFmpeg is free software; you can redistribute it and/or 402 + * FFmpeg is free software; you can redistribute it and/or
403 + * modify it under the terms of the GNU Lesser General Public 403 + * modify it under the terms of the GNU Lesser General Public
404 + * License as published by the Free Software Foundation; either 404 + * License as published by the Free Software Foundation; either
405 + * version 2.1 of the License, or (at your option) any later version. 405 + * version 2.1 of the License, or (at your option) any later version.
(...skipping 16 matching lines...) Expand all
422 +#ifndef AVFORMAT_WEBP_H 422 +#ifndef AVFORMAT_WEBP_H
423 +#define AVFORMAT_WEBP_H 423 +#define AVFORMAT_WEBP_H
424 + 424 +
425 +#include "avformat.h" 425 +#include "avformat.h"
426 +#include "riff.h" 426 +#include "riff.h"
427 +#include "metadata.h" 427 +#include "metadata.h"
428 + 428 +
429 +extern const AVMetadataConv ff_webp_metadata_conv[]; 429 +extern const AVMetadataConv ff_webp_metadata_conv[];
430 + 430 +
431 +#endif /* AVFORMAT_WEBP_H */ 431 +#endif /* AVFORMAT_WEBP_H */
432 diff -rpu -N orig/libavformat/webpdec.c ffmpeg-mt/libavformat/webpdec.c 432 diff -wurp -N orig/libavformat/webpdec.c ffmpeg-mt/libavformat/webpdec.c
433 --- orig/libavformat/webpdec.c 1969-12-31 16:00:00 -0800 433 --- orig/libavformat/webpdec.c 1969-12-31 16:00:00 -0800
434 +++ ffmpeg-mt/libavformat/webpdec.c» 2010-10-21 12:03:27 -0700 434 +++ ffmpeg-mt/libavformat/webpdec.c» 2010-11-04 08:10:29 -0700
435 @@ -0,0 +1,132 @@ 435 @@ -0,0 +1,132 @@
436 +/* 436 +/*
437 + * Copyright (c) 2010, Google, Inc. 437 + * Copyright (c) 2010, Google, Inc.
438 + * 438 + *
439 + * This file is part of FFmpeg. 439 + * This file is part of FFmpeg.
440 + * 440 + *
441 + * FFmpeg is free software; you can redistribute it and/or 441 + * FFmpeg is free software; you can redistribute it and/or
442 + * modify it under the terms of the GNU Lesser General Public 442 + * modify it under the terms of the GNU Lesser General Public
443 + * License as published by the Free Software Foundation; either 443 + * License as published by the Free Software Foundation; either
444 + * version 2.1 of the License, or (at your option) any later version. 444 + * version 2.1 of the License, or (at your option) any later version.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 + .priv_data_size = 0, 558 + .priv_data_size = 0,
559 + .read_probe = probe, 559 + .read_probe = probe,
560 + .read_header = read_header, 560 + .read_header = read_header,
561 + .read_packet = read_packet, 561 + .read_packet = read_packet,
562 + .read_close = read_close, 562 + .read_close = read_close,
563 + .flags = AVFMT_GENERIC_INDEX, 563 + .flags = AVFMT_GENERIC_INDEX,
564 + .extensions = "webp", 564 + .extensions = "webp",
565 + .value = CODEC_ID_VP8, 565 + .value = CODEC_ID_VP8,
566 + .codec_tag = (const AVCodecTag*[]){webp_codec_tags, 0}, 566 + .codec_tag = (const AVCodecTag*[]){webp_codec_tags, 0},
567 +}; 567 +};
568 diff -rpu -N orig/libavformat/webpenc.c ffmpeg-mt/libavformat/webpenc.c 568 diff -wurp -N orig/libavformat/webpenc.c ffmpeg-mt/libavformat/webpenc.c
569 --- orig/libavformat/webpenc.c 1969-12-31 16:00:00 -0800 569 --- orig/libavformat/webpenc.c 1969-12-31 16:00:00 -0800
570 +++ ffmpeg-mt/libavformat/webpenc.c» 2010-10-21 12:03:27 -0700 570 +++ ffmpeg-mt/libavformat/webpenc.c» 2010-11-04 08:10:29 -0700
571 @@ -0,0 +1,123 @@ 571 @@ -0,0 +1,123 @@
572 +/* 572 +/*
573 + * Copyright (c) 2010, Google, Inc. 573 + * Copyright (c) 2010, Google, Inc.
574 + * 574 + *
575 + * This file is part of FFmpeg. 575 + * This file is part of FFmpeg.
576 + * 576 + *
577 + * FFmpeg is free software; you can redistribute it and/or 577 + * FFmpeg is free software; you can redistribute it and/or
578 + * modify it under the terms of the GNU Lesser General Public 578 + * modify it under the terms of the GNU Lesser General Public
579 + * License as published by the Free Software Foundation; either 579 + * License as published by the Free Software Foundation; either
580 + * version 2.1 of the License, or (at your option) any later version. 580 + * version 2.1 of the License, or (at your option) any later version.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 + .long_name = NULL_IF_CONFIG_SMALL("WebP"), 685 + .long_name = NULL_IF_CONFIG_SMALL("WebP"),
686 + .mime_type = "image/webp", 686 + .mime_type = "image/webp",
687 + .extensions = "webp", 687 + .extensions = "webp",
688 + .priv_data_size = sizeof(WEBPContext), 688 + .priv_data_size = sizeof(WEBPContext),
689 + .audio_codec = CODEC_ID_NONE, 689 + .audio_codec = CODEC_ID_NONE,
690 + .video_codec = CODEC_ID_VP8, 690 + .video_codec = CODEC_ID_VP8,
691 + .write_header = write_header, 691 + .write_header = write_header,
692 + .write_packet = write_packet, 692 + .write_packet = write_packet,
693 + .write_trailer = write_trailer, 693 + .write_trailer = write_trailer,
694 +}; 694 +};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698