Capturador de vídeo. Más...
#include "config.h"
#include "video_frame.h"
| Estructuras de datos | |
| struct | configuración_del_capturador_de_vídeo_otc |
| struct | otc_video_capturer_callbacks |
| Definiciones de tipos | |
| typedef struct otc_video_capturer | otc_video_capturer |
| Funciones | |
| otc_status | otc_video_capturer_proporciona_fotograma (const otc_video_capturer *capturador, int rotación, const otc_video_frame *cuadro) |
| otc_status const | otc_video_capturer_set_content_hint (const otc_video_capturer *capturador, enumeración otc_video_capturer_content_hint_type content_hint) |
| enum otc_video_capturer_content_hint_type const | otc_video_capturer_get_content_hint (const otc_video_capturer *capturador) |
Descripción detallada
Capturador de vídeo.
Este archivo incluye la definición del tipo de un capturador de vídeo, junto con varias declaraciones de funciones útiles a la hora de trabajar con él.
Documentación sobre `typedef`
otc_video_capturer
| typedef struct otc_video_capturer otc_video_capturer |
Definición del tipo de capturador de vídeo.
Documentación sobre tipos de enumeración
otc_video_capturer_content_hint_type
Define los valores para el content_hint del otc_video_capturer_set_content_hint función.
| Encuestador | |
|---|---|
| OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_NONE | No se ha proporcionado ninguna indicación. Se utilizará el valor por defecto «none». |
| OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_MOTION | value = "movimiento" |
| OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_DETAIL | valor = «detalle». |
| OTC_VIDEO_CAPTURER_CONTENT_HINT_TYPE_TEXT | valor = «texto». |
Documentación de funciones
otc_video_capturer_get_content_hint()
| enum otc_video_capturer_content_hint_type const otc_video_capturer_get_content_hint | ( | const otc_video_capturer * | capturador | ) |
Devuelve el valor de «content_hint» correspondiente a la fuente de vídeo del capturador.
Parámetros : | | | | --- | --- | | capturer | El puntero al capturador. |
Valores devueltos : Valor de enumeración de tipo otc_video_capturer_content_hint_type
otc_video_capturer_provide_frame()
| otc_status otc_video_capturer_proporciona_fotograma | ( | const otc_video_capturer * | capturador, |
| int | rotación, | ||
| const otc_video_frame * | marco | ||
| ) |
Proporciona un fotograma de vídeo al capturador de vídeo.
Parámetros : | | | | --- | --- | | capturer | Un puntero a la instancia del capturador de vídeo. | | rotation | La rotación del fotograma de vídeo. | | frame | Un puntero a la instancia del fotograma de vídeo que se va a proporcionar. |
Valores de retorno : Valor de retorno que indica si se ha producido un error o si la operación se ha realizado correctamente.
Véase también : otc_video_frame
otc_video_capturer_set_content_hint()
| otc_status const otc_video_capturer_set_content_hint | ( | const otc_video_capturer * | capturador, |
| enum otc_video_capturer_content_hint_type | content_hint | ||
| ) |
Establece la indicación de contenido de vídeo en uno de los valores de la enumeración «otc_video_capturer_content_hint_type». Si la API recibe cualquier valor distinto de los especificados anteriormente, se registra una advertencia al respecto.
Parámetros : | | | | --- | --- | | capturer | El puntero al capturador | | content_hint | Valor de enumeración de tipo otc_video_capturer_content_hint_type. |
Valores de retorno : Valor de retorno que indica si la operación ha fallado o se ha realizado con éxito.