| Предыдущий | Следующий |
| VFW_S_RPZA | VFW_S_RESERVED |
VFW_S_ESTIMATED
Практический смысл
VFW_S_ESTIMATED (0X00040260) относится к DirectShow. Это success/status HRESULT. Исходный признак результата зафиксирован в документации как исходное описание результата VFW_S_ESTIMATED
.
Практическая проверка начинается на владельце операции: зафиксируйте exact method, object identity и состояние до любых retry, reset или re-enumeration. Для этой страницы ключевая граница формулируется так: исходное описание результата VFW_S_ESTIMATED
Специфичные признаки исходного описания
VFW_S_ESTIMATED is HRESULT 262752 ( 0x00040260 ) from Video for Windows. AllStat describes this result as “The value returned had to be estimated; It's accuracy can not be guaranteed.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK .
The requested media value was produced, but the component had to estimate it and cannot guarantee exact accuracy.
This result can appear in duration, position, bitrate, or timing queries; record the producing interface and method rather than inferring behavior from the symbolic name alone.
This result can appear in formats without complete indexes; record the producing interface and method rather than inferring behavior from the symbolic name alone.
It can appear in live or variable-rate streams; record the producing interface and method rather than inferring behavior from the symbolic name alone.
The same numeric success value can be mishandled when a wrapper exposes only a Boolean. Keep the original HRESULT until the code-specific outputs and state transition have been evaluated.
Что сохранить до исправления
- interface и method, на котором впервые появился HRESULT
- CLSID и friendly name задействованных filters, pin names и negotiated media type
- graph state/generation, renderer или capture device и первый предшествующий HRESULT
- временные метки media sample, rate/clock state и фактические параметры вызова
Как локализовать границу
Проверяйте filter graph, negotiated media type, timing и состояние конкретного interface, а не наличие codec вообще. Сначала воспроизведите минимальный сценарий без параллельного изменения конфигурации; затем сравните сохранённые параметры с условием из исходного описания. Если состояние исчезает после re-enumeration или пересоздания объекта, отдельно проверьте lifetime/generation race.
Исправление и повторная проверка
Если retry нужен, заново получите объекты, чья generation могла измениться, и не продолжайте работу с stale interface только потому, что предыдущий вызов завершился.
Дополнительные признаки конкретного сценария
S_OK can indicate an exact documented result; it explicitly lowers confidence in the returned value.
The requested media value was produced, but the component had to estimate it and cannot guarantee exact accuracy.
Display or use the estimate with appropriate tolerance. Re-query after indexing or more data becomes available, and avoid irreversible decisions based solely on the estimate.
Технические ссылки
- Microsoft: DirectShow error and success codes.
- Microsoft: DirectShow overview.
- Microsoft: DirectShow time and clocks.
Нужно найти другой код? Найти другой код состояния или ошибки.