Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 541) sorted by relevance

12345678910>>...22

/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_enc_1_2.c41 #define RADEON_ENC_CS(value) (enc->cs->current.buf[enc->cs->current.cdw++] = (value))
43 uint32_t *begin = &enc->cs->current.buf[enc->cs->current.cdw++]; \
45 #define RADEON_ENC_READ(buf, domain, off) radeon_enc_add_buffer(enc, (buf), RADEON_USAGE_READ, (dom…
46 #define RADEON_ENC_WRITE(buf, domain, off) radeon_enc_add_buffer(enc, (buf), RADEON_USAGE_WRITE, (d…
47 #define RADEON_ENC_READWRITE(buf, domain, off) radeon_enc_add_buffer(enc, (buf), RADEON_USAGE_READW…
48 #define RADEON_ENC_END() *begin = (&enc->cs->current.buf[enc->cs->current.cdw] - begin) * 4; \
49 enc->total_task_size += *begin;}
54 static void radeon_enc_add_buffer(struct radeon_encoder *enc, struct pb_buffer *buf, in radeon_enc_add_buffer() argument
58 enc->ws->cs_add_buffer(enc->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED, in radeon_enc_add_buffer()
61 addr = enc->ws->buffer_get_virtual_address(buf); in radeon_enc_add_buffer()
[all …]
Dradeon_vce_52.c43 static void get_rate_control_param(struct rvce_encoder *enc, struct pipe_h264_enc_picture_desc *pic) in get_rate_control_param() argument
45 enc->enc_pic.rc.rc_method = pic->rate_ctrl.rate_ctrl_method; in get_rate_control_param()
46 enc->enc_pic.rc.target_bitrate = pic->rate_ctrl.target_bitrate; in get_rate_control_param()
47 enc->enc_pic.rc.peak_bitrate = pic->rate_ctrl.peak_bitrate; in get_rate_control_param()
48 enc->enc_pic.rc.quant_i_frames = pic->quant_i_frames; in get_rate_control_param()
49 enc->enc_pic.rc.quant_p_frames = pic->quant_p_frames; in get_rate_control_param()
50 enc->enc_pic.rc.quant_b_frames = pic->quant_b_frames; in get_rate_control_param()
51 enc->enc_pic.rc.gop_size = pic->gop_size; in get_rate_control_param()
52 enc->enc_pic.rc.frame_rate_num = pic->rate_ctrl.frame_rate_num; in get_rate_control_param()
53 enc->enc_pic.rc.frame_rate_den = pic->rate_ctrl.frame_rate_den; in get_rate_control_param()
[all …]
Dradeon_vcn_enc.c41 static void radeon_vcn_enc_get_param(struct radeon_encoder *enc, struct pipe_h264_enc_picture_desc … in radeon_vcn_enc_get_param() argument
43 enc->enc_pic.picture_type = pic->picture_type; in radeon_vcn_enc_get_param()
44 enc->enc_pic.frame_num = pic->frame_num; in radeon_vcn_enc_get_param()
45 enc->enc_pic.pic_order_cnt = pic->pic_order_cnt; in radeon_vcn_enc_get_param()
46 enc->enc_pic.pic_order_cnt_type = pic->pic_order_cnt_type; in radeon_vcn_enc_get_param()
47 enc->enc_pic.ref_idx_l0 = pic->ref_idx_l0; in radeon_vcn_enc_get_param()
48 enc->enc_pic.ref_idx_l1 = pic->ref_idx_l1; in radeon_vcn_enc_get_param()
49 enc->enc_pic.not_referenced = pic->not_referenced; in radeon_vcn_enc_get_param()
50 enc->enc_pic.is_idr = (pic->picture_type == PIPE_H264_ENC_PICTURE_TYPE_IDR); in radeon_vcn_enc_get_param()
51 enc->enc_pic.crop_left = 0; in radeon_vcn_enc_get_param()
[all …]
Dradeon_vce.c54 static void flush(struct rvce_encoder *enc) in flush() argument
56 enc->ws->cs_flush(enc->cs, PIPE_FLUSH_ASYNC, NULL); in flush()
57 enc->task_info_idx = 0; in flush()
58 enc->bs_idx = 0; in flush()
62 static void dump_feedback(struct rvce_encoder *enc, struct rvid_buffer *fb)
64 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE);
83 enc->ws->buffer_unmap(fb->res->buf);
90 static void reset_cpb(struct rvce_encoder *enc) in reset_cpb() argument
94 LIST_INITHEAD(&enc->cpb_slots); in reset_cpb()
95 for (i = 0; i < enc->cpb_num; ++i) { in reset_cpb()
[all …]
Dradeon_vce_40_2_2.c43 static void session(struct rvce_encoder *enc) in session() argument
46 RVCE_CS(enc->stream_handle); in session()
50 static void task_info(struct rvce_encoder *enc, uint32_t op, in task_info() argument
55 if (enc->task_info_idx) { in task_info()
56 uint32_t offs = enc->cs->current.cdw - enc->task_info_idx + 3; in task_info()
58 enc->cs->current.buf[enc->task_info_idx] = offs; in task_info()
60 enc->task_info_idx = enc->cs->current.cdw; in task_info()
71 static void feedback(struct rvce_encoder *enc) in feedback() argument
74 RVCE_WRITE(enc->fb->res->buf, enc->fb->res->domains, 0x0); // feedbackRingAddressHi/Lo in feedback()
79 static void create(struct rvce_encoder *enc) in create() argument
[all …]
Dradeon_vce_50.c41 static void rate_control(struct rvce_encoder *enc) in rate_control() argument
44 RVCE_CS(enc->pic.rate_ctrl.rate_ctrl_method); // encRateControlMethod in rate_control()
45 RVCE_CS(enc->pic.rate_ctrl.target_bitrate); // encRateControlTargetBitRate in rate_control()
46 RVCE_CS(enc->pic.rate_ctrl.peak_bitrate); // encRateControlPeakBitRate in rate_control()
47 RVCE_CS(enc->pic.rate_ctrl.frame_rate_num); // encRateControlFrameRateNum in rate_control()
49 RVCE_CS(enc->pic.quant_i_frames); // encQP_I in rate_control()
50 RVCE_CS(enc->pic.quant_p_frames); // encQP_P in rate_control()
51 RVCE_CS(enc->pic.quant_b_frames); // encQP_B in rate_control()
52 RVCE_CS(enc->pic.rate_ctrl.vbv_buffer_size); // encVBVBufferSize in rate_control()
53 RVCE_CS(enc->pic.rate_ctrl.frame_rate_den); // encRateControlFrameRateDen in rate_control()
[all …]
/external/libopus/tests/
Dopus_encode_regressions.c46 OpusMSEncoder *enc; in celt_ec_internal_error() local
53 enc = opus_multistream_surround_encoder_create(16000, 1, 1, &streams, in celt_ec_internal_error()
55 opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); in celt_ec_internal_error()
56 opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); in celt_ec_internal_error()
57 opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); in celt_ec_internal_error()
58 opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); in celt_ec_internal_error()
59 opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); in celt_ec_internal_error()
60 opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(0)); in celt_ec_internal_error()
61 opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); in celt_ec_internal_error()
62 opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); in celt_ec_internal_error()
[all …]
/external/expat/lib/
Dxmltok_impl.c36 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
43 if (IS_INVALID_CHAR(enc, ptr, n)) { \
60 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
64 if (!IS_NAME_CHAR(enc, ptr, n)) { \
71 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
73 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
83 ptr += MINBPC(enc); \
85 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
86 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
87 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h176 int (PTRCALL *getAtts)(const ENCODING *enc,
180 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
188 int (PTRCALL *isPublicId)(const ENCODING *enc,
192 enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc,
197 enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc,
229 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
230 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
232 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
233 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
235 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok.c157 isNever(const ENCODING *UNUSED_P(enc), const char *UNUSED_P(p)) in isNever() argument
163 utf8_isName2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName2() argument
169 utf8_isName3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName3() argument
177 utf8_isNmstrt2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt2() argument
183 utf8_isNmstrt3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt3() argument
191 utf8_isInvalid2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid2() argument
197 utf8_isInvalid3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid3() argument
203 utf8_isInvalid4(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid4() argument
209 ENCODING enc; member
229 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
/external/python/cpython2/Modules/expat/
Dxmltok_impl.c36 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
43 if (IS_INVALID_CHAR(enc, ptr, n)) { \
60 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
64 if (!IS_NAME_CHAR(enc, ptr, n)) { \
71 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
73 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
83 ptr += MINBPC(enc); \
85 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
86 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
87 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h176 int (PTRCALL *getAtts)(const ENCODING *enc,
180 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
188 int (PTRCALL *isPublicId)(const ENCODING *enc,
192 enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc,
197 enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc,
229 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
230 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
232 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
233 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
235 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok.c157 isNever(const ENCODING *UNUSED_P(enc), const char *UNUSED_P(p)) in isNever() argument
163 utf8_isName2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName2() argument
169 utf8_isName3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isName3() argument
177 utf8_isNmstrt2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt2() argument
183 utf8_isNmstrt3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isNmstrt3() argument
191 utf8_isInvalid2(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid2() argument
197 utf8_isInvalid3(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid3() argument
203 utf8_isInvalid4(const ENCODING *UNUSED_P(enc), const char *p) in utf8_isInvalid4() argument
209 ENCODING enc; member
229 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
/external/python/cpython3/Modules/expat/
Dxmltok_impl.c36 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
43 if (IS_INVALID_CHAR(enc, ptr, n)) { \
60 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
64 if (!IS_NAME_CHAR(enc, ptr, n)) { \
71 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
73 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
83 ptr += MINBPC(enc); \
85 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
86 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
87 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h176 int (PTRCALL *getAtts)(const ENCODING *enc,
180 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
188 int (PTRCALL *isPublicId)(const ENCODING *enc,
192 enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc,
197 enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc,
229 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
230 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
232 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
233 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
235 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_vce.c60 static void flush(struct rvce_encoder *enc) in flush() argument
62 enc->ws->cs_flush(enc->cs, PIPE_FLUSH_ASYNC, NULL); in flush()
63 enc->task_info_idx = 0; in flush()
64 enc->bs_idx = 0; in flush()
68 static void dump_feedback(struct rvce_encoder *enc, struct rvid_buffer *fb)
70 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE);
89 enc->ws->buffer_unmap(fb->res->buf);
96 static void reset_cpb(struct rvce_encoder *enc) in reset_cpb() argument
100 LIST_INITHEAD(&enc->cpb_slots); in reset_cpb()
101 for (i = 0; i < enc->cpb_num; ++i) { in reset_cpb()
[all …]
/external/webp/src/enc/
Dwebp_enc.c40 static void ResetSegmentHeader(VP8Encoder* const enc) { in ResetSegmentHeader() argument
41 VP8EncSegmentHeader* const hdr = &enc->segment_hdr_; in ResetSegmentHeader()
42 hdr->num_segments_ = enc->config_->segments; in ResetSegmentHeader()
47 static void ResetFilterHeader(VP8Encoder* const enc) { in ResetFilterHeader() argument
48 VP8EncFilterHeader* const hdr = &enc->filter_hdr_; in ResetFilterHeader()
55 static void ResetBoundaryPredictions(VP8Encoder* const enc) { in ResetBoundaryPredictions() argument
59 uint8_t* const top = enc->preds_ - enc->preds_w_; in ResetBoundaryPredictions()
60 uint8_t* const left = enc->preds_ - 1; in ResetBoundaryPredictions()
61 for (i = -1; i < 4 * enc->mb_w_; ++i) { in ResetBoundaryPredictions()
64 for (i = 0; i < 4 * enc->mb_h_; ++i) { in ResetBoundaryPredictions()
[all …]
Dsyntax_enc.c24 static int IsVP8XNeeded(const VP8Encoder* const enc) { in IsVP8XNeeded() argument
25 return !!enc->has_alpha_; // Currently the only case when VP8X is needed. in IsVP8XNeeded()
37 static WebPEncodingError PutRIFFHeader(const VP8Encoder* const enc, in PutRIFFHeader() argument
39 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader()
51 static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) { in PutVP8XHeader() argument
52 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader()
58 assert(IsVP8XNeeded(enc)); in PutVP8XHeader()
62 if (enc->has_alpha_) { in PutVP8XHeader()
76 static WebPEncodingError PutAlphaChunk(const VP8Encoder* const enc) { in PutAlphaChunk() argument
77 const WebPPicture* const pic = enc->pic_; in PutAlphaChunk()
[all …]
Dframe_enc.c43 static int InitPassStats(const VP8Encoder* const enc, PassStats* const s) { in InitPassStats() argument
44 const uint64_t target_size = (uint64_t)enc->config_->target_size; in InitPassStats()
46 const float target_PSNR = enc->config_->target_PSNR; in InitPassStats()
50 s->q = s->last_q = enc->config_->quality; in InitPassStats()
94 static void ResetStats(VP8Encoder* const enc) { in ResetStats() argument
95 VP8EncProba* const proba = &enc->proba_; in ResetStats()
110 static int FinalizeSkipProba(VP8Encoder* const enc) { in FinalizeSkipProba() argument
111 VP8EncProba* const proba = &enc->proba_; in FinalizeSkipProba()
112 const int nb_mbs = enc->mb_w_ * enc->mb_h_; in FinalizeSkipProba()
138 static void ResetTokenStats(VP8Encoder* const enc) { in ResetTokenStats() argument
[all …]
/external/libaom/libaom/aom_dsp/
Dentenc.c56 static void od_ec_enc_normalize(od_ec_enc *enc, od_ec_window low, in od_ec_enc_normalize() argument
61 c = enc->cnt; in od_ec_enc_normalize()
76 buf = enc->precarry_buf; in od_ec_enc_normalize()
77 storage = enc->precarry_storage; in od_ec_enc_normalize()
78 offs = enc->offs; in od_ec_enc_normalize()
83 enc->error = -1; in od_ec_enc_normalize()
84 enc->offs = 0; in od_ec_enc_normalize()
87 enc->precarry_buf = buf; in od_ec_enc_normalize()
88 enc->precarry_storage = storage; in od_ec_enc_normalize()
103 enc->offs = offs; in od_ec_enc_normalize()
[all …]
/external/brotli/scripts/
Dsources.lst32 c/enc/backward_references.c \
33 c/enc/backward_references_hq.c \
34 c/enc/bit_cost.c \
35 c/enc/block_splitter.c \
36 c/enc/brotli_bit_stream.c \
37 c/enc/cluster.c \
38 c/enc/compress_fragment.c \
39 c/enc/compress_fragment_two_pass.c \
40 c/enc/dictionary_hash.c \
41 c/enc/encode.c \
[all …]
/external/boringssl/src/crypto/asn1/
Dtasn_utl.c133 ASN1_ENCODING *enc; in asn1_enc_init() local
134 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_init()
135 if (enc) { in asn1_enc_init()
136 enc->enc = NULL; in asn1_enc_init()
137 enc->len = 0; in asn1_enc_init()
138 enc->alias_only = 0; in asn1_enc_init()
139 enc->alias_only_on_next_parse = 0; in asn1_enc_init()
140 enc->modified = 1; in asn1_enc_init()
145 ASN1_ENCODING *enc; in asn1_enc_free() local
146 enc = asn1_get_enc_ptr(pval, it); in asn1_enc_free()
[all …]
/external/webp/src/mux/
Danim_encode.c110 static void ResetCounters(WebPAnimEncoder* const enc) { in ResetCounters() argument
111 enc->start_ = 0; in ResetCounters()
112 enc->count_ = 0; in ResetCounters()
113 enc->flush_count_ = 0; in ResetCounters()
114 enc->best_delta_ = DELTA_INFINITY; in ResetCounters()
115 enc->keyframe_ = KEYFRAME_NONE; in ResetCounters()
218 static void MarkNoError(WebPAnimEncoder* const enc) { in MarkNoError() argument
219 enc->error_str_[0] = '\0'; // Empty string. in MarkNoError()
222 static void MarkError(WebPAnimEncoder* const enc, const char* str) { in MarkError() argument
223 if (snprintf(enc->error_str_, ERROR_STR_MAX_LENGTH, "%s.", str) < 0) { in MarkError()
[all …]
/external/libdrm/tests/amdgpu/
Dvce_tests.c72 static struct amdgpu_vce_encode enc; variable
137 memset(&enc, 0, sizeof(struct amdgpu_vce_encode)); in suite_vce_tests_init()
257 enc.width = vce_create[6]; in amdgpu_cs_vce_create()
258 enc.height = vce_create[7]; in amdgpu_cs_vce_create()
261 alloc_resource(&enc.fb[0], 4096, AMDGPU_GEM_DOMAIN_GTT); in amdgpu_cs_vce_create()
262 resources[num_resources++] = enc.fb[0].handle; in amdgpu_cs_vce_create()
271 ib_cpu[len + 8] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
272 ib_cpu[len + 9] = ALIGN(enc.width, align); in amdgpu_cs_vce_create()
275 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create()
276 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create()
[all …]
/external/libopus/celt/tests/
Dtest_unit_entropy.c54 ec_enc enc; in main() local
83 ec_enc_init(&enc,ptr, DATA_SIZE); in main()
87 ec_enc_uint(&enc,i,ft); in main()
94 nbits=ec_tell(&enc); in main()
95 ec_enc_bits(&enc,i,ftb); in main()
96 nbits2=ec_tell(&enc); in main()
104 nbits=ec_tell_frac(&enc); in main()
105 ec_enc_done(&enc); in main()
109 fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc)); in main()
142 ec_enc_init(&enc,ptr,2); in main()
[all …]

12345678910>>...22