stream_encoder.c (213700) | stream_encoder.c (223935) |
---|---|
1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file stream_encoder.c 4/// \brief Encodes .xz Streams 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 266 unchanged lines hidden (view full) --- 275 next->coder = lzma_alloc(sizeof(lzma_coder), allocator); 276 if (next->coder == NULL) 277 return LZMA_MEM_ERROR; 278 279 next->code = &stream_encode; 280 next->end = &stream_encoder_end; 281 next->update = &stream_encoder_update; 282 | 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file stream_encoder.c 4/// \brief Encodes .xz Streams 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 266 unchanged lines hidden (view full) --- 275 next->coder = lzma_alloc(sizeof(lzma_coder), allocator); 276 if (next->coder == NULL) 277 return LZMA_MEM_ERROR; 278 279 next->code = &stream_encode; 280 next->end = &stream_encoder_end; 281 next->update = &stream_encoder_update; 282 |
283 next->coder->filters[0].id = LZMA_VLI_UNKNOWN; |
|
283 next->coder->block_encoder = LZMA_NEXT_CODER_INIT; 284 next->coder->index_encoder = LZMA_NEXT_CODER_INIT; 285 next->coder->index = NULL; 286 } 287 288 // Basic initializations 289 next->coder->sequence = SEQ_STREAM_HEADER; 290 next->coder->block_options.version = 0; 291 next->coder->block_options.check = check; | 284 next->coder->block_encoder = LZMA_NEXT_CODER_INIT; 285 next->coder->index_encoder = LZMA_NEXT_CODER_INIT; 286 next->coder->index = NULL; 287 } 288 289 // Basic initializations 290 next->coder->sequence = SEQ_STREAM_HEADER; 291 next->coder->block_options.version = 0; 292 next->coder->block_options.check = check; |
292 next->coder->filters[0].id = LZMA_VLI_UNKNOWN; | |
293 294 // Initialize the Index 295 lzma_index_end(next->coder->index, allocator); 296 next->coder->index = lzma_index_init(allocator); 297 if (next->coder->index == NULL) 298 return LZMA_MEM_ERROR; 299 300 // Encode the Stream Header --- 31 unchanged lines hidden --- | 293 294 // Initialize the Index 295 lzma_index_end(next->coder->index, allocator); 296 next->coder->index = lzma_index_init(allocator); 297 if (next->coder->index == NULL) 298 return LZMA_MEM_ERROR; 299 300 // Encode the Stream Header --- 31 unchanged lines hidden --- |