Home
last modified time | relevance | path

Searched refs:codec (Results 1 – 25 of 1067) sorted by relevance

12345678910>>...43

/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
119 codecs.emplace(SpvOpImageSampleExplicitLod, std::move(codec));
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
182 codecs.emplace(SpvOpFDiv, std::move(codec));
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
209 codecs.emplace(SpvOpSampledImage, std::move(codec));
213 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(67, {
284 codecs.emplace(SpvOpFMul, std::move(codec));
288 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(79, {
371 codecs.emplace(SpvOpFAdd, std::move(codec));
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
119 codecs.emplace(SpvOpImageSampleExplicitLod, std::move(codec));
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
182 codecs.emplace(SpvOpFDiv, std::move(codec));
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
209 codecs.emplace(SpvOpSampledImage, std::move(codec));
213 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(67, {
284 codecs.emplace(SpvOpFMul, std::move(codec));
288 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(79, {
371 codecs.emplace(SpvOpFAdd, std::move(codec));
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DFieldCodecTest.cs68 public void RoundTripWithTag(ICodecTestData codec) in RoundTripWithTag() argument
70 codec.TestRoundTripWithTag(); in RoundTripWithTag()
74 public void RoundTripRaw(ICodecTestData codec) in RoundTripRaw() argument
76 codec.TestRoundTripRaw(); in RoundTripRaw()
80 public void CalculateSize(ICodecTestData codec) in CalculateSize() argument
82 codec.TestCalculateSizeWithTag(); in CalculateSize()
86 public void DefaultValue(ICodecTestData codec) in DefaultValue() argument
88 codec.TestDefaultValue(); in DefaultValue()
92 public void FixedSize(ICodecTestData codec) in FixedSize() argument
94 codec.TestFixedSize(); in FixedSize()
[all …]
/external/lzma/CPP/7zip/Common/
DCreateCoder.cpp161 const CCodecInfo &codec = *g_Codecs[i]; in FindMethod_Index() local
162 if ((encode ? codec.CreateEncoder : codec.CreateDecoder) in FindMethod_Index()
163 && StringsAreEqualNoCase_Ascii(name, codec.Name)) in FindMethod_Index()
165 methodId = codec.Id; in FindMethod_Index()
166 numStreams = codec.NumStreams; in FindMethod_Index()
178 const CCodecInfoEx &codec = __externalCodecs->Codecs[i]; in FindMethod_Index() local
179 if ((encode ? codec.EncoderIsAssigned : codec.DecoderIsAssigned) in FindMethod_Index()
180 && StringsAreEqualNoCase_Ascii(name, codec.Name)) in FindMethod_Index()
182 methodId = codec.Id; in FindMethod_Index()
183 numStreams = codec.NumStreams; in FindMethod_Index()
[all …]
/external/libaom/libaom/examples/
Dscalable_encoder.c93 static int encode_frame(aom_codec_ctx_t *codec, aom_image_t *img, in encode_frame() argument
99 aom_codec_encode(codec, img, frame_index, 1, flags); in encode_frame()
100 if (res != AOM_CODEC_OK) die_codec(codec, "Failed to encode frame"); in encode_frame()
102 while ((pkt = aom_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
109 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
123 aom_codec_ctx_t codec; in main() local
190 if (res) die_codec(&codec, "Failed to get default codec config."); in main()
210 if (aom_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
211 die_codec(&codec, "Failed to initialize encoder"); in main()
212 if (aom_codec_control(&codec, AOME_SET_CPUUSED, 8)) in main()
[all …]
Dlightfield_tile_list_decoder.c50 static void write_tile_yuv1d(aom_codec_ctx_t *codec, const aom_image_t *img, in write_tile_yuv1d() argument
54 if (aom_codec_control(codec, AV1D_GET_TILE_SIZE, &tile_size)) in write_tile_yuv1d()
55 die_codec(codec, "Failed to get the tile size"); in write_tile_yuv1d()
61 if (aom_codec_control(codec, AV1D_GET_TILE_COUNT, &tile_count)) in write_tile_yuv1d()
62 die_codec(codec, "Failed to get the tile size"); in write_tile_yuv1d()
101 aom_codec_ctx_t codec; in main() local
136 if (aom_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0)) in main()
137 die_codec(&codec, "Failed to initialize decoder."); in main()
139 if (aom_codec_control(&codec, AV1D_SET_IS_ANNEXB, info->is_annexb)) { in main()
144 aom_codec_control_(&codec, AV1_SET_TILE_MODE, 0); in main()
[all …]
Dlightfield_bitstream_parsing.c100 const size_t *frame_sizes, aom_codec_ctx_t *codec, in process_tile_list() argument
151 aom_codec_control_(codec, AV1_SET_DECODE_TILE_ROW, tr); in process_tile_list()
152 aom_codec_control_(codec, AV1_SET_DECODE_TILE_COL, tc); in process_tile_list()
155 aom_codec_decode(codec, frame, frame_size, NULL); in process_tile_list()
156 if (aom_status) die_codec(codec, "Failed to decode tile."); in process_tile_list()
158 aom_codec_control_(codec, AV1D_GET_TILE_DATA, &tile_data); in process_tile_list()
185 die_codec(codec, "Failed to encode the tile list obu size."); in process_tile_list()
191 die_codec(codec, "Failed to copy compressed tile list."); in process_tile_list()
195 aom_codec_ctx_t codec; in main() local
227 if (aom_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0)) in main()
[all …]
Dlightfield_encoder.c135 aom_codec_ctx_t codec; in pass0() local
143 if (aom_codec_enc_init(&codec, encoder->codec_interface(), cfg, flags)) in pass0()
144 die_codec(&codec, "Failed to initialize encoder"); in pass0()
145 if (aom_codec_control(&codec, AOME_SET_ENABLEAUTOALTREF, 0)) in pass0()
146 die_codec(&codec, "Failed to turn off auto altref"); in pass0()
147 if (aom_codec_control(&codec, AV1E_SET_FRAME_PARALLEL_DECODING, 0)) in pass0()
148 die_codec(&codec, "Failed to set frame parallel decoding"); in pass0()
180 get_frame_stats(&codec, frame_to_encode, frame_count, 1, in pass0()
190 if (aom_codec_control(&codec, AV1E_SET_FRAME_PARALLEL_DECODING, 1)) in pass0()
191 die_codec(&codec, "Failed to set frame parallel decoding"); in pass0()
[all …]
Dlightfield_decoder.c93 void decode_tile(aom_codec_ctx_t *codec, const unsigned char *frame, in decode_tile() argument
98 aom_codec_control_(codec, AV1_SET_TILE_MODE, 1); in decode_tile()
99 aom_codec_control_(codec, AV1D_EXT_TILE_DEBUG, 1); in decode_tile()
100 aom_codec_control_(codec, AV1_SET_DECODE_TILE_ROW, tr); in decode_tile()
101 aom_codec_control_(codec, AV1_SET_DECODE_TILE_COL, tc); in decode_tile()
107 if (aom_codec_control(codec, AV1_SET_REFERENCE, &ref)) { in decode_tile()
108 die_codec(codec, "Failed to set reference frame."); in decode_tile()
111 aom_codec_err_t aom_status = aom_codec_decode(codec, frame, frame_size, NULL); in decode_tile()
112 if (aom_status) die_codec(codec, "Failed to decode tile."); in decode_tile()
115 aom_image_t *img = aom_codec_get_frame(codec, &iter); in decode_tile()
[all …]
Dset_maps.c64 aom_codec_ctx_t *codec) { in set_active_map() argument
74 if (aom_codec_control(codec, AOME_SET_ACTIVEMAP, &map)) in set_active_map()
75 die_codec(codec, "Failed to set active map"); in set_active_map()
81 aom_codec_ctx_t *codec) { in unset_active_map() argument
88 if (aom_codec_control(codec, AOME_SET_ACTIVEMAP, &map)) in unset_active_map()
89 die_codec(codec, "Failed to set active map"); in unset_active_map()
92 static int encode_frame(aom_codec_ctx_t *codec, aom_image_t *img, in encode_frame() argument
97 const aom_codec_err_t res = aom_codec_encode(codec, img, frame_index, 1, 0); in encode_frame()
98 if (res != AOM_CODEC_OK) die_codec(codec, "Failed to encode frame"); in encode_frame()
100 while ((pkt = aom_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
[all …]
/external/skia/tests/
DCodecTest.cpp90 static void test_info(skiatest::Reporter* r, Codec* codec, const SkImageInfo& info, in test_info() argument
95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
115 static void test_incremental_decode(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_incremental_decode() argument
120 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
123 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->incrementalDecode()); in test_incremental_decode()
129 static void test_in_stripes(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_in_stripes() argument
154 if (SkCodec::kSuccess != codec->startIncrementalDecode(info, bm.getAddr(0, y), in test_in_stripes()
160 if (SkCodec::kSuccess != codec->incrementalDecode()) { in test_in_stripes()
171 static void test_codec(skiatest::Reporter* r, const char* path, Codec* codec, SkBitmap& bm, in test_codec() argument
178 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
[all …]
/external/skqp/tests/
DCodecTest.cpp90 static void test_info(skiatest::Reporter* r, Codec* codec, const SkImageInfo& info, in test_info() argument
95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
115 static void test_incremental_decode(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_incremental_decode() argument
120 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
123 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->incrementalDecode()); in test_incremental_decode()
129 static void test_in_stripes(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_in_stripes() argument
154 if (SkCodec::kSuccess != codec->startIncrementalDecode(info, bm.getAddr(0, y), in test_in_stripes()
160 if (SkCodec::kSuccess != codec->incrementalDecode()) { in test_in_stripes()
171 static void test_codec(skiatest::Reporter* r, const char* path, Codec* codec, SkBitmap& bm, in test_codec() argument
178 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
[all …]
/external/adhd/cras/src/common/
Dcras_sbc_codec.c25 int cras_sbc_decode(struct cras_audio_codec *codec, const void *input, in cras_sbc_decode() argument
28 struct cras_sbc_data *data = (struct cras_sbc_data *)codec->priv_data; in cras_sbc_decode()
54 int cras_sbc_encode(struct cras_audio_codec *codec, const void *input, in cras_sbc_encode() argument
57 struct cras_sbc_data *data = (struct cras_sbc_data *)codec->priv_data; in cras_sbc_encode()
84 int cras_sbc_get_codesize(struct cras_audio_codec *codec) in cras_sbc_get_codesize() argument
86 struct cras_sbc_data *data = (struct cras_sbc_data *)codec->priv_data; in cras_sbc_get_codesize()
90 int cras_sbc_get_frame_length(struct cras_audio_codec *codec) in cras_sbc_get_frame_length() argument
92 struct cras_sbc_data *data = (struct cras_sbc_data *)codec->priv_data; in cras_sbc_get_frame_length()
99 struct cras_audio_codec *codec; in cras_sbc_codec_create() local
102 codec = (struct cras_audio_codec *)calloc(1, sizeof(*codec)); in cras_sbc_codec_create()
[all …]
/external/lzma/CPP/7zip/Compress/
DCodecExports.cpp68 const CCodecInfo &codec = *g_Codecs[i]; in FindCodecClassId() local
70 if (id != codec.Id in FindCodecClassId()
71 || (encode ? !codec.CreateEncoder : !codec.CreateDecoder) in FindCodecClassId()
72 || (isFilter ? !codec.IsFilter : codec.IsFilter)) in FindCodecClassId()
75 if (codec.NumStreams == 1 ? isCoder2 : !isCoder2) in FindCodecClassId()
89 const CCodecInfo &codec = *g_Codecs[index]; in CreateCoderMain() local
93 c = codec.CreateEncoder(); in CreateCoderMain()
95 c = codec.CreateDecoder(); in CreateCoderMain()
100 if (codec.IsFilter) in CreateCoderMain()
102 else if (codec.NumStreams != 1) in CreateCoderMain()
[all …]
/external/skqp/src/codec/
DSkSampledCodec.cpp16 SkSampledCodec::SkSampledCodec(SkCodec* codec, ExifOrientationBehavior behavior) in SkSampledCodec() argument
17 : INHERITED(codec, behavior) in SkSampledCodec()
21 SkISize preSampledSize = this->codec()->dimensions(); in accountForNativeScaling()
30 if (this->codec()->getEncodedFormat() == SkEncodedImageFormat::kJPEG) { in accountForNativeScaling()
38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling()
53 preSampledSize = this->codec()->getScaledDimensions(scale); in accountForNativeScaling()
81 if (!subset || subset->size() == this->codec()->dimensions()) { in onGetAndroidPixels()
82 if (this->codec()->dimensionsSupported(info.dimensions())) { in onGetAndroidPixels()
83 return this->codec()->getPixels(info, pixels, rowBytes, &codecOptions); in onGetAndroidPixels()
93 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels()
[all …]
/external/skia/src/codec/
DSkSampledCodec.cpp16 SkSampledCodec::SkSampledCodec(SkCodec* codec, ExifOrientationBehavior behavior) in SkSampledCodec() argument
17 : INHERITED(codec, behavior) in SkSampledCodec()
21 SkISize preSampledSize = this->codec()->dimensions(); in accountForNativeScaling()
30 if (this->codec()->getEncodedFormat() == SkEncodedImageFormat::kJPEG) { in accountForNativeScaling()
38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling()
53 preSampledSize = this->codec()->getScaledDimensions(scale); in accountForNativeScaling()
81 if (!subset || subset->size() == this->codec()->dimensions()) { in onGetAndroidPixels()
82 if (this->codec()->dimensionsSupported(info.dimensions())) { in onGetAndroidPixels()
83 return this->codec()->getPixels(info, pixels, rowBytes, &codecOptions); in onGetAndroidPixels()
93 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels()
[all …]
/external/webrtc/webrtc/video/
Dvideo_receive_stream.cc109 VideoCodec codec; in CreateDecoderVideoCodec() local
110 memset(&codec, 0, sizeof(codec)); in CreateDecoderVideoCodec()
112 codec.plType = decoder.payload_type; in CreateDecoderVideoCodec()
113 strncpy(codec.plName, decoder.payload_name.c_str(), sizeof(codec.plName)); in CreateDecoderVideoCodec()
115 codec.codecType = kVideoCodecVP8; in CreateDecoderVideoCodec()
117 codec.codecType = kVideoCodecVP9; in CreateDecoderVideoCodec()
119 codec.codecType = kVideoCodecH264; in CreateDecoderVideoCodec()
121 codec.codecType = kVideoCodecGeneric; in CreateDecoderVideoCodec()
124 if (codec.codecType == kVideoCodecVP8) { in CreateDecoderVideoCodec()
125 codec.codecSpecific.VP8 = VideoEncoder::GetDefaultVp8Settings(); in CreateDecoderVideoCodec()
[all …]
/external/libvpx/libvpx/examples/
Dset_maps.c64 vpx_codec_ctx_t *codec) { in set_roi_map() argument
90 if (vpx_codec_control(codec, VP8E_SET_ROI_MAP, &roi)) in set_roi_map()
91 die_codec(codec, "Failed to set ROI map"); in set_roi_map()
97 vpx_codec_ctx_t *codec) { in set_active_map() argument
107 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map)) in set_active_map()
108 die_codec(codec, "Failed to set active map"); in set_active_map()
114 vpx_codec_ctx_t *codec) { in unset_active_map() argument
121 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map)) in unset_active_map()
122 die_codec(codec, "Failed to set active map"); in unset_active_map()
125 static int encode_frame(vpx_codec_ctx_t *codec, vpx_image_t *img, in encode_frame() argument
[all …]
/external/webrtc/webrtc/voice_engine/
Dvoe_codec_impl.cc54 int VoECodecImpl::GetCodec(int index, CodecInst& codec) { in GetCodec() argument
55 if (AudioCodingModule::Codec(index, &codec) == -1) { in GetCodec()
63 int VoECodecImpl::SetSendCodec(int channel, const CodecInst& codec) { in SetSendCodec() argument
69 codec.plname, codec.pacsize, codec.plfreq, codec.pltype, in SetSendCodec()
70 codec.channels, codec.rate); in SetSendCodec()
76 if ((STR_CASE_CMP(codec.plname, "L16") == 0) && (codec.pacsize >= 960)) { in SetSendCodec()
81 if (!STR_CASE_CMP(codec.plname, "CN") || in SetSendCodec()
82 !STR_CASE_CMP(codec.plname, "TELEPHONE-EVENT") || in SetSendCodec()
83 !STR_CASE_CMP(codec.plname, "RED")) { in SetSendCodec()
88 if ((codec.channels != 1) && (codec.channels != 2)) { in SetSendCodec()
[all …]
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c202 multibytecodec_encerror(MultibyteCodec *codec, in multibytecodec_encerror() argument
253 r = codec->encode(state, codec->config, in multibytecodec_encerror()
283 codec->encoding, buf->inobj, in multibytecodec_encerror()
315 retstr = multibytecodec_encode(codec, state, tobj, in multibytecodec_encerror()
357 multibytecodec_decerror(MultibyteCodec *codec, in multibytecodec_decerror() argument
407 buf->excobj = PyUnicodeDecodeError_Create(codec->encoding, in multibytecodec_decerror()
461 multibytecodec_encode(MultibyteCodec *codec, in multibytecodec_encode() argument
503 r = codec->encode(state, codec->config, in multibytecodec_encode()
509 else if (multibytecodec_encerror(codec, state, &buf, errors,r)) in multibytecodec_encode()
515 if (codec->encreset != NULL && (flags & MBENC_RESET)) in multibytecodec_encode()
[all …]
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c222 multibytecodec_encerror(MultibyteCodec *codec, in multibytecodec_encerror() argument
264 r = codec->encode(state, codec->config, &inbuf, 1, in multibytecodec_encerror()
289 buf->excobj = PyUnicodeEncodeError_Create(codec->encoding, in multibytecodec_encerror()
323 retstr = multibytecodec_encode(codec, state, &uraw, in multibytecodec_encerror()
360 multibytecodec_decerror(MultibyteCodec *codec, in multibytecodec_decerror() argument
408 buf->excobj = PyUnicodeDecodeError_Create(codec->encoding, in multibytecodec_decerror()
467 multibytecodec_encode(MultibyteCodec *codec, in multibytecodec_encode() argument
501 r = codec->encode(state, codec->config, &buf.inbuf, inleft, in multibytecodec_encode()
505 else if (multibytecodec_encerror(codec, state, &buf, errors,r)) in multibytecodec_encode()
511 if (codec->encreset != NULL && (flags & MBENC_RESET)) in multibytecodec_encode()
[all …]
/external/python/cpython3/Lib/encodings/
Deuc_jp.py10 codec = _codecs_jp.getcodec('euc_jp') variable
13 encode = codec.encode
14 decode = codec.decode
18 codec = codec variable in IncrementalEncoder
22 codec = codec variable in IncrementalDecoder
25 codec = codec variable in StreamReader
28 codec = codec variable in StreamWriter
Dshift_jisx0213.py10 codec = _codecs_jp.getcodec('shift_jisx0213') variable
13 encode = codec.encode
14 decode = codec.decode
18 codec = codec variable in IncrementalEncoder
22 codec = codec variable in IncrementalDecoder
25 codec = codec variable in StreamReader
28 codec = codec variable in StreamWriter
Diso2022_jp_3.py10 codec = _codecs_iso2022.getcodec('iso2022_jp_3') variable
13 encode = codec.encode
14 decode = codec.decode
18 codec = codec variable in IncrementalEncoder
22 codec = codec variable in IncrementalDecoder
25 codec = codec variable in StreamReader
28 codec = codec variable in StreamWriter
/external/python/cpython2/Lib/encodings/
Dcp950.py10 codec = _codecs_tw.getcodec('cp950') variable
13 encode = codec.encode
14 decode = codec.decode
18 codec = codec variable in IncrementalEncoder
22 codec = codec variable in IncrementalDecoder
25 codec = codec variable in StreamReader
28 codec = codec variable in StreamWriter

12345678910>>...43