delete libraries/ffmpeg

git-svn-id: svn://kolibrios.org@4351 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2013-12-15 08:19:46 +00:00
parent d4f1f36cff
commit 859fac700d
3 changed files with 0 additions and 384 deletions

View File

@ -1,17 +0,0 @@
1)Download Newlib from http://code.google.com/p/kolibri-pe/downloads/detail?name=libc.7z
Type svn co svn://svn.ffmpeg.org/ffmpeg/branches/0.6 ffmpeg-0.6
to install ffmpeg-0.6 branch. Apply patch.
2) Type './configure' to create the configuration. A list of configure
options is printed by running 'configure --help'.
Known working configuration:
./configure --disable-shared --enable-static --disable-network --disable-debug --enable-memalign-hack --extra-cflags=-fno-builtin-printf --extra-cflags=-fno-common --disable-protocol=pipe --disable-encoders --enable-gpl --extra-cflags=-I<path to newlib includes> --disable-ffplay --disable-vdpau --enable-hardcoded-tables --disable-devices
'configure' can be launched from a directory different from the FFmpeg
sources to build the objects out of tree. To do this, use an absolute
path when launching 'configure', e.g. '/ffmpegdir/ffmpeg/configure'.
You can manually change some options in resulted config.h and config.mak.
3) Then type 'make' to build FFmpeg. GNU Make 3.81 or later is required.

View File

@ -1,252 +0,0 @@
diff -r -u /c/ftp/ffmpeg-1.1.3/configure /e/ffmpeg-1.1.3/configure
--- /c/ftp/ffmpeg-1.1.3/configure 2013-02-23 05:05:23 +0400
+++ /e/ffmpeg-1.1.3/configure 2013-03-12 04:38:08 +0400
@@ -1348,9 +1348,7 @@
clock_gettime
closesocket
cmov
- CommandLineToArgvW
cpunop
- CryptGenRandom
dcbzl
dev_bktr_ioctl_bt848_h
dev_bktr_ioctl_meteor_h
@@ -1371,14 +1369,7 @@
fork
getaddrinfo
gethrtime
- getopt
- GetProcessAffinityMask
- GetProcessMemoryInfo
- GetProcessTimes
- GetSystemTimeAsFileTime
getrusage
- getservbyport
- gettimeofday
glob
gnu_as
ibm_asm
@@ -1399,12 +1390,10 @@
machine_ioctl_meteor_h
makeinfo
malloc_h
- MapViewOfFile
memalign
mkstemp
mm_empty
mmap
- mprotect
msvcrt
nanosleep
openjpeg_1_5_openjpeg_h
@@ -1419,7 +1408,6 @@
sched_getaffinity
sdl
sdl_video_size
- SetConsoleTextAttribute
setmode
setrlimit
Sleep
@@ -1455,8 +1443,6 @@
unistd_h
usleep
vfp_args
- VirtualAlloc
- windows_h
winsock2_h
xform_asm
xmm_clobbers
Only in /e/ffmpeg-1.1.3/doc/examples: pc-uninstalled
Only in /e/ffmpeg-1.1.3/libavcodec: libavcodec.pc
diff -r -u /c/ftp/ffmpeg-1.1.3/libavcodec/utils.c /e/ffmpeg-1.1.3/libavcodec/utils.c
--- /c/ftp/ffmpeg-1.1.3/libavcodec/utils.c 2013-02-23 05:05:23 +0400
+++ /e/ffmpeg-1.1.3/libavcodec/utils.c 2013-03-14 03:19:38 +0400
@@ -2549,6 +2549,8 @@
{
AVHWAccel *hwaccel = NULL;
+ printf("%s id %d format %d\n", __FUNCTION__, codec_id, pix_fmt);
+
while ((hwaccel = av_hwaccel_next(hwaccel)))
if (hwaccel->id == codec_id
&& hwaccel->pix_fmt == pix_fmt)
diff -r -u /c/ftp/ffmpeg-1.1.3/libavcodec/vaapi_h264.c /e/ffmpeg-1.1.3/libavcodec/vaapi_h264.c
--- /c/ftp/ffmpeg-1.1.3/libavcodec/vaapi_h264.c 2013-02-23 05:05:17 +0400
+++ /e/ffmpeg-1.1.3/libavcodec/vaapi_h264.c 2013-03-14 04:46:14 +0400
@@ -341,7 +341,7 @@
.name = "h264_vaapi",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_H264,
- .pix_fmt = AV_PIX_FMT_VAAPI_VLD,
+ .pix_fmt = AV_PIX_FMT_VAAPI_VLD, /* AV_PIX_FMT_YUV420P, */
.start_frame = start_frame,
.end_frame = end_frame,
.decode_slice = decode_slice,
Only in /e/ffmpeg-1.1.3/libavdevice: libavdevice.pc
Only in /e/ffmpeg-1.1.3/libavfilter: libavfilter.pc
diff -r -u /c/ftp/ffmpeg-1.1.3/libavformat/file.c /e/ffmpeg-1.1.3/libavformat/file.c
--- /c/ftp/ffmpeg-1.1.3/libavformat/file.c 2013-02-23 05:05:17 +0400
+++ /e/ffmpeg-1.1.3/libavformat/file.c 2013-07-12 17:59:02 +0400
@@ -23,9 +23,9 @@
#include "libavutil/opt.h"
#include "avformat.h"
#include <fcntl.h>
-#if HAVE_IO_H
-#include <io.h>
-#endif
+//#if HAVE_IO_H
+//#include <io.h>
+//#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -66,6 +66,7 @@
static int file_read(URLContext *h, unsigned char *buf, int size)
{
FileContext *c = h->priv_data;
+
int r = read(c->fd, buf, size);
return (-1 == r)?AVERROR(errno):r;
}
@@ -85,26 +86,15 @@
static int file_check(URLContext *h, int mask)
{
-#if HAVE_ACCESS && defined(R_OK)
- int ret = 0;
- if (access(h->filename, F_OK) < 0)
- return AVERROR(errno);
- if (mask&AVIO_FLAG_READ)
- if (access(h->filename, R_OK) >= 0)
- ret |= AVIO_FLAG_READ;
- if (mask&AVIO_FLAG_WRITE)
- if (access(h->filename, W_OK) >= 0)
- ret |= AVIO_FLAG_WRITE;
-#else
- struct stat st;
- int ret = stat(h->filename, &st);
- if (ret < 0)
- return AVERROR(errno);
+// struct stat st;
+// int ret = stat(h->filename, &st);
+// if (ret < 0)
+// return AVERROR(errno);
- ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ : 0;
- ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
-#endif
- return ret;
+// ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ : 0;
+// ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
+
+ return AVIO_FLAG_READ | AVIO_FLAG_WRITE ;
}
#if CONFIG_FILE_PROTOCOL
Only in /e/ffmpeg-1.1.3/libavformat: libavformat.pc
Only in /e/ffmpeg-1.1.3/libavutil: avconfig.h
diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/file.c /e/ffmpeg-1.1.3/libavutil/file.c
--- /c/ftp/ffmpeg-1.1.3/libavutil/file.c 2013-02-23 05:05:18 +0400
+++ /e/ffmpeg-1.1.3/libavutil/file.c 2013-03-09 17:03:58 +0400
@@ -25,13 +25,8 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if HAVE_IO_H
-#include <io.h>
-#endif
#if HAVE_MMAP
#include <sys/mman.h>
-#elif HAVE_MAPVIEWOFFILE
-#include <windows.h>
#endif
typedef struct {
Only in /e/ffmpeg-1.1.3/libavutil: libavutil.pc
diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/log.c /e/ffmpeg-1.1.3/libavutil/log.c
--- /c/ftp/ffmpeg-1.1.3/libavutil/log.c 2013-02-23 05:05:18 +0400
+++ /e/ffmpeg-1.1.3/libavutil/log.c 2013-03-09 17:05:54 +0400
@@ -29,9 +29,6 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if HAVE_IO_H
-#include <io.h>
-#endif
#include <stdlib.h>
#include "avutil.h"
#include "common.h"
@@ -93,12 +90,13 @@
[16+AV_CLASS_CATEGORY_SWRESAMPLER ] = 147 << 8 | 0x14,
};
-#define set_color(x) fprintf(stderr, "\033[%d;3%dm", (color[x] >> 4) & 15, color[x] & 15)
-#define set_256color(x) fprintf(stderr, "\033[48;5;%dm\033[38;5;%dm", (color[x] >> 16) & 0xff, (color[x] >> 8) & 0xff)
-#define reset_color() fprintf(stderr, "\033[0m")
+#define set_color(x)
+#define set_256color(x)
+#define reset_color()
#endif
static int use_color = -1;
+#undef fprintf
static void colored_fputs(int level, const char *str)
{
if (use_color < 0) {
@@ -113,14 +111,12 @@
background = attr_orig & 0xF0;
}
#elif HAVE_ISATTY
- use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
- (getenv("TERM") && isatty(2) ||
- getenv("AV_LOG_FORCE_COLOR"));
- if (getenv("AV_LOG_FORCE_256COLOR"))
- use_color *= 256;
+// use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
+// (getenv("TERM") && isatty(2) ||
+// getenv("AV_LOG_FORCE_COLOR"));
#else
- use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&
- !getenv("AV_LOG_FORCE_NOCOLOR");
+// use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&
+// !getenv("AV_LOG_FORCE_NOCOLOR");
#endif
}
@@ -214,11 +210,12 @@
format_line(ptr, level, fmt, vl, part, sizeof(part[0]), &print_prefix, type);
snprintf(line, sizeof(line), "%s%s%s", part[0], part[1], part[2]);
-#if HAVE_ISATTY
- if (!is_atty)
- is_atty = isatty(2) ? 1 : -1;
-#endif
+//#if HAVE_ISATTY
+// if (!is_atty)
+// is_atty = isatty(2) ? 1 : -1;
+//#endif
+#undef fprintf
if (print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev)){
count++;
if (is_atty == 1)
diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/time.c /e/ffmpeg-1.1.3/libavutil/time.c
--- /c/ftp/ffmpeg-1.1.3/libavutil/time.c 2013-02-23 05:05:18 +0400
+++ /e/ffmpeg-1.1.3/libavutil/time.c 2013-03-09 17:18:54 +0400
@@ -55,16 +55,5 @@
int av_usleep(unsigned usec)
{
-#if HAVE_NANOSLEEP
- struct timespec ts = { usec / 1000000, usec % 1000000 * 1000 };
- while (nanosleep(&ts, &ts) < 0 && errno == EINTR);
- return 0;
-#elif HAVE_USLEEP
- return usleep(usec);
-#elif HAVE_SLEEP
- Sleep(usec / 1000);
- return 0;
-#else
return AVERROR(ENOSYS);
-#endif
}

View File

@ -1,115 +0,0 @@
Index: libavcodec/utils.c
===================================================================
--- libavcodec/utils.c (revision 25603)
+++ libavcodec/utils.c (working copy)
@@ -1071,27 +1071,33 @@
* and opened file name in **filename. */
int av_tempfile(char *prefix, char **filename) {
int fd=-1;
-#if !HAVE_MKSTEMP
- *filename = tempnam(".", prefix);
-#else
+//#if !defined(HAVE_MKSTEMP)
+// *filename = tempnam(".", prefix);
+//#else
size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
*filename = av_malloc(len);
-#endif
+//#endif
/* -----common section-----*/
if (*filename == NULL) {
av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n");
return -1;
}
-#if !HAVE_MKSTEMP
+//#if !defined(HAVE_MKSTEMP)
+// fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
+//#else
+
+// snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
+// fd = mkstemp(*filename);
+// if (fd < 0) {
+// snprintf(*filename, len, "./%sXXXXXX", prefix);
+// fd = mkstemp(*filename);
+// }
+
+
+ snprintf(*filename, len, "%sXXXXXX", prefix);
fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
-#else
- snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
- fd = mkstemp(*filename);
- if (fd < 0) {
- snprintf(*filename, len, "./%sXXXXXX", prefix);
- fd = mkstemp(*filename);
- }
-#endif
+
+//#endif
/* -----common section-----*/
if (fd < 0) {
av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot open temporary file %s\n", *filename);
Index: libavcodec/vorbis.c
===================================================================
--- libavcodec/vorbis.c (revision 25603)
+++ libavcodec/vorbis.c (working copy)
@@ -23,6 +23,7 @@
#undef V_DEBUG
//#define V_DEBUG
+#include <math.h>
#define ALT_BITSTREAM_READER_LE
#include "avcodec.h"
#include "get_bits.h"
Index: libavformat/avio.c
===================================================================
--- libavformat/avio.c (revision 25603)
+++ libavformat/avio.c (working copy)
@@ -174,7 +174,7 @@
if (fast_retries)
fast_retries--;
else
- usleep(1000);
+ /*usleep(1000)*/;
} else if (ret < 1)
return ret < 0 ? ret : len;
if (ret)
Index: libswscale/swscale.c
===================================================================
--- libswscale/swscale.c (revision 25603)
+++ libswscale/swscale.c (working copy)
@@ -1834,7 +1834,7 @@
* swscale wrapper, so we don't need to export the SwsContext.
* Assumes planar YUV to be in YUV order instead of YVU.
*/
-int sws_scale(SwsContext *c, const uint8_t* const src[], const int srcStride[], int srcSliceY,
+int sws_scale(SwsContext *c, uint8_t* src[], const int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* const dst[], const int dstStride[])
{
int i;
Index: libswscale/swscale.h
===================================================================
--- libswscale/swscale.h (revision 25603)
+++ libswscale/swscale.h (working copy)
@@ -192,7 +192,7 @@
* the destination image
* @return the height of the output slice
*/
-int sws_scale(struct SwsContext *context, const uint8_t* const srcSlice[], const int srcStride[],
+int sws_scale(struct SwsContext *context, uint8_t* srcSlice[], const int srcStride[],
int srcSliceY, int srcSliceH, uint8_t* const dst[], const int dstStride[]);
#if LIBSWSCALE_VERSION_MAJOR < 1
/**
Index: libswscale/utils.c
===================================================================
--- libswscale/utils.c (revision 25603)
+++ libswscale/utils.c (working copy)
@@ -24,6 +24,8 @@
#include <math.h>
#include <stdio.h>
#include "config.h"
+#undef HAVE_VIRTUALALLOC
+#define HAVE_VIRTUALALLOC 0
#include <assert.h>
#if HAVE_SYS_MMAN_H
#include <sys/mman.h>