• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/compat/avisynth/

Lines Matching refs:AVS_Value

491 // AVS_Value
494 // Treat AVS_Value as a fat pointer. That is use avs_copy_value
495 // and avs_release_value appropiaty as you would if AVS_Value was
499 // avisynth_c API don't use the AVS_Value directly. Use the helper
502 // AVS_Value is layed out identicly to AVSValue
503 typedef struct AVS_Value AVS_Value;
504 struct AVS_Value {
514 const AVS_Value * array;
518 // AVS_Value should be initilized with avs_void.
522 static const AVS_Value avs_void = {'v'};
524 AVSC_API(void, avs_copy_value)(AVS_Value * dest, AVS_Value src);
525 AVSC_API(void, avs_release_value)(AVS_Value);
527 AVSC_INLINE int avs_defined(AVS_Value v) { return v.type != 'v'; }
528 AVSC_INLINE int avs_is_clip(AVS_Value v) { return v.type == 'c'; }
529 AVSC_INLINE int avs_is_bool(AVS_Value v) { return v.type == 'b'; }
530 AVSC_INLINE int avs_is_int(AVS_Value v) { return v.type == 'i'; }
531 AVSC_INLINE int avs_is_float(AVS_Value v) { return v.type == 'f' || v.type == 'i'; }
532 AVSC_INLINE int avs_is_string(AVS_Value v) { return v.type == 's'; }
533 AVSC_INLINE int avs_is_array(AVS_Value v) { return v.type == 'a'; }
534 AVSC_INLINE int avs_is_error(AVS_Value v) { return v.type == 'e'; }
536 AVSC_API(AVS_Clip *, avs_take_clip)(AVS_Value, AVS_ScriptEnvironment *);
537 AVSC_API(void, avs_set_to_clip)(AVS_Value *, AVS_Clip *);
539 AVSC_INLINE int avs_as_bool(AVS_Value v)
541 AVSC_INLINE int avs_as_int(AVS_Value v)
543 AVSC_INLINE const char * avs_as_string(AVS_Value v)
545 AVSC_INLINE double avs_as_float(AVS_Value v)
547 AVSC_INLINE const char * avs_as_error(AVS_Value v)
549 AVSC_INLINE const AVS_Value * avs_as_array(AVS_Value v)
551 AVSC_INLINE int avs_array_size(AVS_Value v)
553 AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index)
556 // only use these functions on an AVS_Value that does not already have
557 // an active value. Remember, treat AVS_Value as a fat pointer.
558 AVSC_INLINE AVS_Value avs_new_value_bool(int v0)
559 { AVS_Value v; v.type = 'b'; v.d.boolean = v0 == 0 ? 0 : 1; return v; }
560 AVSC_INLINE AVS_Value avs_new_value_int(int v0)
561 { AVS_Value v; v.type = 'i'; v.d.integer = v0; return v; }
562 AVSC_INLINE AVS_Value avs_new_value_string(const char * v0)
563 { AVS_Value v; v.type = 's'; v.d.string = v0; return v; }
564 AVSC_INLINE AVS_Value avs_new_value_float(float v0)
565 { AVS_Value v; v.type = 'f'; v.d.floating_pt = v0; return v;}
566 AVSC_INLINE AVS_Value avs_new_value_error(const char * v0)
567 { AVS_Value v; v.type = 'e'; v.d.string = v0; return v; }
569 AVSC_INLINE AVS_Value avs_new_value_clip(AVS_Clip * v0)
570 { AVS_Value v; avs_set_to_clip(&v, v0); return v; }
572 AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value * v0, int size)
573 { AVS_Value v; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; }
603 typedef AVS_Value (AVSC_CC * AVS_ApplyFunc)
604 (AVS_ScriptEnvironment *, AVS_Value args, void * user_data);
637 AVS_Value child, int store_child);
681 AVSC_API(AVS_Value, avs_invoke)(AVS_ScriptEnvironment *, const char * name,
682 AVS_Value args, const char** arg_names);
685 AVSC_API(AVS_Value, avs_get_var)(AVS_ScriptEnvironment *, const char* name);
688 AVSC_API(int, avs_set_var)(AVS_ScriptEnvironment *, const char* name, AVS_Value val);
690 AVSC_API(int, avs_set_global_var)(AVS_ScriptEnvironment *, const char* name, const AVS_Value val);