Commits on May 20, 2021

  1. Reenable AVIF_VERSION_DEVEL

    Joe Drago committed May 20, 2021
    Configuration menu
    Copy the full SHA
    dae9b9f View commit details
    Browse the repository at this point in the history

Commits on May 22, 2021

  1. Declare the param of avifDumpDiagnostics as const

    Also omit the 'struct' keyword before avifDiagnostics.
    wantehchang authored and joedrago committed May 22, 2021
    Configuration menu
    Copy the full SHA
    2dcf7fa View commit details
    Browse the repository at this point in the history
  2. Remove const from non-pointer function parameters

    Using 'const' on non-pointer function parameters means the function
    cannot modify the parameters. This could be useful in function
    implementations, but should be avoided in function declarations.
    
    C++ allows the function declaration and definition to differ in the
    constness of the parameters. For example, in add.h we can declare
    
        int Add(int a, int b);
    
    and in add.cc we can define the function with this prototpye:
    
        int Add(const int a, const int b)
        {
            return a + b;
        }
    
    Unfortunately C doesn't allow this, even though gcc and clang allow this
    as a language extension.
    wantehchang authored and joedrago committed May 22, 2021
    Configuration menu
    Copy the full SHA
    b016750 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Fix gdk-pixbuf loader install path (#615)

    Currently one ends up with the absolute path on the build machine.
    kmilos committed May 25, 2021
    Configuration menu
    Copy the full SHA
    c1761fe View commit details
    Browse the repository at this point in the history
  2. Merge avifCodec's open call with its getNextImage call to avoid codec… (

    #637)
    
    * Merge avifCodec's open call with its getNextImage call to avoid codec init during parse, and simplify the codec API
    
    Fixes: #636
    joedrago committed May 25, 2021
    Configuration menu
    Copy the full SHA
    405e872 View commit details
    Browse the repository at this point in the history
  3. Ext: Update to SVT-AV1 v0.8.7

    EwoutH authored and wantehchang committed May 25, 2021
    Configuration menu
    Copy the full SHA
    f122cb9 View commit details
    Browse the repository at this point in the history
  4. Move svt update changelog entry into Unreleased (v0.9.1 is already do…

    …ne), remove extraneous newline
    Joe Drago committed May 25, 2021
    Configuration menu
    Copy the full SHA
    83d597c View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Fix a typo in the diagnostic context for 'ipco'

    The diagnostic messages in avifParseItemPropertyContainerBox() should
    say "Box[ipco]", not "Box[iprp]".
    wantehchang authored and joedrago committed May 27, 2021
    Configuration menu
    Copy the full SHA
    d8867d1 View commit details
    Browse the repository at this point in the history
  2. Print the fraction in "not an integer" messages

    Also remove two unnecessary int32_t casts. cropY.n and cropY.d are
    already of the int32_t type.
    wantehchang authored and joedrago committed May 27, 2021
    Configuration menu
    Copy the full SHA
    3269261 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2021

  1. Simplify avifCodecConfigurationBoxGetFormat

    Simplify the conditionals in avifCodecConfigurationBoxGetFormat(). Once
    monochrome has been eliminated, YUV 4:2:0 is the only one with
    subsampling_y == 1. And the remaining two can be differentiated by
    testing subsampling_x.
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    a1aa19c View commit details
    Browse the repository at this point in the history
  2. Don't clear error in avifEncoderSetCodecSpecificOp

    Remove the avifDiagnosticsClearError() call from
    avifEncoderSetCodecSpecificOption() because
    avifEncoderSetCodecSpecificOption() returns void and doesn't fail.
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    a33ef51 View commit details
    Browse the repository at this point in the history
  3. Fix CHANGELOG.md nits

    Change "decode error" to "decode or encode error" in the description of
    avifDiagnostics.
    
    Capitalize "switch".
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    bc53dd4 View commit details
    Browse the repository at this point in the history
  4. Simplify the assertion in avifROStreamStart()

    P => Q is equivalent to !P || Q. So it is not necessary to test P again
    in !P || (P && Q).
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    87ae356 View commit details
    Browse the repository at this point in the history
  5. No need to pass diag to functions that have 'data'

    If a function has an avifDecoderData * data parameter, it can use
    data->diag. It is not necessary to add an avifDiagnostics * diag
    parameter to the function.
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    5312181 View commit details
    Browse the repository at this point in the history
  6. Fix box name of avifParseChunkOffsetBox

    The box name of avifParseChunkOffsetBox depends on largeOffsets.
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    72de166 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f1a64e7 View commit details
    Browse the repository at this point in the history
  8. Some straightforward changes to clapFraction code

    In calcCenter(), set the numerator to dim directly if dim is odd, rather
    than calculate it from dim >> 1.
    
    In clapFractionCD(), use *= whenever possible.
    wantehchang authored and joedrago committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    ab65bf7 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Configuration menu
    Copy the full SHA
    9613e21 View commit details
    Browse the repository at this point in the history
  2. Check for int32_t cast and unsigned add overflows

    Also remove extraneous parentheses.
    wantehchang authored and joedrago committed Jun 2, 2021
    Configuration menu
    Copy the full SHA
    1d7a708 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a17693d View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Avoid multiplying widthN and heightN by 2

    Avoid the widthN * 2 and heightN * 2 multiplications, which could
    overflow int32_t, by performing the widthN / widthD and
    heightN / heightD divisions early. Those two divisions are needed to
    calculate cropRect->width and cropRect->height.
    wantehchang authored and joedrago committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    c998d1c View commit details
    Browse the repository at this point in the history
  2. Enable CMake configs in VCPKG mode

    Dmitry Baryshev authored and wantehchang committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    d09319b View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2021

  1. Refactor imir implementation to match HEIF Draft Amendment 2, which r…

    …eplaces 'axis' with 'mode' and inverts the behavior
    Joe Drago authored and joedrago committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    b551bb3 View commit details
    Browse the repository at this point in the history
  2. Have avifdec print chroma sample position for 420

    In the AV1 bitstream, chroma_sample_position is assigned a value if both
    subsampling_x and subsamplingy are equal to 1. This actually includes
    both monochrome and YUV 4:2:0, but chroma_sample_position is not used in
    monochrome, so we only print chroma_sample_position for YUV 4:2:0.
    wantehchang authored and joedrago committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    77c5a09 View commit details
    Browse the repository at this point in the history
  3. Check for int32_t overflows in 'clap' code

    Check if a uint32_t variable is <= INT32_MAX before casting it to
    int32_t.
    
    Perform the arithmetic operations in int64_t and then check for int32_t
    overflows.
    
    Change clapFractionCD(), clapFractionAdd(), and clapFractionSub() to
    return avifBool. They return AVIF_FALSE if any arithmetic operation
    overflows int32_t.
    wantehchang authored and joedrago committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    5bbb789 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0f729c1 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Fix the clang -Wunused-macros warning

    Fix the clang -Wunused-macros (macro is not used) warning about the
    HAVE_AOM_CODEC_SET_OPTION macro when libavif is configured to use libaom
    for decode only (-DAVIF_CODEC_AOM_ENCODE=OFF
    -DAVIF_CODEC_AOM_DECODE=ON).
    wantehchang authored and joedrago committed Jun 8, 2021
    Configuration menu
    Copy the full SHA
    9b063b6 View commit details
    Browse the repository at this point in the history
  2. Cleanup avifutil.h comment to match libavif style

    Joe Drago authored and joedrago committed Jun 8, 2021
    Configuration menu
    Copy the full SHA
    5e8cb66 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. Cleanup related to avifDiagnosticsClearError()

    1. Have avifCropRectConvertCleanApertureBox() and
    avifCleanApertureBoxConvertCropRect() call avifDiagnosticsClearError()
    on entry.
    
    2. avifDiagnosticsClearError() just needs to set the first character of
    the diag->error buffer to '\0' rather than memset the entire buffer.
    wantehchang authored and joedrago committed Jun 9, 2021
    Configuration menu
    Copy the full SHA
    573815b View commit details
    Browse the repository at this point in the history
  2. ext: Checkout libaom v3.1.1

    Updates the libaom version checked out in the ext and docker scripts
    from v3.1.0 to v3.1.1.
    wantehchang authored and joedrago committed Jun 9, 2021
    Configuration menu
    Copy the full SHA
    f7f9651 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2021

  1. Configuration menu
    Copy the full SHA
    f01e225 View commit details
    Browse the repository at this point in the history
  2. Allocate codec->internal->svt_config statically

    We don't need to allocate codec->internal->svt_config from the heap.
    wantehchang authored and joedrago committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    d328578 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Make tests/compare.h and tests/testcase.h C++ safe

    Add extern "C" blocks to tests/compare.h and tests/testcase.h to allow
    tests written in C++ to include these two headers.
    wantehchang authored and joedrago committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    dfdd0b4 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. avifenc, avifdec: Allow "-j all" to automatically use all of the core…

    …s on the machine
    
    Fixes: #645
    Joe Drago authored and joedrago committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    5a98790 View commit details
    Browse the repository at this point in the history
  2. Rename CPU count helper function, document its failure case

    Joe Drago authored and joedrago committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    4eadcc5 View commit details
    Browse the repository at this point in the history
  3. Update Changelog in prep for version bump

    Joe Drago committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    859e731 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2021

  1. Don't need to disable MSVC warnings 5031 and 5032

    Since #pragma warning(push) and #pragma warning(pop) are not used in
    this file, we cannot possibly get MSVC warnings 5031 and 5032. Therefore
    it is not necessary to disable these two warnings.
    
    Fix #679.
    wantehchang committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    26c7ed6 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. v0.9.2

    Joe Drago committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    45d58a5 View commit details
    Browse the repository at this point in the history