stdin rasterdata

Michael Sweet msweet at apple.com
Fri Nov 13 08:21:14 PST 2009


Aside from you copying the data from stdin to a file and then opening  
that file to read the raster data, no.

On Nov 12, 2009, at 10:43 PM, Ganesh wrote:

> Hi,
>
> I want to verify the rasterdata which comes in to my filter.
> Is there any way to see the rasterdata in my filter ?
> (apartfrom cupsfilter command).
>
> Regards
> Ganesh
>
>
>
>> If you are using both fgetc and cupsRasterReadHeader2/Pixels, that is
>> the problem. You can only read the data once from stdin...
>>
>> On Nov 12, 2009, at 8:36 PM, Ganesh wrote:
>>
>>> HI,
>>>
>>> I am using normal file copy (fgetc and fputc logic).
>>> If I open that file in the RasterViewer . It shows the error like
>>> CupsRasterOpen( ) failed . And If I open the file in the vim. I
>>> could not see the '3SaR' File header. What I am doing wrong ?
>>>
>>> Regards
>>> Ganesh
>>>
>>>
>>>> On Nov 12, 2009, at 4:14 AM, Ganesh wrote:
>>>>> Hi,
>>>>>
>>>>> If I Print the 'stdin' content to a external file in my filter.  
>>>>> The
>>>>> file content is not exactly same as the raster format. I have used
>>>>> cupsRasterReadHeader2() and cupsRasterReadPixels( ) APIs. Where  
>>>>> I am
>>>>> doing wrong ? Is there any way to see the rasterdata in my filter.
>>>>
>>>>
>>>> How are you copying the content to the file?
>>>>
>>>> What differences are you seeing?
>>>>
>>>> ___________________________________________________
>>>> Michael Sweet, Senior Printing System Engineer
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> cups-ddk mailing list
>>> cups-ddk at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups-ddk
>>
>> ___________________________________________________
>> Michael Sweet, Senior Printing System Engineer
>>
>>
>>
>
> _______________________________________________
> cups-ddk mailing list
> cups-ddk at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-ddk

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list