Home
last modified time | relevance | path

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

1234567

/external/lzma/CPP/7zip/Compress/
DCodecExports.cpp56 const CCodecInfo &codec = *g_Codecs[i]; in FindCodecClassId() local
57 if (id != codec.Id || encode && !codec.CreateEncoder || !encode && !codec.CreateDecoder) in FindCodecClassId()
59 if (!isFilter && codec.IsFilter || isFilter && !codec.IsFilter || in FindCodecClassId()
60 codec.NumInStreams != 1 && !isCoder2 || codec.NumInStreams == 1 && isCoder2) in FindCodecClassId()
75 const CCodecInfo &codec = *g_Codecs[index]; in CreateCoder2() local
76 if (!isFilter && codec.IsFilter || isFilter && !codec.IsFilter || in CreateCoder2()
77 codec.NumInStreams != 1 && !isCoder2 || codec.NumInStreams == 1 && isCoder2) in CreateCoder2()
81 if (!codec.CreateEncoder) in CreateCoder2()
83 *outObject = codec.CreateEncoder(); in CreateCoder2()
87 if (!codec.CreateDecoder) in CreateCoder2()
[all …]
/external/lzma/CPP/7zip/Common/
DCreateCoder.cpp97 const CCodecInfo &codec = *g_Codecs[i]; in FindMethod() local
98 if (name.CompareNoCase(codec.Name) == 0) in FindMethod()
100 methodId = codec.Id; in FindMethod()
101 numInStreams = codec.NumInStreams; in FindMethod()
110 const CCodecInfoEx &codec = (*externalCodecs)[i]; in FindMethod() local
111 if (codec.Name.CompareNoCase(name) == 0) in FindMethod()
113 methodId = codec.Id; in FindMethod()
114 numInStreams = codec.NumInStreams; in FindMethod()
115 numOutStreams = codec.NumOutStreams; in FindMethod()
132 const CCodecInfo &codec = *g_Codecs[i]; in FindMethod() local
[all …]
/external/skia/gyp/
Dcodec.gyp10 # GYP file for codec project.
14 'target_name': 'codec',
29 '../include/codec',
30 '../src/codec',
34 '../src/codec/SkCodec.cpp',
35 '../src/codec/SkCodec_libbmp.cpp',
36 '../src/codec/SkCodec_libgif.cpp',
37 '../src/codec/SkCodec_libico.cpp',
38 '../src/codec/SkCodec_libpng.cpp',
39 '../src/codec/SkCodec_wbmp.cpp',
[all …]
/external/libvpx/libvpx/examples/
Dset_maps.c65 vpx_codec_ctx_t *codec) { in set_roi_map() argument
92 if (vpx_codec_control(codec, VP8E_SET_ROI_MAP, &roi)) in set_roi_map()
93 die_codec(codec, "Failed to set ROI map"); in set_roi_map()
99 vpx_codec_ctx_t *codec) { in set_active_map() argument
110 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map)) in set_active_map()
111 die_codec(codec, "Failed to set active map"); in set_active_map()
117 vpx_codec_ctx_t *codec) { in unset_active_map() argument
124 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map)) in unset_active_map()
125 die_codec(codec, "Failed to set active map"); in unset_active_map()
128 static int encode_frame(vpx_codec_ctx_t *codec, in encode_frame() argument
[all …]
Dpostproc.c63 vpx_codec_ctx_t codec; in main() local
89 res = vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, in main()
92 die_codec(&codec, "Postproc not supported by this decoder."); in main()
95 die_codec(&codec, "Failed to initialize decoder."); in main()
109 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) in main()
110 die_codec(&codec, "Failed to turn off postproc."); in main()
114 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) in main()
115 die_codec(&codec, "Failed to turn on postproc."); in main()
119 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 15000)) in main()
120 die_codec(&codec, "Failed to decode frame"); in main()
[all …]
Dvp9_lossless_encoder.c30 static int encode_frame(vpx_codec_ctx_t *codec, in encode_frame() argument
38 const vpx_codec_err_t res = vpx_codec_encode(codec, img, frame_index, 1, in encode_frame()
41 die_codec(codec, "Failed to encode frame"); in encode_frame()
43 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
52 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
64 vpx_codec_ctx_t codec; in main() local
105 die_codec(&codec, "Failed to get default codec config."); in main()
119 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
120 die_codec(&codec, "Failed to initialize encoder"); in main()
122 if (vpx_codec_control_(&codec, VP9E_SET_LOSSLESS, 1)) in main()
[all …]
Dvp8cx_set_ref.c67 static int encode_frame(vpx_codec_ctx_t *codec, in encode_frame() argument
74 const vpx_codec_err_t res = vpx_codec_encode(codec, img, frame_index, 1, 0, in encode_frame()
77 die_codec(codec, "Failed to encode frame"); in encode_frame()
79 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
88 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
101 vpx_codec_ctx_t codec = {0}; in main() local
149 die_codec(&codec, "Failed to get default codec config."); in main()
164 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
165 die_codec(&codec, "Failed to initialize encoder"); in main()
173 if (vpx_codec_control(&codec, VP8_SET_REFERENCE, &ref)) in main()
[all …]
Dtwopass_encoder.c133 vpx_codec_ctx_t codec; in pass0() local
137 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), cfg, 0)) in pass0()
138 die_codec(&codec, "Failed to initialize encoder"); in pass0()
143 get_frame_stats(&codec, raw, frame_count, 1, 0, VPX_DL_GOOD_QUALITY, in pass0()
148 while (get_frame_stats(&codec, NULL, frame_count, 1, 0, in pass0()
152 if (vpx_codec_destroy(&codec)) in pass0()
153 die_codec(&codec, "Failed to destroy codec."); in pass0()
170 vpx_codec_ctx_t codec; in pass1() local
177 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), cfg, 0)) in pass1()
178 die_codec(&codec, "Failed to initialize encoder"); in pass1()
[all …]
Dsimple_encoder.c118 static int encode_frame(vpx_codec_ctx_t *codec, in encode_frame() argument
126 const vpx_codec_err_t res = vpx_codec_encode(codec, img, frame_index, 1, in encode_frame()
129 die_codec(codec, "Failed to encode frame"); in encode_frame()
131 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
140 die_codec(codec, "Failed to write compressed frame"); in encode_frame()
152 vpx_codec_ctx_t codec; in main() local
215 die_codec(&codec, "Failed to get default codec config."); in main()
231 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
232 die_codec(&codec, "Failed to initialize encoder"); in main()
239 encode_frame(&codec, &raw, frame_count++, flags, writer); in main()
[all …]
Dsimple_decoder.c99 vpx_codec_ctx_t codec; in main() local
124 if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0)) in main()
125 die_codec(&codec, "Failed to initialize decoder."); in main()
133 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 0)) in main()
134 die_codec(&codec, "Failed to decode frame."); in main()
136 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main()
143 if (vpx_codec_destroy(&codec)) in main()
144 die_codec(&codec, "Failed to destroy codec"); in main()
Ddecode_with_drops.c76 vpx_codec_ctx_t codec; in main() local
111 if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0)) in main()
112 die_codec(&codec, "Failed to initialize decoder."); in main()
121 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 0)) in main()
122 die_codec(&codec, "Failed to decode frame."); in main()
132 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) in main()
142 if (vpx_codec_destroy(&codec)) in main()
143 die_codec(&codec, "Failed to destroy codec."); in main()
Ddecode_to_md5.c82 vpx_codec_ctx_t codec; in main() local
107 if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0)) in main()
108 die_codec(&codec, "Failed to initialize decoder"); in main()
116 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 0)) in main()
117 die_codec(&codec, "Failed to decode frame"); in main()
119 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) { in main()
130 if (vpx_codec_destroy(&codec)) in main()
131 die_codec(&codec, "Failed to destroy codec."); in main()
Dvpx_temporal_svc_encoder.c468 vpx_codec_ctx_t codec; in main() local
677 &codec, encoder->codec_interface(), &cfg, in main()
680 if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0)) in main()
682 die_codec(&codec, "Failed to initialize encoder"); in main()
685 vpx_codec_control(&codec, VP8E_SET_CPUUSED, -speed); in main()
686 vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, kDenoiserOff); in main()
687 vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0); in main()
690 vpx_codec_control(&codec, VP8E_SET_CPUUSED, speed); in main()
691 vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3); in main()
692 vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); in main()
[all …]
Dvp8_multi_resolution_encoder.c325 vpx_codec_ctx_t codec[NUM_ENCODERS]; in main() local
537 if(vpx_codec_enc_init_multi(&codec[0], interface, &cfg[0], NUM_ENCODERS, in main()
539 die_codec(&codec[0], "Failed to initialize encoder"); in main()
548 if(vpx_codec_control(&codec[i], VP8E_SET_CPUUSED, speed)) in main()
549 die_codec(&codec[i], "Failed to set cpu_used"); in main()
555 if(vpx_codec_control(&codec[i], VP8E_SET_STATIC_THRESHOLD, 1)) in main()
556 die_codec(&codec[i], "Failed to set static threshold"); in main()
561 if(vpx_codec_control(&codec[0], VP8E_SET_NOISE_SENSITIVITY, 1)) in main()
562 die_codec(&codec[0], "Failed to set noise_sensitivity"); in main()
565 if(vpx_codec_control(&codec[i], VP8E_SET_NOISE_SENSITIVITY, 0)) in main()
[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 …]
/external/tinycompress/
Dcplay.c129 int check_codec_format_supported(unsigned int card, unsigned int device, struct snd_codec *codec) in check_codec_format_supported() argument
131 if (is_codec_supported(card, device, COMPRESS_IN, codec) == false) { in check_codec_format_supported()
203 struct snd_codec codec; in play_samples() local
226 codec.id = SND_AUDIOCODEC_MP3; in play_samples()
227 codec.ch_in = channels; in play_samples()
228 codec.ch_out = channels; in play_samples()
229 codec.sample_rate = rate; in play_samples()
230 if (!codec.sample_rate) { in play_samples()
235 codec.bit_rate = bits; in play_samples()
236 codec.rate_control = 0; in play_samples()
[all …]
/external/skia/tests/
DCodexTest.cpp39 SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.detach())); in check() local
40 if (!codec) { in check()
49 SkImageInfo info = codec->getInfo().makeColorType(kN32_SkColorType); in check()
55 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL); in check()
64 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL); in check()
71 SkScanlineDecoder* scanlineDecoder = codec->getScanlineDecoder(info); in check()
131 SkCodec* codec = SkCodec::NewFromStream(new SkMemoryStream(stream, len, false)); in test_invalid_stream() local
133 REPORTER_ASSERT(r, !codec); in test_invalid_stream()
166 SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.detach())); in test_dimensions() local
167 if (!codec) { in test_dimensions()
[all …]
/external/skia/bench/
DCodecBench.cpp36 SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); in CodecBench() local
37 SkASSERT(codec); in CodecBench()
50 SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); in onPreDraw() local
52 fInfo = codec->getInfo().makeColorType(fColorType); in onPreDraw()
66 SkAutoTDelete<SkCodec> codec; in onDraw() local
71 codec.reset(SkCodec::NewFromData(fData)); in onDraw()
75 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), in onDraw()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DNettyHttpClient.java32 import io.netty.handler.codec.http.DefaultFullHttpRequest;
33 import io.netty.handler.codec.http.HttpClientCodec;
34 import io.netty.handler.codec.http.HttpContent;
35 import io.netty.handler.codec.http.HttpContentDecompressor;
36 import io.netty.handler.codec.http.HttpHeaders;
37 import io.netty.handler.codec.http.HttpMethod;
38 import io.netty.handler.codec.http.HttpObject;
39 import io.netty.handler.codec.http.HttpRequest;
40 import io.netty.handler.codec.http.HttpResponse;
41 import io.netty.handler.codec.http.HttpVersion;
[all …]
/external/skia/gm/
Dcmykjpeg.cpp36 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); in onOnceBeforeDraw() local
37 if (codec) { in onOnceBeforeDraw()
39 codec->setDitherImage(dither); in onOnceBeforeDraw()
40 codec->decode(&stream, &fBitmap, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in onOnceBeforeDraw()
41 SkDELETE(codec); in onOnceBeforeDraw()
/external/skia/src/images/
DSkImageDecoder_FactoryRegistrar.cpp22 SkImageDecoder* codec = NULL; in image_decoder_from_stream() local
25 codec = curr->factory()(stream); in image_decoder_from_stream()
34 SkDELETE(codec); in image_decoder_from_stream()
38 if (codec) { in image_decoder_from_stream()
39 return codec; in image_decoder_from_stream()
/external/libvpx/libvpx/
Dusage.dox3 The vpx multi-format codec SDK provides a unified interface amongst its
7 For codec-specific details, see the \ref codecs page.
29 codec may write into to store details about a single instance of that codec.
35 Most operations require an initialized codec context. Codec context
36 instances are codec specific. That is, the codec to be used for the encoded
41 A codec interface is an opaque structure that controls how function calls
42 into the generic interface are dispatched to their codec-specific
47 Each supported codec will expose an interface structure to the application
52 Several "features" are defined that are optionally implemented by codec
67 To initialize a codec instance, the address of the codec context
[all …]
/external/apache-http/src/org/apache/commons/codec/net/
DBCodec.java17 package org.apache.commons.codec.net;
20 import org.apache.commons.codec.DecoderException;
21 import org.apache.commons.codec.EncoderException;
22 import org.apache.commons.codec.StringDecoder;
23 import org.apache.commons.codec.StringEncoder;
24 import org.apache.commons.codec.binary.Base64;
/external/skia/src/codec/
DSkCodec.cpp40 SkAutoTDelete<SkCodec> codec(NULL); in NewFromStream() local
48 codec.reset(proc.NewFromStream(streamDeleter.detach())); in NewFromStream()
57 if (codec && codec->getInfo().width() * codec->getInfo().height() > maxSize) { in NewFromStream()
61 return codec.detach(); in NewFromStream()
/external/skia/include/core/
DSkImageEncoder.h85 #define DECLARE_ENCODER_CREATOR(codec) \ argument
86 SkImageEncoder *Create ## codec ();
90 #define DEFINE_ENCODER_CREATOR(codec) \ argument
91 SkImageEncoder *Create ## codec () { \
92 return SkNEW( Sk ## codec ); \

1234567