OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com> | 2 * Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com> |
3 * | 3 * |
4 * Blackfin software video scaler operations | 4 * Blackfin software video scaler operations |
5 * | 5 * |
6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
7 * | 7 * |
8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include <stdlib.h> | 24 #include <stdlib.h> |
25 #include <string.h> | 25 #include <string.h> |
26 #include <inttypes.h> | 26 #include <inttypes.h> |
27 #include <assert.h> | 27 #include <assert.h> |
28 #include "config.h" | 28 #include "config.h" |
29 #include <unistd.h> | 29 #include <unistd.h> |
30 #include "libswscale/rgb2rgb.h" | 30 #include "libswscale/rgb2rgb.h" |
31 #include "libswscale/swscale.h" | 31 #include "libswscale/swscale.h" |
32 #include "libswscale/swscale_internal.h" | 32 #include "libswscale/swscale_internal.h" |
33 | 33 |
34 #ifdef __FDPIC__ | 34 #if defined (__FDPIC__) && CONFIG_SRAM |
35 #define L1CODE __attribute__ ((l1_text)) | 35 #define L1CODE __attribute__ ((l1_text)) |
36 #else | 36 #else |
37 #define L1CODE | 37 #define L1CODE |
38 #endif | 38 #endif |
39 | 39 |
40 int ff_bfin_uyvytoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t
*vdst, | 40 int ff_bfin_uyvytoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t
*vdst, |
41 long width, long height, | 41 long width, long height, |
42 long lumStride, long chromStride, long srcStride) L1CODE; | 42 long lumStride, long chromStride, long srcStride) L1CODE; |
43 | 43 |
44 int ff_bfin_yuyvtoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t
*vdst, | 44 int ff_bfin_yuyvtoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t
*vdst, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 if (c->srcFormat == PIX_FMT_UYVY422) { | 84 if (c->srcFormat == PIX_FMT_UYVY422) { |
85 av_log (NULL, AV_LOG_VERBOSE, "selecting Blackfin optimized uyvy
toyv12_unscaled\n"); | 85 av_log (NULL, AV_LOG_VERBOSE, "selecting Blackfin optimized uyvy
toyv12_unscaled\n"); |
86 c->swScale = uyvytoyv12_unscaled; | 86 c->swScale = uyvytoyv12_unscaled; |
87 } | 87 } |
88 if (c->dstFormat == PIX_FMT_YUV420P) | 88 if (c->dstFormat == PIX_FMT_YUV420P) |
89 if (c->srcFormat == PIX_FMT_YUYV422) { | 89 if (c->srcFormat == PIX_FMT_YUYV422) { |
90 av_log (NULL, AV_LOG_VERBOSE, "selecting Blackfin optimized yuyv
toyv12_unscaled\n"); | 90 av_log (NULL, AV_LOG_VERBOSE, "selecting Blackfin optimized yuyv
toyv12_unscaled\n"); |
91 c->swScale = yuyvtoyv12_unscaled; | 91 c->swScale = yuyvtoyv12_unscaled; |
92 } | 92 } |
93 } | 93 } |
OLD | NEW |