rm_parser* rm_parser_create(void* pError, rm_error_func_ptr fpError) { return rm_parser_create2(pError, fpError, HXNULL, rm_memory_default_malloc, rm_memory_default_free); }
/* Read the first few bytes of the file */ lBytesRead = (INT32) DWLfread((void*) ucBuf, 1, RM2YUV_INITIAL_READ_SIZE, fpIn); if (lBytesRead != RM2YUV_INITIAL_READ_SIZE) { ERROR_PRINT(("Could not read %d bytes at the beginning of %s\n",)); goto cleanup; } /* Seek back to the beginning */ DWLfseek(fpIn, 0, DWL_SEEK_SET); /* Create the parser struct */ pParser = rm_parser_create2(HXNULL, rm2yuv_error, HXNULL, rm_memory_malloc, rm_memory_free); if (!pParser) { goto cleanup; } /* Set the file into the parser */ retVal = rm_parser_init_io(pParser, (void *)fpIn, (rm_read_func_ptr)rm_io_read, (rm_seek_func_ptr)rm_io_seek); if (retVal != HXR_OK) { goto cleanup;