Home
last modified time | relevance | path

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

12345678910>>...18

/external/mesa3d/src/gallium/drivers/radeon/
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_vce.c59 static void flush(struct rvce_encoder *enc) in flush() argument
61 enc->ws->cs_flush(enc->cs, RADEON_FLUSH_ASYNC, NULL); in flush()
62 enc->task_info_idx = 0; in flush()
63 enc->bs_idx = 0; in flush()
67 static void dump_feedback(struct rvce_encoder *enc, struct rvid_buffer *fb)
69 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE);
88 enc->ws->buffer_unmap(fb->res->buf);
95 static void reset_cpb(struct rvce_encoder *enc) in reset_cpb() argument
99 LIST_INITHEAD(&enc->cpb_slots); in reset_cpb()
100 for (i = 0; i < enc->cpb_num; ++i) { in reset_cpb()
[all …]
Dradeon_vce_40_2_2.c49 static void session(struct rvce_encoder *enc) in session() argument
52 RVCE_CS(enc->stream_handle); in session()
56 static void task_info(struct rvce_encoder *enc, uint32_t op, in task_info() argument
61 if (enc->task_info_idx) { in task_info()
62 uint32_t offs = enc->cs->current.cdw - enc->task_info_idx + 3; in task_info()
64 enc->cs->current.buf[enc->task_info_idx] = offs; in task_info()
66 enc->task_info_idx = enc->cs->current.cdw; in task_info()
77 static void feedback(struct rvce_encoder *enc) in feedback() argument
80 RVCE_WRITE(enc->fb->res->buf, enc->fb->res->domains, 0x0); // feedbackRingAddressHi/Lo in feedback()
85 static void create(struct rvce_encoder *enc) in create() argument
[all …]
Dradeon_vce_50.c47 static void rate_control(struct rvce_encoder *enc) in rate_control() argument
50 RVCE_CS(enc->pic.rate_ctrl.rate_ctrl_method); // encRateControlMethod in rate_control()
51 RVCE_CS(enc->pic.rate_ctrl.target_bitrate); // encRateControlTargetBitRate in rate_control()
52 RVCE_CS(enc->pic.rate_ctrl.peak_bitrate); // encRateControlPeakBitRate in rate_control()
53 RVCE_CS(enc->pic.rate_ctrl.frame_rate_num); // encRateControlFrameRateNum in rate_control()
55 RVCE_CS(enc->pic.quant_i_frames); // encQP_I in rate_control()
56 RVCE_CS(enc->pic.quant_p_frames); // encQP_P in rate_control()
57 RVCE_CS(enc->pic.quant_b_frames); // encQP_B in rate_control()
58 RVCE_CS(enc->pic.rate_ctrl.vbv_buffer_size); // encVBVBufferSize in rate_control()
59 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)) { \
82 ptr += MINBPC(enc); \
84 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
85 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
86 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 …]
Dxmltok_ns.c38 return &ns(internal_utf8_encoding).enc; in NS()
45 return &ns(internal_little2_encoding).enc; in NS()
47 return &ns(internal_big2_encoding).enc; in NS()
51 ? &ns(internal_little2_encoding).enc in NS()
52 : &ns(internal_big2_encoding).enc); in NS()
57 &ns(latin1_encoding).enc,
58 &ns(ascii_encoding).enc,
59 &ns(utf8_encoding).enc,
60 &ns(big2_encoding).enc,
61 &ns(big2_encoding).enc,
[all …]
/external/python/cpython2/Modules/expat/
Dxmltok_impl.c9 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
37 if (!IS_NAME_CHAR(enc, ptr, n)) { \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
46 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
55 ptr += MINBPC(enc); \
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h145 int (PTRCALL *getAtts)(const ENCODING *enc,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
157 int (PTRCALL *isPublicId)(const ENCODING *enc,
161 void (PTRCALL *utf8Convert)(const ENCODING *enc,
166 void (PTRCALL *utf16Convert)(const ENCODING *enc,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok.c125 isNever(const ENCODING *enc, const char *p) in isNever() argument
131 utf8_isName2(const ENCODING *enc, const char *p) in utf8_isName2() argument
137 utf8_isName3(const ENCODING *enc, const char *p) in utf8_isName3() argument
145 utf8_isNmstrt2(const ENCODING *enc, const char *p) in utf8_isNmstrt2() argument
151 utf8_isNmstrt3(const ENCODING *enc, const char *p) in utf8_isNmstrt3() argument
159 utf8_isInvalid2(const ENCODING *enc, const char *p) in utf8_isInvalid2() argument
165 utf8_isInvalid3(const ENCODING *enc, const char *p) in utf8_isInvalid3() argument
171 utf8_isInvalid4(const ENCODING *enc, const char *p) in utf8_isInvalid4() argument
177 ENCODING enc; member
197 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
Dxmltok_ns.c11 return &ns(internal_utf8_encoding).enc; in NS()
18 return &ns(internal_little2_encoding).enc; in NS()
20 return &ns(internal_big2_encoding).enc; in NS()
24 ? &ns(internal_little2_encoding).enc in NS()
25 : &ns(internal_big2_encoding).enc); in NS()
30 &ns(latin1_encoding).enc,
31 &ns(ascii_encoding).enc,
32 &ns(utf8_encoding).enc,
33 &ns(big2_encoding).enc,
34 &ns(big2_encoding).enc,
[all …]
/external/python/cpython3/Modules/expat/
Dxmltok_impl.c9 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
37 if (!IS_NAME_CHAR(enc, ptr, n)) { \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
46 if (!IS_NAME_CHAR_MINBPC(enc, ptr)) { \
55 ptr += MINBPC(enc); \
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
[all …]
Dxmltok.h145 int (PTRCALL *getAtts)(const ENCODING *enc,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
157 int (PTRCALL *isPublicId)(const ENCODING *enc,
161 void (PTRCALL *utf8Convert)(const ENCODING *enc,
166 void (PTRCALL *utf16Convert)(const ENCODING *enc,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
[all …]
Dxmltok.c125 isNever(const ENCODING *enc, const char *p) in isNever() argument
131 utf8_isName2(const ENCODING *enc, const char *p) in utf8_isName2() argument
137 utf8_isName3(const ENCODING *enc, const char *p) in utf8_isName3() argument
145 utf8_isNmstrt2(const ENCODING *enc, const char *p) in utf8_isNmstrt2() argument
151 utf8_isNmstrt3(const ENCODING *enc, const char *p) in utf8_isNmstrt3() argument
159 utf8_isInvalid2(const ENCODING *enc, const char *p) in utf8_isInvalid2() argument
165 utf8_isInvalid3(const ENCODING *enc, const char *p) in utf8_isInvalid3() argument
171 utf8_isInvalid4(const ENCODING *enc, const char *p) in utf8_isInvalid4() argument
177 ENCODING enc; member
197 #define AS_NORMAL_ENCODING(enc) ((const struct normal_encoding *) (enc)) argument
[all …]
Dxmltok_ns.c11 return &ns(internal_utf8_encoding).enc; in NS()
18 return &ns(internal_little2_encoding).enc; in NS()
20 return &ns(internal_big2_encoding).enc; in NS()
24 ? &ns(internal_little2_encoding).enc in NS()
25 : &ns(internal_big2_encoding).enc); in NS()
30 &ns(latin1_encoding).enc,
31 &ns(ascii_encoding).enc,
32 &ns(utf8_encoding).enc,
33 &ns(big2_encoding).enc,
34 &ns(big2_encoding).enc,
[all …]
Dxmlrole.c89 #define MIN_BYTES_PER_CHAR(enc) ((enc)->minBytesPerChar) argument
105 const ENCODING *enc);
132 const ENCODING *enc) in prolog0() argument
150 if (!XmlNameMatchesAscii(enc, in prolog0()
151 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog0()
169 const ENCODING *enc) in prolog1() argument
181 if (!XmlNameMatchesAscii(enc, in prolog1()
182 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog1()
200 const ENCODING *enc) in prolog2() argument
221 const ENCODING *enc) in doctype0() argument
[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/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/libopus/celt/tests/
Dtest_unit_entropy.c53 ec_enc enc; in main() local
82 ec_enc_init(&enc,ptr, DATA_SIZE); in main()
86 ec_enc_uint(&enc,i,ft); in main()
93 nbits=ec_tell(&enc); in main()
94 ec_enc_bits(&enc,i,ftb); in main()
95 nbits2=ec_tell(&enc); in main()
103 nbits=ec_tell_frac(&enc); in main()
104 ec_enc_done(&enc); in main()
108 fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc)); in main()
141 ec_enc_init(&enc,ptr,2); in main()
[all …]
/external/libdrm/tests/amdgpu/
Dvce_tests.c76 static struct amdgpu_vce_encode enc; variable
120 memset(&enc, 0, sizeof(struct amdgpu_vce_encode)); in suite_vce_tests_init()
239 enc.width = vce_create[6]; in amdgpu_cs_vce_create()
240 enc.height = vce_create[7]; in amdgpu_cs_vce_create()
243 alloc_resource(&enc.fb[0], 4096, AMDGPU_GEM_DOMAIN_GTT); in amdgpu_cs_vce_create()
244 resources[num_resources++] = enc.fb[0].handle; in amdgpu_cs_vce_create()
255 ib_cpu[len + 2] = enc.fb[0].addr >> 32; in amdgpu_cs_vce_create()
256 ib_cpu[len + 3] = enc.fb[0].addr; in amdgpu_cs_vce_create()
262 free_resource(&enc.fb[0]); in amdgpu_cs_vce_create()
290 static void amdgpu_cs_vce_encode_idr(struct amdgpu_vce_encode *enc) in amdgpu_cs_vce_encode_idr() argument
[all …]

12345678910>>...18