]>
Commit | Line | Data |
---|---|---|
1771aa88 | 1 | diff -Nur NVrec.orig/divx4/divx4file_core.c NVrec-20010808/divx4/divx4file_core.c |
2 | --- NVrec.orig/divx4/divx4file_core.c Wed Aug 8 12:41:25 2001 | |
3 | +++ NVrec-20010808/divx4/divx4file_core.c Fri Aug 31 12:51:32 2001 | |
4 | @@ -24,7 +24,7 @@ | |
5 | #include <sys/stat.h> | |
6 | #include <fcntl.h> | |
7 | #include "avilib.h" | |
8 | -#include "encore2.h" | |
9 | +#include "divx/encore2.h" | |
10 | #include "lame3.70/lame.h" | |
11 | #include "../NVrec.h" | |
12 | ||
13 | diff -Nur NVrec.orig/divxfile_core.cpp NVrec-20010808/divxfile_core.cpp | |
14 | --- NVrec.orig/divxfile_core.cpp Wed Aug 8 12:41:25 2001 | |
15 | +++ NVrec-20010808/divxfile_core.cpp Fri Aug 31 12:47:45 2001 | |
16 | @@ -25,9 +25,14 @@ | |
17 | #include <videoencoder.h> | |
18 | #include <avifile.h> | |
19 | #include <aviplay.h> | |
20 | +#include <fourcc.h> | |
21 | +#include <creators.h> | |
22 | +#include <stdio.h> | |
23 | #include <version.h> | |
24 | #include "NVrec.h" | |
25 | ||
26 | +using namespace Creators; | |
27 | + | |
28 | struct divxfile_core_t { | |
29 | IAviWriteFile * avifile; | |
30 | unsigned char * framebuffer; | |
31 | @@ -160,7 +165,7 @@ | |
32 | ||
33 | unlink(fname); | |
34 | divxc->avifile = CreateIAviWriteFile(fname); | |
35 | - IVideoEncoder::SetExtendedAttr(codec, "BitRate", divxbitrate); | |
36 | + SetCodecAttr(*CodecInfo::match(codec, CodecInfo::Video,0),"BitRate", divxbitrate); | |
37 | fccHandler = codec; | |
38 | framerate = 1e9 / (double)vrate; | |
39 | ||
40 | diff -Nur NVrec.orig/tools/qt2divx.cpp NVrec-20010808/tools/qt2divx.cpp | |
41 | --- NVrec.orig/tools/qt2divx.cpp Wed Aug 8 12:41:25 2001 | |
42 | +++ NVrec-20010808/tools/qt2divx.cpp Fri Aug 31 12:50:17 2001 | |
43 | @@ -29,12 +29,15 @@ | |
44 | ||
45 | #include <videoencoder.h> | |
46 | #include <avifile.h> | |
47 | +#include <fourcc.h> | |
48 | +#include <creators.h> | |
49 | #include <aviplay.h> | |
50 | -#include <aviutil.h> | |
51 | #include <version.h> | |
52 | #include <quicktime/quicktime.h> | |
53 | #include <sys/time.h> | |
54 | ||
55 | +using namespace Creators; | |
56 | + | |
57 | quicktime_t *qtedopen(char *fname, long * count, unsigned long long * apos) | |
58 | { | |
59 | quicktime_t *f = NULL; | |
60 | @@ -310,7 +313,7 @@ | |
61 | ||
62 | avifile=CreateIAviWriteFile(outputfile); | |
63 | ||
64 | - IVideoEncoder::SetExtendedAttr(codec, "BitRate", divxbitrate); | |
65 | + SetCodecAttr(*CodecInfo::match(codec, CodecInfo::Video,0),"BitRate", divxbitrate); | |
66 | ||
67 | BITMAPINFOHEADER bh; | |
68 | memset(&bh,0,sizeof(BITMAPINFOHEADER)); |