On 04/11/2013 05:40 AM, Nicolas BERTRAND wrote:
> Le 27/03/2013 18:16, Justin Ruggles a écrit :
>>> >+                outrow[j]     = (uint8_t) (r & 255);
>>> >+                outrow[j + 1] = (uint8_t) (r >> 8);
>>> >+                outrow[j + 2] = (uint8_t) (g & 255);
>>> >+                outrow[j + 3] = (uint8_t) (g >> 8);
>>> >+                outrow[j + 4] = (uint8_t) (b & 255);
>>> >+                outrow[j + 5] = (uint8_t) (b >> 8);
>> libavutil has shortcuts for that
>> see libavutil/intreadwrite.h
>>
> I didn't see an equiv in libavutil/intreadwrite.h AV_WL16 ( dont do the
> & 255). I tested but not the same ouput

Well, I don't know why it isn't working... maybe your rgb values need to
be unsigned? Don't worry about it though.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to