R/logging.R

Defines functions get_open_handles av_log_level

Documented in av_log_level

#' Logging
#'
#' Get or set the [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html).
#'
#' @useDynLib av R_log_level
#' @family av
#' @name logging
#' @export
#' @param set new [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html) value
av_log_level <- function(set = NULL){
  if(length(set)){
    levels <- seq(-8, 56, 8)
    if(!(set %in% levels))
      stop("Log level must be one of: ", paste(levels, collapse = ", "))
  }
  .Call(R_log_level, set)
}

#' @useDynLib av R_get_open_handles
get_open_handles <- function(){
  .Call(R_get_open_handles)
}

Try the av package in your browser

Any scripts or data that you put into this service are public.

av documentation built on Oct. 17, 2023, 1:11 a.m.