On Tue, Mar 11, 2014 at 04:12:13PM +0100, Vittorio Giovara wrote:
> --- /dev/null
> +++ b/libavcodec/sanm.c
> @@ -0,0 +1,1476 @@
> +static enum GlyphDir which_direction(enum GlyphEdge edge0, enum GlyphEdge 
> edge1)
> +{
> +    if ((edge0 == LEFT_EDGE && edge1 == RIGHT_EDGE) ||
> +        (edge1 == LEFT_EDGE && edge0 == RIGHT_EDGE) ||
> +        (edge0 == BOTTOM_EDGE && edge1 != TOP_EDGE) ||
> +        (edge1 == BOTTOM_EDGE && edge0 != TOP_EDGE))
> +        return DIR_UP;
> +    else if ((edge0 == TOP_EDGE && edge1 != BOTTOM_EDGE) ||
> +               (edge1 == TOP_EDGE && edge0 != BOTTOM_EDGE))
> +        return DIR_DOWN;
> +    else if ((edge0 == LEFT_EDGE && edge1 != RIGHT_EDGE) ||
> +               (edge1 == LEFT_EDGE && edge0 != RIGHT_EDGE))
> +        return DIR_LEFT;
> +    else if ((edge0 == TOP_EDGE && edge1 == BOTTOM_EDGE) ||
> +               (edge1 == TOP_EDGE && edge0 == BOTTOM_EDGE) ||
> +               (edge0 == RIGHT_EDGE && edge1 != LEFT_EDGE) ||
> +               (edge1 == RIGHT_EDGE && edge0 != LEFT_EDGE))
> +        return DIR_RIGHT;

Indentation is off in the else cases.

> +/**
> + * Construct glyphs by iterating through vectors coordinates.

vector_

> +static int old_codec1(SANMVideoContext *ctx, int top,
> +                      int left, int width, int height)
> +{
> +    uint8_t *dst = ((uint8_t*)ctx->frm0) + left + top * ctx->pitch;

(uint8_t *)

> +    default:
> +        av_log(ctx->avctx, AV_LOG_ERROR,
> +               "Subcodec 37 compression %d not implemented.\n", compr);
> +        return AVERROR_PATCHWELCOME;

avpriv_report_missing_feature()

> +    default:
> +        av_log(ctx->avctx, AV_LOG_ERROR,
> +               "Subcodec 47 compression %d not implemented.\n", compr);
> +        return AVERROR_PATCHWELCOME;

ditto

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to