comparison libmpcodecs/vf_scale.c @ 34229:07cba774abf9

Prefer converting GBR24P to other 8 bit per component RGB formats. Compared to converting to Y444 this should be faster and lossless. Based on patch by Hans-Kristian Arntzen [maister archlinux us]
author reimar
date Mon, 07 Nov 2011 18:49:10 +0000
parents 4b5f57ccfff1
children 8a96cf601e57
comparison
equal deleted inserted replaced
34228:6a646612a081 34229:07cba774abf9
133 {IMGFMT_YUY2, IMGFMT_422P}, 133 {IMGFMT_YUY2, IMGFMT_422P},
134 {IMGFMT_UYVY, IMGFMT_YUY2}, 134 {IMGFMT_UYVY, IMGFMT_YUY2},
135 {IMGFMT_UYVY, IMGFMT_422P}, 135 {IMGFMT_UYVY, IMGFMT_422P},
136 {IMGFMT_422P, IMGFMT_YUY2}, 136 {IMGFMT_422P, IMGFMT_YUY2},
137 {IMGFMT_422P, IMGFMT_UYVY}, 137 {IMGFMT_422P, IMGFMT_UYVY},
138 {IMGFMT_GBR24P, IMGFMT_BGR24},
139 {IMGFMT_GBR24P, IMGFMT_RGB24},
140 {IMGFMT_GBR24P, IMGFMT_BGR32},
141 {IMGFMT_GBR24P, IMGFMT_RGB32},
138 {0, 0} 142 {0, 0}
139 }; 143 };
140 144
141 static unsigned int find_best_out(vf_instance_t *vf, int in_format){ 145 static unsigned int find_best_out(vf_instance_t *vf, int in_format){
142 unsigned int best=0; 146 unsigned int best=0;