[FFmpeg-cvslog] r22036 - trunk/libavcodec/rectangle.h
Måns Rullgård
mans
Wed Feb 24 22:16:22 CET 2010
michael <subversion at mplayerhq.hu> writes:
> Author: michael
> Date: Wed Feb 24 21:37:58 2010
> New Revision: 22036
>
> Log:
> Extend fill_rectangle() support for 16bit
>
> Modified:
> trunk/libavcodec/rectangle.h
>
static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){
uint8_t *p= (uint8_t*)vp;
assert(size==1 || size==4);
assert(w<=4);
> @@ -58,7 +58,7 @@ static av_always_inline void fill_rectan
> *(uint16_t*)(p + 2*stride)= v;
> *(uint16_t*)(p + 3*stride)= v;
> }else if(w==4){
> - const uint32_t v= size==4 ? val : val*0x01010101;
> + const uint32_t v= size==4 ? val : size==2 ? val*0x00010001 : val*0x01010101;
Please fix the assert and doxy.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-cvslog
mailing list