Displaying a PPM image

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Displaying a PPM image

ortega
Hi,

I am trying to display an image using a file with only RGB values; essentially, a PPM image file without the header.
I use the following image lena_sharp16_blend256x256.ppm and remove its headers to obtain lena_sharp16_blend256x256.raw.
The gst pipeline I use to display the raw image is
   gst-launch filesrc location=lena_sharp16_blend256x256.raw blocksize=196608 ! video/x-raw-rgb, width=256, height=256, framerate=1/1, depth=24 ! imagefreeze ! ximagesink
However, I end up with this result .

What am I missing in my pipeline?

Thanks,

--ortega
Reply | Threaded
Open this post in threaded view
|

Re: Displaying a PPM image

ortega
I solved it by using the following pipeline

gst-launch-0.10 filesrc location=lena_sharp16_blend256x256.raw blocksize=196609 ! video/x-raw-rgb, width=256, height=256, framerate=1/1, bpp=24, depth=24, endianness=4321, red_mask=16711680, green_mask=65280, blue_mask=255 ! ffmpegcolorspace ! imagefreeze ! ximagesink

Thanks,

--ortega