Some readability fixes for mux library
Add a #define for UNDEFINED_CHUNK_SIZE and remove a misleading comment. Change-Id: I5c56a12f1245e647f913c35c6a34d2e5d658415e
This commit is contained in:
parent
d8a47e66f7
commit
7c4c177c39
@ -99,7 +99,7 @@ typedef struct {
|
||||
const char* chunkName;
|
||||
uint32_t chunkTag;
|
||||
TAG_ID chunkId;
|
||||
uint32_t chunkSize; // Negative value denotes that size is NOT fixed.
|
||||
uint32_t chunkSize;
|
||||
} ChunkInfo;
|
||||
|
||||
const ChunkInfo kChunks[LIST_ID + 1];
|
||||
|
@ -17,19 +17,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define UNDEFINED_CHUNK_SIZE (-1)
|
||||
|
||||
const ChunkInfo kChunks[] = {
|
||||
{"vp8x", mktag('V', 'P', '8', 'X'), VP8X_ID, VP8X_CHUNK_SIZE},
|
||||
{"iccp", mktag('I', 'C', 'C', 'P'), ICCP_ID, -1},
|
||||
{"iccp", mktag('I', 'C', 'C', 'P'), ICCP_ID, UNDEFINED_CHUNK_SIZE},
|
||||
{"loop", mktag('L', 'O', 'O', 'P'), LOOP_ID, LOOP_CHUNK_SIZE},
|
||||
{"frame", mktag('F', 'R', 'M', ' '), FRAME_ID, FRAME_CHUNK_SIZE},
|
||||
{"tile", mktag('T', 'I', 'L', 'E'), TILE_ID, TILE_CHUNK_SIZE},
|
||||
{"alpha", mktag('A', 'L', 'P', 'H'), ALPHA_ID, -1},
|
||||
{"image", mktag('V', 'P', '8', ' '), IMAGE_ID, -1},
|
||||
{"meta", mktag('M', 'E', 'T', 'A'), META_ID, -1},
|
||||
{"unknown", mktag('U', 'N', 'K', 'N'), UNKNOWN_ID, -1},
|
||||
{"alpha", mktag('A', 'L', 'P', 'H'), ALPHA_ID, UNDEFINED_CHUNK_SIZE},
|
||||
{"image", mktag('V', 'P', '8', ' '), IMAGE_ID, UNDEFINED_CHUNK_SIZE},
|
||||
{"meta", mktag('M', 'E', 'T', 'A'), META_ID, UNDEFINED_CHUNK_SIZE},
|
||||
{"unknown", mktag('U', 'N', 'K', 'N'), UNKNOWN_ID, UNDEFINED_CHUNK_SIZE},
|
||||
|
||||
{NULL, NIL_TAG, NIL_ID, -1},
|
||||
{"list", mktag('L', 'I', 'S', 'T'), LIST_ID, -1}
|
||||
{NULL, NIL_TAG, NIL_ID, UNDEFINED_CHUNK_SIZE},
|
||||
{"list", mktag('L', 'I', 'S', 'T'), LIST_ID, UNDEFINED_CHUNK_SIZE}
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user