[vlc-devel] Coder/decoder module implementation
F. P.
no-reply at videolan.org
Sat Aug 11 13:06:42 CEST 2007
Thanks Alex,
So what should I do if I want to copy each raw picture pixel into a
block (without image compression) and copy back each pixel from the raw
block to an image ?
Thanks,
pflooo
Alex Vazquez a écrit :
> 2007/8/10, F.P. :
>> Hi !
>> I try to write a wavelet based coder/decoder. First I
>> tried to make a simple coder/decoder that simply copy
>> the image to a block and then copy the block back to a
>> image.
>>
>> I wrote the attached code, the coder seems to work but
>> the decoder still blocks. Help would be much
>> appreciated !
>>
>> Thanks,
>> pflooo
>>
>>
> I am no expert but I think you have to distinguish beetwen block and
> picture, you can't copy the picture just doing:
>
> vout_CopyPicture( p_dec, p_pic, p_block->p_buffer );
>
> That should give a BIG FAT WARNING BTW and all you'll get will be a seg
> fault, since you are copying a uint8_t * (instead a picture_t *) into a
> picture_t *.
> First, you need to decode the block with a "real" decoder to get a picture.
>
>
> Regards,
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> vlc-devel mailing list
> vlc-devel at videolan.org
> http://mailman.videolan.org/listinfo/vlc-devel
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list