• Home
  • Raw
  • Download

Lines Matching refs:internal

129     if (ctx->internal->hw_type->device_uninit)  in hwdevice_ctx_free()
130 ctx->internal->hw_type->device_uninit(ctx); in hwdevice_ctx_free()
135 av_buffer_unref(&ctx->internal->source_device); in hwdevice_ctx_free()
138 av_freep(&ctx->internal->priv); in hwdevice_ctx_free()
139 av_freep(&ctx->internal); in hwdevice_ctx_free()
163 ctx->internal = av_mallocz(sizeof(*ctx->internal)); in av_hwdevice_ctx_alloc()
164 if (!ctx->internal) in av_hwdevice_ctx_alloc()
168 ctx->internal->priv = av_mallocz(hw_type->device_priv_size); in av_hwdevice_ctx_alloc()
169 if (!ctx->internal->priv) in av_hwdevice_ctx_alloc()
188 ctx->internal->hw_type = hw_type; in av_hwdevice_ctx_alloc()
193 if (ctx->internal) in av_hwdevice_ctx_alloc()
194 av_freep(&ctx->internal->priv); in av_hwdevice_ctx_alloc()
195 av_freep(&ctx->internal); in av_hwdevice_ctx_alloc()
206 if (ctx->internal->hw_type->device_init) { in av_hwdevice_ctx_init()
207 ret = ctx->internal->hw_type->device_init(ctx); in av_hwdevice_ctx_init()
214 if (ctx->internal->hw_type->device_uninit) in av_hwdevice_ctx_init()
215 ctx->internal->hw_type->device_uninit(ctx); in av_hwdevice_ctx_init()
229 if (ctx->internal->pool_internal) in hwframe_ctx_free()
230 av_buffer_pool_uninit(&ctx->internal->pool_internal); in hwframe_ctx_free()
232 if (ctx->internal->hw_type->frames_uninit) in hwframe_ctx_free()
233 ctx->internal->hw_type->frames_uninit(ctx); in hwframe_ctx_free()
238 av_buffer_unref(&ctx->internal->source_frames); in hwframe_ctx_free()
243 av_freep(&ctx->internal->priv); in hwframe_ctx_free()
244 av_freep(&ctx->internal); in hwframe_ctx_free()
251 const HWContextType *hw_type = device_ctx->internal->hw_type; in av_hwframe_ctx_alloc()
259 ctx->internal = av_mallocz(sizeof(*ctx->internal)); in av_hwframe_ctx_alloc()
260 if (!ctx->internal) in av_hwframe_ctx_alloc()
264 ctx->internal->priv = av_mallocz(hw_type->frames_priv_size); in av_hwframe_ctx_alloc()
265 if (!ctx->internal->priv) in av_hwframe_ctx_alloc()
291 ctx->internal->hw_type = hw_type; in av_hwframe_ctx_alloc()
298 if (ctx->internal) in av_hwframe_ctx_alloc()
299 av_freep(&ctx->internal->priv); in av_hwframe_ctx_alloc()
300 av_freep(&ctx->internal); in av_hwframe_ctx_alloc()
340 if (ctx->internal->source_frames) { in av_hwframe_ctx_init()
346 for (pix_fmt = ctx->internal->hw_type->pix_fmts; *pix_fmt != AV_PIX_FMT_NONE; pix_fmt++) { in av_hwframe_ctx_init()
353 av_get_pix_fmt_name(ctx->format), ctx->internal->hw_type->name); in av_hwframe_ctx_init()
363 if (ctx->internal->hw_type->frames_init) { in av_hwframe_ctx_init()
364 ret = ctx->internal->hw_type->frames_init(ctx); in av_hwframe_ctx_init()
369 if (ctx->internal->pool_internal && !ctx->pool) in av_hwframe_ctx_init()
370 ctx->pool = ctx->internal->pool_internal; in av_hwframe_ctx_init()
381 if (ctx->internal->hw_type->frames_uninit) in av_hwframe_ctx_init()
382 ctx->internal->hw_type->frames_uninit(ctx); in av_hwframe_ctx_init()
392 if (!ctx->internal->hw_type->transfer_get_formats) in av_hwframe_transfer_get_formats()
395 return ctx->internal->hw_type->transfer_get_formats(ctx, dir, formats); in av_hwframe_transfer_get_formats()
464 if (src_ctx->internal->source_frames) { in av_hwframe_transfer_data()
471 if (dst_ctx->internal->source_frames) { in av_hwframe_transfer_data()
478 ret = src_ctx->internal->hw_type->transfer_data_from(src_ctx, dst, src); in av_hwframe_transfer_data()
480 ret = dst_ctx->internal->hw_type->transfer_data_to(dst_ctx, dst, src); in av_hwframe_transfer_data()
487 ret = ctx->internal->hw_type->transfer_data_from(ctx, dst, src); in av_hwframe_transfer_data()
493 ret = ctx->internal->hw_type->transfer_data_to(ctx, dst, src); in av_hwframe_transfer_data()
508 if (ctx->internal->source_frames) { in av_hwframe_get_buffer()
522 ret = av_hwframe_get_buffer(ctx->internal->source_frames, in av_hwframe_get_buffer()
530 ctx->internal->source_allocation_map_flags); in av_hwframe_get_buffer()
545 if (!ctx->internal->hw_type->frames_get_buffer) in av_hwframe_get_buffer()
555 ret = ctx->internal->hw_type->frames_get_buffer(ctx, frame); in av_hwframe_get_buffer()
569 const HWContextType *hw_type = ctx->internal->hw_type; in av_hwdevice_hwconfig_alloc()
581 const HWContextType *hw_type = ctx->internal->hw_type; in av_hwdevice_get_hwframe_constraints()
625 if (!device_ctx->internal->hw_type->device_create) { in av_hwdevice_ctx_create()
630 ret = device_ctx->internal->hw_type->device_create(device_ctx, device, in av_hwdevice_ctx_create()
667 tmp_ref = tmp_ctx->internal->source_device; in av_hwdevice_ctx_create_derived_opts()
680 if (dst_ctx->internal->hw_type->device_derive) { in av_hwdevice_ctx_create_derived_opts()
681 ret = dst_ctx->internal->hw_type->device_derive(dst_ctx, in av_hwdevice_ctx_create_derived_opts()
686 dst_ctx->internal->source_device = av_buffer_ref(src_ref); in av_hwdevice_ctx_create_derived_opts()
687 if (!dst_ctx->internal->source_device) { in av_hwdevice_ctx_create_derived_opts()
699 tmp_ref = tmp_ctx->internal->source_device; in av_hwdevice_ctx_create_derived_opts()
805 (src_frames->internal->source_frames && in av_hwframe_map()
806 src_frames->internal->source_frames->data == in av_hwframe_map()
827 src_frames->internal->hw_type->map_from) { in av_hwframe_map()
828 ret = src_frames->internal->hw_type->map_from(src_frames, in av_hwframe_map()
841 dst_frames->internal->hw_type->map_to) { in av_hwframe_map()
842 ret = dst_frames->internal->hw_type->map_to(dst_frames, in av_hwframe_map()
881 if (src->internal->source_frames) { in av_hwframe_ctx_create_derived()
883 (AVHWFramesContext*)src->internal->source_frames->data; in av_hwframe_ctx_create_derived()
891 av_buffer_ref(src->internal->source_frames); in av_hwframe_ctx_create_derived()
913 dst->internal->source_frames = av_buffer_ref(source_frame_ctx); in av_hwframe_ctx_create_derived()
914 if (!dst->internal->source_frames) { in av_hwframe_ctx_create_derived()
919 dst->internal->source_allocation_map_flags = in av_hwframe_ctx_create_derived()
926 if (src->internal->hw_type->frames_derive_from) in av_hwframe_ctx_create_derived()
927 ret = src->internal->hw_type->frames_derive_from(dst, src, flags); in av_hwframe_ctx_create_derived()
929 dst->internal->hw_type->frames_derive_to) in av_hwframe_ctx_create_derived()
930 ret = dst->internal->hw_type->frames_derive_to(dst, src, flags); in av_hwframe_ctx_create_derived()
941 av_buffer_unref(&dst->internal->source_frames); in av_hwframe_ctx_create_derived()