Lines Matching refs:newImageBuffer
266 unsigned char * newImageBuffer = NULL;
279 newImageBuffer = (unsigned char*)malloc(frame_size);
281 n_items = fread(newImageBuffer, frame_size, 1, fp);
284 y_src = newImageBuffer;
285 v_src = newImageBuffer + surface_image.width * surface_image.height;
286 u_src = newImageBuffer + surface_image.width * surface_image.height * 5 / 4;
344 if (newImageBuffer){
345 free(newImageBuffer);
346 newImageBuffer = NULL;
368 unsigned char * newImageBuffer = NULL;
384 newImageBuffer = (unsigned char*)malloc(y_size * 3 / 2);
387 y_dst = newImageBuffer;
388 v_dst = newImageBuffer + y_size;
389 u_dst = newImageBuffer + y_size + u_size;
443 n_items = fwrite(newImageBuffer, y_size * 3 / 2, 1, fp);
451 if (newImageBuffer){
452 free(newImageBuffer);
453 newImageBuffer = NULL;