Home
last modified time | relevance | path

Searched refs:dec (Results 1 – 25 of 770) sorted by relevance

12345678910>>...31

/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.c86 init_zscan_buffer(struct vl_mpeg12_decoder *dec, struct vl_mpeg12_buffer *buffer) in init_zscan_buffer() argument
94 assert(dec && buffer); in init_zscan_buffer()
98 res_tmpl.format = dec->zscan_source_format; in init_zscan_buffer()
99 res_tmpl.width0 = dec->blocks_per_line * VL_BLOCK_WIDTH * VL_BLOCK_HEIGHT; in init_zscan_buffer()
100 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer()
106 res = dec->base.context->screen->resource_create(dec->base.context->screen, &res_tmpl); in init_zscan_buffer()
114 buffer->zscan_source = dec->base.context->create_sampler_view(dec->base.context, res, &sv_tmpl); in init_zscan_buffer()
119 if (dec->base.entrypoint <= PIPE_VIDEO_ENTRYPOINT_IDCT) in init_zscan_buffer()
120 destination = dec->idct_source->get_surfaces(dec->idct_source); in init_zscan_buffer()
122 destination = dec->mc_source->get_surfaces(dec->mc_source); in init_zscan_buffer()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.c86 init_zscan_buffer(struct vl_mpeg12_decoder *dec, struct vl_mpeg12_buffer *buffer) in init_zscan_buffer() argument
94 assert(dec && buffer); in init_zscan_buffer()
98 res_tmpl.format = dec->zscan_source_format; in init_zscan_buffer()
99 res_tmpl.width0 = dec->blocks_per_line * VL_BLOCK_WIDTH * VL_BLOCK_HEIGHT; in init_zscan_buffer()
100 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer()
106 res = dec->base.context->screen->resource_create(dec->base.context->screen, &res_tmpl); in init_zscan_buffer()
114 buffer->zscan_source = dec->base.context->create_sampler_view(dec->base.context, res, &sv_tmpl); in init_zscan_buffer()
119 if (dec->base.entrypoint <= PIPE_VIDEO_ENTRYPOINT_IDCT) in init_zscan_buffer()
120 destination = dec->idct_source->get_surfaces(dec->idct_source); in init_zscan_buffer()
122 destination = dec->mc_source->get_surfaces(dec->mc_source); in init_zscan_buffer()
[all …]
/external/webp/src/dec/
Dframe.c20 static void ReconstructRow(const VP8Decoder* const dec,
33 static void DoFilter(const VP8Decoder* const dec, int mb_x, int mb_y) { in DoFilter() argument
34 const VP8ThreadContext* const ctx = &dec->thread_ctx_; in DoFilter()
36 const int y_bps = dec->cache_y_stride_; in DoFilter()
38 uint8_t* const y_dst = dec->cache_y_ + cache_id * 16 * y_bps + mb_x * 16; in DoFilter()
45 if (dec->filter_type_ == 1) { // simple in DoFilter()
59 const int uv_bps = dec->cache_uv_stride_; in DoFilter()
60 uint8_t* const u_dst = dec->cache_u_ + cache_id * 8 * uv_bps + mb_x * 8; in DoFilter()
61 uint8_t* const v_dst = dec->cache_v_ + cache_id * 8 * uv_bps + mb_x * 8; in DoFilter()
83 static void FilterRow(const VP8Decoder* const dec) { in FilterRow() argument
[all …]
Dalpha.c26 ALPHDecoder* const dec = (ALPHDecoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in ALPHNew() local
27 return dec; in ALPHNew()
30 void ALPHDelete(ALPHDecoder* const dec) { in ALPHDelete() argument
31 if (dec != NULL) { in ALPHDelete()
32 VP8LDelete(dec->vp8l_dec_); in ALPHDelete()
33 dec->vp8l_dec_ = NULL; in ALPHDelete()
34 WebPSafeFree(dec); in ALPHDelete()
45 static int ALPHInit(ALPHDecoder* const dec, const uint8_t* data, in ALPHInit() argument
55 dec->width_ = width; in ALPHInit()
56 dec->height_ = height; in ALPHInit()
[all …]
Dvp8.c32 static void SetOk(VP8Decoder* const dec) { in SetOk() argument
33 dec->status_ = VP8_STATUS_OK; in SetOk()
34 dec->error_msg_ = "OK"; in SetOk()
48 VP8Decoder* const dec = (VP8Decoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in VP8New() local
49 if (dec != NULL) { in VP8New()
50 SetOk(dec); in VP8New()
51 WebPGetWorkerInterface()->Init(&dec->worker_); in VP8New()
52 dec->ready_ = 0; in VP8New()
53 dec->num_parts_ = 1; in VP8New()
55 return dec; in VP8New()
[all …]
Dvp8l.c77 VP8LDecoder* const dec,
182 VP8LDecoder* const dec, const int* const code_length_code_lengths, in ReadHuffmanCodeLengths() argument
185 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCodeLengths()
194 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
202 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
225 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
242 static int ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, in ReadHuffmanCode() argument
246 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCode()
271 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCode()
280 ok = ReadHuffmanCodeLengths(dec, code_length_code_lengths, alphabet_size, in ReadHuffmanCode()
[all …]
Didec.c104 const VP8Decoder* const dec = (VP8Decoder*)idec->dec_; in NeedCompressedAlpha() local
105 assert(dec != NULL); // Must be true as idec->state_ != STATE_WEBP_HEADER. in NeedCompressedAlpha()
106 return (dec->alpha_data_ != NULL) && !dec->is_alpha_decoded_; in NeedCompressedAlpha()
120 VP8Decoder* const dec = (VP8Decoder*)idec->dec_; in DoRemap() local
121 const int last_part = dec->num_parts_ - 1; in DoRemap()
125 VP8RemapBitReader(dec->parts_ + p, offset); in DoRemap()
130 VP8RemapBitReader(&dec->br_, offset); in DoRemap()
134 dec->parts_[last_part].buf_end_ = mem->buf_ + mem->end_; in DoRemap()
136 ALPHDecoder* const alph_dec = dec->alph_dec_; in DoRemap()
137 dec->alpha_data_ += offset; in DoRemap()
[all …]
Dtree.c283 VP8Decoder* const dec, int mb_x) { in ParseIntraMode() argument
284 uint8_t* const top = dec->intra_t_ + 4 * mb_x; in ParseIntraMode()
285 uint8_t* const left = dec->intra_l_; in ParseIntraMode()
286 VP8MBData* const block = dec->mb_data_ + mb_x; in ParseIntraMode()
290 if (dec->segment_hdr_.update_map_) { in ParseIntraMode()
292 block->segment_ = !VP8GetBit(br, dec->proba_.segments_[0]) in ParseIntraMode()
293 ? VP8GetBit(br, dec->proba_.segments_[1]) in ParseIntraMode()
294 : 2 + VP8GetBit(br, dec->proba_.segments_[2]); in ParseIntraMode()
298 if (dec->use_skip_proba_) block->skip_ = VP8GetBit(br, dec->skip_p_); in ParseIntraMode()
349 int VP8ParseIntraModeRow(VP8BitReader* const br, VP8Decoder* const dec) { in VP8ParseIntraModeRow() argument
[all …]
/external/chromium_org/third_party/libwebp/dec/
Dframe.c20 static void ReconstructRow(const VP8Decoder* const dec,
33 static void DoFilter(const VP8Decoder* const dec, int mb_x, int mb_y) { in DoFilter() argument
34 const VP8ThreadContext* const ctx = &dec->thread_ctx_; in DoFilter()
36 const int y_bps = dec->cache_y_stride_; in DoFilter()
38 uint8_t* const y_dst = dec->cache_y_ + cache_id * 16 * y_bps + mb_x * 16; in DoFilter()
45 if (dec->filter_type_ == 1) { // simple in DoFilter()
59 const int uv_bps = dec->cache_uv_stride_; in DoFilter()
60 uint8_t* const u_dst = dec->cache_u_ + cache_id * 8 * uv_bps + mb_x * 8; in DoFilter()
61 uint8_t* const v_dst = dec->cache_v_ + cache_id * 8 * uv_bps + mb_x * 8; in DoFilter()
83 static void FilterRow(const VP8Decoder* const dec) { in FilterRow() argument
[all …]
Dalpha.c26 ALPHDecoder* const dec = (ALPHDecoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in ALPHNew() local
27 return dec; in ALPHNew()
30 void ALPHDelete(ALPHDecoder* const dec) { in ALPHDelete() argument
31 if (dec != NULL) { in ALPHDelete()
32 VP8LDelete(dec->vp8l_dec_); in ALPHDelete()
33 dec->vp8l_dec_ = NULL; in ALPHDelete()
34 WebPSafeFree(dec); in ALPHDelete()
45 static int ALPHInit(ALPHDecoder* const dec, const uint8_t* data, in ALPHInit() argument
55 dec->width_ = width; in ALPHInit()
56 dec->height_ = height; in ALPHInit()
[all …]
Dvp8.c32 static void SetOk(VP8Decoder* const dec) { in SetOk() argument
33 dec->status_ = VP8_STATUS_OK; in SetOk()
34 dec->error_msg_ = "OK"; in SetOk()
48 VP8Decoder* const dec = (VP8Decoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in VP8New() local
49 if (dec != NULL) { in VP8New()
50 SetOk(dec); in VP8New()
51 WebPGetWorkerInterface()->Init(&dec->worker_); in VP8New()
52 dec->ready_ = 0; in VP8New()
53 dec->num_parts_ = 1; in VP8New()
55 return dec; in VP8New()
[all …]
Dvp8l.c77 VP8LDecoder* const dec,
182 VP8LDecoder* const dec, const int* const code_length_code_lengths, in ReadHuffmanCodeLengths() argument
185 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCodeLengths()
194 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
202 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
225 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths()
242 static int ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, in ReadHuffmanCode() argument
246 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCode()
271 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCode()
280 ok = ReadHuffmanCodeLengths(dec, code_length_code_lengths, alphabet_size, in ReadHuffmanCode()
[all …]
Didec.c104 const VP8Decoder* const dec = (VP8Decoder*)idec->dec_; in NeedCompressedAlpha() local
105 assert(dec != NULL); // Must be true as idec->state_ != STATE_WEBP_HEADER. in NeedCompressedAlpha()
106 return (dec->alpha_data_ != NULL) && !dec->is_alpha_decoded_; in NeedCompressedAlpha()
120 VP8Decoder* const dec = (VP8Decoder*)idec->dec_; in DoRemap() local
121 const int last_part = dec->num_parts_ - 1; in DoRemap()
125 VP8RemapBitReader(dec->parts_ + p, offset); in DoRemap()
130 VP8RemapBitReader(&dec->br_, offset); in DoRemap()
134 dec->parts_[last_part].buf_end_ = mem->buf_ + mem->end_; in DoRemap()
136 ALPHDecoder* const alph_dec = dec->alph_dec_; in DoRemap()
137 dec->alpha_data_ += offset; in DoRemap()
[all …]
Dtree.c283 VP8Decoder* const dec, int mb_x) { in ParseIntraMode() argument
284 uint8_t* const top = dec->intra_t_ + 4 * mb_x; in ParseIntraMode()
285 uint8_t* const left = dec->intra_l_; in ParseIntraMode()
286 VP8MBData* const block = dec->mb_data_ + mb_x; in ParseIntraMode()
290 if (dec->segment_hdr_.update_map_) { in ParseIntraMode()
292 block->segment_ = !VP8GetBit(br, dec->proba_.segments_[0]) in ParseIntraMode()
293 ? VP8GetBit(br, dec->proba_.segments_[1]) in ParseIntraMode()
294 : 2 + VP8GetBit(br, dec->proba_.segments_[2]); in ParseIntraMode()
298 if (dec->use_skip_proba_) block->skip_ = VP8GetBit(br, dec->skip_p_); in ParseIntraMode()
349 int VP8ParseIntraModeRow(VP8BitReader* const br, VP8Decoder* const dec) { in VP8ParseIntraModeRow() argument
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nouveau/
Dnouveau_video.c36 nouveau_vpe_init(struct nouveau_decoder *dec) { in nouveau_vpe_init() argument
38 if (dec->cmds) in nouveau_vpe_init()
40 ret = nouveau_bo_map(dec->cmd_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
45 ret = nouveau_bo_map(dec->data_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
50 dec->cmds = dec->cmd_bo->map; in nouveau_vpe_init()
51 dec->data = dec->data_bo->map; in nouveau_vpe_init()
56 nouveau_vpe_synch(struct nouveau_decoder *dec) { in nouveau_vpe_synch() argument
57 struct nouveau_pushbuf *push = dec->push; in nouveau_vpe_synch()
59 if (dec->fence_map) { in nouveau_vpe_synch()
61 PUSH_DATA (push, ++dec->fence_seq); in nouveau_vpe_synch()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c36 nouveau_vpe_init(struct nouveau_decoder *dec) { in nouveau_vpe_init() argument
38 if (dec->cmds) in nouveau_vpe_init()
40 ret = nouveau_bo_map(dec->cmd_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
45 ret = nouveau_bo_map(dec->data_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
50 dec->cmds = dec->cmd_bo->map; in nouveau_vpe_init()
51 dec->data = dec->data_bo->map; in nouveau_vpe_init()
56 nouveau_vpe_synch(struct nouveau_decoder *dec) { in nouveau_vpe_synch() argument
57 struct nouveau_pushbuf *push = dec->push; in nouveau_vpe_synch()
59 if (dec->fence_map) { in nouveau_vpe_synch()
61 PUSH_DATA (push, ++dec->fence_seq); in nouveau_vpe_synch()
[all …]
/external/chromium_org/third_party/brotli/
Dbrotli.gyp12 'src/brotli/dec',
15 'src/brotli/dec/bit_reader.c',
16 'src/brotli/dec/bit_reader.h',
17 'src/brotli/dec/context.h',
18 'src/brotli/dec/decode.c',
19 'src/brotli/dec/decode.h',
20 'src/brotli/dec/dictionary.h',
21 'src/brotli/dec/huffman.c',
22 'src/brotli/dec/huffman.h',
23 'src/brotli/dec/prefix.h',
[all …]
DBUILD.gn7 "src/brotli/dec/bit_reader.c",
8 "src/brotli/dec/bit_reader.h",
9 "src/brotli/dec/context.h",
10 "src/brotli/dec/decode.c",
11 "src/brotli/dec/decode.h",
12 "src/brotli/dec/dictionary.h",
13 "src/brotli/dec/huffman.c",
14 "src/brotli/dec/huffman.h",
15 "src/brotli/dec/prefix.h",
16 "src/brotli/dec/safe_malloc.c",
[all …]
/external/libopus/tests/
Dtest_opus_decode.c58 OpusDecoder *dec[5*2]; in test_decoder_code0() local
82 dec[t] = opus_decoder_create(fs, c, &err); in test_decoder_code0()
83 if(err!=OPUS_OK || dec[t]==NULL)test_failed(); in test_decoder_code0()
90 memcpy(dec2,dec[t],opus_decoder_get_size(c)); in test_decoder_code0()
91 memset(dec[t],255,opus_decoder_get_size(c)); in test_decoder_code0()
92 opus_decoder_destroy(dec[t]); in test_decoder_code0()
94 dec[t]=dec2; in test_decoder_code0()
109 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); in test_decoder_code0()
111 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
115 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); in test_decoder_code0()
[all …]
/external/chromium_org/third_party/opus/src/tests/
Dtest_opus_decode.c58 OpusDecoder *dec[5*2]; in test_decoder_code0() local
82 dec[t] = opus_decoder_create(fs, c, &err); in test_decoder_code0()
83 if(err!=OPUS_OK || dec[t]==NULL)test_failed(); in test_decoder_code0()
90 memcpy(dec2,dec[t],opus_decoder_get_size(c)); in test_decoder_code0()
91 memset(dec[t],255,opus_decoder_get_size(c)); in test_decoder_code0()
92 opus_decoder_destroy(dec[t]); in test_decoder_code0()
94 dec[t]=dec2; in test_decoder_code0()
109 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); in test_decoder_code0()
111 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
115 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); in test_decoder_code0()
[all …]
Dtest_opus_api.c86 OpusDecoder *dec; in test_dec_api() local
126 dec = opus_decoder_create(fs, c, &err); in test_dec_api()
127 if(err!=OPUS_BAD_ARG || dec!=NULL)test_failed(); in test_dec_api()
129 dec = opus_decoder_create(fs, c, 0); in test_dec_api()
130 if(dec!=NULL)test_failed(); in test_dec_api()
132 dec=malloc(opus_decoder_get_size(2)); in test_dec_api()
133 if(dec==NULL)test_failed(); in test_dec_api()
134 err = opus_decoder_init(dec,fs,c); in test_dec_api()
137 free(dec); in test_dec_api()
142 dec = opus_decoder_create(48000, 2, &err); in test_dec_api()
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/test/
Ddecode_api_test.cc31 vpx_codec_ctx_t dec; in TEST() local
34 EXPECT_EQ(VPX_CODEC_INVALID_PARAM, vpx_codec_dec_init(&dec, NULL, NULL, 0)); in TEST()
48 EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, kCodecs[i], NULL, 0)); in TEST()
50 vpx_codec_decode(&dec, buf, NELEMENTS(buf), NULL, 0)); in TEST()
52 vpx_codec_decode(&dec, NULL, NELEMENTS(buf), NULL, 0)); in TEST()
54 vpx_codec_decode(&dec, buf, 0, NULL, 0)); in TEST()
56 EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec)); in TEST()
63 void TestVp9Controls(vpx_codec_ctx_t *dec) { in TestVp9Controls() argument
72 const vpx_codec_err_t res = vpx_codec_control_(dec, kControls[i], val); in TestVp9Controls()
82 vpx_codec_control_(dec, kControls[i], NULL)); in TestVp9Controls()
[all …]
/external/chromium_org/third_party/opus/src/celt/tests/
Dtest_unit_entropy.c54 ec_dec dec; in main() local
109 ec_dec_init(&dec,ptr,DATA_SIZE); in main()
112 sym=ec_dec_uint(&dec,ft); in main()
121 sym=ec_dec_bits(&dec,ftb); in main()
128 nbits2=ec_tell_frac(&dec); in main()
152 ec_dec_init(&dec,ptr,2); in main()
155 ||ec_dec_bits(&dec,7)!=0x05 in main()
157 ||ec_dec_uint(&dec,2)!=1 in main()
158 ||ec_dec_uint(&dec,3)!=1 in main()
159 ||ec_dec_uint(&dec,4)!=1 in main()
[all …]
/external/libopus/celt/tests/
Dtest_unit_entropy.c54 ec_dec dec; in main() local
109 ec_dec_init(&dec,ptr,DATA_SIZE); in main()
112 sym=ec_dec_uint(&dec,ft); in main()
121 sym=ec_dec_bits(&dec,ftb); in main()
128 nbits2=ec_tell_frac(&dec); in main()
152 ec_dec_init(&dec,ptr,2); in main()
155 ||ec_dec_bits(&dec,7)!=0x05 in main()
157 ||ec_dec_uint(&dec,2)!=1 in main()
158 ||ec_dec_uint(&dec,3)!=1 in main()
159 ||ec_dec_uint(&dec,4)!=1 in main()
[all …]
/external/chromium_org/v8/test/webkit/
Ddate-parse-comments-test-expected.txt31 PASS Date.parse("dec ((27) 26 (24)) 25 1995 1:30 pm utc") == 819898200000 is true
34 PASS Date.parse("dec 25 1995 1:30 pm utc (") == 819898200000 is true
37 PASS Date.parse("dec 25 1995 1:30 (pm)) utc") is NaN
40 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) gmt (est)") == 819849600000 is true
43 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996)") == 819849600000 + timeZoneOffset is true
46 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) 1:30 (1:40) gmt (est)") == 819855000000 is true
49 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) 1:30 (1:40)") == 819855000000 + timeZoneOffset …
52 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) 1:30 ") == 819855000000 + timeZoneOffset is true
55 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) 1:30 am (1:40 pm) gmt (est)") == 819855000000 i…
58 PASS Date.parse("(nov) dec (24) 25 (26) 1995 (1996) 1:30 am (1:40 pm)") == 819855000000 + timeZoneO…
[all …]

12345678910>>...31