Silvain Beriault wrote:
> 
Please dont top-post.

Please trim sigs when replying.

> One thing I have always struggled with is how to set the JPEG quality 
> factor (1..100) with libavcodec?

Please dont hijack threads: this is actually unrelated to the original 
topic, which was about *DE*coding. Please repost as a new thread.

> 
> There is no such field in the giant AVCodecContext structure. Is it 
> qmin/qmax? what is the relation between qmin/qmax and JPEG quality factor?
> 
> Thanks,
> Silvain
> 
> Keean Schupke wrote:
>> Hi,
>>
>> Thanks, I eventually found a usable example, then I found the codec
>> does not support all the JPEG types I need, so I am using libjpeg to
>> decode the jpegs into an RGB buffer, then swscale to convert to
>> YUV420P, for the next bit.
>>
>> Cheers,
>> Keean.
>>
>> 2008/6/30 Michel Bardiaux <[EMAIL PROTECTED]>:
>>   
>>> Keean Schupke wrote:
>>>     
>>>> Hi,
>>>>
>>>> Can anyone show me an example of how to use libavcodec to decode a
>>>> JPEG image from a memory buffer?
>>>>
>>>>       
>>> Simply call avcodec_decode_video, using an AVCodecContext for the MJPEG
>>> codec.
>>>
>>> Greetings,
>>> --
>>> Michel Bardiaux
>>> http://www.mediaxim.com/

[unnecessary sigs trimmed]

-- 
Michel Bardiaux
http://www.mediaxim.com/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to