schema_version: 7.0
type: transition
identifier: composite
title: Composite (*DEPRECATED*)
version: 2
copyright: Meltytech, LLC
creator: Dan Dennedy
license: LGPLv2.1
language: en
tags:
  - Video
description: >
  A key-framable alpha-channel compositor for two frames.
notes: >
  Deprecated: use "affine" or "qtblend" instead.
  Performs dissolves and luma wipes in addition to alpha compositing.
  
  By default, the aspect ratio of the B frame is respected and the size 
  portion of the geometry specification simply defines a bounding rectangle.
  
  This performs field-based rendering unless the A frame property 
  "progressive" or "consumer_progressive" or the transition property 
  "progressive" is set to 1.
bugs:
  - Assumes lower field first during field rendering.
parameters:
  - identifier: factory
    title: Factory
    type: string
    description: >
      The name of a factory service used as a non-PGM producer loader.
    default: loader

  - identifier: geometry
    argument: yes
    title: Geometry
    type: rect
    description: A possibly keyframed rectangle
    mutable: yes
    animation: yes

  - identifier: progressive
    title: Progressive
    description: > 
      Enable or disable field-based rendering.
    type: integer
    minimum: 0
    maximum: 1
    mutable: yes
    widget: checkbox

  - identifier: distort
    title: Allow distorted scaling
    description: >
      When set, causes the B frame image to fill the WxH completely with no 
      regard to B's aspect ratio.
    type: integer
    default: 0
    minimum: 0
    maximum: 1
    mutable: yes
    widget: checkbox

  - identifier: crop_to_fill
    title: Fill by cropping
    description: >
      When set, causes the B frame image to fill the WxH completely by
      cropping edges in order to maintain B's aspect ratio.
    type: integer
    default: 0
    minimum: 0
    maximum: 1
    mutable: yes
    widget: checkbox

  - identifier: halign
    title: Horizontal alignment
    description: >
      When not distorting, set the horizontal alignment of B within the 
      geometry rectangle.
    type: string
    default: left
    values:
      - left
      - centre
      - right
    mutable: yes
    widget: combo

  - identifier: valign
    title: Vertical alignment
    description: >
      When not distorting, set the vertical alignment of B within the 
      geometry rectangle.
    type: string
    default: top
    values:
      - top
      - middle
      - bottom
    mutable: yes
    widget: combo

  - identifier: luma
    title: Luma map
    description: >
      The luma map file name.
    type: string
    mutable: yes
    widget: fileopen

  - identifier: softness
    title: Softness
    description: >
      Only when using a luma map, how soft to make the edges between A and B.
    type: float
    default: 0.0
    minimum: 0.0
    maximum: 1.0
    mutable: yes

  - identifier: luma.*
    title: Luma producer
    description: >
      Properties may be set on the encapsulated producer. Any property starting 
      with "luma." is passed to the non-PGM luma producer.
    readonly: no
    mutable: yes

  - identifier: sliced_composite
    title: Use sliced compositing
    description: >
      Enabling this option will start sliced processing of picture compositing, i.e.
      some parts of picture processed in different thread
    type: boolean
    default: 0
    mutable: yes
    widget: checkbox

  - identifier: fill
    title: Fill geometry
    description: >
      Determines whether the image will be scaled up to fill the geometry.
      Otherwise, if the B frame image fits within the geometry, it will not
      be scaled. If 0, and the B frame image exceeds the geometry, then it is
      scaled down to fit within the geometry.
    type: boolean
    default: 1
    mutable: yes
    widget: checkbox
    
  - identifier: invert
    title: Invert
    description: Whether to swap the A and B clips
    type: boolean
    default: 1
    mutable: yes
    widget: checkbox

  - identifier: crop
    title: Crop Rectangle
    type: rect
    description: Defines a cropping rectangle for the second input
    mutable: yes
    animation: yes
