Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Speex
Speex
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Xiph.Org
  • SpeexSpeex
  • Issues
  • #399

Closed
Open
Opened Jul 07, 2003 by snicolai@snicolai

No way to get max compressed size for a frame for a given mode

The following code:

speex_mode_query(&speex_wb_mode, SPEEX_MODE_FRAME_SIZE, &size);

can be used to get the number of samples in a frame, but there is no way to get the max number 
of bytes that will compress down to.

speex_mode_query(&speex_wb_mode, SPEEX_SUBMODE_BITS_PER_FRAME, &bits)

seems close to what I want, but I really don't want to have to know what submode I will be using, I 
want to deal in quality instead (or just ignore that issue and get the max value for ANY submode.)

Also the wideband version of this function seems to only return the number of bits above and 
beyond what the narrowband would use.  

So to properly size my buffers, right now I have hardcoded constants rather than getting the values 
from Speex.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/speex#399