Exemple #1
0
        // Port AC: Changed return type from int to vpx_codec_err_t.
        public static vpx_codec_err_t vp8_create_decoder_instances(frame_buffers fb, VP8D_CONFIG oxcf)
        {
            /* decoder instance for single thread mode */
            fb.pbi[0] = create_decompressor(oxcf);
            if (fb.pbi[0] == null)
            {
                return(vpx_codec_err_t.VPX_CODEC_ERROR);
            }

            return(vpx_codec_err_t.VPX_CODEC_OK);
        }
Exemple #2
0
        public static vpx_codec_err_t vp8_remove_decoder_instances(frame_buffers fb)
        {
            VP8D_COMP pbi = fb.pbi[0];

            if (pbi != null)
            {
                return(vpx_codec_err_t.VPX_CODEC_ERROR);
            }

            /* decoder instance for single thread mode */
            remove_decompressor(pbi);
            return(vpx_codec_err_t.VPX_CODEC_OK);
        }