file-format

Tips on how to parse custom file format

跟風遠走 提交于 2019-12-05 04:53:22
问题 Sorry about the vague title, but I really don't know how to describe this problem concisely. I've created a (more or less) simple domain-specific language that I will to use to specify what validation rules to apply to different entities (generally forms submitted from a web page). I've included a sample at the bottom of this post of what the language looks like. My problem is that I have no idea how to begin parsing this language into a form I can use (I will be using Python to do the

What is the iDOT chunk

拟墨画扇 提交于 2019-12-05 04:39:42
Looking at a screenshot I took on a MacBook Pro with Retina display and running OS X 10.11, I found that it contained these chunks: IHDR, iCCP, pHYs, iTXt, iDOT, IDAT…, IEND All of these are part of the 2003 spec , except for iDOT which is a small (28 bytes) chunk. According to the chunk naming conventions , the fact that its second letter is capital should indicate that it's a chunk with a public specification. I couldn't find its specification anywhere yet though. It's not listed in the Register of public PNG chunks and keywords, Version 1.4.6 either, although that appears to be the latest

Parsing jpeg file, SOS marker

让人想犯罪 __ 提交于 2019-12-05 04:32:56
I'm having problem with parsing jpeg file. When I hit SOS (start of scan) marker, there are few bytes which meaning I don't understand. In picture bellow, after SOS marker, there are 2 bytes for header length (Ls part on the picture). But what the rest of data on picture mean (for example Ns, Cs1 etc....), and where the pure data starts? Cs1 is a components selection index, This refers back to the SOF section (where horizontal and vertical sampling factors are specified) Td1 is the DC table selector for the current component (Cs1) Ta1 is the AC table selector for the current component (Cs1) Ss

What are the binary storage formats for sqflt8, sqlmoney and other native SQL data types?

こ雲淡風輕ζ 提交于 2019-12-05 03:46:39
According to the documentation, native (binary) data can be imported or exported with bcp formatted in the native SQL Server data formats. Examples of these are SQLFLT8, SQLFLT4, SQLMONEY or SQLNUMERIC. Does anyone know either what the data formats for the various types are, or where documentation specifying these formats might be found. For example, is a SQLFLT8 stored as an IEEE double precision number or in some other format? Edit: From the answers by kevchadders and Andrew I had a little epiphany did a little bit of googling for #define and typedef to see if I could find C header files

Is It Possible To Include DWG Trueview In The Android SDK As A Tool To Open And View a DWG File?

无人久伴 提交于 2019-12-04 21:28:16
We are developing an application which is able to open and modify a DWG file without converting it to other formats (e.g. PDF, JPG). In this application we need to allow the user to open and view DWG files. Can someone please help us with this? Or suggest some other ways by which we can open and view DWG files without converting it to any other image file format ? We are developing an application...to open and modify a DWG file What in particular do you need help with? You're going to be writing an entire application devoted to opening a specific format of a vector drawing file -- this is no

PDF File header sequence: Why '25 e2 e3 cf d3' bits stream used in many document?

蹲街弑〆低调 提交于 2019-12-04 19:51:20
I know that inform to a reader whether the pdf contains binary or not. But why "25 e2 e3 cf d3" not random binary? Because so many document has that. Is it Just because, so many use same pdf library ? Refs: PDF format. function of %-started sequence comp.text.pdf>pdf format Looking through the PDFs I have here it looks like a number of PDF processors use these very letters "%âãÏÓ", among them Adobe products. Not all of those processors use the same basic PDF library, so the use of the same letters cannot be explained by something like that. Most likely it is due to the fact that Adobe software

Parsing JPEG SOS Marker

不打扰是莪最后的温柔 提交于 2019-12-04 17:55:06
问题 There is a question with the same title but unfortunatly it doesn't help me. I am trying to parse the data of a SOS marker. All documentations I can find say that after the marker ( 0xFFDA ) a two byte number follows which defines how long this segment is -- for example here -- as with most variable size markers. But I seem not to understand it correctly in this case. It works for every other marker type. I checked multiple files but just can't get this right. Is this number not defining how

Is there a standard file format for exporting issues from an issue tracker?

自作多情 提交于 2019-12-04 17:48:34
问题 Background: I've written a backup tool for the Mercurial/Git hoster Bitbucket, which asks for a username, gets a list of the user's repositories via the Bitbucket API, and clones each of them to the local machine. Each Bitbucket repository has an issue tracker, and now I've got a new feature request: backup the issues as well. I can actually get the issues in JSON format from the Bitbucket API. Here is an example: https://api.bitbucket.org/1.0/repositories/christianspecht/bitbucket-backup

3D File Formats for Games

∥☆過路亽.° 提交于 2019-12-04 17:26:14
问题 I'm getting started with XNA and Blender and am trying to find good quality, up to date information on the various 3D file formats that are used in game development. Clearly many games are developed with multiple and custom 3D file formats, but I'm interested in choosing a good solution using a more commonly supported format. What are the most popular formats and what distinguishes them? NOTE Ideally, they should support animations, but I would also be interested in other formats that might