command: fix property naming convention

Use "-" instead of "_" as separator.
This commit is contained in:
wm4
2015-01-10 21:16:34 +01:00
parent e5f2072364
commit e96c08ecb5
2 changed files with 4 additions and 4 deletions

View File

@@ -1119,12 +1119,12 @@ Property list
The pixel format as string. This uses the same names as used in other The pixel format as string. This uses the same names as used in other
places of mpv. places of mpv.
``video-params/average_bpp`` ``video-params/average-bpp``
Average bits-per-pixel as integer. Subsampled planar formats use a Average bits-per-pixel as integer. Subsampled planar formats use a
different resolution, which is the reason this value can sometimes be different resolution, which is the reason this value can sometimes be
odd or confusing. Can be unavailable with some formats. odd or confusing. Can be unavailable with some formats.
``video-params/plane_depth`` ``video-params/plane-depth``
Bit depth for each color component as integer. This is only exposed Bit depth for each color component as integer. This is only exposed
for planar or single-component formats, and is unavailable for other for planar or single-component formats, and is unavailable for other
formats. formats.

View File

@@ -2403,9 +2403,9 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg)
struct m_sub_property props[] = { struct m_sub_property props[] = {
{"pixelformat", SUB_PROP_STR(mp_imgfmt_to_name(p.imgfmt))}, {"pixelformat", SUB_PROP_STR(mp_imgfmt_to_name(p.imgfmt))},
{"average_bpp", SUB_PROP_INT(bpp), {"average-bpp", SUB_PROP_INT(bpp),
.unavailable = !bpp}, .unavailable = !bpp},
{"plane_depth", SUB_PROP_INT(desc.plane_bits), {"plane-depth", SUB_PROP_INT(desc.plane_bits),
.unavailable = !(desc.flags & MP_IMGFLAG_PLANAR)}, .unavailable = !(desc.flags & MP_IMGFLAG_PLANAR)},
{"w", SUB_PROP_INT(p.w)}, {"w", SUB_PROP_INT(p.w)},
{"h", SUB_PROP_INT(p.h)}, {"h", SUB_PROP_INT(p.h)},