Commit Graph
100 Commits
Author SHA1 Message Date
shatty 96fea92979 static variables in functions are all fun and good until you realize that they are not equivalent to class level variables when that function is a method
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:49:33 +00:00
shatty 801227279c static variables in functions are all fun and good until you realize that they are not equivalent to class level variables when that function is a method
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:45:14 +00:00
shatty a511a51332 perfect replay
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 11:55:27 +00:00
shatty 170d6e3fbc I pronounce it Good!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 11:37:10 +00:00
shatty eb62634484 fixed some sizeof bugs and added more tracing for error returns
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 08:23:07 +00:00
shatty fff3b1f17b tolerate more badness from BMediaFormats, added theora formats, cleaned up theora header parsing
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 07:58:23 +00:00
shatty d1d448fc86 factored out description and default format construction and made them available through ogg, use these in case BMediaFormats fails -- like it does with the tobias streams for right now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 07:43:32 +00:00
shatty 4644ba227a fix the lockup at end of ogg bug - return an error in GetPacket when GetNextPage or GetPageAt fails
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 07:00:45 +00:00
shatty 9b57d8a926 yay for speex
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 06:39:59 +00:00
shatty 89ea295e8e divide by 32000 to reduce volume
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 06:35:25 +00:00
shatty 33732c29f1 important seek friends
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 06:33:19 +00:00
shatty 07ae6ce8a6 ogg pseudo-seeking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 06:04:28 +00:00
shatty 38e18d350e more reliable format retrieval
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 06:02:45 +00:00
shatty 48a06864d0 fixed registration for mpeg 1 layer 1 & 2
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 05:12:45 +00:00
shatty ee154dc212 improved use of formats.MakeFormatFor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 04:48:07 +00:00
shatty 2aa106d6b7 fixed a bug which caused one perhaps the most helpful error message ever from gcc: 101: invalid reference to a member function name, did you forget the ()?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 22:56:15 +00:00
shatty 1421ba0668 RestartMediaServices should return a value, I returned the value from PostMessage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 22:36:16 +00:00
shatty a4f26c7d66 fix SetMetaData to create an area, do not bother with checking the return value from find_thread(NULL)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 22:19:00 +00:00
shatty bacf4b5e20 meta_data back to void *.. "Be knows best"
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 22:17:21 +00:00
shatty f14460063c Ogg Reader 2.0d0
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 21:50:32 +00:00
shatty cd6a9248db adjust framecount/duration for mono/stereo, add channel_mask to vorbis header parsing, compute a "convenient" buffer size for speex decoding
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 22:59:28 +00:00
shatty 194748a1ba speex output length multiply by channel count
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 22:25:13 +00:00
shatty 43ffdb6608 sound production.. somewhat mangled
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 22:21:21 +00:00
shatty b84e6d90eb instead of checking for invalidity, check for validity for meta_data_area
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 20:40:06 +00:00
shatty f785208b00 added extern "C" protect for speex_stereo.h, bug submitted back to author
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 20:00:23 +00:00
shatty 67ab3b5bed removed extra ogg lib link but still having link failure
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 11:34:36 +00:00
shatty f9df549e6f stupid linker bug... why?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 11:21:49 +00:00
shatty a2d20d9daa correct initialization of media_format. (btw I just realized I never need to manually zero a format after construction) perform a complete copy of media_format. do some things related to handling meta_data_areas. still some left to do, so do an UNIMPLEMENTED if we are in that state
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 10:34:27 +00:00
shatty 18bffde638 no need for ogg header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 10:30:27 +00:00
shatty 24817be98a media_decoder tuning: find first audio stream, errors for no tracks, do not bother with seek, add intermediary variables to assist in viewing functionality in bdb
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 09:09:43 +00:00
shatty 955c0efddc makes noise in nplay, MediaPlayer will not use it, nothing sounds good
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 10:51:41 +00:00
shatty 59ad518ef7 speex parsing tweaks including copy of SpeexHeader from speex_header.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 09:58:35 +00:00
shatty 8000f68ada code cleanup based on speex
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 09:55:07 +00:00
shatty e248c06496 add speex codec shell and lib
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 07:21:16 +00:00
shatty 7aca40c2c3 reverse encoding order
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 07:21:03 +00:00
shatty ec9c7fd2fc fix quoting error
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 07:19:27 +00:00
shatty 3b8d4ddc65 incorporated my private dprintf patches, avcodec now building
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 06:46:42 +00:00
shatty 4bea0cb151 added audiocodec/speex and videocodec/mpeg4
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 06:35:45 +00:00
shatty 830ac450b6 ogg complete parsing of speex, tobias video, vorbis headers, including "friendly" strings for MediaPlayer missing codec errors
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 06:10:42 +00:00
shatty c084ed96f3 separate out codec id and properties into a different file, add identification and format setup for tobias video (typically mpeg4) and speex codec (by observation, not spec)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 04:03:23 +00:00
shatty 2b1709d4df remove antiquated fOutput, improve bitrate checks, re-order initialization, added frame_size = sizeof(ogg_packet)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 01:35:03 +00:00
shatty c19e6dd93f add 'vorb' family -> 'audiocodec/vorbis'
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 00:30:55 +00:00
shatty e2b605b45c ogg/vorbis update to MetaData. ogg update to do codec identification for vorbis, and to meta-data all header packets for each stream
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 00:29:53 +00:00
shatty 21290602d8 better Seek failure handling, use MetaData to pass information to decoder, do not use infoBuffer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:13:29 +00:00
shatty e065a2e0e7 divide GetNextChunk and non-const media_format behavior into new member function InitializeInput
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:11:44 +00:00
shatty a498eb5fda preliminary partial MediaDecoder implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:10:18 +00:00
shatty ceb9cf7abc implement SetMetaData, MetaData, MetaDataSize functions on media_format
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:09:43 +00:00
shatty 46e6b9b766 change private meta_data field to const void * to agree with SetMetaData and MetaData member functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:09:07 +00:00
shatty e701972356 use private member function for AttachToDecoder, discard unused private static
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:08:25 +00:00
shatty 907f9f5b87 add media_decoder test program
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 19:06:11 +00:00
shatty 5405103fb8 moved nv_maven.c to nv_dac2.c. moved nv_maventv.c to nv_brooktreetv.c.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 18:57:27 +00:00
shatty fb6cadf1b0 ---------------------------------------------------------------------------------------
RCS file: /cvsroot/open-beos/current/src/add-ons/accelerants/nvidia/engine/nv_maventv.c,v
  Working file: nv_maventv.c
  head: 1.4
  branch:
  locks: strict
  access list:
  symbolic names:
	openBeOS_Nvidia_V0_07_src: 1.1
	openBeOS_Nvidia_V0_06_src: 1.1
	openBeOS_Nvidia_V0_05_src: 1.1
	openBeOS_Nvidia_V0_04_src: 1.1
	openBeOS_Nvidia_V0_03_src: 1.1
	openBeOS_Nvidia_V0_02_src: 1.1
  keyword substitution: kv
  total revisions: 4;	selected revisions: 4
  description:
  ----------------------------
  revision 1.4
  date: 2004/01/17 10:43:53;  author: rudolfc;  state: Exp;  lines: +45 -45
  updated card recognition, more dualhead updates
  ----------------------------
  revision 1.3
  date: 2004/01/12 19:06:43;  author: rudolfc;  state: Exp;  lines: +1 -1
  crtc2 modifications for NV dualhead mode
  ----------------------------
  revision 1.2
  date: 2003/12/30 14:40:32;  author: rudolfc;  state: Exp;  lines: +6 -1
  fixed several compiler warnings
  ----------------------------
  revision 1.1
  date: 2003/11/23 05:30:14;  author: shatty;  state: Exp;
  add nvidia accelerant
  ---------------------------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 18:56:03 +00:00
shatty 15a017e969 ---------------------------------------------------------------------------------------
RCS file: /cvsroot/open-beos/current/src/add-ons/accelerants/nvidia/engine/nv_maven.c,v
  Working file: nv_maven.c
  head: 1.2
  branch:
  locks: strict
  access list:
  symbolic names:
	openBeOS_Nvidia_V0_07_src: 1.1
	openBeOS_Nvidia_V0_06_src: 1.1
	openBeOS_Nvidia_V0_05_src: 1.1
	openBeOS_Nvidia_V0_04_src: 1.1
	openBeOS_Nvidia_V0_03_src: 1.1
	openBeOS_Nvidia_V0_02_src: 1.1
  keyword substitution: kv
  total revisions: 2;	selected revisions: 2
  description:
  ----------------------------
  revision 1.2
  date: 2004/01/15 21:14:20;  author: rudolfc;  state: Exp;  lines: +185 -148
  secondary head updates, cardrecognition updates (fx5950, fx5700)
  ----------------------------
  revision 1.1
  date: 2003/11/23 05:30:14;  author: shatty;  state: Exp;
  add nvidia accelerant
  ---------------------------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 18:54:53 +00:00
shatty bc3a0b6ccd implement MediaDecoder, MediaExtractor using added ChunkProvider
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 07:37:52 +00:00
shatty b4057dc9eb implement MediaDecoder using added ChunkProvider
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 07:37:21 +00:00
shatty 1e389a3a80 resizing behavior improvements, code cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 06:04:22 +00:00
shatty c2d66a0f49 correct menu color scheme title, thx Diver(ru), change from Draw to DrawContent simplifies BitmapMenuItem implementation, call to parent to draw string content enables shortcut on the menu item, fix always show triggers behavior (should be enabled when click to open is marked, disabled otherwise)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 01:01:13 +00:00
shatty 028ec37e0b use static libs instead of direct object linking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-12 03:23:41 +00:00
shatty 764dff5e30 png is a standard static lib, provide it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-12 03:19:23 +00:00
shatty 619e402c27 zlib is a standard static lib, provide it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-12 03:18:56 +00:00
shatty 130720373d robustness improvements and correct setting of "none" for empty preferred app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 12:41:29 +00:00
shatty 867921dcf0 has some usefulness now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 12:12:57 +00:00
shatty 42f39580d8 assorted warnings patches, look and feel patches, populate the preferred application field prettily
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 10:46:20 +00:00
shatty 5e6e40e0f3 add README.html and UPDATE.html to matrox package
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 03:47:47 +00:00
shatty ab77c4c74f add README.html and UPDATE.html to neomagic package
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 03:44:16 +00:00
shatty 82bec102a8 grist is required for the non-zipped files in order to distinguish between the README.html for neomagic vs. nvidia, for example
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 03:43:28 +00:00
shatty 632673435d bye bye xvid_decoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-05 02:41:11 +00:00
shatty 7e6260c44d do not crash if we are in an unofficial state
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 08:53:49 +00:00
shatty eb32778201 fix all workspaces bug [thx mmadia] and use ProposeMode mechanism for unfound modes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 07:12:00 +00:00
shatty 7c0a9f8327 dynamically compute refresh bounds and other fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 06:34:38 +00:00
shatty 24291d0ad6 increase usability by proposing alternative modes. other abstraction/behavioral improvements
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 05:17:50 +00:00
shatty 065577c72e validated modelines against web sources, including XFree86
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-01 05:57:07 +00:00
shatty abaa87b4d8 add R5 modes, commented out
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-01 04:16:55 +00:00
shatty 4afe6a6bd3 add static to remove warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 11:39:43 +00:00
shatty 7d2bb07ed9 removed broken #define static ..., cast the intermediate result to (void) to avoid warnings instead
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 11:37:13 +00:00
shatty 5847b78fb2 add static to remove warning
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 11:22:31 +00:00
shatty 39ba57a996 add missing static qualifiers to remove warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 10:53:22 +00:00
shatty 829d826c09 no support headers required
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 03:47:21 +00:00
shatty 0b14a073cb remove warning: implicit declaration of function close
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 03:33:52 +00:00
shatty 495c6cf79d to please Axel (ok the stupid warnings were annoying me too) I made the ArgvReceived non virtual
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 03:19:05 +00:00
shatty bacf687270 fix for constantly rebuilding app_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 22:26:26 +00:00
shatty 3f7e8e7395 for faster, more reliable translation, using larger buffers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 12:06:25 +00:00
shatty 1074cc24d5 fix stupid looping bug on large files - thanks kuye, Tim
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 11:09:44 +00:00
shatty 5707f9a19b implemented substitution behavior by using non-posix iconvctl. also implemented bad input bytes tolerance (via ignore)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 10:36:07 +00:00
shatty cac6c93c3a use gnu iconv.h to get access to nonposix functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 10:35:15 +00:00
shatty 059fa6fbb5 do not use iconv plug because we want nonposix functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 10:34:50 +00:00
shatty 62a5973ec6 put in butchered version of libiconv.h from gnu libiconv, so we can have access to the non-posix functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 10:34:09 +00:00
shatty 5347b781b4 add textencoding
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 08:15:23 +00:00
shatty f0b5e20620 GNU libiconv-1.9.1
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:44:22 +00:00
shatty fe738f96ca fix error in trace string
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:38:37 +00:00
shatty bbeea88122 bail if error on seek
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:38:00 +00:00
shatty 0cb1c46a46 add header protection, and two posix compliant prototypes that are provided by R5 libroot.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 07:37:08 +00:00
shatty d3c943d4fd better look, and names
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 06:23:35 +00:00
shatty 519a8c18dc character set support moved to textencoding
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:38:52 +00:00
shatty 81d54f9a85 moved character set and text encoding related files to current/src/kits/textencoding
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:30:34 +00:00
shatty e5692b384e MOVED:
---------------------------------------------------------------------------
  RCS file: /cvsroot/open-beos/current/src/kits/support/utf8_conversions.cpp,v
  Working file: utf8_conversions.cpp
  head: 1.8
  branch:
  locks: strict
  access list:
  symbolic names:
  keyword substitution: kv
  total revisions: 8;     selected revisions: 8
  description:
  ----------------------------
  revision 1.8
  date: 2003/08/13 05:38:07;  author: shatty;  state: Exp;  lines: +24 -4
  refine the error handling behavior.  note: we depart from the bebook specification for returning B_ERROR when no characters are converted.  we do this in exactly one situation: when there are no bytes in the input.  this behavior is the behavior given by the R5 libs themselves.  not having this behavior caused an error in our stylededit as well.  stylededit has been fixed to not exercise this functionality.  also added in the two most popular chinese encodings for my own evil purposes.  GB18030 support is required to legally sell an operating system in mainland china as well.  GB18030 support encompasses GBK and GB2312, additionally.
  ----------------------------
  revision 1.7
  date: 2003/08/02 09:01:13;  author: shatty;  state: Exp;  lines: +1 -1
  no const for now
  ----------------------------
  revision 1.6
  date: 2003/07/31 07:34:30;  author: shatty;  state: Exp;  lines: +0 -1
  dunno when beos changes the state, but it seems to leave at 0 for a while so I am going to have it be consistent that way
  ----------------------------
  revision 1.5
  date: 2003/07/31 07:18:15;  author: shatty;  state: Exp;  lines: +0 -3
  remove debugging print things
  ----------------------------
  revision 1.4
  date: 2003/07/31 07:17:30;  author: shatty;  state: Exp;  lines: +35 -30
  new and better working implementations for conversion functions, including better abstraction
  ----------------------------
  revision 1.3
  date: 2003/07/31 04:57:37;  author: shatty;  state: Exp;  lines: +6 -2
  added iconv_close to free resources and made a new input_buffer_t typedef to ease switching iconv implementations
  ----------------------------
  revision 1.2
  date: 2003/07/31 00:04:53;  author: shatty;  state: Exp;  lines: +43 -4
  written to use iconv.h
  ----------------------------
  revision 1.1
  date: 2003/07/26 21:28:02;  author: shatty;  state: Exp;
  utf8 conversions file with stub implementations of convert_to_utf8 and convert_from_utf8


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:28:29 +00:00
shatty 9f0ebaadc9 MOVED:
---------------------------------------------------------------------------
  RCS file: /cvsroot/open-beos/current/src/kits/support/CharacterSetRoster.cpp,v
  Working file: CharacterSetRoster.cpp
  head: 1.3
  branch:
  locks: strict
  access list:
  symbolic names:
  keyword substitution: kv
  total revisions: 3;     selected revisions: 3
  description:
  ----------------------------
  revision 1.3
  date: 2003/08/13 10:12:46;  author: shatty;  state: Exp;  lines: +9 -0
  error protection for Get functions
  ----------------------------
  revision 1.2
  date: 2003/07/27 22:06:27;  author: shatty;  state: Exp;  lines: +4 -0
  added checking again MIME name
  ----------------------------
  revision 1.1
  date: 2003/07/26 21:26:36;  author: shatty;  state: Exp;
  add character set support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:23:33 +00:00
shatty 99ff9094c7 MOVED:
---------------------------------------------------------------------------
  RCS file: /cvsroot/open-beos/current/src/kits/support/CharacterSet.cpp,v
  Working file: CharacterSet.cpp
  head: 1.3
  branch:
  locks: strict
  access list:
  symbolic names:
  keyword substitution: kv
  total revisions: 3;     selected revisions: 3
  description:
  ----------------------------
  revision 1.3
  date: 2003/07/27 01:34:30;  author: shatty;  state: Exp;  lines: +11 -0
  added default constructor, which just happens to init to UTF-8.  do not count on this feature. :-)
  ----------------------------
  revision 1.2
  date: 2003/07/27 00:58:01;  author: shatty;  state: Exp;  lines: +4 -2
  added all the remaining R5 text encodings
  ----------------------------
  revision 1.1
  date: 2003/07/26 21:26:36;  author: shatty;  state: Exp;
  add character set support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:22:14 +00:00
shatty aa19d24552 MOVED:
---------------------------------------------------------------------------
  RCS file: /cvsroot/open-beos/current/src/kits/support/character_sets.cpp,v
  Working file: character_sets.cpp
  head: 1.4
  branch:
  locks: strict
  access list:
  symbolic names:
  keyword substitution: kv
  total revisions: 4;     selected revisions: 4
  description:
  ----------------------------
  revision 1.4
  date: 2003/08/13 05:38:07;  author: shatty;  state: Exp;  lines: +9 -0
  refine the error handling behavior.  note: we depart from the bebook specification for returning B_ERROR when no characters are converted.  we do this in exactly one situation: when there are no bytes in the input.  this behavior is the behavior given by the R5 libs themselves.  not having this behavior caused an error in our stylededit as well.  stylededit has been fixed to not exercise this functionality.  also added in the two most popular chinese encodings for my own evil purposes.  GB18030 support is required to legally sell an operating system in mainland china as well.  GB18030 support encompasses GBK and GB2312, additionally.
  ----------------------------
  revision 1.3
  date: 2003/07/31 04:56:56;  author: shatty;  state: Exp;  lines: +4 -6
  fixed the 14th encoding, which is not FIXED japanese but rather JIS0208, yay!
  ----------------------------
  revision 1.2
  date: 2003/07/27 00:58:01;  author: shatty;  state: Exp;  lines: +105 -370
  added all the remaining R5 text encodings
  ----------------------------
  revision 1.1
  date: 2003/07/26 21:27:13;  author: shatty;  state: Exp;
  initialize global character set array


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:20:46 +00:00
shatty e01bf9460e MOVED:
-----------------------------------------------------------------------------
  RCS file: /cvsroot/open-beos/current/src/kits/support/character_sets.h,v
  Working file: character_sets.h
  head: 1.1
  branch:
  locks: strict
  access list:
  symbolic names:
  keyword substitution: kv
  total revisions: 1;	selected revisions: 1
  description:
  ----------------------------
  revision 1.1
  date: 2003/07/26 21:27:13;  author: shatty;  state: Exp;
  initialize global character set array


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 03:18:51 +00:00