/third_party/gstreamer/gstplugins_bad/gst-libs/gst/audio/ |
D | gstnonstreamaudiodecoder.c | 195 static void gst_nonstream_audio_decoder_init (GstNonstreamAudioDecoder * dec, 220 gst_nonstream_audio_decoder_set_initial_state (GstNonstreamAudioDecoder * dec); 222 * dec); 225 * dec); 228 gst_nonstream_audio_decoder_negotiate_default (GstNonstreamAudioDecoder * dec); 231 * dec, GstQuery * query); 234 * dec, GstQuery * query); 237 gst_nonstream_audio_decoder_get_upstream_size (GstNonstreamAudioDecoder * dec, 240 gst_nonstream_audio_decoder_load_from_buffer (GstNonstreamAudioDecoder * dec, 243 gst_nonstream_audio_decoder_load_from_custom (GstNonstreamAudioDecoder * dec); [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | radeon_vcn_dec_jpeg.c | 38 static struct pb_buffer *radeon_jpeg_get_decode_param(struct radeon_decoder *dec, in radeon_jpeg_get_decode_param() argument 46 dec->jpg.bsd_size = align(dec->bs_size, 128); in radeon_jpeg_get_decode_param() 47 dec->jpg.dt_luma_top_offset = luma->surface.u.gfx9.surf_offset; in radeon_jpeg_get_decode_param() 49 dec->jpg.dt_chroma_top_offset = chroma->surface.u.gfx9.surf_offset; in radeon_jpeg_get_decode_param() 50 dec->jpg.dt_pitch = luma->surface.u.gfx9.surf_pitch * luma->surface.blk_w; in radeon_jpeg_get_decode_param() 51 dec->jpg.dt_uv_pitch = dec->jpg.dt_pitch / 2; in radeon_jpeg_get_decode_param() 57 static void set_reg_jpeg(struct radeon_decoder *dec, unsigned reg, unsigned cond, unsigned type, in set_reg_jpeg() argument 60 radeon_emit(&dec->jcs[dec->cb_idx], RDECODE_PKTJ(reg, cond, type)); in set_reg_jpeg() 61 radeon_emit(&dec->jcs[dec->cb_idx], val); in set_reg_jpeg() 65 static void send_cmd_bitstream(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_bitstream() argument [all …]
|
D | radeon_uvd.c | 97 static int flush(struct ruvd_decoder *dec, unsigned flags) in flush() argument 99 return dec->ws->cs_flush(&dec->cs, flags, NULL); in flush() 103 static void set_reg(struct ruvd_decoder *dec, unsigned reg, uint32_t val) in set_reg() argument 105 radeon_emit(&dec->cs, RUVD_PKT0(reg >> 2, 0)); in set_reg() 106 radeon_emit(&dec->cs, val); in set_reg() 110 static void send_cmd(struct ruvd_decoder *dec, unsigned cmd, struct pb_buffer *buf, uint32_t off, in send_cmd() argument 115 reloc_idx = dec->ws->cs_add_buffer(&dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED, domain); in send_cmd() 116 if (!dec->use_legacy) { in send_cmd() 118 addr = dec->ws->buffer_get_virtual_address(buf); in send_cmd() 120 set_reg(dec, dec->reg.data0, addr); in send_cmd() [all …]
|
D | radeon_vcn_dec.c | 55 static unsigned calc_dpb_size(struct radeon_decoder *dec); 56 static unsigned calc_ctx_size_h264_perf(struct radeon_decoder *dec); 57 static unsigned calc_ctx_size_h265_main(struct radeon_decoder *dec); 58 static unsigned calc_ctx_size_h265_main10(struct radeon_decoder *dec, 66 static rvcn_dec_message_avc_t get_h264_msg(struct radeon_decoder *dec, in get_h264_msg() argument 94 result.level = dec->base.level; in get_h264_msg() 101 result.sps_info_flags |= ((dec->dpb_type == DPB_DYNAMIC_TIER_2) ? 0 : 1) in get_h264_msg() 110 switch (dec->base.chroma_format) { in get_h264_msg() 147 memcpy(dec->it, result.scaling_list_4x4, 6 * 16); in get_h264_msg() 148 memcpy((dec->it + 96), result.scaling_list_8x8, 2 * 64); in get_h264_msg() [all …]
|
/third_party/gstreamer/gstplugins_base/ext/opus/ |
D | gstopusdec.c | 101 static GstFlowReturn gst_opus_dec_parse_header (GstOpusDec * dec, 103 static gboolean gst_opus_dec_start (GstAudioDecoder * dec); 104 static gboolean gst_opus_dec_stop (GstAudioDecoder * dec); 105 static GstFlowReturn gst_opus_dec_handle_frame (GstAudioDecoder * dec, 113 static GstCaps *gst_opus_dec_getcaps (GstAudioDecoder * dec, GstCaps * filter); 191 gst_opus_dec_reset (GstOpusDec * dec) in gst_opus_dec_reset() argument 193 dec->packetno = 0; in gst_opus_dec_reset() 194 if (dec->state) { in gst_opus_dec_reset() 195 opus_multistream_decoder_destroy (dec->state); in gst_opus_dec_reset() 196 dec->state = NULL; in gst_opus_dec_reset() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/ |
D | gstaudiodecoder.c | 297 static void gst_audio_decoder_clear_queues (GstAudioDecoder * dec); 299 dec, GstBuffer * buf); 303 static gboolean gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, 305 static gboolean gst_audio_decoder_src_eventfunc (GstAudioDecoder * dec, 311 static gboolean gst_audio_decoder_sink_setcaps (GstAudioDecoder * dec, 319 static void gst_audio_decoder_reset (GstAudioDecoder * dec, gboolean full); 322 dec, GstQuery * query); 324 dec, GstQuery * query); 325 static gboolean gst_audio_decoder_negotiate_default (GstAudioDecoder * dec); 326 static gboolean gst_audio_decoder_negotiate_unlocked (GstAudioDecoder * dec); [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mpeg12_decoder.c | 120 get_video_buffer_private(struct vl_mpeg12_decoder *dec, struct pipe_video_buffer *buf) in get_video_buffer_private() argument 122 struct pipe_context *pipe = dec->context; in get_video_buffer_private() 128 priv = vl_video_buffer_get_associated_data(buf, &dec->base); in get_video_buffer_private() 134 list_add(&priv->list, &dec->buffer_privates); in get_video_buffer_private() 147 vl_video_buffer_set_associated_data(buf, &dec->base, priv, destroy_video_buffer_private); in get_video_buffer_private() 153 free_video_buffer_privates(struct vl_mpeg12_decoder *dec) in free_video_buffer_privates() argument 157 LIST_FOR_EACH_ENTRY_SAFE(priv, next, &dec->buffer_privates, list) { in free_video_buffer_privates() 160 vl_video_buffer_set_associated_data(buf, &dec->base, NULL, NULL); in free_video_buffer_privates() 165 init_zscan_buffer(struct vl_mpeg12_decoder *dec, struct vl_mpeg12_buffer *buffer) in init_zscan_buffer() argument 173 assert(dec && buffer); in init_zscan_buffer() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/dec/ |
D | frame_dec.c | 71 static void ReconstructRow(const VP8Decoder* const dec, in ReconstructRow() argument 77 uint8_t* const y_dst = dec->yuv_b_ + Y_OFF; in ReconstructRow() 78 uint8_t* const u_dst = dec->yuv_b_ + U_OFF; in ReconstructRow() 79 uint8_t* const v_dst = dec->yuv_b_ + V_OFF; in ReconstructRow() 102 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in ReconstructRow() 118 VP8TopSamples* const top_yuv = dec->yuv_t_ + mb_x; in ReconstructRow() 134 if (mb_x >= dec->mb_w_ - 1) { // on rightmost border in ReconstructRow() 169 if (mb_y < dec->mb_h_ - 1) { in ReconstructRow() 177 const int y_offset = cache_id * 16 * dec->cache_y_stride_; in ReconstructRow() 178 const int uv_offset = cache_id * 8 * dec->cache_uv_stride_; in ReconstructRow() [all …]
|
D | alpha_dec.c | 28 ALPHDecoder* const dec = (ALPHDecoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in ALPHNew() local 29 return dec; in ALPHNew() 33 static void ALPHDelete(ALPHDecoder* const dec) { in ALPHDelete() argument 34 if (dec != NULL) { in ALPHDelete() 35 VP8LDelete(dec->vp8l_dec_); in ALPHDelete() 36 dec->vp8l_dec_ = NULL; in ALPHDelete() 37 WebPSafeFree(dec); in ALPHDelete() 48 static int ALPHInit(ALPHDecoder* const dec, const uint8_t* data, in ALPHInit() argument 55 VP8Io* const io = &dec->io_; in ALPHInit() 60 dec->output_ = output; in ALPHInit() [all …]
|
D | vp8_dec.c | 42 static void SetOk(VP8Decoder* const dec) { in SetOk() argument 43 dec->status_ = VP8_STATUS_OK; in SetOk() 44 dec->error_msg_ = "OK"; in SetOk() 58 VP8Decoder* const dec = (VP8Decoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in VP8New() local 59 if (dec != NULL) { in VP8New() 60 SetOk(dec); in VP8New() 61 WebPGetWorkerInterface()->Init(&dec->worker_); in VP8New() 62 dec->ready_ = 0; in VP8New() 63 dec->num_parts_minus_one_ = 0; in VP8New() 66 return dec; in VP8New() [all …]
|
D | vp8l_dec.c | 106 VP8LDecoder* const dec, 249 VP8LDecoder* const dec, const int* const code_length_code_lengths, in ReadHuffmanCodeLengths() argument 252 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCodeLengths() 304 if (!ok) dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCodeLengths() 310 static int ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, in ReadHuffmanCode() argument 315 VP8LBitReader* const br = &dec->br_; in ReadHuffmanCode() 337 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCode() 344 ok = ReadHuffmanCodeLengths(dec, code_length_code_lengths, alphabet_size, in ReadHuffmanCode() 354 dec->status_ = VP8_STATUS_BITSTREAM_ERROR; in ReadHuffmanCode() 360 static int ReadHuffmanCodes(VP8LDecoder* const dec, int xsize, int ysize, in ReadHuffmanCodes() argument [all …]
|
/third_party/gstreamer/gstplugins_base/ext/theora/ |
D | gsttheoradec.c | 114 static GstFlowReturn theora_dec_decode_buffer (GstTheoraDec * dec, 201 gst_theora_dec_init (GstTheoraDec * dec) in gst_theora_dec_init() argument 203 dec->telemetry_mv = THEORA_DEF_TELEMETRY_MV; in gst_theora_dec_init() 204 dec->telemetry_mbmode = THEORA_DEF_TELEMETRY_MBMODE; in gst_theora_dec_init() 205 dec->telemetry_qi = THEORA_DEF_TELEMETRY_QI; in gst_theora_dec_init() 206 dec->telemetry_bits = THEORA_DEF_TELEMETRY_BITS; in gst_theora_dec_init() 210 gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE); in gst_theora_dec_init() 211 gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (dec), TRUE); in gst_theora_dec_init() 214 (dec), TRUE); in gst_theora_dec_init() 215 GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (dec)); in gst_theora_dec_init() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/speex/ |
D | gstspeexdec.c | 84 static gboolean gst_speex_dec_start (GstAudioDecoder * dec); 85 static gboolean gst_speex_dec_stop (GstAudioDecoder * dec); 88 static GstFlowReturn gst_speex_dec_handle_frame (GstAudioDecoder * dec, 132 gst_speex_dec_reset (GstSpeexDec * dec) in gst_speex_dec_reset() argument 134 dec->packetno = 0; in gst_speex_dec_reset() 135 dec->frame_size = 0; in gst_speex_dec_reset() 136 dec->frame_duration = 0; in gst_speex_dec_reset() 137 dec->mode = NULL; in gst_speex_dec_reset() 138 speex_header_free (dec->header); in gst_speex_dec_reset() 139 dec->header = NULL; in gst_speex_dec_reset() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/wavpack/ |
D | gstwavpackdec.c | 93 static gboolean gst_wavpack_dec_start (GstAudioDecoder * dec); 94 static gboolean gst_wavpack_dec_stop (GstAudioDecoder * dec); 95 static gboolean gst_wavpack_dec_set_format (GstAudioDecoder * dec, 97 static GstFlowReturn gst_wavpack_dec_handle_frame (GstAudioDecoder * dec, 101 static void gst_wavpack_dec_post_tags (GstWavpackDec * dec); 136 gst_wavpack_dec_reset (GstWavpackDec * dec) in gst_wavpack_dec_reset() argument 138 dec->wv_id.buffer = NULL; in gst_wavpack_dec_reset() 139 dec->wv_id.position = dec->wv_id.length = 0; in gst_wavpack_dec_reset() 141 dec->channels = 0; in gst_wavpack_dec_reset() 142 dec->channel_mask = 0; in gst_wavpack_dec_reset() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/jpeg/ |
D | gstjpegdec.c | 56 (((struct GstJpegDecSourceMgr*)((cinfo_ptr)->src))->dec) 97 static gboolean gst_jpeg_dec_set_format (GstVideoDecoder * dec, 119 GstJpegDec *dec = GST_JPEG_DEC (object); in gst_jpeg_dec_finalize() local 121 jpeg_destroy_decompress (&dec->cinfo); in gst_jpeg_dec_finalize() 122 if (dec->input_state) in gst_jpeg_dec_finalize() 123 gst_video_codec_state_unref (dec->input_state); in gst_jpeg_dec_finalize() 209 GstJpegDec *dec = CINFO_GET_JPEGDEC (cinfo); in gst_jpeg_dec_skip_input_data() local 211 GST_DEBUG_OBJECT (dec, "skip %ld bytes", num_bytes); in gst_jpeg_dec_skip_input_data() 256 gst_jpeg_dec_init (GstJpegDec * dec) in gst_jpeg_dec_init() argument 261 memset (&dec->cinfo, 0, sizeof (dec->cinfo)); in gst_jpeg_dec_init() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | radeon_uvd.c | 103 static int flush(struct ruvd_decoder *dec, unsigned flags) in flush() argument 105 return dec->ws->cs_flush(&dec->cs, flags, NULL); in flush() 109 static void set_reg(struct ruvd_decoder *dec, unsigned reg, uint32_t val) in set_reg() argument 111 radeon_emit(&dec->cs, RUVD_PKT0(reg >> 2, 0)); in set_reg() 112 radeon_emit(&dec->cs, val); in set_reg() 116 static void send_cmd(struct ruvd_decoder *dec, unsigned cmd, in send_cmd() argument 122 reloc_idx = dec->ws->cs_add_buffer(&dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED, in send_cmd() 124 if (!dec->use_legacy) { in send_cmd() 126 addr = dec->ws->buffer_get_virtual_address(buf); in send_cmd() 128 set_reg(dec, dec->reg.data0, addr); in send_cmd() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_video.c | 33 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_begin_frame() local 34 uint32_t comm_seq = ++dec->fence_seq; in nvc0_decoder_begin_frame() 37 assert(dec); in nvc0_decoder_begin_frame() 41 ret = nvc0_decoder_bsp_begin(dec, comm_seq); in nvc0_decoder_begin_frame() 54 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_decode_bitstream() local 55 uint32_t comm_seq = dec->fence_seq; in nvc0_decoder_decode_bitstream() 60 ret = nvc0_decoder_bsp_next(dec, comm_seq, num_buffers, data, num_bytes); in nvc0_decoder_decode_bitstream() 70 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_end_frame() local 72 uint32_t comm_seq = dec->fence_seq; in nvc0_decoder_end_frame() 81 ret = nvc0_decoder_bsp_end(dec, desc, target, comm_seq, &vp_caps, &is_ref, refs); in nvc0_decoder_end_frame() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/vmnc/ |
D | vmncdec.c | 110 gst_vmnc_dec_init (GstVMncDec * dec) in gst_vmnc_dec_init() argument 113 (dec), TRUE); in gst_vmnc_dec_init() 114 GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (dec)); in gst_vmnc_dec_init() 120 GstVMncDec *dec = GST_VMNC_DEC (decoder); in gst_vmnc_dec_reset() local 122 g_free (dec->imagedata); in gst_vmnc_dec_reset() 123 dec->imagedata = NULL; in gst_vmnc_dec_reset() 125 g_free (dec->cursor.cursordata); in gst_vmnc_dec_reset() 126 dec->cursor.cursordata = NULL; in gst_vmnc_dec_reset() 128 g_free (dec->cursor.cursormask); in gst_vmnc_dec_reset() 129 dec->cursor.cursormask = NULL; in gst_vmnc_dec_reset() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv98_video.c | 38 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nv98_decoder_decode_bitstream() local 40 uint32_t comm_seq = ++dec->fence_seq; in nv98_decoder_decode_bitstream() 51 ret = nv98_decoder_bsp(dec, desc, target, comm_seq, in nv98_decoder_decode_bitstream() 58 nv98_decoder_vp(dec, desc, target, comm_seq, vp_caps, is_ref, refs); in nv98_decoder_decode_bitstream() 59 nv98_decoder_ppp(dec, desc, target, comm_seq); in nv98_decoder_decode_bitstream() 90 struct nouveau_vp3_decoder *dec; in nv98_create_decoder() local 107 dec = CALLOC_STRUCT(nouveau_vp3_decoder); in nv98_create_decoder() 108 if (!dec) in nv98_create_decoder() 110 dec->client = nv50->base.client; in nv98_create_decoder() 111 dec->base = *templ; in nv98_create_decoder() [all …]
|
D | nv84_video.c | 67 nv84_load_firmwares(struct nouveau_device *dev, struct nv84_decoder *dec, in nv84_load_firmwares() argument 79 dec->vp_fw2_offset = align(size1, 0x100); in nv84_load_firmwares() 81 ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 0, dec->vp_fw2_offset + size2, NULL, &fw); in nv84_load_firmwares() 84 ret = nouveau_bo_map(fw, NOUVEAU_BO_WR, dec->client); in nv84_load_firmwares() 90 ret = nv84_copy_firmware(fw2, fw->map + dec->vp_fw2_offset, size2); in nv84_load_firmwares() 101 nv84_load_bsp_firmware(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_bsp_firmware() argument 104 dev, dec, "/lib/firmware/nouveau/nv84_bsp-h264", NULL); in nv84_load_bsp_firmware() 108 nv84_load_vp_firmware(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_vp_firmware() argument 111 dev, dec, in nv84_load_vp_firmware() 117 nv84_load_vp_firmware_mpeg(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_vp_firmware_mpeg() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_video.c | 36 nouveau_vpe_init(struct nouveau_decoder *dec) { in nouveau_vpe_init() argument 38 if (dec->cmds) in nouveau_vpe_init() 40 ret = nouveau_bo_map(dec->cmd_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init() 45 ret = nouveau_bo_map(dec->data_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init() 50 dec->cmds = dec->cmd_bo->map; in nouveau_vpe_init() 51 dec->data = dec->data_bo->map; in nouveau_vpe_init() 56 nouveau_vpe_synch(struct nouveau_decoder *dec) { in nouveau_vpe_synch() argument 57 struct nouveau_pushbuf *push = dec->push; in nouveau_vpe_synch() 59 if (dec->fence_map) { in nouveau_vpe_synch() 61 PUSH_DATA (push, ++dec->fence_seq); in nouveau_vpe_synch() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | truespeech.c | 80 static void truespeech_read_frame(TSContext *dec, const uint8_t *input) in truespeech_read_frame() argument 84 dec->bdsp.bswap_buf((uint32_t *) dec->buffer, (const uint32_t *) input, 8); in truespeech_read_frame() 85 init_get_bits(&gb, dec->buffer, 32 * 8); in truespeech_read_frame() 87 dec->vector[7] = ts_codebook[7][get_bits(&gb, 3)]; in truespeech_read_frame() 88 dec->vector[6] = ts_codebook[6][get_bits(&gb, 3)]; in truespeech_read_frame() 89 dec->vector[5] = ts_codebook[5][get_bits(&gb, 3)]; in truespeech_read_frame() 90 dec->vector[4] = ts_codebook[4][get_bits(&gb, 4)]; in truespeech_read_frame() 91 dec->vector[3] = ts_codebook[3][get_bits(&gb, 4)]; in truespeech_read_frame() 92 dec->vector[2] = ts_codebook[2][get_bits(&gb, 4)]; in truespeech_read_frame() 93 dec->vector[1] = ts_codebook[1][get_bits(&gb, 5)]; in truespeech_read_frame() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | gstrtpst2022-1-fecdec.c | 102 static GstFlowReturn store_media_item (GstRTPST_2022_1_FecDec * dec, 199 trim_items (GstRTPST_2022_1_FecDec * dec) in trim_items() argument 203 for (tmp_iter = g_sequence_get_begin_iter (dec->packets); in trim_items() 212 if (dec->max_arrival_time - GST_BUFFER_DTS_OR_PTS (item->buffer) < in trim_items() 213 dec->size_time) in trim_items() 221 GST_TRACE_OBJECT (dec, in trim_items() 224 g_sequence_remove_range (g_sequence_get_begin_iter (dec->packets), in trim_items() 230 trim_fec_items (GstRTPST_2022_1_FecDec * dec, guint D) in trim_fec_items() argument 234 for (tmp_iter = g_sequence_get_begin_iter (dec->fec_packets[D]); in trim_fec_items() 243 if (dec->max_fec_arrival_time[D] - GST_BUFFER_DTS_OR_PTS (item->buffer) < in trim_fec_items() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/demux/ |
D | anim_decode.c | 64 WebPAnimDecoder* const dec) { in ApplyDecoderOptions() argument 66 WebPDecoderConfig* config = &dec->config_; in ApplyDecoderOptions() 74 dec->blend_func_ = (mode == MODE_RGBA || mode == MODE_BGRA) in ApplyDecoderOptions() 89 WebPAnimDecoder* dec = NULL; in WebPAnimDecoderNewInternal() local 104 dec = (WebPAnimDecoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in WebPAnimDecoderNewInternal() 105 if (dec == NULL) goto Error; in WebPAnimDecoderNewInternal() 112 if (!ApplyDecoderOptions(&options, dec)) goto Error; in WebPAnimDecoderNewInternal() 114 dec->demux_ = WebPDemux(webp_data); in WebPAnimDecoderNewInternal() 115 if (dec->demux_ == NULL) goto Error; in WebPAnimDecoderNewInternal() 117 dec->info_.canvas_width = WebPDemuxGetI(dec->demux_, WEBP_FF_CANVAS_WIDTH); in WebPAnimDecoderNewInternal() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/libde265/ |
D | libde265-dec.c | 133 _gst_libde265_dec_reset_decoder (GstLibde265Dec * dec) in _gst_libde265_dec_reset_decoder() argument 135 dec->ctx = NULL; in _gst_libde265_dec_reset_decoder() 136 dec->buffer_full = 0; in _gst_libde265_dec_reset_decoder() 137 dec->codec_data = NULL; in _gst_libde265_dec_reset_decoder() 138 dec->codec_data_size = 0; in _gst_libde265_dec_reset_decoder() 139 dec->input_state = NULL; in _gst_libde265_dec_reset_decoder() 140 dec->output_state = NULL; in _gst_libde265_dec_reset_decoder() 144 gst_libde265_dec_init (GstLibde265Dec * dec) in gst_libde265_dec_init() argument 146 dec->format = DEFAULT_FORMAT; in gst_libde265_dec_init() 147 dec->max_threads = DEFAULT_MAX_THREADS; in gst_libde265_dec_init() [all …]
|