Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 170) sorted by relevance

1234567

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_dct.c21 static INLINE int fdct_round_shift(int input) { in fdct_round_shift() argument
22 int rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); in fdct_round_shift()
27 static void fdct4(const int16_t *input, int16_t *output) { in fdct4() argument
31 step[0] = input[0] + input[3]; in fdct4()
32 step[1] = input[1] + input[2]; in fdct4()
33 step[2] = input[1] - input[2]; in fdct4()
34 step[3] = input[0] - input[3]; in fdct4()
46 void vp9_fdct4x4_c(const int16_t *input, int16_t *output, int stride) { in vp9_fdct4x4_c() argument
56 const int16_t *in = input; in vp9_fdct4x4_c()
60 /*canbe16*/ int input[4]; in vp9_fdct4x4_c() local
[all …]
Dvp9_resize.c228 static void interpolate(const uint8_t *const input, int inlength, in interpolate() argument
266 sum += filter[k] * input[(pk < 0 ? 0 : in interpolate()
280 sum += filter[k] * input[(int_pel - INTERP_TAPS / 2 + 1 + k < 0 ? in interpolate()
293 sum += filter[k] * input[int_pel - INTERP_TAPS / 2 + 1 + k]; in interpolate()
304 sum += filter[k] * input[(int_pel - INTERP_TAPS / 2 + 1 + k >= in interpolate()
312 static void down2_symeven(const uint8_t *const input, int length, in down2_symeven() argument
328 sum += (input[(i - j < 0 ? 0 : i - j)] + in down2_symeven()
329 input[(i + 1 + j >= length ? length - 1 : i + 1 + j)]) * in down2_symeven()
340 sum += (input[(i - j < 0 ? 0 : i - j)] + input[i + 1 + j]) * filter[j]; in down2_symeven()
349 sum += (input[i - j] + input[i + 1 + j]) * filter[j]; in down2_symeven()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_idct.c21 void vp9_iwht4x4_16_add_c(const int16_t *input, uint8_t *dest, int stride) { in vp9_iwht4x4_16_add_c() argument
27 const int16_t *ip = input; in vp9_iwht4x4_16_add_c()
99 static void idct4(const int16_t *input, int16_t *output) { in idct4() argument
103 temp1 = (input[0] + input[2]) * cospi_16_64; in idct4()
104 temp2 = (input[0] - input[2]) * cospi_16_64; in idct4()
107 temp1 = input[1] * cospi_24_64 - input[3] * cospi_8_64; in idct4()
108 temp2 = input[1] * cospi_8_64 + input[3] * cospi_24_64; in idct4()
119 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int stride) { in vp9_idct4x4_16_add_c() argument
127 idct4(input, outptr); in vp9_idct4x4_16_add_c()
128 input += 4; in vp9_idct4x4_16_add_c()
[all …]
Dvp9_idct.h82 static INLINE int dct_const_round_shift(int input) { in dct_const_round_shift() argument
83 int rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); in dct_const_round_shift()
93 void vp9_iwht4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob);
95 void vp9_idct4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob);
96 void vp9_idct8x8_add(const int16_t *input, uint8_t *dest, int stride, int eob);
97 void vp9_idct16x16_add(const int16_t *input, uint8_t *dest, int stride, int
99 void vp9_idct32x32_add(const int16_t *input, uint8_t *dest, int stride,
102 void vp9_iht4x4_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
104 void vp9_iht8x8_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
106 void vp9_iht16x16_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/arm/neon/
Dvp9_idct4x4_add_neon.asm19 ;void vp9_idct4x4_16_add_neon(int16_t *input, uint8_t *dest, int dest_stride)
21 ; r0 int16_t input
49 ; transpose the input data
76 vadd.s16 d23, d16, d18 ; (input[0] + input[2])
77 vsub.s16 d24, d16, d18 ; (input[0] - input[2])
79 vmull.s16 q15, d17, d22 ; input[1] * cospi_24_64
80 vmull.s16 q1, d17, d20 ; input[1] * cospi_8_64
82 ; (input[0] + input[2]) * cospi_16_64;
83 ; (input[0] - input[2]) * cospi_16_64;
87 ; input[1] * cospi_24_64 - input[3] * cospi_8_64;
[all …]
Dvp9_idct16x16_neon.c14 void vp9_idct16x16_256_add_neon_pass1(const int16_t *input,
23 void vp9_idct16x16_10_add_neon_pass1(const int16_t *input,
37 void vp9_idct16x16_256_add_neon(const int16_t *input, in vp9_idct16x16_256_add_neon() argument
49 vp9_idct16x16_256_add_neon_pass1(input, pass1_output, 8); in vp9_idct16x16_256_add_neon()
54 vp9_idct16x16_256_add_neon_pass2(input+1, in vp9_idct16x16_256_add_neon()
64 vp9_idct16x16_256_add_neon_pass1(input+8*16, pass1_output, 8); in vp9_idct16x16_256_add_neon()
69 vp9_idct16x16_256_add_neon_pass2(input+8*16+1, in vp9_idct16x16_256_add_neon()
112 void vp9_idct16x16_10_add_neon(const int16_t *input, in vp9_idct16x16_10_add_neon() argument
124 vp9_idct16x16_10_add_neon_pass1(input, pass1_output, 8); in vp9_idct16x16_10_add_neon()
129 vp9_idct16x16_10_add_neon_pass2(input+1, in vp9_idct16x16_10_add_neon()
Dvp9_idct8x8_add_neon.asm31 ; input[1] * cospi_28_64
35 ; input[5] * cospi_12_64
39 ; input[1]*cospi_28_64-input[7]*cospi_4_64
43 ; input[5] * cospi_12_64 - input[3] * cospi_20_64
55 ; input[1] * cospi_4_64
59 ; input[5] * cospi_20_64
63 ; input[1]*cospi_4_64+input[7]*cospi_28_64
67 ; input[5] * cospi_20_64 + input[3] * cospi_12_64
82 ; input[0] * cospi_16_64
86 ; input[0] * cospi_16_64
[all …]
Dvp9_iht4x4_add_neon.asm26 vadd.s16 d23, d16, d18 ; (input[0] + input[2])
27 vsub.s16 d24, d16, d18 ; (input[0] - input[2])
29 vmull.s16 q15, d17, d2 ; input[1] * cospi_24_64
30 vmull.s16 q10, d17, d0 ; input[1] * cospi_8_64
31 vmull.s16 q13, d23, d1 ; (input[0] + input[2]) * cospi_16_64
32 vmull.s16 q14, d24, d1 ; (input[0] - input[2]) * cospi_16_64
33 vmlsl.s16 q15, d19, d0 ; input[1] * cospi_24_64 - input[3] * cospi_8_64
34 vmlal.s16 q10, d19, d2 ; input[1] * cospi_8_64 + input[3] * cospi_24_64
142 ;void vp9_iht4x4_16_add_neon(int16_t *input, uint8_t *dest,
145 ; r0 int16_t input
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/mips/dspr2/
Dvp9_itrans4_dspr2.c22 static void vp9_idct4_rows_dspr2(const int16_t *input, int16_t *output) { in vp9_idct4_rows_dspr2() argument
99 [input] "r" (input) in vp9_idct4_rows_dspr2()
102 input += 4; in vp9_idct4_rows_dspr2()
107 static void vp9_idct4_columns_add_blk_dspr2(int16_t *input, uint8_t *dest, in vp9_idct4_columns_add_blk_dspr2() argument
222 [input] "r" (input), [cm] "r" (cm), [dest_stride] "r" (dest_stride) in vp9_idct4_columns_add_blk_dspr2()
225 input += 4; in vp9_idct4_columns_add_blk_dspr2()
229 void vp9_idct4x4_16_add_dspr2(const int16_t *input, uint8_t *dest, in vp9_idct4x4_16_add_dspr2() argument
243 vp9_idct4_rows_dspr2(input, outptr); in vp9_idct4x4_16_add_dspr2()
249 void vp9_idct4x4_1_add_dspr2(const int16_t *input, uint8_t *dest, in vp9_idct4x4_1_add_dspr2() argument
256 int16_t input_dc = input[0]; in vp9_idct4x4_1_add_dspr2()
[all …]
Dvp9_itrans8_dspr2.c22 static void idct8_rows_dspr2(const int16_t *input, int16_t *output, in idct8_rows_dspr2() argument
195 [output] "r" (output), [input] "r" (input) in idct8_rows_dspr2()
198 input += 8; in idct8_rows_dspr2()
203 static void idct8_columns_add_blk_dspr2(int16_t *input, uint8_t *dest, in idct8_columns_add_blk_dspr2() argument
444 [input] "r" (input), [cm] "r" (cm), [dest_stride] "r" (dest_stride) in idct8_columns_add_blk_dspr2()
447 input += 8; in idct8_columns_add_blk_dspr2()
451 void vp9_idct8x8_64_add_dspr2(const int16_t *input, uint8_t *dest, in vp9_idct8x8_64_add_dspr2() argument
465 idct8_rows_dspr2(input, outptr, 8); in vp9_idct8x8_64_add_dspr2()
471 static void iadst8_dspr2(const int16_t *input, int16_t *output) { in iadst8_dspr2() argument
475 x0 = input[7]; in iadst8_dspr2()
[all …]
Dvp9_itrans16_dspr2.c22 static void idct16_rows_dspr2(const int16_t *input, int16_t *output, in idct16_rows_dspr2() argument
36 vp9_prefetch_load((const uint8_t *)(input + 16)); in idct16_rows_dspr2()
79 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_rows_dspr2()
140 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_rows_dspr2()
202 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_rows_dspr2()
267 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_rows_dspr2()
402 input += 16; in idct16_rows_dspr2()
407 static void idct16_cols_add_blk_dspr2(int16_t *input, uint8_t *dest, in idct16_cols_add_blk_dspr2() argument
475 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_cols_add_blk_dspr2()
536 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct16_cols_add_blk_dspr2()
[all …]
Dvp9_itrans32_dspr2.c22 static void idct32_rows_dspr2(const int16_t *input, int16_t *output, in idct32_rows_dspr2() argument
47 input_int = (const int32_t *)input; in idct32_rows_dspr2()
53 input += 32; in idct32_rows_dspr2()
99 vp9_prefetch_load((const uint8_t *)(input + 32)); in idct32_rows_dspr2()
100 vp9_prefetch_load((const uint8_t *)(input + 48)); in idct32_rows_dspr2()
158 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct32_rows_dspr2()
220 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct32_rows_dspr2()
282 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct32_rows_dspr2()
344 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct32_rows_dspr2()
406 : [const_2_power_13] "r" (const_2_power_13), [input] "r" (input), in idct32_rows_dspr2()
[all …]
/hardware/ti/omap4xxx/camera/
DEncoder_libjpeg.cpp63 libjpeg_destination_mgr(uint8_t* input, int size);
91 libjpeg_destination_mgr::libjpeg_destination_mgr(uint8_t* input, int size) { in libjpeg_destination_mgr() argument
96 this->buf = input; in libjpeg_destination_mgr()
354 size_t Encoder_libjpeg::encode(params* input) { in encode() argument
367 if (!input) { in encode()
371 out_width = input->out_width; in encode()
372 in_width = input->in_width; in encode()
373 out_height = input->out_height; in encode()
374 in_height = input->in_height; in encode()
375 right_crop = input->right_crop; in encode()
[all …]
/hardware/ti/omap4-aah/camera/
DEncoder_libjpeg.cpp63 libjpeg_destination_mgr(uint8_t* input, int size);
91 libjpeg_destination_mgr::libjpeg_destination_mgr(uint8_t* input, int size) { in libjpeg_destination_mgr() argument
96 this->buf = input; in libjpeg_destination_mgr()
422 size_t Encoder_libjpeg::encode(params* input) { in encode() argument
435 if (!input) { in encode()
439 out_width = input->out_width; in encode()
440 in_width = input->in_width; in encode()
441 out_height = input->out_height; in encode()
442 in_height = input->in_height; in encode()
443 right_crop = input->right_crop; in encode()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Ddct16x16_test.cc26 void vp9_idct16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch);
44 void reference2_16x16_idct_2d(double *input, double *output) { in reference2_16x16_idct_2d() argument
53 input[i * 16 + j] / 256; in reference2_16x16_idct_2d()
83 void butterfly_16x16_dct_1d(double input[16], double output[16]) { in butterfly_16x16_dct_1d()
89 step[ 0] = input[0] + input[15]; in butterfly_16x16_dct_1d()
90 step[ 1] = input[1] + input[14]; in butterfly_16x16_dct_1d()
91 step[ 2] = input[2] + input[13]; in butterfly_16x16_dct_1d()
92 step[ 3] = input[3] + input[12]; in butterfly_16x16_dct_1d()
93 step[ 4] = input[4] + input[11]; in butterfly_16x16_dct_1d()
94 step[ 5] = input[5] + input[10]; in butterfly_16x16_dct_1d()
[all …]
Didct_test.cc19 typedef void (*idct_fn_t)(int16_t *input, unsigned char *pred_ptr,
29 memset(input, 0, sizeof(input)); in SetUp()
37 int16_t input[16]; member in __anonc27ba8230111::IDCTTest
55 REGISTER_STATE_CHECK(UUT(input, output, 16, output, 16)); in TEST_P()
67 input[0] = 4; in TEST_P()
68 REGISTER_STATE_CHECK(UUT(input, output, 16, output, 16)); in TEST_P()
81 input[0] = 4; in TEST_P()
82 REGISTER_STATE_CHECK(UUT(input, predict, 16, output, 16)); in TEST_P()
94 for (i = 0; i < 16; i++) input[i] = i; in TEST_P()
96 REGISTER_STATE_CHECK(UUT(input, output, 16, output, 16)); in TEST_P()
Didct8x8_test.cc35 void reference_dct_1d(double input[8], double output[8]) { in reference_dct_1d()
41 output[k] += input[n]*cos(kPi*(2*n+1)*k/16.0); in reference_dct_1d()
47 void reference_dct_2d(int16_t input[64], double output[64]) { in reference_dct_2d()
52 temp_in[j] = input[j*8 + i]; in reference_dct_2d()
71 void reference_idct_1d(double input[8], double output[8]) { in reference_idct_1d()
77 output[k] += input[n]*cos(kPi*(2*k+1)*n/16.0); in reference_idct_1d()
84 void reference_idct_2d(double input[64], int16_t output[64]) { in reference_idct_2d()
90 temp_in[j] = input[j + i*8]; in reference_idct_2d()
112 int16_t input[64], coeff[64]; in TEST() local
122 input[j] = src[j] - dst[j]; in TEST()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/mips/dspr2/
Ddequantize_dspr2.c17 void vp8_dequant_idct_add_dspr2(short *input, short *dq, in vp8_dequant_idct_add_dspr2() argument
24 input[i] = dq[i] * input[i]; in vp8_dequant_idct_add_dspr2()
27 vp8_short_idct4x4llm_dspr2(input, dest, stride, dest, stride); in vp8_dequant_idct_add_dspr2()
29 vpx_memset(input, 0, 32); in vp8_dequant_idct_add_dspr2()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Ddequantize.c29 void vp8_dequant_idct_add_c(short *input, short *dq, in vp8_dequant_idct_add_c() argument
36 input[i] = dq[i] * input[i]; in vp8_dequant_idct_add_c()
39 vp8_short_idct4x4llm_c(input, dest, stride, dest, stride); in vp8_dequant_idct_add_c()
41 vpx_memset(input, 0, 32); in vp8_dequant_idct_add_c()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ppc/
Dcsystemdependent.c40 void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
41 void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
42 void (*vp8_fast_fdct4x4)(short *input, short *output, int pitch);
43 void (*vp8_fast_fdct8x4)(short *input, short *output, int pitch);
44 void (*short_walsh4x4)(short *input, short *output, int pitch);
59 extern void short_fdct4x4_c(short *input, short *output, int pitch);
60 extern void short_fdct8x4_c(short *input, short *output, int pitch);
61 extern void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
93 extern void vp8_short_fdct4x4_ppc(short *input, short *output, int pitch);
94 extern void vp8_short_fdct8x4_ppc(short *input, short *output, int pitch);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/armv7a-neon/
Dvp9_rtcd.h248 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
249 void vp9_idct4x4_1_add_neon(const int16_t *input, uint8_t *dest, int dest_stride);
252 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
253 void vp9_idct4x4_16_add_neon(const int16_t *input, uint8_t *dest, int dest_stride);
256 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
257 void vp9_idct8x8_1_add_neon(const int16_t *input, uint8_t *dest, int dest_stride);
260 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
261 void vp9_idct8x8_64_add_neon(const int16_t *input, uint8_t *dest, int dest_stride);
264 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
265 void vp9_idct8x8_10_add_neon(const int16_t *input, uint8_t *dest, int dest_stride);
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/mips-dspr2/
Dvp9_rtcd.h256 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
257 void vp9_idct4x4_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride);
260 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
261 void vp9_idct4x4_16_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride);
264 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
265 void vp9_idct8x8_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride);
268 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
269 void vp9_idct8x8_64_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride);
272 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
273 void vp9_idct8x8_10_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride);
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Ddct.c14 void vp8_short_fdct4x4_c(short *input, short *output, int pitch) in vp8_short_fdct4x4_c() argument
18 short *ip = input; in vp8_short_fdct4x4_c()
58 void vp8_short_fdct8x4_c(short *input, short *output, int pitch) in vp8_short_fdct8x4_c() argument
60 vp8_short_fdct4x4_c(input, output, pitch); in vp8_short_fdct8x4_c()
61 vp8_short_fdct4x4_c(input + 4, output + 16, pitch); in vp8_short_fdct8x4_c()
64 void vp8_short_walsh4x4_c(short *input, short *output, int pitch) in vp8_short_walsh4x4_c() argument
69 short *ip = input; in vp8_short_walsh4x4_c()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dvpxenc.c760 void open_input_file(struct VpxInputContext *input) { in open_input_file() argument
762 input->file = strcmp(input->filename, "-") in open_input_file()
763 ? fopen(input->filename, "rb") : set_binary_mode(stdin); in open_input_file()
765 if (!input->file) in open_input_file()
768 if (!fseeko(input->file, 0, SEEK_END)) { in open_input_file()
772 input->length = ftello(input->file); in open_input_file()
773 rewind(input->file); in open_input_file()
779 input->detect.buf_read = fread(input->detect.buf, 1, 4, input->file); in open_input_file()
780 input->detect.position = 0; in open_input_file()
782 if (input->detect.buf_read == 4 in open_input_file()
[all …]
Dvpxdec.c218 static int read_frame(struct VpxDecInputContext *input, uint8_t **buf, in read_frame() argument
220 switch (input->vpx_input_ctx->file_type) { in read_frame()
223 return webm_read_frame(input->webm_ctx, in read_frame()
227 return raw_read_frame(input->vpx_input_ctx->file, in read_frame()
230 return ivf_read_frame(input->vpx_input_ctx->file, in read_frame()
273 int file_is_raw(struct VpxInputContext *input) { in file_is_raw() argument
280 if (fread(buf, 1, 32, input->file) == 32) { in file_is_raw()
289 input->fourcc = decoder->fourcc; in file_is_raw()
290 input->width = si.w; in file_is_raw()
291 input->height = si.h; in file_is_raw()
[all …]

1234567