Lines Matching refs:codec
18 // You must inform the codec that you might request postprocessing at
20 // flag to `vpx_codec_dec_init`. If the codec does not support
23 // the codec does not provide support.
30 // special value 0 indicates that the codec should take as long as
32 // codec 15ms (15000us) to return a frame. Remember that this is a soft
33 // deadline, and the codec may exceed it doing its regular processing. In
65 vpx_codec_ctx_t codec;
87 die("Unknown input codec.");
91 res = vpx_codec_dec_init(&codec, decoder->interface(), NULL,
94 die_codec(&codec, "Postproc not supported by this decoder.");
97 die_codec(&codec, "Failed to initialize decoder.");
111 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp))
112 die_codec(&codec, "Failed to turn off postproc.");
116 if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp))
117 die_codec(&codec, "Failed to turn on postproc.");
121 if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 15000))
122 die_codec(&codec, "Failed to decode frame");
124 while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) {
130 if (vpx_codec_destroy(&codec))
131 die_codec(&codec, "Failed to destroy codec");