Revision 45c3c925 libavcodec/vp3.c

View differences:

libavcodec/vp3.c
1547 1547
                        stride, 8);
1548 1548

  
1549 1549
                }
1550
#if 0
1551
                /* perform the left edge filter if:
1552
                 *   - the fragment is not on the left column
1553
                 *   - the fragment is coded in this frame
1554
                 *   - the fragment is not coded in this frame but the left
1555
                 *     fragment is coded in this frame (this is done instead
1556
                 *     of a right edge filter when rendering the left fragment
1557
                 *     since this fragment is not available yet) */
1558
                if ((x > 0) &&
1559
                    ((s->all_fragments[i].coding_method != MODE_COPY) ||
1560
                     ((s->all_fragments[i].coding_method == MODE_COPY) &&
1561
                      (s->all_fragments[i - 1].coding_method != MODE_COPY)) )) {
1562
                    horizontal_filter(
1563
                        output_plane + s->all_fragments[i].first_pixel + 7*stride,
1564
                        -stride, s->bounding_values_array + 127);
1565
                }
1566

  
1567
                /* perform the top edge filter if:
1568
                 *   - the fragment is not on the top row
1569
                 *   - the fragment is coded in this frame
1570
                 *   - the fragment is not coded in this frame but the above
1571
                 *     fragment is coded in this frame (this is done instead
1572
                 *     of a bottom edge filter when rendering the above
1573
                 *     fragment since this fragment is not available yet) */
1574
                if ((y > 0) &&
1575
                    ((s->all_fragments[i].coding_method != MODE_COPY) ||
1576
                     ((s->all_fragments[i].coding_method == MODE_COPY) &&
1577
                      (s->all_fragments[i - fragment_width].coding_method != MODE_COPY)) )) {
1578
                    vertical_filter(
1579
                        output_plane + s->all_fragments[i].first_pixel - stride,
1580
                        -stride, s->bounding_values_array + 127);
1581
                }
1582
#endif
1583 1550
            }
1584 1551
        }
1585 1552
    }
......
1601 1568
    int x, y;
1602 1569
    int *bounding_values= s->bounding_values_array+127;
1603 1570

  
1604
#if 0
1605
    int bounding_values_array[256];
1606
    int filter_limit;
1607

  
1608
    /* find the right loop limit value */
1609
    for (x = 63; x >= 0; x--) {
1610
        if (vp31_ac_scale_factor[x] >= s->quality_index)
1611
            break;
1612
    }
1613
    filter_limit = vp31_filter_limit_values[s->quality_index];
1614

  
1615
    /* set up the bounding values */
1616
    memset(bounding_values_array, 0, 256 * sizeof(int));
1617
    for (x = 0; x < filter_limit; x++) {
1618
        bounding_values[-x - filter_limit] = -filter_limit + x;
1619
        bounding_values[-x] = -x;
1620
        bounding_values[x] = x;
1621
        bounding_values[x + filter_limit] = filter_limit - x;
1622
    }
1623
#endif
1624

  
1625 1571
    for (plane = 0; plane < 3; plane++) {
1626 1572
        int width           = s->fragment_width  >> !!plane;
1627 1573
        int height          = s->fragment_height >> !!plane;

Also available in: Unified diff