Merge "copybit: Do not do in-place conversion for YV12" into ics
This commit is contained in:
		
				
					committed by
					
						 QuIC Gerrit Code Review
						QuIC Gerrit Code Review
					
				
			
			
				
	
			
			
			
					commit
					8e61389886
				
			| @@ -387,9 +387,8 @@ static int stretch_copybit( | ||||
|  | ||||
|         if(src->format ==  HAL_PIXEL_FORMAT_YV12) { | ||||
|             if(0 == convertYV12toYCrCb420SP(src)){ | ||||
|                 //if inplace conversion,just convert and return | ||||
|                 if(src->base == dst->base) | ||||
|                     return status; | ||||
|                 (const_cast<copybit_image_t *>(src))->format = | ||||
|                         HAL_PIXEL_FORMAT_YCrCb_420_SP; | ||||
|             } | ||||
|             else{ | ||||
|                 LOGE("Error copybit conversion from yv12 failed"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user