Home
last modified time | relevance | path

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

12345678910>>...15

/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.apache.commons.codec_1.3.0.v20100518-1140.jar ... apache/commons/ org/apache/commons/codec/ org/apache/commons/codec/binary ...
/external/robolectric/v1/lib/main/
Dcommons-codec-1.6.jar ... apache/commons/ org/apache/commons/codec/ org/apache/commons/codec/binary ...
/external/owasp/sanitizer/lib/commons-codec-1.4/
Dcommons-codec-1.4.jar ... apache/commons/ org/apache/commons/codec/ org/apache/commons/codec/binary ...
/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/skia/tests/
DCodecTest.cpp71 static void test_info(skiatest::Reporter* r, Codec* codec, const SkImageInfo& info, in test_info() argument
77 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
97 static void test_incremental_decode(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_incremental_decode() argument
103 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
106 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->incrementalDecode()); in test_incremental_decode()
112 static void test_in_stripes(skiatest::Reporter* r, SkCodec* codec, const SkImageInfo& info, in test_in_stripes() argument
137 if (SkCodec::kSuccess != codec->startIncrementalDecode(info, bm.getAddr(0, y), in test_in_stripes()
143 if (SkCodec::kSuccess != codec->incrementalDecode()) { in test_in_stripes()
154 static void test_codec(skiatest::Reporter* r, Codec* codec, SkBitmap& bm, const SkImageInfo& info, in test_codec() argument
162 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
[all …]
DCodecPartialTest.cpp19 static SkImageInfo standardize_info(SkCodec* codec) { in standardize_info() argument
20 SkImageInfo defaultInfo = codec->getInfo(); in standardize_info()
27 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(std::move(data))); in create_truth() local
28 if (!codec) { in create_truth()
32 const SkImageInfo info = standardize_info(codec.get()); in create_truth()
34 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth()
149 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(file)); in DEF_TEST() local
150 if (!codec) { in DEF_TEST()
155 auto frameInfo = codec->getFrameInfo(); in DEF_TEST()
364 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(data)); in DEF_TEST() local
[all …]
DGifTest.cpp198 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(data)); in DEF_TEST() local
199 REPORTER_ASSERT(reporter, codec); in DEF_TEST()
200 if (codec) { in DEF_TEST()
201 auto info = codec->getInfo().makeColorType(kN32_SkColorType); in DEF_TEST()
204 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->startIncrementalDecode( in DEF_TEST()
206 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->incrementalDecode()); in DEF_TEST()
235 std::unique_ptr<SkAndroidCodec> codec(SkAndroidCodec::NewFromStream(stream.release())); in DEF_TEST() local
236 REPORTER_ASSERT(r, codec); in DEF_TEST()
237 if (!codec) { in DEF_TEST()
246 if (kIndex_8_SkColorType == codec->getInfo().colorType()) { in DEF_TEST()
[all …]
/external/lzma/CPP/7zip/Common/
DCreateCoder.cpp124 const CCodecInfo &codec = *g_Codecs[i]; in FindMethod() local
125 if (name.IsEqualToNoCase(codec.Name)) in FindMethod()
127 methodId = codec.Id; in FindMethod()
128 numInStreams = codec.NumInStreams; in FindMethod()
137 const CCodecInfoEx &codec = __externalCodecs->Codecs[i]; in FindMethod() local
138 if (codec.Name.IsEqualToNoCase(name)) in FindMethod()
140 methodId = codec.Id; in FindMethod()
141 numInStreams = codec.NumInStreams; in FindMethod()
142 numOutStreams = codec.NumOutStreams; in FindMethod()
156 const CCodecInfo &codec = *g_Codecs[i]; in FindMethod() local
[all …]
/external/lzma/CPP/7zip/Compress/
DCodecExports.cpp65 const CCodecInfo &codec = *g_Codecs[i]; in FindCodecClassId() local
66 if (id != codec.Id || encode && !codec.CreateEncoder || !encode && !codec.CreateDecoder) in FindCodecClassId()
68 if (!isFilter && codec.IsFilter || isFilter && !codec.IsFilter || in FindCodecClassId()
69 codec.NumInStreams != 1 && !isCoder2 || codec.NumInStreams == 1 && isCoder2) in FindCodecClassId()
84 const CCodecInfo &codec = *g_Codecs[index]; in CreateCoder2() local
85 if (!isFilter && codec.IsFilter || isFilter && !codec.IsFilter || in CreateCoder2()
86 codec.NumInStreams != 1 && !isCoder2 || codec.NumInStreams == 1 && isCoder2) in CreateCoder2()
90 if (!codec.CreateEncoder) in CreateCoder2()
92 *outObject = codec.CreateEncoder(); in CreateCoder2()
96 if (!codec.CreateDecoder) in CreateCoder2()
[all …]
/external/skia/src/codec/
DSkSampledCodec.cpp15 SkSampledCodec::SkSampledCodec(SkCodec* codec) in SkSampledCodec() argument
16 : INHERITED(codec) in SkSampledCodec()
20 SkISize preSampledSize = this->codec()->getInfo().dimensions(); in accountForNativeScaling()
29 if (this->codec()->getEncodedFormat() == SkEncodedImageFormat::kJPEG) { in accountForNativeScaling()
37 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling()
52 preSampledSize = this->codec()->getScaledDimensions(scale); in accountForNativeScaling()
81 if (!subset || subset->size() == this->codec()->getInfo().dimensions()) { in onGetAndroidPixels()
82 if (this->codec()->dimensionsSupported(info.dimensions())) { in onGetAndroidPixels()
83 return this->codec()->getPixels(info, pixels, rowBytes, &codecOptions, in onGetAndroidPixels()
94 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels()
[all …]
/external/libmojo/mojo/public/js/
Dvalidator.js7 ], function(codec) { argument
32 return cls === codec.String || cls === codec.NullableString;
36 return cls === codec.Handle || cls === codec.NullableHandle;
40 return cls === codec.Interface || cls === codec.NullableInterface;
44 return type === codec.NullableString || type === codec.NullableHandle ||
45 type === codec.NullableInterface ||
46 type instanceof codec.NullableArrayOf ||
47 type instanceof codec.NullablePointerTo;
90 if (index === codec.kEncodedInvalidHandleValue)
104 if (index === codec.kEncodedInvalidHandleValue)
[all …]
Dcodec_unittests.js11 ], function(expect, codec, rect, sample, structs) { argument
32 var builder = new codec.MessageBuilder(messageName, payloadSize);
55 var reader = new codec.MessageReader(message);
104 var builder = new codec.MessageBuilder(messageName, payloadSize);
129 var reader = new codec.MessageReader(message);
169 var builder = new codec.MessageBuilder(1, structs.NamedRegion.encodedSize);
171 var reader = new codec.MessageReader(builder.finish());
184 var builder = new codec.MessageBuilder(messageName, payloadSize);
188 var reader = new codec.MessageReader(message);
194 encodeDecode(codec.String, "banana", "banana", 24);
[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 …]
Dvideo_decoder_unittest.cc73 VideoCodec codec = {}; in TEST_F() local
74 fallback_wrapper_.InitDecode(&codec, 2); in TEST_F()
80 VideoCodec codec = {}; in TEST_F() local
81 fallback_wrapper_.InitDecode(&codec, 2); in TEST_F()
108 VideoCodec codec = {}; in TEST_F() local
109 fallback_wrapper_.InitDecode(&codec, 2); in TEST_F()
123 VideoCodec codec = {}; in TEST_F() local
124 fallback_wrapper_.InitDecode(&codec, 2); in TEST_F()
138 VideoCodec codec = {}; in TEST_F() local
139 fallback_wrapper_.InitDecode(&codec, 2); in TEST_F()
[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 …]
Dpostproc.c63 vpx_codec_ctx_t codec; in main() local
86 res = vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, in main()
89 die_codec(&codec, "Postproc not supported by this decoder."); in main()
91 if (res) die_codec(&codec, "Failed to initialize decoder."); in main()
105 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) in main()
106 die_codec(&codec, "Failed to turn off postproc."); in main()
110 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) in main()
111 die_codec(&codec, "Failed to turn on postproc."); in main()
115 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 15000)) in main()
116 die_codec(&codec, "Failed to decode frame"); in main()
[all …]
Dvp8cx_set_ref.c67 static int encode_frame(vpx_codec_ctx_t *codec, vpx_image_t *img, in encode_frame() argument
73 vpx_codec_encode(codec, img, frame_index, 1, 0, VPX_DL_GOOD_QUALITY); in encode_frame()
74 if (res != VPX_CODEC_OK) die_codec(codec, "Failed to encode frame"); in encode_frame()
76 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
84 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
97 vpx_codec_ctx_t codec; in main() local
109 vp8_zero(codec); in main()
143 if (res) die_codec(&codec, "Failed to get default codec config."); in main()
157 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
158 die_codec(&codec, "Failed to initialize encoder"); in main()
[all …]
Dvp9_lossless_encoder.c32 static int encode_frame(vpx_codec_ctx_t *codec, vpx_image_t *img, in encode_frame() argument
38 vpx_codec_encode(codec, img, frame_index, 1, flags, VPX_DL_GOOD_QUALITY); in encode_frame()
39 if (res != VPX_CODEC_OK) die_codec(codec, "Failed to encode frame"); in encode_frame()
41 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
49 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
61 vpx_codec_ctx_t codec; in main() local
99 if (res) die_codec(&codec, "Failed to get default codec config."); in main()
112 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
113 die_codec(&codec, "Failed to initialize encoder"); in main()
115 if (vpx_codec_control_(&codec, VP9E_SET_LOSSLESS, 1)) in main()
[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/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_receiver_unittest_oldapi.cc89 CodecInst codec = in InsertOnePacketOfSilence() local
92 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence()
96 if (!CodecsEqual(codec, *current_codec)) in InsertOnePacketOfSilence()
97 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence()
101 frame.sample_rate_hz_ = codec.plfreq; in InsertOnePacketOfSilence()
102 frame.samples_per_channel_ = codec.plfreq / 100; // 10 ms. in InsertOnePacketOfSilence()
103 frame.num_channels_ = codec.channels; in InsertOnePacketOfSilence()
252 const CodecIdInst codec(RentACodec::CodecId::kPCMA); in TEST_F() local
253 const int payload_type = codec.inst.pltype; in TEST_F()
255 0, receiver_->AddCodec(codec.id, codec.inst.pltype, codec.inst.channels, in TEST_F()
[all …]
Daudio_coding_module.cc45 int AudioCodingModule::Codec(int list_id, CodecInst* codec) { in Codec() argument
52 *codec = *ci; in Codec()
57 CodecInst* codec, in Codec() argument
63 *codec = *ci; in Codec()
68 codec->plname[0] = '\0'; in Codec()
69 codec->pltype = -1; in Codec()
70 codec->pacsize = 0; in Codec()
71 codec->rate = 0; in Codec()
72 codec->plfreq = 0; in Codec()
90 bool AudioCodingModule::IsCodecValid(const CodecInst& codec) { in IsCodecValid() argument
[all …]
/external/webrtc/talk/media/base/
Dvideoengine_unittest.h87 inline int TimeBetweenSend(const cricket::VideoCodec& codec) { in TimeBetweenSend() argument
89 cricket::VideoFormat::FpsToInterval(codec.framerate) / in TimeBetweenSend()
209 bool SetOneCodec(const cricket::VideoCodec& codec) { in SetOneCodec() argument
210 cricket::VideoFormat capture_format(codec.width, codec.height, in SetOneCodec()
211 cricket::VideoFormat::FpsToInterval(codec.framerate), in SetOneCodec()
225 parameters.codecs.push_back(codec); in SetOneCodec()
236 bool SetSendStreamFormat(uint32_t ssrc, const cricket::VideoCodec& codec) { in SetSendStreamFormat() argument
238 codec.width, codec.height, in SetSendStreamFormat()
239 cricket::VideoFormat::FpsToInterval(codec.framerate), in SetSendStreamFormat()
439 void Send(const cricket::VideoCodec& codec) { in Send() argument
[all …]
Dcodec_unittest.cc233 AudioCodec codec; in TEST_F() local
234 codec.SetParam("a", "1"); in TEST_F()
235 codec.SetParam("b", "x"); in TEST_F()
238 EXPECT_TRUE(codec.GetParam("a", &int_value)); in TEST_F()
240 EXPECT_FALSE(codec.GetParam("b", &int_value)); in TEST_F()
241 EXPECT_FALSE(codec.GetParam("c", &int_value)); in TEST_F()
244 EXPECT_TRUE(codec.GetParam("a", &str_value)); in TEST_F()
246 EXPECT_TRUE(codec.GetParam("b", &str_value)); in TEST_F()
248 EXPECT_FALSE(codec.GetParam("c", &str_value)); in TEST_F()
249 EXPECT_TRUE(codec.RemoveParam("a")); in TEST_F()
[all …]
/external/webrtc/talk/media/webrtc/
Dwebrtcvoiceengine.cc148 std::string ToString(const AudioCodec& codec) { in ToString() argument
150 ss << codec.name << "/" << codec.clockrate << "/" << codec.channels in ToString()
151 << " (" << codec.id << ")"; in ToString()
155 std::string ToString(const webrtc::CodecInst& codec) { in ToString() argument
157 ss << codec.plname << "/" << codec.plfreq << "/" << codec.channels in ToString()
158 << " (" << codec.pltype << ")"; in ToString()
162 bool IsCodec(const AudioCodec& codec, const char* ref_name) { in IsCodec() argument
163 return (_stricmp(codec.name.c_str(), ref_name) == 0); in IsCodec()
166 bool IsCodec(const webrtc::CodecInst& codec, const char* ref_name) { in IsCodec() argument
167 return (_stricmp(codec.plname, ref_name) == 0); in IsCodec()
[all …]
/external/libvpx/libvpx/test/
Dvpxenc.sh70 local readonly codec="${1:-vp8}"
71 echo "--codec=${codec}
122 --codec=vp8 \
139 --codec=vp8 \
169 --codec=vp8 \
188 --codec=vp8 \
206 --codec=vp8 \
222 --codec=vp9 \
239 --codec=vp9 \
327 --codec=vp9 \
[all …]

12345678910>>...15