[FFmpeg-devel] [PATCH 1/8] lavu/log: add device categories

Michael Niedermayer michaelni at gmx.at
Sat Mar 1 17:03:07 CET 2014


On Tue, Feb 25, 2014 at 02:45:57AM +0100, Lukasz Marek wrote:
> 
> >>I wanted it possible to distinguish audio and video devices. Use
> >>case is to make a dropdown list in application's gui where user may
> >>choose which device to use for audio/video. (see next patch with
> >>iterators). If you have other idea how to distinguish them they give
> >>a hint.
> >>INPUT/OUTPUT may be skipped because it is already distinguish by
> >>input/output format structs, but I don't think there is really
> >>reason for it.
> >
> >you guessed correctly that the large number of categories
> >gave me a odd feelig but i actually just meant this, as i didnt have
> >a really superior idea
> 
> I clearly misunderstand you, probably, but updated patch attached.
> Updated patch attached.
> 
> 
> -- 
> Best Regards,
> Lukasz Marek
> 
> Royale with Cheese.

>  log.h |    6 ++++++
>  1 file changed, 6 insertions(+)
> 050379a7c3044e9e2ba75491945ebc2914775a77  0001-lavu-log-add-device-categories.patch
> From f2cbb8bd734b2cbd53c0acc05228d594e49d9912 Mon Sep 17 00:00:00 2001
> From: Lukasz Marek <lukasz.m.luki at gmail.com>
> Date: Sat, 22 Feb 2014 23:32:45 +0100
> Subject: [PATCH 1/4] lavu/log: add device categories
> 
> TODO: micro bump?
> 
> Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> ---
>  libavutil/log.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/libavutil/log.h b/libavutil/log.h
> index 5fb476f..43562ff 100644
> --- a/libavutil/log.h
> +++ b/libavutil/log.h
> @@ -37,6 +37,12 @@ typedef enum {
>      AV_CLASS_CATEGORY_BITSTREAM_FILTER,
>      AV_CLASS_CATEGORY_SWSCALER,
>      AV_CLASS_CATEGORY_SWRESAMPLER,
> +    AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT = 100,
> +    AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
> +    AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
> +    AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
> +    AV_CLASS_CATEGORY_DEVICE_OUTPUT,
> +    AV_CLASS_CATEGORY_DEVICE_INPUT,
>      AV_CLASS_CATEGORY_NB, ///< not part of ABI/API
>  }AVClassCategory;

this also needs an update to the color tables in log.c

[...]


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140301/8d093913/attachment.asc>


More information about the ffmpeg-devel mailing list