comparison imgresample.c @ 396:fce0a2520551 libavcodec

removed useless header includes - use av memory functions
author glantau
date Sat, 18 May 2002 23:03:29 +0000
parents 1d2077091e88
children 868b9247dc24
comparison
equal deleted inserted replaced
395:80518daaab05 396:fce0a2520551
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */ 18 */
19 #include <stdlib.h> 19 #include "avcodec.h"
20 #include <stdio.h>
21 #include <string.h>
22 #include <math.h>
23 #include "dsputil.h" 20 #include "dsputil.h"
24 #include "avcodec.h"
25 21
26 #ifdef USE_FASTMEMCPY 22 #ifdef USE_FASTMEMCPY
27 #include "fastmemcpy.h" 23 #include "fastmemcpy.h"
28 #endif 24 #endif
29 25
452 build_filter(&s->h_filters[0][0], (float)owidth / (float)iwidth); 448 build_filter(&s->h_filters[0][0], (float)owidth / (float)iwidth);
453 build_filter(&s->v_filters[0][0], (float)oheight / (float)iheight); 449 build_filter(&s->v_filters[0][0], (float)oheight / (float)iheight);
454 450
455 return s; 451 return s;
456 fail: 452 fail:
457 free(s); 453 av_free(s);
458 return NULL; 454 return NULL;
459 } 455 }
460 456
461 void img_resample(ImgReSampleContext *s, 457 void img_resample(ImgReSampleContext *s,
462 AVPicture *output, AVPicture *input) 458 AVPicture *output, AVPicture *input)
472 } 468 }
473 } 469 }
474 470
475 void img_resample_close(ImgReSampleContext *s) 471 void img_resample_close(ImgReSampleContext *s)
476 { 472 {
477 free(s->line_buf); 473 av_free(s->line_buf);
478 free(s); 474 av_free(s);
479 } 475 }
480 476
481 #ifdef TEST 477 #ifdef TEST
482 478
483 void *av_mallocz(int size) 479 void *av_mallocz(int size)