Home
last modified time | relevance | path

Searched refs:src_size (Results 1 – 25 of 61) sorted by relevance

123

/third_party/ffmpeg/libswscale/
Drgb2rgb.h32 extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size);
33 extern void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size);
34 extern void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, int src_size);
35 extern void (*rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
36 extern void (*rgb32to16)(const uint8_t *src, uint8_t *dst, int src_size);
37 extern void (*rgb32to15)(const uint8_t *src, uint8_t *dst, int src_size);
38 extern void (*rgb15to16)(const uint8_t *src, uint8_t *dst, int src_size);
39 extern void (*rgb15tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
40 extern void (*rgb15to32)(const uint8_t *src, uint8_t *dst, int src_size);
41 extern void (*rgb16to15)(const uint8_t *src, uint8_t *dst, int src_size);
[all …]
Drgb2rgb.c35 void (*rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
36 void (*rgb32tobgr16)(const uint8_t *src, uint8_t *dst, int src_size);
37 void (*rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size);
38 void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size);
39 void (*rgb24tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
40 void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size);
41 void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, int src_size);
42 void (*rgb16tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
43 void (*rgb15tobgr24)(const uint8_t *src, uint8_t *dst, int src_size);
45 void (*rgb32to16)(const uint8_t *src, uint8_t *dst, int src_size);
[all …]
Drgb2rgb_template.c32 int src_size) in rgb24tobgr32_c() argument
36 const uint8_t *end = s + src_size; in rgb24tobgr32_c()
56 int src_size) in rgb32tobgr24_c() argument
60 const uint8_t *end = s + src_size; in rgb32tobgr24_c()
85 static inline void rgb15to16_c(const uint8_t *src, uint8_t *dst, int src_size) in rgb15to16_c() argument
89 register const uint8_t *end = s + src_size; in rgb15to16_c()
104 static inline void rgb16to15_c(const uint8_t *src, uint8_t *dst, int src_size) in rgb16to15_c() argument
108 register const uint8_t *end = s + src_size; in rgb16to15_c()
123 static inline void rgb32to16_c(const uint8_t *src, uint8_t *dst, int src_size) in rgb32to16_c() argument
127 const uint8_t *end = s + src_size; in rgb32to16_c()
[all …]
/third_party/lz4/examples/
Dcompress_functions.c115 const size_t src_size, in bench() argument
132 rv = LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
139 LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
145 rv = LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
152 LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
158 rv = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
165 LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
191 rv = LZ4_decompress_safe(src, dst, comp_size, src_size); in bench()
194 if (memcmp(known_good_dst, dst, src_size) != 0) in bench()
198 LZ4_decompress_safe(src, dst, comp_size, src_size); in bench()
[all …]
Dsimple_buffer.c43 const int src_size = (int)(strlen(src) + 1); in main() local
45 const int max_dst_size = LZ4_compressBound(src_size); in main()
53 …const int compressed_data_size = LZ4_compress_default(src, compressed_data, src_size, max_dst_size… in main()
59 (float) compressed_data_size/src_size); in main()
76 char* const regen_buffer = (char*)malloc(src_size); in main()
82 …mpressed_size = LZ4_decompress_safe(compressed_data, regen_buffer, compressed_data_size, src_size); in main()
90 if (decompressed_size != src_size) in main()
95 if (memcmp(src, regen_buffer, src_size) != 0) in main()
/third_party/ffmpeg/libswscale/x86/
Drgb2rgb.c119 void ff_shuffle_bytes_2103_mmxext(const uint8_t *src, uint8_t *dst, int src_size);
120 void ff_shuffle_bytes_2103_ssse3(const uint8_t *src, uint8_t *dst, int src_size);
121 void ff_shuffle_bytes_0321_ssse3(const uint8_t *src, uint8_t *dst, int src_size);
122 void ff_shuffle_bytes_1230_ssse3(const uint8_t *src, uint8_t *dst, int src_size);
123 void ff_shuffle_bytes_3012_ssse3(const uint8_t *src, uint8_t *dst, int src_size);
124 void ff_shuffle_bytes_3210_ssse3(const uint8_t *src, uint8_t *dst, int src_size);
127 void ff_shuffle_bytes_2103_avx2(const uint8_t *src, uint8_t *dst, int src_size);
128 void ff_shuffle_bytes_0321_avx2(const uint8_t *src, uint8_t *dst, int src_size);
129 void ff_shuffle_bytes_1230_avx2(const uint8_t *src, uint8_t *dst, int src_size);
130 void ff_shuffle_bytes_3012_avx2(const uint8_t *src, uint8_t *dst, int src_size);
[all …]
Drgb2rgb_template.c48 static inline void RENAME(rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size) in RENAME()
54 end = s + src_size; in RENAME()
126 static inline void RENAME(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size) in RENAME()
132 end = s + src_size; in RENAME()
169 static inline void RENAME(rgb15to16)(const uint8_t *src, uint8_t *dst, int src_size) in RENAME()
175 end = s + src_size; in RENAME()
212 static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, int src_size) in RENAME()
218 end = s + src_size; in RENAME()
260 static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, int src_size) in RENAME()
266 end = s + src_size; in RENAME()
[all …]
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
Dcompression.c252 size_t src_size, in SPDYF_zlib_deflate() argument
268 if(src_size > SPDYF_ZLIB_CHUNK) in SPDYF_zlib_deflate()
271 src_size -= SPDYF_ZLIB_CHUNK; in SPDYF_zlib_deflate()
279 strm->avail_in = src_size; in SPDYF_zlib_deflate()
352 size_t src_size, in SPDYF_zlib_inflate() argument
366 if(src_size > SPDYF_ZLIB_CHUNK) in SPDYF_zlib_inflate()
369 src_size -= SPDYF_ZLIB_CHUNK; in SPDYF_zlib_inflate()
373 strm->avail_in = src_size; in SPDYF_zlib_inflate()
374 src_size = 0; in SPDYF_zlib_inflate()
Dcompression.h71 size_t src_size,
113 size_t src_size,
/third_party/ffmpeg/libavcodec/
Ddca.c49 int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, in avpriv_dca_convert_bitstream() argument
56 if ((unsigned) src_size > (unsigned) max_size) in avpriv_dca_convert_bitstream()
57 src_size = max_size; in avpriv_dca_convert_bitstream()
63 memcpy(dst, src, src_size); in avpriv_dca_convert_bitstream()
64 return src_size; in avpriv_dca_convert_bitstream()
66 for (i = 0; i < (src_size + 1) >> 1; i++) { in avpriv_dca_convert_bitstream()
71 return src_size; in avpriv_dca_convert_bitstream()
75 for (i = 0; i < (src_size + 1) >> 1; i++, src += 2) { in avpriv_dca_convert_bitstream()
Ddxtory.c93 const uint8_t *src, int src_size, in dxtory_decode_v1_rgb() argument
100 if (src_size < get_raw_size(id, avctx->width, avctx->height)) { in dxtory_decode_v1_rgb()
124 const uint8_t *src, int src_size, in dxtory_decode_v1_410() argument
133 if (src_size < get_raw_size(AV_PIX_FMT_YUV410P, avctx->width, avctx->height)) { in dxtory_decode_v1_410()
219 const uint8_t *src, int src_size, in dxtory_decode_v1_420() argument
228 if (src_size < get_raw_size(AV_PIX_FMT_YUV420P, avctx->width, avctx->height)) { in dxtory_decode_v1_420()
291 const uint8_t *src, int src_size, in dxtory_decode_v1_444() argument
298 if (src_size < get_raw_size(AV_PIX_FMT_YUV444P, avctx->width, avctx->height)) { in dxtory_decode_v1_444()
350 const uint8_t *src, int src_size, in check_slice_size() argument
355 if (slice_size > src_size - off) { in check_slice_size()
[all …]
Dcpia.c59 int src_size; in cpia_decode_frame() local
93 src_size = avpkt->size - FRAME_HEADER_SIZE; in cpia_decode_frame()
110 i++, src += linelength, src_size -= linelength in cpia_decode_frame()
115 src_size -= 2; in cpia_decode_frame()
117 if (src_size < linelength) { in cpia_decode_frame()
Ddsicinvideo.c94 static int cin_decode_huffman(const unsigned char *src, int src_size, in cin_decode_huffman() argument
101 const unsigned char *src_end = src + src_size; in cin_decode_huffman()
129 static int cin_decode_lzss(const unsigned char *src, int src_size, in cin_decode_lzss() argument
135 const unsigned char *src_end = src + src_size; in cin_decode_lzss()
167 static int cin_decode_rle(const unsigned char *src, int src_size, in cin_decode_rle() argument
172 const unsigned char *src_end = src + src_size; in cin_decode_rle()
Dg2meet.c206 static void jpg_unescape(const uint8_t *src, int src_size, in jpg_unescape() argument
209 const uint8_t *src_end = src + src_size; in jpg_unescape()
271 const uint8_t *src, int src_size, in jpg_decode_data() argument
284 src_size + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) in jpg_decode_data()
286 jpg_unescape(src, src_size, c->buf, &unesc_size); in jpg_decode_data()
865 const uint8_t *src, size_t src_size, in epic_jb_decode_tile() argument
873 if (!src_size) in epic_jb_decode_tile()
878 src_size--; in epic_jb_decode_tile()
881 if (extrabytes > 3 || src_size < extrabytes) { in epic_jb_decode_tile()
889 src_size--; in epic_jb_decode_tile()
[all …]
Dralf.c423 int src_size; in decode_frame() local
439 src_size = RALF_MAX_PKT_SIZE + avpkt->size; in decode_frame()
451 src_size = avpkt->size; in decode_frame()
460 if (src_size < 5) { in decode_frame()
466 if (src_size < table_bytes + 3) { in decode_frame()
485 bytes_left = src_size - table_bytes - 2; in decode_frame()
Dlagarith.c434 const uint8_t *src, int src_size) in lag_decode_arith_plane() argument
443 const uint8_t *src_end = src + src_size; in lag_decode_arith_plane()
449 if(src_size < 2) in lag_decode_arith_plane()
455 if(src_size < 5) in lag_decode_arith_plane()
462 if ((ret = init_get_bits8(&gb, src + offset, src_size - offset)) < 0) in lag_decode_arith_plane()
483 src_size --; in lag_decode_arith_plane()
494 if (src_size < width * height) in lag_decode_arith_plane()
/third_party/skia/third_party/externals/microhttpd/src/examples/
Dmhd2spdy_structures.c146 copy_buffer(const void *src, size_t src_size, void **dst, size_t *dst_size) in copy_buffer() argument
148 if(0 == src_size) in copy_buffer()
152 *dst = malloc(src_size); in copy_buffer()
154 *dst = realloc(*dst, src_size + *dst_size); in copy_buffer()
158 memcpy(*dst + *dst_size, src, src_size); in copy_buffer()
159 *dst_size += src_size; in copy_buffer()
/third_party/mesa3d/src/util/format/
Du_format_pack.py348 src_size = src_channel.size
353 if src_type == FLOAT and src_size == 16:
355 src_size = 32
359 …if src_type == UNSIGNED and src_norm and src_size == 8 and dst_channel.type == FLOAT and dst_chann…
361 …if src_type == FLOAT and src_size == 32 and dst_channel.type == UNSIGNED and dst_channel.norm and …
381 …tmp_native_type = intermediate_native_type(src_size + dst_channel.size, src_channel.sign and dst_c…
391 if src_size <= 23:
395 src_size = 32
399 src_size = 64
402 if src_size <= 23 or dst_channel.size <= 32:
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_register_coalesce.cpp195 int src_size = 0; in register_coalesce() local
216 src_size = alloc.sizes[inst->src[0].nr]; in register_coalesce()
217 assert(src_size <= MAX_VGRF_SIZE); in register_coalesce()
219 channels_remaining = src_size; in register_coalesce()
229 for (int i = 0; i < src_size; i++) { in register_coalesce()
256 for (int i = 0; i < src_size; i++) { in register_coalesce()
279 for (int i = 0; i < src_size; i++) { in register_coalesce()
321 for (int i = 0; i < src_size; i++) { in register_coalesce()
/third_party/ffmpeg/tests/checkasm/
Dllviddsp.c169 int src_size, stride; in check_add_gradient_pred() local
175 src_size = (stride + 32) * 2; /* dsp need previous line, and ignore the start of the line */ in check_add_gradient_pred()
176 src0 = av_mallocz(src_size); in check_add_gradient_pred()
177 src1 = av_mallocz(src_size); in check_add_gradient_pred()
179 init_buffer(src0, src1, uint8_t, src_size); in check_add_gradient_pred()
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/
Dproxy.c312 store_in_buffer(const void *src, size_t src_size, void **dst, size_t *dst_size) in store_in_buffer() argument
314 if(0 == src_size) in store_in_buffer()
318 *dst = malloc(src_size); in store_in_buffer()
320 *dst = realloc(*dst, src_size + *dst_size); in store_in_buffer()
324 memcpy(*dst + *dst_size, src, src_size); in store_in_buffer()
325 *dst_size += src_size; in store_in_buffer()
332 get_from_buffer(void **src, size_t *src_size, void *dst, size_t max_size) in get_from_buffer() argument
337 if(max_size >= *src_size) in get_from_buffer()
339 ret = *src_size; in get_from_buffer()
345 if(NULL == (newbody = malloc(*src_size - max_size))) in get_from_buffer()
[all …]
/third_party/mesa3d/src/util/
Dvl_vlc.h65 …truct vl_vlc_entry *dst, unsigned dst_size, const struct vl_vlc_compressed *src, unsigned src_size) in vl_vlc_init_table() argument
70 assert(src && src_size); in vl_vlc_init_table()
77 for(; src_size > 0; --src_size, ++src) { in vl_vlc_init_table()
/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c210 int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_… in av_resample() argument
221 dst_size= FFMIN(dst_size, (src_size-1-index) * (int64_t)c->src_incr / c->dst_incr); in av_resample()
239 val += src[FFABS(sample_index + i) % src_size] * filter[i]; in av_resample()
240 }else if(sample_index + c->filter_length > src_size){ in av_resample()
/third_party/node/deps/zlib/google/
Dzip_unittest.cc1324 const int64_t src_size = 5000; in TEST_F() local
1329 ASSERT_TRUE(f.SetLength(src_size)); in TEST_F()
1341 EXPECT_GT(dest_file_size, src_size + 100); in TEST_F()
1342 EXPECT_LT(dest_file_size, src_size + 300); in TEST_F()
1377 const int64_t src_size = 5'000'000'000; in TEST_F() local
1383 ASSERT_TRUE(f.SetLength(src_size)); in TEST_F()
1392 << (100 * progress.bytes / src_size) << "%"; in TEST_F()
1405 EXPECT_GT(dest_file_size, src_size + 100); in TEST_F()
1406 EXPECT_LT(dest_file_size, src_size + 300); in TEST_F()
1415 EXPECT_EQ(src_size, entry->original_size); in TEST_F()
[all …]
/third_party/node/deps/v8/third_party/zlib/google/
Dzip_unittest.cc1324 const int64_t src_size = 5000; in TEST_F() local
1329 ASSERT_TRUE(f.SetLength(src_size)); in TEST_F()
1341 EXPECT_GT(dest_file_size, src_size + 100); in TEST_F()
1342 EXPECT_LT(dest_file_size, src_size + 300); in TEST_F()
1377 const int64_t src_size = 5'000'000'000; in TEST_F() local
1383 ASSERT_TRUE(f.SetLength(src_size)); in TEST_F()
1392 << (100 * progress.bytes / src_size) << "%"; in TEST_F()
1405 EXPECT_GT(dest_file_size, src_size + 100); in TEST_F()
1406 EXPECT_LT(dest_file_size, src_size + 300); in TEST_F()
1415 EXPECT_EQ(src_size, entry->original_size); in TEST_F()
[all …]

123