Skip to content
Snippets Groups Projects
  1. Dec 16, 2010
    • Ralph Giles's avatar
      Update the libtheora_info example for the previous commit. · 54290cc6
      Ralph Giles authored
      This example program allocates a minimal encoder context so
      it can query settings through th_encode_ctl(). As of r17760
      setting the framerate to a non-zero/zero value is required.
      
      svn path=/trunk/theora/; revision=17761
      54290cc6
    • Ralph Giles's avatar
      Reject th_info structs with a zero in the frame rate rational. · ef3c399f
      Ralph Giles authored
      The specification says that the frame rate numerator and
      denominator MUST both be greater than zero. This wasn't
      checked as part of the structure validation code, and in
      fact passing a zero value here caused a segfault.
      
      The code now checks for this in oc_state_init() and returns
      TH_EINVAL, which is causes th_encode_alloc() and oc_decode_alloc()
      to return NULL.
      
      A check for that NULL return is also added to encoder_example.c
      to show that it may fail when an invalid th_info parameter is
      passed.
      
      svn path=/trunk/theora/; revision=17760
      ef3c399f
  2. Dec 14, 2010
  3. Dec 13, 2010
  4. Dec 10, 2010
    • Timothy B. Terriberry's avatar
      Make PROC and ENDP functional in arm2gnu.pl. · 00323a02
      Timothy B. Terriberry authored
      PROC now marks the corresponding symbol as a function, and ENDP emits
       an appropriate .size directive for it.
      These should help tools identify these functions, though valgrind still
       can't associate the function name with the corresponding code.
      
      svn path=/trunk/theora/; revision=17745
      00323a02
  5. Dec 09, 2010
    • Ralph Giles's avatar
      Also silence the input file summary lines with -q. · 3e1e76b9
      Ralph Giles authored
      I'd found these helpful for script debugging, but really it's
      better for scripts to print their own version of this information.
      The -q option should really mean no non-error output.
      
      svn path=/trunk/theora/; revision=17744
      3e1e76b9
  6. Dec 07, 2010
    • Cristian Adam's avatar
      Fixed a VisualC asm specific bug. · 553c9f51
      Cristian Adam authored
      Removed _BIND_TO_CURRENT_CRT_VERSION preprocessor directive for VS2008 project files.
      Now debug version of dump_video and encoder_example work.
      
      svn path=/trunk/theora/; revision=17739
      553c9f51
    • Timothy B. Terriberry's avatar
      Properly initialize the DCT scratch space. · 8457ba67
      Timothy B. Terriberry authored
      r17728 now expects this to be cleared to zero before entering
       oc_enc_block_transform_quantize(), but we weren't doing so.
      
      svn path=/trunk/theora/; revision=17738
      8457ba67
    • Timothy B. Terriberry's avatar
      Fix MSVC compilation broken in r17736. · 90a21988
      Timothy B. Terriberry authored
      It helps to actually rename the function after changing its declaration.
      
      svn path=/trunk/theora/; revision=17737
      90a21988
    • Timothy B. Terriberry's avatar
      Minor fix-ups to r17728. · d18ada0a
      Timothy B. Terriberry authored
      Convert references to the stack buffer in the MMX fDCT to use esp-relative
       offsets, saving a register.
      Move the MSVC MMX fDCT into the MMXEXT section (as was done for the gcc one),
       since it now requires pshufw for the zig-zagging.
      
      svn path=/trunk/theora/; revision=17736
      d18ada0a
    • Cristian Adam's avatar
      Fixed one GCC to Visual C asm instruction call. Now the optimized version... · ac6497cb
      Cristian Adam authored
      Fixed one GCC to Visual C asm instruction call. Now the optimized version produces the same output as the C version.
      
      svn path=/trunk/theora/; revision=17734
      ac6497cb
    • Timothy B. Terriberry's avatar
      Move zig-zagging from quantization into the fDCT. · 8a8fa360
      Timothy B. Terriberry authored
      This removes one of the transposes from the fDCT, and avoids several zig-zag
       lookups during tokenization.
      This change also makes the encoder iDCT clear the input buffer like the
       decoder, which can be re-used for the next block, avoiding the need for a
       memcpy or memset in the tokenizer.
      This gives a 1.3% speed-up at the default speed-level (1), and a 3.1% speed-up
       at speed-level 2 (for 480p, on x86-64).
      
      svn path=/trunk/theora/; revision=17728
      8a8fa360
  7. Dec 02, 2010
  8. Nov 30, 2010
  9. Nov 25, 2010
  10. Nov 24, 2010
    • Timothy B. Terriberry's avatar
      Fix out-of-date OC_ARM_ASM_ARMV6 usage. · 76ac1b90
      Timothy B. Terriberry authored
      This was ultimately named OC_ARM_ASM_MEDIA instead.
      It shouldn't have mattered in this case, as it shouldn't be possible to get
       OC_ARM_ASM_MEDIA without OC_ARM_ASM_EDSP, but clean it up anyway.
      
      svn path=/trunk/theora/; revision=17646
      76ac1b90
    • Ralph Giles's avatar
      Rename OC_SAD_SHIFT to OC_SATD_SHIFT. · 52c9a038
      Ralph Giles authored
      The SAD and SADT metrics have different ranges, so it is
      necessary to use different scale factors when comparing
      them.
      
      Originally we used SAD, and when SATD was added, the
      scale factor was updated without changing the name.
      This commit finally does so. However, it is intended
      that the code switch back to the SAD metric at higher
      speed levels, we also keep OC_SAD_SHIFT with its
      appropriate value, 6 according to Tim.
      
      Likewise, OC_SAD_BINS is renamed OC_COMP_BINS in
      expectation of supporting mode tables for both
      metrics.
      
      svn path=/trunk/theora/; revision=17645
      52c9a038
  11. Nov 22, 2010
  12. Nov 18, 2010
  13. Nov 09, 2010
  14. Oct 29, 2010
  15. Oct 25, 2010
    • Timothy B. Terriberry's avatar
      Fix some C64x compiler warnings. · 2d704236
      Timothy B. Terriberry authored
      Remove a few unused variables (that were assigned to, but never used), and
       add an explicit cast to convert -OC_LOTS_OF_BITS to unsigned, since the C64x
       compiler complains about the sign change (arguably rightly so).
      
      svn path=/trunk/theora/; revision=17565
      2d704236
    • Timothy B. Terriberry's avatar
      Add c64x changes for r17563, as they were accidentally omitted. · 3b450606
      Timothy B. Terriberry authored
      svn path=/trunk/theora/; revision=17564
      3b450606
    • Timothy B. Terriberry's avatar
      Ensure frame rows are 16-byte aligned. · 0f03ad95
      Timothy B. Terriberry authored
      We don't actually use this for anything yet, but it may help calling
       applications (e.g., doing software YUV2RGB conversion).
      Also, change ref_frame_data to point directly to the desired reference frame,
       rather than require a lookup through ref_frame_idx first.
      This saves an indirection and gives a 0.7% speed-up at 720p on a Cortex A8.
      It should have an even bigger benefit on C64x, though it wasn't benchmarked
       there.
      
      svn path=/trunk/theora/; revision=17563
      0f03ad95
  16. Oct 20, 2010
  17. Oct 13, 2010
  18. Oct 12, 2010
Loading